CN113311926A - Fan speed regulation method and device, electronic equipment and computer readable storage medium - Google Patents

Fan speed regulation method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN113311926A
CN113311926A CN202110516972.6A CN202110516972A CN113311926A CN 113311926 A CN113311926 A CN 113311926A CN 202110516972 A CN202110516972 A CN 202110516972A CN 113311926 A CN113311926 A CN 113311926A
Authority
CN
China
Prior art keywords
fan
heat source
target
rotating speed
target heat
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110516972.6A
Other languages
Chinese (zh)
Inventor
李想
邵鹏
李亚华
焦向昆
于佳男
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dawning Information Industry Co Ltd
Original Assignee
Dawning Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dawning Information Industry Co Ltd filed Critical Dawning Information Industry Co Ltd
Priority to CN202110516972.6A priority Critical patent/CN113311926A/en
Publication of CN113311926A publication Critical patent/CN113311926A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/20Cooling means
    • G06F1/206Cooling means comprising thermal management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Cooling Or The Like Of Electrical Apparatus (AREA)

Abstract

The application relates to a fan speed regulation method and device, electronic equipment and a computer readable storage medium, which are applied to the electronic equipment, wherein the electronic equipment comprises at least one fan and a plurality of heat sources, and the method comprises the following steps: acquiring a current temperature acquired by a target heat source associated with a fan; the number of target heat sources is at least two; respectively determining the rotating speed of the fan at the current temperature of the target heat source aiming at each target heat source; and determining a target rotating speed from the rotating speeds of the fans at the current temperature of the target heat source, and adjusting the rotating speed of the fan to the target rotating speed. Compared with a mode of directly taking the maximum temperature value from the current temperatures of the plurality of heat sources to calculate the rotating speed, the method and the device respectively determine the rotating speed of the fan at the current temperature of the target heat source according to different target heat sources, and then determine the target rotating speed, so that the rotating speed of the fan can be accurately controlled based on the current temperature of the target heat source, and a good heat dissipation effect can be realized for each heat source.

Description

Fan speed regulation method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for adjusting a speed of a fan, an electronic device, and a computer-readable storage medium.
Background
With the rapid development of internet technology, the performance requirements on hardware in electronic devices are also higher and higher. In the process of continuously improving the hardware performance, the power consumption of the electronic device increases, and the heat dissipation of the electronic device is very important.
Electronic devices generally dissipate heat by controlling the rotation speed of a fan. In the traditional method, the rotating speed of the fan is mainly adjusted by adopting an open-loop speed regulation mode and a closed-loop speed regulation mode. When the open-loop speed regulation mode is adopted for speed regulation, the fan can only be controlled by a single heat source, so that the fan cannot take different heat sources into consideration. When the closed-loop speed regulation mode is adopted for speed regulation, the rotation speed of the fan is regulated mainly based on the difference value between the current temperature value of the heat source and the set value. Obviously, the rotation speed adjustment is performed based on the difference, and it is difficult to accurately control the rotation speed based on the heat source temperature.
Disclosure of Invention
The embodiment of the application provides a fan speed regulating method and device, electronic equipment and a computer readable storage medium, which can realize accurate control of rotating speed based on the temperature of a heat source.
In one embodiment, a fan speed regulation method is provided and applied to an electronic device, wherein the electronic device comprises at least one fan and a plurality of heat sources, and the method comprises the following steps:
acquiring a current temperature acquired by a target heat source associated with the fan; the number of the target heat sources is at least two;
respectively determining the rotating speed of the fan at the current temperature of the target heat source aiming at each target heat source;
and determining a target rotating speed from the rotating speeds of the fan at the current temperature of the target heat source, and adjusting the rotating speed of the fan to the target rotating speed.
In the embodiment of the present application, since the fan is associated with the at least two heat sources in advance, the current temperatures of the at least two target heat sources associated with the fan can be acquired. Then, the rotation speed of the fan at the current temperature of the target heat source can be determined separately for each target heat source. And finally, determining a target rotating speed from the data, and adjusting the rotating speed of the fan to the target rotating speed. It is achieved that each fan, when being speed regulated, is controlled by at least two heat sources associated therewith. The problem that other heat sources cannot be considered due to the fact that the heat source is controlled by a single heat source is avoided. Because each heat source has different requirements on the rotating speed of the fan at the same temperature, compared with a mode of directly taking the maximum temperature value from the current temperatures of the plurality of heat sources to calculate the rotating speed, the method and the device respectively determine the rotating speed of the fan at the current temperature of the target heat source for different target heat sources, and then determine the target rotating speed, so that the rotating speed of the fan can be accurately controlled based on the current temperature of the target heat source, and a good heat dissipation effect can be realized for each heat source.
In one embodiment, the determining, for each target heat source, the rotation speed of the fan at the current temperature of the target heat source includes:
respectively determining the duty ratio of the fan corresponding to the current temperature of the target heat source aiming at each target heat source;
and determining the rotating speed of the fan at the current temperature of the target heat source according to the duty ratio.
In the embodiment of the application, for each target heat source, when the rotating speed of the fan at the current temperature of the target heat source is determined, firstly, the duty ratio corresponding to the fan at the current temperature of the target heat source is determined. And then, determining the rotating speed of the fan at the current temperature of the target heat source according to the duty ratio. A duty cycle of each fan when facing a different heat source is determined, and different rotational speeds of the fans are determined based on the duty cycles. By directly calculating the rotating speed of each fan facing different target heat sources, the problem that the traditional method obtains the highest temperature from the target heat sources for each fan, only the final rotating speed of the fan is calculated based on the highest temperature, and other heat sources cannot be considered is avoided, so that good heat dissipation cannot be performed on each heat source.
In one embodiment, the determining, for each target heat source, a duty ratio of the fan corresponding to a current temperature of the target heat source includes:
for each target heat source, acquiring a temperature-duty ratio relation between the target heat source and the fan;
and determining the duty ratio of the fan corresponding to the current temperature of the target heat source according to the temperature-duty ratio relation between the target heat source and the fan.
In the embodiment of the application, because the temperature-duty cycle curves between each fan and different target heat sources are different, the temperature-duty cycle relation between the target heat sources and the fans is obtained for each target heat source. And determining the duty ratio corresponding to the current temperature of the target heat source of the fan according to the temperature-duty ratio relation between the target heat source and the fan. Thus, according to the duty ratio, the rotation speed of the fan at the current temperature of the different target heat sources can be determined. Finally, the rotating speed of the fan can be accurately controlled based on the current temperatures of different target heat sources, and a good heat dissipation effect can be achieved for each target heat source.
In one embodiment, the determining the rotation speed of the fan at the current temperature of the target heat source according to the duty ratio includes:
and determining the rotating speed of the fan at the current temperature of the target heat source according to the duty ratio based on the duty ratio-rotating speed relation of the fan.
In the embodiment of the application, after the duty ratio corresponding to the current temperature of the target heat source of the fan is determined, the rotating speed of the fan at the current temperature of different target heat sources can be determined according to the duty ratio based on the duty ratio-rotating speed relation of the fan. Therefore, by calculating the rotating speed of the fan at the current temperature of different target heat sources, compared with the traditional mode of directly calculating the rotating speed of the fan based on the highest temperature, different target heat sources can be considered. Finally, the rotating speed of the fan can be accurately controlled based on the current temperatures of different target heat sources, and a good heat dissipation effect can be achieved for each target heat source.
In one embodiment, the determining a target rotation speed from the rotation speeds of the fans at the current temperature of the target heat source, and adjusting the rotation speed of the fan to the target rotation speed includes:
obtaining a maximum rotating speed from rotating speeds of the fan at the current temperature of the target heat source;
and determining the maximum rotating speed as the target rotating speed, and adjusting the rotating speed of the fan to the target rotating speed.
In the embodiment of the present application, the maximum rotation speed is obtained from the rotation speeds of the fans at the current temperature of the target heat source. And determining the maximum rotating speed as a target rotating speed, and adjusting the rotating speed of the fan to the target rotating speed. Therefore, the fan can take the heat dissipation problem of each target heat source into account at the target rotating speed, and the problem that the temperature of a certain target heat source is too high to cause faults is avoided.
In one embodiment, the method further comprises:
according to the position relation of the at least one fan and the plurality of heat sources in the electronic equipment, a target heat source related to the fan is determined from the plurality of heat sources.
In the embodiment of the present application, each fan in the electronic device may be respectively associated with all heat sources in the electronic device, so that each fan is controlled by all heat sources in the electronic device. Therefore, the current temperature of the target heat source related to the fan is obtained, and the rotating speed of the fan at the current temperature of the target heat source is determined respectively according to the current temperature of each target heat source. And determining a target rotating speed from the rotating speeds of the fans at the current temperature of the target heat source, and adjusting the rotating speed of the fan to the target rotating speed. The rotation speed of the fan can be accurately controlled based on the current temperature of the target heat source, and a good heat dissipation effect can be achieved for each heat source.
In one embodiment, the at least one fan includes a CPU fan, a first fan, and a second fan, and the plurality of heat sources includes a CPU, an air inlet, a first type of card, and a second type of card;
the determining a target heat source associated with the fan according to the position relationship between the at least one fan and the plurality of heat sources in the electronic device includes:
determining a target heat source related to the CPU fan as a CPU and an air inlet according to the positions of the CPU fan and the heat sources in the electronic equipment;
determining target heat sources related to the first fan to be a CPU, an air inlet, a first type of plug-in card and a second type of plug-in card according to the positions of the first fan and the heat sources in the electronic equipment; the first type of plug-in card comprises a display card, and the second type of plug-in card comprises a network card or a memory card;
and determining the target heat source associated with the second fan to be a CPU, a first type of plug-in card and a second type of plug-in card according to the positions of the second fan and the heat sources in the electronic equipment.
In the embodiment of the application, each fan in the electronic device may be respectively associated with a part of heat sources in the electronic device, so that each fan is controlled by the part of heat sources in the electronic device. Therefore, the current temperature of the target heat source related to the fan is obtained, and the rotating speed of the fan at the current temperature of the target heat source is determined respectively according to the current temperature of each target heat source. And determining a target rotating speed from the rotating speeds of the fans at the current temperature of the target heat source, and adjusting the rotating speed of the fan to the target rotating speed. The rotation speed of the fan can be accurately controlled based on the current temperature of the target heat source, and a good heat dissipation effect can be achieved for each heat source.
In one embodiment, there is provided a fan speed control apparatus for an electronic device, the electronic device including at least one fan and a plurality of heat sources, the apparatus comprising:
the current temperature acquisition module is used for acquiring the current temperature acquired by a target heat source associated with the fan; the number of the target heat sources is at least two;
the rotating speed respectively determining module is used for respectively determining the rotating speed of the fan at the current temperature of the target heat source aiming at each target heat source;
and the rotating speed adjusting module is used for determining a target rotating speed from the rotating speeds of the fan at the current temperature of the target heat source and adjusting the rotating speed of the fan to the target rotating speed.
An electronic device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of the bluetooth communication method as described above.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the bluetooth communication method as described above.
The fan speed regulation method and device, the electronic equipment and the computer readable storage medium are applied to the electronic equipment, the electronic equipment comprises at least one fan and a plurality of heat sources, and the method comprises the following steps: acquiring a current temperature acquired by a target heat source associated with a fan; the number of target heat sources is at least two; respectively determining the rotating speed of the fan at the current temperature of the target heat source aiming at each target heat source; and determining a target rotating speed from the rotating speeds of the fans at the current temperature of the target heat source, and adjusting the rotating speed of the fan to the target rotating speed.
Since the fan is associated with the at least two heat sources in advance, the current temperatures of the at least two target heat sources associated with the fan can be acquired. Then, the rotation speed of the fan at the current temperature of the target heat source can be respectively determined for the current temperature of each target heat source. And finally, determining a target rotating speed from the data, and adjusting the rotating speed of the fan to the target rotating speed. It is achieved that each fan, when being speed regulated, is controlled by at least two heat sources associated therewith. The problem that other heat sources cannot be considered due to the fact that the heat source is controlled by a single heat source is avoided. Because each heat source has different requirements on the rotating speed of the fan at the same temperature, compared with a mode of directly taking the maximum temperature value from the current temperatures of the plurality of heat sources to calculate the rotating speed, the method and the device respectively determine the rotating speed of the fan at the current temperature of the target heat source for different target heat sources, and then determine the target rotating speed, so that the rotating speed of the fan can be accurately controlled based on the current temperature of the target heat source, and a good heat dissipation effect can be realized for each heat source.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an exemplary embodiment of a fan speed control method;
FIG. 2 is a flow chart of a fan speed control method in one embodiment;
FIG. 3 is a flow chart of a method of separately determining a rotational speed of the fan at a current temperature of the target heat source for each of the target heat sources of FIG. 2;
FIG. 4 is a schematic diagram of a temperature-duty cycle curve between a fan and a target heat source in one embodiment;
FIG. 5 is a control logic diagram of a fan speed control method according to an embodiment;
FIG. 6 is a diagram of an internal architecture of an electronic device in one embodiment;
FIG. 7 is a control logic diagram of a fan speed control method in accordance with an exemplary embodiment;
FIG. 8 is a block diagram showing the structure of a fan speed control device according to an embodiment;
FIG. 9 is a block diagram of the rotation speed determination module shown in FIG. 8;
fig. 10 is a schematic diagram of an internal structure of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 is a diagram illustrating an application scenario of a fan speed control method according to an embodiment. As shown in fig. 1, the application environment includes an electronic device 120, and the electronic device 120 may be a server or a terminal device. The electronic device comprises at least one fan and a plurality of heat sources. The electronic device may obtain a current temperature collected by a target heat source associated with the fan; the number of target heat sources is at least two; respectively determining the rotating speed of the fan at the current temperature of the target heat source aiming at each target heat source; and determining a target rotating speed from the rotating speeds of the fans at the current temperature of the target heat source, and adjusting the rotating speed of the fan to the target rotating speed. Here, the electronic device 120 may be any terminal device including a desktop computer, a notebook computer, a tablet computer, a PDA (Personal Digital Assistant), a smart home, and the like.
Electronic devices generally dissipate heat by controlling the rotation speed of a fan. In the traditional method, the rotating speed of the fan is mainly adjusted by adopting an open-loop speed regulation mode and a closed-loop speed regulation mode. When the open-loop speed regulation mode is adopted for speed regulation, the fan can only be controlled by a single heat source, so that the fan cannot take different heat sources into consideration. Specifically, the rotating speed of a certain fan can be adjusted in time according to the temperature change of a certain heat source, or the maximum temperature value can be obtained according to the temperature change process of a plurality of heat sources, and the rotating speed is output based on a speed regulation strategy according to the maximum temperature value. Obviously, the fan cannot give consideration to different heat sources by adopting the traditional open-loop speed regulation mode, namely, each heat source cannot be well radiated.
When the closed-loop speed regulation mode is adopted for speed regulation, the rotation speed of the fan is regulated mainly based on the difference value between the current temperature value of the heat source and the set value. Obviously, the rotation speed is adjusted based on the difference, and after the temperature of the fan is lowered, the temperature of the heat source vibrates in a temperature interval, and the temperature of the heat source tends to be stable after a long period of time. Therefore, the traditional closed-loop speed regulation mode is difficult to realize that the rotating speed is accurately controlled based on the temperature of the heat source so as to realize better heat dissipation of each heat source.
Therefore, the embodiment of the application provides a fan speed regulation method, which can accurately control the rotating speed of a fan based on the temperature of a heat source and can realize a good heat dissipation effect for each heat source. FIG. 2 is a flow chart of a fan speed control method in one embodiment. The fan speed control method in this embodiment is described by taking the electronic device 120 in fig. 1 as an example, where the electronic device includes at least one fan and a plurality of heat sources. The method includes the following steps 220 through 260, wherein,
step 220, obtaining the current temperature of a target heat source associated with the fan; the number of target heat sources is at least two.
Because the electronic device comprises at least one fan and a plurality of heat sources, wherein each heat source can be externally connected with a temperature sensor respectively, and the current temperature of the heat source is detected through the temperature sensor. And the heat source and the fan are respectively arranged at different positions in the electronic equipment.
Each fan in the electronic device may be individually associated with all heat sources in the electronic device such that each fan is controlled by all heat sources in the electronic device. Of course, each fan in the electronic device may be respectively associated with a part of the heat sources in the electronic device, so that each fan is controlled by the part of the heat sources in the electronic device, which is not limited in this application. Here, the heat source associated with the fan is referred to as a target heat source associated with the fan.
The electronic device can acquire the current temperature of the target heat source associated with the fan through the temperature sensor. The current temperature here may refer to the current ambient temperature.
Wherein different fans are mainly used for dissipating heat from their associated heat sources. Therefore, when the rotation speed of the fan is adjusted, the temperature of the heat source associated therewith is mainly acquired by the temperature sensor. Thereby, it is achieved that the rotational speed of the fan is adjusted based on the temperature of the heat source associated with the fan. Here, at least two heat sources associated therewith may be provided for one fan, and therefore, the number of target heat sources of the heat sources associated with the fan is also at least two. By connecting each fan with a plurality of heat sources, the rotation speed of the fan can be adjusted by the plurality of heat sources, so that the rotation speed of the fan can be accurately adjusted.
And 240, respectively determining the rotating speed of the fan at the current temperature of the target heat source for each target heat source.
After the current temperature of the target heat sources of the fan is obtained, the rotational speed of the fan may be determined based on the current temperature of each target heat source. For example, if there are four target heat sources associated with the fan, then based on the current temperatures of the four target heat sources, four rotational speeds of the fan may be determined, respectively.
And step 260, determining a target rotating speed from the rotating speeds of the fans at the current temperature of the heat source, and adjusting the rotating speed of the fan to the target rotating speed.
For each fan, a plurality of rotational speeds are determined based on a current temperature of a target heat source of the fan. A target rotational speed is then determined from the plurality of rotational speeds. For example, after four rotational speeds of the fan are determined in step 240, one rotational speed is determined as the target rotational speed from the four rotational speeds.
In the embodiment of the present application, since the fan is associated with the at least two heat sources in advance, the current temperatures of the at least two target heat sources associated with the fan can be acquired. Then, the rotation speed of the fan at the current temperature of the target heat source can be determined separately for each target heat source. And finally, determining a target rotating speed from the data, and adjusting the rotating speed of the fan to the target rotating speed. It is achieved that each fan, when being speed regulated, is controlled by at least two heat sources associated therewith. The problem that other heat sources cannot be considered due to the fact that the heat source is controlled by a single heat source is avoided. Because each heat source has different requirements on the rotating speed of the fan at the same temperature, compared with a mode of directly taking the maximum temperature value from the current temperatures of the plurality of heat sources to calculate the rotating speed, the method and the device respectively determine the rotating speed of the fan at the current temperature of the target heat source for different target heat sources, and then determine the target rotating speed, so that the rotating speed of the fan can be accurately controlled based on the current temperature of the target heat source, and a good heat dissipation effect can be realized for each heat source.
In one embodiment, as shown in fig. 3, the step 240 of determining the rotation speed of the fan at the current temperature of the target heat source for each target heat source respectively includes:
step 242, determining a duty ratio corresponding to the current temperature of the target heat source for each target heat source;
based on the duty cycle, the rotational speed of the fan at the current temperature of the target heat source is determined 244.
If the target heat source is a CPU, the current temperature of the CPU refers to the internal temperature of the CPU. If the target heat source is hardware such as other video cards and network cards, the current temperature may refer to the internal temperature or the ambient temperature. In the embodiment of the present application, when adjusting the fan rotation speed, discussion is mainly performed on the ambient temperature of hardware such as other video cards and network cards, but the present application does not limit this. The temperature variation range of each heat source is different, for example, the temperature variation range inside the CPU is large, and the temperature can be raised to about 90 ° from the indoor ambient temperature. And the environment temperature of other hardware such as a video card and a network card has a small change range, and can be generally heated to about 40 degrees from the indoor environment temperature. In fact, when the internal temperature of the CPU rises to about 90 ° and the ambient temperature of hardware such as a video card and a network card rises to 40 °, the requirement on the rotation speed of the fan is high, and heat dissipation is urgently needed. And the requirement of the environment temperature of hardware such as a display card, a network card and the like to be increased to 40 degrees on the rotating speed of the fan is substantially far higher than the requirement of the internal temperature of the CPU to be increased to 50 degrees.
However, in the conventional method, when the rotation speed is adjusted by using the open-loop speed adjustment method, the fan is generally controlled by only a single heat source, and even if the fan can be controlled by a plurality of heat sources, the fan can be controlled by only the heat source with the highest temperature. Therefore, if the rotation speed of the fan is controlled by the CPU and the network card at the same time, the internal temperature of the CPU is raised to 50 degrees, and the environmental temperature of the network card is raised to 40 degrees. According to the traditional method, the fan can only be controlled by the heat source with the highest temperature, but is controlled by the CPU, but actually, the temperature inside the CPU is raised to 50 degrees, and the requirement of the rotating speed of the fan is that the temperature is raised to 40 degrees far lower than the ambient temperature of the network card. At this time, the rotation speed of the fan is low, and only the CPU can be well radiated, but the network card cannot be well radiated. Therefore, with the conventional method, the fan cannot take into account different heat sources.
Therefore, with the fan speed regulation method in the present application, after the current temperature of the target heat source associated with the fan is acquired, the fan speed regulation is not performed based on the highest temperature. Instead, the rotation speed of the fan at the current temperature of the target heat source is determined separately for the current temperature of each target heat source.
Specifically, for each target heat source, the duty ratio of the fan corresponding to the current temperature of the target heat source is determined respectively. And then, determining the rotating speed of the fan at the current temperature of the target heat source according to the duty ratio. The rotational speed of the fan may be determined by the duty cycle, among other things. The duty cycle is the ratio of the time of the high level to the total cycle time within one pulse period. The larger the duty ratio, the higher the average value of the voltage input to the fan motor, and the larger the power of the motor, that is, the faster the rotation speed.
In the embodiment of the application, for each target heat source, when the rotating speed of the fan at the current temperature of the target heat source is determined, firstly, the duty ratio corresponding to the fan at the current temperature of the target heat source is determined. And then, determining the rotating speed of the fan at the current temperature of the target heat source according to the duty ratio. A duty cycle of each fan when facing a different heat source is determined, and different rotational speeds of the fans are determined based on the duty cycles. By directly calculating the rotating speed of each fan facing different target heat sources, the problem that the traditional method obtains the highest temperature from the target heat sources for each fan, only the final rotating speed of the fan is calculated based on the highest temperature, and other heat sources cannot be considered is avoided, so that good heat dissipation cannot be performed on each heat source.
In one embodiment, for each target heat source, determining a duty ratio corresponding to the fan at the current temperature of the target heat source respectively includes:
for each target heat source, acquiring a temperature-duty ratio relation between the target heat source and the fan;
and determining the duty ratio corresponding to the current temperature of the target heat source of the fan according to the temperature-duty ratio relation between the target heat source and the fan.
Wherein a specific temperature-duty cycle relationship exists between the fan and different target heat sources. Specifically, the temperature-duty ratio relationship may be a temperature-duty ratio curve obtained by adjusting the duty ratio of the fan through a plurality of experiments to achieve a better heat dissipation effect based on different temperatures of the target heat source. Fig. 4 is a schematic diagram of a temperature-duty cycle curve between a fan and a target heat source.
The temperature-duty ratio curve can be obtained by adjusting the duty ratio of the fan through a plurality of experiments to achieve a better heat dissipation effect based on different temperatures of a target heat source. For example, multiple sets of temperature values and duty cycle values are obtained over multiple experimental runs, and a temperature-duty cycle curve may be obtained based on the multiple sets of temperature values and duty cycle values. For example, in fig. 4, the horizontal axis represents temperature (T) and the vertical axis represents Duty ratio (Duty). Based on the five sets of data (T1, Duty1), (T2, Duty2), (T3, Duty3), (T4, Duty4), (T5, Duty5) obtained through the above experiments, a temperature-Duty cycle curve was obtained.
And, the temperature-duty cycle curves between each fan and different target heat sources are not the same. Therefore, even if the temperatures of the target heat sources of a certain fan are the same, the duty ratios of the obtained fans are different based on the temperature-duty ratio curves between the fan and the different target heat sources, and the rotation speeds of the obtained fans are also different.
Therefore, when the duty ratio corresponding to the current temperature of the target heat source of the fan is determined for each target heat source, the temperature-duty ratio relationship between the target heat source and the fan is obtained for each target heat source. And determining the duty ratio corresponding to the current temperature of the target heat source of the fan according to the temperature-duty ratio relation between the target heat source and the fan. For example, if the rotation speed of the fan is controlled by the CPU and the network card at the same time, the internal temperature of the CPU is raised to 50 °, and the ambient temperature of the network card is raised to 40 °. Based on the temperature-duty ratio relationship between the CPU and the fan, the duty ratio corresponding to the fan when the temperature inside the CPU rises to 50 ° is determined to be 60%. And determining that the corresponding duty ratio of the fan is 80% when the ambient temperature of the network card is raised to 40 degrees based on the temperature-duty ratio relation between the network card and the fan. Obviously, at this time, although the internal temperature of the CPU is higher than the ambient temperature of the network card, based on different temperature-duty ratio relationships, the calculated duty ratio of the fan at the current temperature of the network card is greater than the duty ratio of the fan at the current temperature of the CPU.
In this way, when the fans are adjusted in speed, the duty ratio of the target heat source of each fan can be obtained based on the current temperature of the target heat source of each fan and the temperature-duty ratio curve between the target heat source and the fan. Further, the rotation speed of the fan at the current temperature of the target heat source is determined according to the duty ratio. And finally, determining a target rotating speed from the rotating speeds of the fans at the current temperature of the target heat source, and adjusting the rotating speed of the fans to the target rotating speed. The rotating speed of the fan can be accurately controlled based on the current temperatures of different target heat sources, and a good heat dissipation effect can be realized for each target heat source.
In the embodiment of the application, because the temperature-duty cycle curves between each fan and different target heat sources are different, the temperature-duty cycle relation between the target heat sources and the fans is obtained for each target heat source. And determining the duty ratio corresponding to the current temperature of the target heat source of the fan according to the temperature-duty ratio relation between the target heat source and the fan. Thus, according to the duty ratio, the rotation speed of the fan at the current temperature of the different target heat sources can be determined. Finally, the rotating speed of the fan can be accurately controlled based on the current temperatures of different target heat sources, and a good heat dissipation effect can be achieved for each target heat source.
In the embodiment, determining the rotation speed of the fan at the current temperature of the target heat source according to the duty ratio comprises:
and determining the rotating speed of the fan at the current temperature of the target heat source according to the duty ratio based on the duty ratio-rotating speed relation of the fan.
Specifically, each fan has a specific duty cycle-speed relationship, which is an inherent property of the fan and is closely related to the design of the fan. Generally, the relationship between the duty ratio and the rotating speed of the fan is linear, i.e. the rotating speed is faster when the duty ratio is larger. Because the larger the duty cycle, the higher the average value of the voltage input to the fan motor, the higher the power of the motor, i.e., the faster the rotational speed.
In the above embodiment, after the duty ratio corresponding to the current temperature of the target heat source of the fan is determined according to the temperature-duty ratio relationship between the target heat source and the fan, the rotation speed of the fan at the current temperature of the target heat source can be determined based on the duty ratio and the rotation speed relationship of the fan. For example, based on the temperature-duty ratio relationship between the CPU and the fan, the duty ratio corresponding to the fan when the CPU internal temperature rises to 50 ° is determined to be 60%. And determining that the corresponding duty ratio of the fan is 80% when the ambient temperature of the network card is raised to 40 degrees based on the temperature-duty ratio relation between the network card and the fan. Then, based on the duty ratio-rotation speed relationship of the fan, the rotation speed of the fan when the internal temperature of the CPU is raised to 50 degrees is determined to be 3000 revolutions per minute, and the rotation speed of the fan when the environmental temperature of the network card is raised to 40 degrees is determined to be 4000 revolutions per minute. Obviously, the rotation speed of the fan when the internal temperature of the CPU is raised to 50 ° is different from the rotation speed of the fan when the ambient temperature of the network card is raised to 40 °. And although the internal temperature of the CPU is higher than the ambient temperature of the network card, the calculated rotating speed of the fan corresponding to the current temperature of the network card is higher than the rotating speed of the fan corresponding to the current temperature of the CPU.
In the embodiment of the application, after the duty ratio corresponding to the current temperature of the target heat source of the fan is determined, the rotating speed of the fan at the current temperature of different target heat sources can be determined according to the duty ratio based on the duty ratio-rotating speed relation of the fan. Therefore, by calculating the rotating speed of the fan at the current temperature of different target heat sources, compared with the traditional mode of directly calculating the rotating speed of the fan based on the highest temperature, different target heat sources can be considered. Finally, the rotating speed of the fan can be accurately controlled based on the current temperatures of different target heat sources, and a good heat dissipation effect can be achieved for each target heat source.
In one embodiment, determining the target rotation speed from the rotation speeds of the fans at the current temperature of the target heat source, and adjusting the rotation speed of the fan to the target rotation speed comprises:
obtaining the maximum rotating speed from the rotating speeds of the fans at the current temperature of the target heat source;
and determining the maximum rotating speed as a target rotating speed, and adjusting the rotating speed of the fan to the target rotating speed.
Specifically, the rotating speeds of the fans at the current temperatures of the different target heat sources are calculated through the above calculation. Thus, the maximum rotation speed can be obtained from the rotation speeds of the fans at the current temperature of the target heat source. And determining the maximum rotating speed as a target rotating speed, and adjusting the rotating speed of the fan to the target rotating speed. For example, based on the duty ratio-rotation speed relationship of the fan, the rotation speed of the fan when the internal temperature of the CPU is raised to 50 ° is determined to be 3000 rpm, and the rotation speed of the fan when the ambient temperature of the network card is raised to 40 ° is determined to be 4000 rpm. Then the maximum speed 4000 rpm for this fan is taken as the target speed. The fan can give consideration to the heat dissipation problem of each target heat source at the target rotating speed, and the problem that electronic equipment breaks down due to overhigh temperature of a certain target heat source is avoided.
In the embodiment of the present application, the maximum rotation speed is obtained from the rotation speeds of the fans at the current temperature of the target heat source. And determining the maximum rotating speed as a target rotating speed, and adjusting the rotating speed of the fan to the target rotating speed. Therefore, the fan can take the heat dissipation problem of each target heat source into account at the target rotating speed, and the problem that the temperature of a certain target heat source is too high to cause faults is avoided.
In one embodiment, a method for regulating the speed of a fan is provided, which includes:
and determining a target heat source associated with the fan from the plurality of heat sources according to the position relation of the at least one fan and the plurality of heat sources in the electronic equipment.
Wherein different fans are mainly used for dissipating heat from heat sources located near the fans. Therefore, the target heat source associated with the fan can be determined from the plurality of heat sources according to the position relation of the at least one fan and the plurality of heat sources in the electronic device. Each fan in the electronic device may be individually associated with all heat sources in the electronic device such that each fan is controlled by all heat sources in the electronic device.
Fig. 5 is a schematic diagram illustrating a control logic of the fan speed control method according to an embodiment. As shown in fig. 5, the electronic apparatus includes a heat source 1, a heat source 2, a heat source 3, and a heat source 4, and a fan 1, a fan 2, and a fan 3. The fan 1 is respectively associated with the heat source 1, the heat source 2, the heat source 3 and the heat source 4, that is, the target heat source of the fan 1 includes the heat source 1, the heat source 2, the heat source 3 and the heat source 4, that is, the rotation speed of the fan 1 is controlled by the heat source 1, the heat source 2, the heat source 3 and the heat source 4. The fan 2 is respectively associated with the heat source 1, the heat source 2, the heat source 3 and the heat source 4, and similarly, the rotating speed of the fan 2 is controlled by the heat source 1, the heat source 2, the heat source 3 and the heat source 4. The fan 3 is respectively associated with the heat source 1, the heat source 2, the heat source 3 and the heat source 4, and similarly, the rotating speed of the fan 3 is controlled by the heat source 1, the heat source 2, the heat source 3 and the heat source 4.
For the fan 1, a special register is allocated to the fan 1 on the motherboard of the server, and is used for storing a speed regulation strategy between the fan 1 and the heat source 1, where the speed regulation strategy includes a temperature-duty ratio relation 1 between the heat source 1 and the fan 1. When the electronic device detects the current temperature of the heat source 1 through the temperature sensor, the speed regulation strategy 1 (temperature-duty ratio relation 1) between the heat source 1 and the fan 1 can be read from the special register, and the duty ratio of the fan 1 at the current temperature of the heat source 1 is calculated based on the temperature-duty ratio relation 1. Further, based on the duty ratio-rotation speed relationship 1 of the fan 1, the rotation speed 1 of the fan 1 at the current temperature of the heat source 1 is determined from the calculated duty ratio, and the rotation speed 1 is output.
Similarly, the rotation speed 2 of the fan 1 at the current temperature of the heat source 2 is calculated for the fan 1, and the rotation speed 2 is output. For the fan 1, the rotation speed 3 of the fan 1 at the current temperature of the heat source 3 is calculated, and the rotation speed 3 is output. The rotation speed 4 of the fan 1 at the current temperature of the heat source 4 is calculated for the fan 1, and the rotation speed 4 is output. And finally, the electronic equipment selects the maximum rotating speed from the rotating speed 1, the rotating speed 2, the rotating speed 3 and the rotating speed 4 as a target rotating speed, outputs the target rotating speed to the fan 1, and controls the fan 1 to operate at the target rotating speed.
For the fan 2, a special register is also allocated to the fan 2 on the motherboard of the server, and is used to store a speed regulation strategy between the fan 2 and the heat source 1, where the speed regulation strategy 5 includes a temperature-duty ratio relationship 5 between the heat source 1 and the fan 2. When the electronic device detects the current temperature of the heat source 1 through the temperature sensor, the temperature-duty ratio relationship 5 between the heat source 1 and the fan 2 may be read from the special register, and the duty ratio of the fan 2 at the current temperature of the heat source 1 may be calculated based on the temperature-duty ratio relationship 5. Further, based on the duty ratio-rotation speed relationship of the fan 2, the rotation speed 5 of the fan 2 at the current temperature of the heat source 1 is determined from the calculated duty ratio, and the rotation speed 5 is output.
Similarly, the rotation speed 6 of the fan 2 at the current temperature of the heat source 2 is calculated for the fan 2, and the rotation speed 6 is output. The rotation speed 7 of the fan 2 at the current temperature of the heat source 3 is calculated for the fan 2, and the rotation speed 7 is output. The rotation speed 8 of the fan 2 at the current temperature of the heat source 4 is calculated for the fan 2, and the rotation speed 8 is output. Finally, the electronic device selects the maximum rotation speed from the rotation speeds 5, 6, 7 and 8 as a target rotation speed, outputs the maximum rotation speed to the fan 2, and controls the fan 2 to operate at the target rotation speed.
For the fan 3, a special register is also allocated to the fan 3 on the motherboard of the server, and is used to store a speed regulation strategy between the fan 3 and the heat source 1, where the speed regulation strategy 9 includes a temperature-duty ratio relationship 9 between the heat source 1 and the fan 3. When the electronic device detects the current temperature of the heat source 1 through the temperature sensor, the temperature-duty ratio relationship 9 between the heat source 1 and the fan 3 can be read from the special register, and the duty ratio of the fan 3 at the current temperature of the heat source 1 can be calculated based on the temperature-duty ratio relationship 9. Further, based on the duty ratio-rotation speed relationship of the fan 3, the rotation speed 9 of the fan 3 at the current temperature of the heat source 1 is determined from the calculated duty ratio, and the rotation speed 9 is output.
Similarly, the rotation speed 10 of the fan 3 at the current temperature of the heat source 2 is calculated for the fan 3, and the rotation speed 10 is output. The rotation speed 11 of the fan 3 at the current temperature of the heat source 3 is calculated for the fan 3, and the rotation speed 11 is output. The rotation speed 12 of the fan 3 at the current temperature of the heat source 4 is calculated for the fan 3, and the rotation speed 12 is output. Finally, the electronic device selects the maximum rotation speed from the rotation speeds 9, 10, 11 and 12 as a target rotation speed, outputs the maximum rotation speed to the fan 3, and controls the fan 3 to operate at the target rotation speed.
In the embodiment of the present application, each fan in the electronic device may be respectively associated with all heat sources in the electronic device, so that each fan is controlled by all heat sources in the electronic device. Therefore, the current temperature of the target heat source related to the fan is obtained, and the rotating speed of the fan at the current temperature of the target heat source is determined respectively according to the current temperature of each target heat source. And determining a target rotating speed from the rotating speeds of the fans at the current temperature of the target heat source, and adjusting the rotating speed of the fan to the target rotating speed. The rotation speed of the fan can be accurately controlled based on the current temperature of the target heat source, and a good heat dissipation effect can be achieved for each heat source.
In one embodiment, the at least one fan comprises a CPU fan, a first fan and a second fan, and the plurality of heat sources comprise a CPU, an air inlet, a first type of plug-in card and a second type of plug-in card;
according to the position relation of at least one fan and a plurality of heat sources in the electronic equipment, determining a target heat source associated with the fan, wherein the method comprises the following steps:
determining a target heat source related to the CPU fan as a CPU and an air inlet according to the positions of the CPU fan and the heat sources in the electronic equipment;
determining target heat sources related to the first fan to be a CPU, an air inlet, a first type of plug-in card and a second type of plug-in card according to the positions of the first fan and a plurality of heat sources in the electronic equipment; the first type of plug-in card comprises a display card, and the second type of plug-in card comprises a network card or a memory card;
and determining the target heat source associated with the second fan to be a CPU, a first type of plug-in card and a second type of plug-in card according to the positions of the second fan and the heat sources in the electronic equipment.
Specifically, as shown in fig. 6, it is an internal structure diagram of the electronic device in an embodiment. The electronic equipment comprises a power supply, a mainboard, a hard disk, a fan and a temperature sensor. The mainboard comprises a CPU, a first type of plug-in card and a second type of plug-in card. The fan comprises a CPU fan, a first fan and a second fan. The first fan includes a rear window fan and the second fan includes a front window fan. The first type of card comprises a video card, and the second type of card comprises a network card or a memory card.
And determining the target heat source related to the CPU fan as a CPU and an air Inlet (Inlet) according to the positions of the CPU fan and the heat sources in the electronic equipment. Specifically, the CPU fan is associated with the temperature of the CPU and the temperature of the Inlet, the temperature of the hard disk rises along with the rise of the ambient temperature, meanwhile, the temperature of the Inlet also rises, the CPU fan is called by the temperature of the Inlet to increase the rotating speed, and the heat dissipation capacity of the hard disk is enhanced.
According to the positions of the first fan and the multiple heat sources in the electronic equipment, the target heat source related to the first fan is determined to be a CPU, an air inlet, a first type of plug-in card and a second type of plug-in card. The first fan here may be a rear window fan. Specifically, the rear window fan is respectively associated with the temperature of the CPU, the temperature of the Inlet, the temperature of the first type of plug-in card (PCIE1 temperature) and the temperature of the first type of plug-in card (PCI2 temperature), and when the temperature of the CPU rises, the rear window fan can be adjusted to rise the rotating speed, so that the heat dissipation problem is solved; when the display card or the network card is ballasted, the rear window fan can be adjusted to dissipate heat in time by heating the first type plug-in card and the second type plug-in card; meanwhile, the speed can be regulated by means of the Inlet temperature, and the heat dissipation requirement of the hard disk under the current working condition is met.
And determining the target heat source associated with the second fan to be a CPU, a first type of plug-in card and a second type of plug-in card according to the positions of the second fan and the heat sources in the electronic equipment. The second fan here may be a front window fan. The front window fan is respectively associated with the CPU temperature, the first type of card-inserting temperature and the first type of card-inserting temperature, and when the CPU temperature rises, the front window fan can be adjusted to supplement the air volume, so that the air volume of the CPU fan is ensured; when the display card or the network card is ballasted, the first type of plug-in card and the first type of plug-in card are heated to transfer the front window fan to supplement low-temperature air flow to meet the heat dissipation requirement.
The temperature sensors are arranged on the surfaces of the air inlet, the first type of plug-in card and the second type of plug-in card and are respectively used for detecting the ambient temperature of the air inlet, the first type of plug-in card and the second type of plug-in card. Wherein, the temperature of the CPU can be read through the internal register of the CPU.
Fig. 7 is a schematic diagram of a control logic of a fan speed control method in another embodiment. As shown in fig. 7, for the CPU fan, a dedicated register is allocated to the CPU fan on the motherboard of the server, and is used to store a speed regulation strategy between the CPU fan and the CPU, where the speed regulation strategy includes a temperature-duty ratio relationship a between the CPU and the CPU fan. When the electronic device detects the current temperature of the CPU through the temperature sensor, the temperature-duty ratio relationship a between the CPU and the CPU fan may be read from the special register, and the duty ratio of the CPU fan at the current temperature of the CPU may be calculated based on the temperature-duty ratio relationship a. Further, based on the duty ratio-rotation speed relationship of the CPU fan, the rotation speed A of the CPU fan at the current temperature of the CPU is determined according to the calculated duty ratio, and the rotation speed A is output.
Similarly, for the CPU fan, the rotation speed B of the CPU fan at the current temperature of the air inlet is calculated, and the rotation speed B is output. And finally, the electronic equipment selects the maximum rotating speed from the rotating speeds A and B as a target rotating speed, outputs the maximum rotating speed to the CPU fan, and controls the CPU fan to operate at the target rotating speed.
For the rear window fan, a special register is distributed for the rear window fan on a mainboard of the server and used for storing a speed regulation strategy between the rear window fan and the CPU, wherein the speed regulation strategy comprises a temperature-duty ratio relation C between the CPU and the rear window fan. When the electronic device detects the current temperature of the CPU through the temperature sensor, the temperature-duty ratio relationship C between the CPU and the rear window fan may be read from the special register, and the duty ratio of the rear window fan at the current temperature of the CPU is calculated based on the temperature-duty ratio relationship C. Further, based on the duty ratio-rotation speed relationship of the rear window fan, a rotation speed C of the rear window fan at the current temperature of the CPU is determined from the calculated duty ratio, and the rotation speed C is output.
Similarly, for the rear window fan, the rotating speed D of the rear window fan at the current temperature of the air inlet is calculated, and the rotating speed D is output. And aiming at the rear window fan, calculating the rotating speed E of the rear window fan at the current temperature of the display card, and outputting the rotating speed E. And aiming at the rear window fan, calculating the rotating speed F of the rear window fan at the current temperature of the network card, and outputting the rotating speed F. And finally, the electronic equipment selects the maximum rotating speed from the rotating speed C, the rotating speed D, the rotating speed E and the rotating speed F as a target rotating speed, outputs the target rotating speed to the rear window fan, and controls the rear window fan to operate at the target rotating speed.
Aiming at the front window fan, a special register is distributed for the front window fan on a mainboard of the server and used for storing a speed regulation strategy between the front window fan and the CPU, wherein the speed regulation strategy comprises a temperature-duty ratio relation G between the CPU and the front window fan. When the electronic device detects the current temperature of the CPU through the temperature sensor, the temperature-duty ratio relationship G between the CPU and the front window fan may be read from the special register, and the duty ratio of the front window fan at the current temperature of the CPU may be calculated based on the temperature-duty ratio relationship G. Further, based on the duty ratio-rotation speed relationship of the front window fan, the rotation speed G of the front window fan at the current temperature of the CPU is determined from the calculated duty ratio, and the rotation speed G is output.
Similarly, for the front window fan, the rotating speed H of the front window fan at the current temperature of the display card is calculated, and the rotating speed H is output. And aiming at the front window fan, calculating the rotating speed I of the front window fan at the current temperature of the network card, and outputting the rotating speed I. And finally, the electronic equipment selects the maximum rotating speed from the rotating speed G, the rotating speed H and the rotating speed I as a target rotating speed, outputs the target rotating speed to the front window fan, and controls the front window fan to operate at the target rotating speed.
In the embodiment of the application, each fan in the electronic device may be respectively associated with a part of heat sources in the electronic device, so that each fan is controlled by the part of heat sources in the electronic device. Therefore, the current temperature of the target heat source related to the fan is obtained, and the rotating speed of the fan at the current temperature of the target heat source is determined respectively according to the current temperature of each target heat source. And determining a target rotating speed from the rotating speeds of the fans at the current temperature of the target heat source, and adjusting the rotating speed of the fan to the target rotating speed. The rotation speed of the fan can be accurately controlled based on the current temperature of the target heat source, and a good heat dissipation effect can be achieved for each heat source.
In one embodiment, as shown in fig. 8, there is provided a fan speed control apparatus 800 for an electronic device, the electronic device including at least one fan and a plurality of heat sources, the apparatus comprising:
a current temperature obtaining module 820 for obtaining a current temperature collected by a target heat source associated with the fan; the number of target heat sources is at least two;
a rotation speed respectively determining module 840, configured to determine, for each target heat source, a rotation speed of the fan at a current temperature of the target heat source;
and the rotating speed adjusting module 860 is used for determining a target rotating speed from the rotating speeds of the fans at the current temperature of the target heat source and adjusting the rotating speed of the fan to the target rotating speed.
In one embodiment, as shown in FIG. 9, the rotational speed determination module 840 includes:
a duty ratio determining unit 842, configured to determine, for each target heat source, a duty ratio corresponding to the current temperature of the target heat source for the fan respectively;
a rotation speed determining unit 844 configured to determine a rotation speed of the fan at the current temperature of the target heat source according to the duty ratio.
In an embodiment, the occupancy ratio determination unit 842 is further configured to, for each target heat source, obtain a temperature-duty ratio relationship between the target heat source and the fan; and determining the duty ratio corresponding to the current temperature of the target heat source of the fan according to the temperature-duty ratio relation between the target heat source and the fan.
In one embodiment, the rotation speed determining unit 844 is further configured to determine the rotation speed of the fan at the current temperature of the target heat source according to the duty ratio based on the duty ratio-rotation speed relationship of the fan.
In one embodiment, the rotation speed adjusting module 860 is further configured to obtain a maximum rotation speed from the rotation speeds of the fans at the current temperature of the target heat source; and determining the maximum rotating speed as a target rotating speed, and adjusting the rotating speed of the fan to the target rotating speed.
In one embodiment, a fan governor device 800 is provided, further comprising:
a target heat source determining module 880, configured to determine a target heat source associated with the fan from the multiple heat sources according to a positional relationship between the at least one fan and the multiple heat sources in the electronic device.
In one embodiment, the at least one fan includes a CPU fan, a first fan, and a second fan, and the plurality of heat sources includes a CPU, an air inlet, a first type of card, and a second type of card; the target heat source determining module 880 is further configured to determine, according to the positions of the CPU fan and the multiple heat sources in the electronic device, that the target heat source associated with the CPU fan is a CPU and an air inlet from the multiple heat sources; determining a target heat source related to a first fan from a plurality of heat sources as a CPU, an air inlet, a first type of plug-in card and a second type of plug-in card according to the positions of the first fan and the heat sources in the electronic equipment; the first type of plug-in card comprises a display card, and the second type of plug-in card comprises a network card or a memory card; and determining the target heat source associated with the second fan to be the CPU, the first type of plug-in card and the second type of plug-in card from the plurality of heat sources according to the positions of the second fan and the plurality of heat sources in the electronic equipment.
It should be understood that, although the steps in the flowcharts in the above-described figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in the above figures may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages of other steps.
The division of each module in the fan speed adjusting device is only used for illustration, and in other embodiments, the fan speed adjusting device may be divided into different modules as needed to complete all or part of the functions of the fan speed adjusting device.
For the specific definition of the fan speed regulating device, reference may be made to the definition of the fan speed regulating method above, and details are not described here. The various modules in the fan governor device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In an embodiment, an electronic device is further provided, which includes a memory and a processor, where the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to perform the steps of the fan speed regulation method provided in the foregoing embodiments.
Fig. 10 is a schematic diagram of an internal structure of an electronic device in one embodiment. As shown in fig. 10, the electronic device includes a processor and a memory connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole electronic equipment. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor to implement a fan speed regulation method provided by the above embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a Point of Sales (POS), a vehicle-mounted computer, and a wearable device.
The implementation of each module in the fan speed adjusting device provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on an electronic device or an electronic device. The program modules constituting the computer program may be stored on the electronic device or a memory of the electronic device. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the fan throttling method.
A computer program product containing instructions which, when run on a computer, cause the computer to perform a fan speed regulation method.
Any reference to memory, storage, database, or other medium used by embodiments of the present application may include non-volatile and/or volatile memory. Suitable non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above fan speed regulation embodiments only express a few embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A fan speed regulation method is applied to electronic equipment, wherein the electronic equipment comprises at least one fan and a plurality of heat sources, and the method comprises the following steps:
obtaining a current temperature of a target heat source associated with the fan; the number of the target heat sources is at least two;
respectively determining the rotating speed of the fan at the current temperature of the target heat source aiming at each target heat source;
and determining a target rotating speed from the rotating speeds of the fan at the current temperature of the target heat source, and adjusting the rotating speed of the fan to the target rotating speed.
2. The method of fan speed regulation according to claim 1, wherein the separately determining, for each of the target heat sources, a rotational speed of the fan at a current temperature of the target heat source comprises:
respectively determining the duty ratio of the fan corresponding to the current temperature of the target heat source aiming at each target heat source;
and determining the rotating speed of the fan at the current temperature of the target heat source according to the duty ratio.
3. The method for regulating fan speed according to claim 2, wherein the determining, for each target heat source, the duty ratio of the fan corresponding to the current temperature of the target heat source comprises:
for each target heat source, acquiring a temperature-duty ratio relation between the target heat source and the fan;
and determining the duty ratio of the fan corresponding to the current temperature of the target heat source according to the temperature-duty ratio relation between the target heat source and the fan.
4. A method of regulating fan speed according to claim 2 or 3, wherein said determining a rotational speed of the fan at a current temperature of the target heat source according to the duty cycle comprises:
and determining the rotating speed of the fan at the current temperature of the target heat source according to the duty ratio based on the duty ratio-rotating speed relation of the fan.
5. The fan speed control method according to claim 1, wherein the determining a target rotation speed from the rotation speeds of the fans at the current temperature of the target heat source, the adjusting the rotation speed of the fan to the target rotation speed, comprises:
obtaining a maximum rotating speed from rotating speeds of the fan at the current temperature of the target heat source;
and determining the maximum rotating speed as the target rotating speed, and adjusting the rotating speed of the fan to the target rotating speed.
6. A method of regulating fan speed as recited in claim 1, further comprising:
according to the position relation of the at least one fan and the plurality of heat sources in the electronic equipment, a target heat source related to the fan is determined from the plurality of heat sources.
7. The method of claim 6, wherein the at least one fan comprises a CPU fan, a first fan, and a second fan, and the plurality of heat sources comprises a CPU, an air inlet, a first type of paddle card, and a second type of paddle card;
the determining, according to a positional relationship between the at least one fan and the plurality of heat sources in the electronic device, a target heat source associated with the fan from the plurality of heat sources includes:
determining a target heat source related to the CPU fan from the plurality of heat sources as a CPU and an air inlet according to the positions of the CPU fan and the plurality of heat sources in the electronic equipment;
determining a target heat source associated with the first fan from the plurality of heat sources as a CPU, an air inlet, a first type of plug-in card and a second type of plug-in card according to the positions of the first fan and the plurality of heat sources in the electronic equipment; the first type of plug-in card comprises a display card, and the second type of plug-in card comprises a network card or a memory card;
determining, from the plurality of heat sources, a target heat source associated with the second fan to be a CPU, a first class of add-in cards, and a second class of add-in cards according to the positions of the second fan and the plurality of heat sources in the electronic device.
8. A fan speed regulating device is characterized by being applied to electronic equipment and applied to the electronic equipment, wherein the electronic equipment comprises at least one fan and a plurality of heat sources, and the device comprises:
the current temperature acquisition module is used for acquiring the current temperature acquired by a target heat source associated with the fan; the number of the target heat sources is at least two;
the rotating speed respectively determining module is used for respectively determining the rotating speed of the fan at the current temperature of the target heat source according to the current temperature of each target heat source;
and the rotating speed adjusting module is used for determining a target rotating speed from the rotating speeds of the fan at the current temperature of the target heat source and adjusting the rotating speed of the fan to the target rotating speed.
9. An electronic device comprising a memory and a processor, the memory having a computer program stored thereon, wherein the computer program, when executed by the processor, causes the processor to perform the steps of the fan speed control method according to any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method for regulating fan speed according to any one of claims 1 to 7.
CN202110516972.6A 2021-05-12 2021-05-12 Fan speed regulation method and device, electronic equipment and computer readable storage medium Pending CN113311926A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110516972.6A CN113311926A (en) 2021-05-12 2021-05-12 Fan speed regulation method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110516972.6A CN113311926A (en) 2021-05-12 2021-05-12 Fan speed regulation method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113311926A true CN113311926A (en) 2021-08-27

Family

ID=77373102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110516972.6A Pending CN113311926A (en) 2021-05-12 2021-05-12 Fan speed regulation method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113311926A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114135513A (en) * 2021-12-10 2022-03-04 锐捷网络股份有限公司 Fan control method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110799757A (en) * 2018-11-30 2020-02-14 深圳市大疆创新科技有限公司 Fan control method, fan control device and electronic equipment
CN111414057A (en) * 2020-03-12 2020-07-14 苏州浪潮智能科技有限公司 Fan rotating speed control method and system, electronic equipment and storage medium
CN111506174A (en) * 2020-04-17 2020-08-07 苏州浪潮智能科技有限公司 Fan control method and device, electronic equipment and readable storage medium
WO2020177138A1 (en) * 2019-03-06 2020-09-10 郑州云海信息技术有限公司 Fan speed regulation method and apparatus, and electronic device
CN111918518A (en) * 2019-05-07 2020-11-10 杭州海康威视数字技术股份有限公司 Temperature control method and device and machine frame type equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110799757A (en) * 2018-11-30 2020-02-14 深圳市大疆创新科技有限公司 Fan control method, fan control device and electronic equipment
WO2020177138A1 (en) * 2019-03-06 2020-09-10 郑州云海信息技术有限公司 Fan speed regulation method and apparatus, and electronic device
CN111918518A (en) * 2019-05-07 2020-11-10 杭州海康威视数字技术股份有限公司 Temperature control method and device and machine frame type equipment
CN111414057A (en) * 2020-03-12 2020-07-14 苏州浪潮智能科技有限公司 Fan rotating speed control method and system, electronic equipment and storage medium
CN111506174A (en) * 2020-04-17 2020-08-07 苏州浪潮智能科技有限公司 Fan control method and device, electronic equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114135513A (en) * 2021-12-10 2022-03-04 锐捷网络股份有限公司 Fan control method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105393187B (en) Hot configuration file based on the temperature information for calculating device location
US8397090B2 (en) Operating integrated circuit logic blocks at independent voltages with single voltage supply
US9632520B2 (en) Method for controlling voltage based on temperature and terminal supporting the same
US20100228403A1 (en) Circuit for controlling dynamic rotation speed of fan, method of controlling dynamic rotation speed of fan, and program for controlling dynamic rotation speed of fan
US10571979B2 (en) Cooling fan speed control profile
US20150002999A1 (en) Electronic device and method for adjusting fan of electronic device
US20200217544A1 (en) Electronic device and control method thereof
CN110427083A (en) A kind of control method, device and storage medium
US9823636B2 (en) Systems and methods for parallel feedback temperature control
CN113311926A (en) Fan speed regulation method and device, electronic equipment and computer readable storage medium
JP2017537307A (en) Thermal circuit simulation using convolution and iteration methods
US9854716B2 (en) System and method of controlling an air mover
CN103019341A (en) Fan speed control method
US20210068302A1 (en) Predictive fan control using workload profiles
US8237387B2 (en) System and method for controlling duty cycle of CPU fan
TW201239203A (en) System and method for controlling fans
US20180336398A1 (en) Ambient temperature reporting through infrared facial recognition
CN110873069A (en) Method and device for controlling fan parameters
US9936614B2 (en) System and method for automated open loop fan control
CN115051002A (en) Heat dissipation control method and device, computer equipment and storage medium
CN114635868A (en) Method and device for controlling rotating speed of cooling fan, computer equipment and storage medium
CN115492674A (en) Control method and device for electric water pump and cooling fan
CN112253516B (en) Speed regulation method and device
CN115469728A (en) Server heat dissipation system and method, electronic equipment and storage medium
CN114135513A (en) Fan control method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination