Temperature control method, system and device, electronic equipment, storage medium and product

By using programmable logic devices and fuzzy control logic in the server, the membership degree of the fuzzy set of temperature and temperature change rate is calculated to control the speed of the cooling fan, which solves the temperature control problems caused by inflexible heat dissipation control and BMC abnormality in the existing technology. Efficient and accurate temperature management is achieved.

CN118567414AInactive Publication Date: 2024-08-30SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411026229.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-08-30
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The heat dissipation control method of existing servers is limited to fixed temperature thresholds and cooling fan gears, which cannot achieve flexible and accurate temperature control. Moreover, it cannot effectively dissipate heat when the BMC is abnormal, affecting the long-term safe and stable operation of the server.

Method used

A programmable logic device is used to connect the temperature sensor and the cooling fan, and the current temperature value and temperature change rate are collected through fuzzy control logic, the membership degree of the temperature and temperature change rate fuzzy set is calculated, the speed fuzzy set is determined and defuzzified to obtain the actual speed value. Achieve precise control of cooling fans and avoid dependence on BMC.

Benefits of technology

It achieves accurate calculation and flexible control of the cooling fan speed, adapts to different working environments and cooling needs, improves the accuracy and flexibility of temperature control, reduces energy consumption and noise, and avoids the loss of temperature control caused by BMC abnormalities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567414A
    Figure CN118567414A
Patent Text Reader

Abstract

The invention discloses a temperature control method, system and device, electronic equipment, a storage medium and a product, which are applied to the technical field of intelligent control and are used for solving the problem that heat dissipation control is inflexible and inaccurate when the gears of a heat dissipation fan are controlled through a BMC (Baseboard Management Controller) in the prior art. Comprising the steps of collecting a current temperature value, and calculating a current temperature change rate by combining a previous temperature value; determining a temperature fuzzy set corresponding to the current temperature value and a temperature membership degree of the current temperature value to the temperature fuzzy set according to the current temperature value and the temperature discourse domain range; determining a temperature change rate fuzzy set corresponding to the current temperature change rate and a temperature change rate membership degree of the current temperature change rate to the temperature change rate fuzzy set according to the current temperature change rate and the temperature change rate discourse domain range; determining a rotating speed fuzzy set according to the temperature fuzzy set and the temperature change rate fuzzy set, and calculating a rotating speed membership degree according to the temperature membership degree and the temperature change rate membership degree; and determining an actual rotating speed value according to the rotating speed membership degree so as to control the cooling fan.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent control technology, and in particular to a temperature control method, and also to a temperature control system, device, electronic equipment, computer-readable storage medium and computer program product. Background Art

[0002] With the emergence and rapid development of artificial intelligence technology, the requirements for computing power are getting higher and higher. As the carrier of large-scale cloud storage and cloud computing, servers are the key equipment to provide computing power in the era of artificial intelligence. With the increase of server computing power, high-precision electronic devices such as computing chips and storage chips will generate a lot of heat energy. How to carry out efficient heat dissipation control is the key factor to ensure the stable operation of the server and improve the performance and service life of electronic equipment.

[0003] At present, the heat dissipation control of servers commonly used in the market is the traditional cooling fan control method, which is based on a fixed temperature threshold and cooling fan gear. By monitoring temperature changes, the sampled temperature is sent to the BMC (Baseboard Management Controller), and the cooling fan gear is controlled by the BMC to achieve heat dissipation control. However, this method is limited by the gear limit of the cooling fan, and cannot perform flexible and accurate temperature control, which easily causes energy waste or insufficient heat dissipation; on the other hand, it is also limited by the BMC device. When waiting for the BMC to start or when the BMC fails, effective heat dissipation control cannot be performed, which is not conducive to the long-term safe and stable operation of server equipment.

[0004] Therefore, how to achieve accurate and flexible temperature control is an urgent problem to be solved by those skilled in the art. Summary of the invention

[0005] An object of the present invention is to provide a temperature control method, which can achieve accurate and flexible temperature control; another object of the present invention is to provide a temperature control system, device, electronic device, computer-readable storage medium and computer program product, all of which have the above-mentioned beneficial effects.

[0006] In a first aspect, the present invention provides a temperature control method, which is applied to a programmable logic device, wherein the programmable logic device is connected to a temperature sensor and a cooling fan, and the method comprises:

[0007] Using the temperature sensor to collect temperature and obtain the current temperature value;

[0008] Calculating a current temperature change rate according to the current temperature value and the previous temperature value;

[0009] Determine, according to the current temperature value and the temperature domain range, a temperature fuzzy set corresponding to the current temperature value and a temperature membership degree of the current temperature value to the temperature fuzzy set;

[0010] Determining a temperature change rate fuzzy set corresponding to the current temperature change rate and a temperature change rate domain range according to the current temperature change rate and the temperature change rate fuzzy set, and a temperature change rate membership degree of the current temperature change rate to the temperature change rate fuzzy set;

[0011] Determine a corresponding rotational speed fuzzy set according to the temperature fuzzy set and the temperature change rate fuzzy set, and calculate a corresponding rotational speed membership according to the temperature membership and the temperature change rate membership;

[0012] An actual speed value is determined according to the speed membership, and the temperature of the cooling fan is controlled according to the actual speed value.

[0013] Wherein, determining the temperature fuzzy set corresponding to the current temperature value and the temperature membership of the current temperature value to the temperature fuzzy set according to the current temperature value and the temperature domain range includes:

[0014] Calculate and obtain the current temperature domain value according to the current temperature value and the temperature domain range;

[0015] Determine the temperature fuzzy set corresponding to the current temperature value according to the current temperature domain value;

[0016] The membership degree of the current temperature value to the temperature fuzzy set is calculated according to the current temperature domain value.

[0017] The current temperature domain value is obtained by calculation according to the current temperature value and the temperature domain range, including:

[0018] The current temperature value and the temperature domain range are calculated using a temperature domain calculation formula to obtain the current temperature domain value; wherein the temperature domain calculation formula is:

[0019] ;

[0020] in, represents the current temperature domain value, represents the current temperature value, represents the boundary value of the temperature domain range, Indicates the temperature variation range.

[0021] Wherein, determining the temperature fuzzy set corresponding to the current temperature value according to the current temperature domain value includes:

[0022] Determine the temperature fuzzy set hit by the current temperature domain value according to the temperature domain-temperature fuzzy set correspondence relationship;

[0023] Accordingly, the membership of the current temperature value to the temperature fuzzy set is calculated according to the current temperature domain value, including:

[0024] The current temperature domain value is calculated according to a function formula corresponding to the temperature domain-temperature fuzzy set correspondence relationship to obtain the membership degree of the current temperature value to the temperature fuzzy set.

[0025] Wherein, determining the temperature change rate fuzzy set corresponding to the current temperature change rate and the temperature change rate domain range according to the current temperature change rate and the temperature change rate membership of the current temperature change rate to the temperature change rate fuzzy set includes:

[0026] Calculate the current temperature change rate domain value according to the current temperature change rate and the temperature change rate domain range;

[0027] Determine the temperature change rate fuzzy set corresponding to the current temperature change rate according to the current temperature change rate domain value;

[0028] The membership degree of the current temperature change rate to the temperature change rate fuzzy set is calculated according to the current temperature change rate domain value.

[0029] The current temperature change rate domain value is calculated according to the current temperature change rate and the temperature change rate domain range, including:

[0030] The current temperature change rate and the temperature change rate domain range are calculated using the temperature change rate domain calculation formula to obtain the current temperature change rate domain value; wherein the temperature change rate domain calculation formula is:

[0031] ;

[0032] in, represents the current temperature change rate domain value, represents the current temperature change rate, represents the boundary value of the temperature change rate domain range, Indicates the range of temperature change rate.

[0033] Wherein, determining the temperature change rate fuzzy set corresponding to the current temperature change rate according to the current temperature change rate domain value includes:

[0034] Determine the temperature change rate fuzzy set hit by the current temperature change rate domain value according to the temperature change rate domain-temperature change rate fuzzy set correspondence relationship;

[0035] Accordingly, the membership degree of the current temperature change rate to the temperature change rate fuzzy set is calculated according to the current temperature change rate domain value, including:

[0036] The current temperature change rate domain value is calculated according to the function formula corresponding to the temperature change rate domain-temperature change rate fuzzy set correspondence relationship to obtain the membership degree of the current temperature change rate to the temperature change rate fuzzy set.

[0037] Wherein, determining the corresponding speed fuzzy set according to the temperature fuzzy set and the temperature change rate fuzzy set includes:

[0038] Determine the rotation speed fuzzy set corresponding to the temperature fuzzy set and the temperature change rate fuzzy set according to a preset fuzzy rule;

[0039] The preset fuzzy rules are mapping relationships among temperature fuzzy sets, temperature change rate fuzzy sets, and rotation speed fuzzy sets.

[0040] The corresponding rotation speed membership is calculated according to the temperature membership and the temperature change rate membership, including:

[0041] According to the temperature fuzzy set and the temperature change rate fuzzy set, each temperature-temperature change rate fuzzy set combination is listed;

[0042] For each rotation speed fuzzy set corresponding to a temperature-temperature change rate fuzzy set combination, determining the rotation speed membership corresponding to the rotation speed fuzzy set according to the temperature membership and the temperature change rate membership corresponding to the temperature-temperature change rate fuzzy set combination;

[0043] When the number of speed memberships corresponding to the same speed fuzzy set is not unique, the maximum speed membership is used as the speed membership corresponding to the speed fuzzy set;

[0044] When the number of speed memberships corresponding to the same speed fuzzy set is unique, the unique speed membership is used as the speed membership corresponding to the speed fuzzy set.

[0045] Wherein, for each speed fuzzy set corresponding to a temperature-temperature change rate fuzzy set combination, determining the speed membership corresponding to the speed fuzzy set according to the temperature membership and the temperature change rate membership corresponding to the temperature-temperature change rate fuzzy set combination includes:

[0046] When the temperature membership is greater than the temperature change rate membership, the value of the temperature change rate membership is used as the speed membership;

[0047] When the temperature membership is not greater than the temperature change rate membership, the value of the temperature membership is used as the speed membership.

[0048] Wherein, determining the actual speed value according to the speed membership includes:

[0049] The speed membership is calculated according to the speed calculation formula to obtain the actual speed value; wherein the speed calculation formula is:

[0050] ;

[0051] in, represents the actual speed value, represents the number of the speed fuzzy sets, Indicates The maximum speed value corresponding to the speed fuzzy set is: Indicates The speed membership degree corresponding to the speed fuzzy set.

[0052] In a second aspect, the present invention further discloses a temperature control system, comprising a programmable logic device, a temperature sensor, and a cooling fan, wherein the programmable logic device is connected to the temperature sensor and the cooling fan;

[0053] The temperature sensor is used to collect temperature and obtain the current temperature value;

[0054] The programmable logic device is used to calculate the current temperature change rate according to the current temperature value and the previous temperature value; determine the temperature fuzzy set corresponding to the current temperature value according to the current temperature value and the temperature domain range, and the temperature membership of the current temperature value to the temperature fuzzy set; determine the temperature change rate fuzzy set corresponding to the current temperature change rate according to the current temperature change rate and the temperature change rate domain range, and the temperature change rate membership of the current temperature change rate to the temperature change rate fuzzy set; determine the corresponding speed fuzzy set according to the temperature fuzzy set and the temperature change rate fuzzy set, and calculate the corresponding speed membership according to the temperature membership and the temperature change rate membership; determine the actual speed value according to the speed membership;

[0055] The cooling fan is used to achieve temperature control according to the actual rotation speed value.

[0056] In a third aspect, the present invention further discloses a temperature control device, which is applied to a programmable logic device, wherein the programmable logic device is connected to a temperature sensor and a cooling fan, and the device comprises:

[0057] A temperature acquisition module is used to acquire temperature using the temperature sensor to obtain the current temperature value;

[0058] A first calculation module, used for calculating the current temperature change rate according to the current temperature value and the previous temperature value;

[0059] A first determination module, configured to determine a temperature fuzzy set corresponding to the current temperature value and a temperature membership of the current temperature value to the temperature fuzzy set according to the current temperature value and a temperature domain range;

[0060] A second determination module is used to determine the temperature change rate fuzzy set corresponding to the current temperature change rate and the temperature change rate fuzzy set according to the current temperature change rate and the temperature change rate domain range, and the temperature change rate membership of the current temperature change rate to the temperature change rate fuzzy set;

[0061] a second calculation module, configured to determine a corresponding rotational speed fuzzy set according to the temperature fuzzy set and the temperature change rate fuzzy set, and calculate a corresponding rotational speed membership according to the temperature membership and the temperature change rate membership;

[0062] The temperature control module is used to determine an actual speed value according to the speed membership, and to control the temperature of the cooling fan according to the actual speed value.

[0063] In a fourth aspect, the present invention further discloses an electronic device, comprising:

[0064] Memory for storing computer programs;

[0065] A processor is used to implement the steps of any one of the temperature control methods described above when executing the computer program.

[0066] In a fifth aspect, the present invention further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the temperature control methods described above are implemented.

[0067] In a sixth aspect, the present invention further discloses a computer program product, comprising a computer program / instruction, which implements the steps of any one of the temperature control methods described above when executed by a processor.

[0068] The present invention provides a temperature control method, which is applied to a programmable logic device, wherein the programmable logic device is connected to a temperature sensor and a cooling fan, and the method comprises: using the temperature sensor to collect temperature and obtain a current temperature value; calculating a current temperature change rate according to the current temperature value and a previous temperature value; determining a temperature fuzzy set corresponding to the current temperature value and a temperature domain range, as well as a temperature membership of the current temperature value to the temperature fuzzy set; determining a temperature change rate fuzzy set corresponding to the current temperature change rate and a temperature change rate domain range, as well as a temperature change rate membership of the current temperature change rate to the temperature change rate fuzzy set; determining a corresponding speed fuzzy set according to the temperature fuzzy set and the temperature change rate fuzzy set, and calculating a corresponding speed membership according to the temperature membership and the temperature change rate membership; determining an actual speed value according to the speed membership, and performing temperature control on the cooling fan according to the actual speed value.

[0069] By applying the technical solution provided by the present invention, programmable logic devices are used to implement temperature control, which is no longer dependent on BMC devices, and the problem of loss of temperature control function due to BMC abnormalities is effectively avoided; on this basis, in the process of temperature control based on programmable logic devices, fuzzy control logic is introduced, the collected current temperature value is fuzzified, and corresponding fuzzy calculations are performed to obtain a fuzzy value about the cooling fan speed, and finally it is defuzzified to obtain an accurate cooling fan speed value, so that the cooling fan can be controlled using the cooling fan speed value to achieve temperature control. It can be seen that the technical solution realizes accurate calculation of the cooling fan speed value through fuzzy control logic, no longer relies on inaccurate cooling fan gear control, can adapt to different working environments and cooling requirements, has higher accuracy and flexibility, and can achieve energy saving and noise reduction effects to a large extent.

[0070] The temperature control system, device, electronic device, computer-readable storage medium and computer program product provided by the present invention also have the above-mentioned technical effects, and the present invention will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] In order to more clearly illustrate the technical solutions in the prior art and the embodiments of the present invention, the drawings required for describing the prior art and the embodiments of the present invention are briefly introduced below. Of course, the drawings related to the embodiments of the present invention below only describe some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without creative work, and the obtained other drawings also belong to the protection scope of the present invention.

[0072] Figure 1A schematic diagram of the structure of a temperature control system provided by an embodiment of the present invention;

[0073] Figure 2 A schematic flow chart of a temperature control method provided by an embodiment of the present invention;

[0074] Figure 3 A schematic diagram of a temperature domain-temperature fuzzy set correspondence relationship provided by an embodiment of the present invention;

[0075] Figure 4 A schematic diagram of a temperature change rate domain-temperature change rate fuzzy set correspondence relationship provided by an embodiment of the present invention;

[0076] Figure 5 A schematic diagram of a corresponding relationship between a rotation speed domain and a rotation speed fuzzy set provided by an embodiment of the present invention;

[0077] Figure 6 A schematic flow chart of another temperature control method provided by an embodiment of the present invention;

[0078] Figure 7 A schematic diagram of the structure of a temperature control device provided by an embodiment of the present invention;

[0079] Figure 8 The present invention is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0080] The core of the present invention is to provide a temperature control method, which can achieve accurate and flexible temperature control; another core of the present invention is to provide a temperature control system, device, electronic device, computer-readable storage medium and computer program product, all of which have the above-mentioned beneficial effects.

[0081] In order to describe the technical solutions in the embodiments of the present invention more clearly and completely, the technical solutions in the embodiments of the present invention will be introduced below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0082] An embodiment of the present invention provides a temperature control method.

[0083] First, please refer to Figure 1 , Figure 1A schematic diagram of the structure of a temperature control system provided in an embodiment of the present invention, the temperature control system includes a programmable logic device, a temperature sensor, and a cooling fan, wherein the programmable logic device is connected to the temperature sensor and the cooling fan, wherein the temperature sensor is used to realize temperature data acquisition, and the programmable logic device is used to control the speed of the cooling fan according to the temperature data collected by the temperature sensor, thereby realizing temperature control. It can be understood that the specific type of the programmable logic device does not affect the implementation of the present technical solution, for example, it can be an FPGA (Field-Programmable Gate Array), a CPLD (Complex Programmable Logic Device), etc., and the present invention does not limit this.

[0084] For further information, please refer to Figure 2 , Figure 3 A flow chart of a temperature control method provided by an embodiment of the present invention, wherein the temperature control method is applied to Figure 1 The programmable logic device shown may include the following S101 to S106.

[0085] S101: Use a temperature sensor to collect temperature and obtain a current temperature value.

[0086] This step aims to realize the collection of the current temperature value, which can be realized based on the temperature sensor. The temperature collection operation can respond to the temperature control instruction, that is, according to the temperature control instruction, one or some temperature sensors in the current device (such as a server) are controlled to collect temperature and obtain the corresponding current temperature values.

[0087] S102: Calculate the current temperature change rate according to the current temperature value and the previous temperature value.

[0088] This step is intended to calculate the current temperature change rate, that is, the current temperature change rate. Obviously, the difference between the current temperature value and the previous temperature value is the current temperature change rate. Among them, the previous temperature value is the temperature value collected during the previous temperature control process (such as the previous temperature control cycle). Furthermore, after completing this temperature control, the current temperature value can be saved to the historical temperature record file for easy application in the next temperature control process, and the previous temperature value can be deleted from the temperature record file; or, in the temperature record file, the current temperature value can be directly used to replace the previous temperature value.

[0089] S103: Determine the temperature fuzzy set corresponding to the current temperature value and the temperature membership of the current temperature value to the temperature fuzzy set according to the current temperature value and the temperature domain range.

[0090] This step aims to realize the calculation of temperature fuzzy sets and temperature membership, which can be obtained by calculating the current temperature value and the temperature domain range. Among them, the temperature fuzzy set corresponds to the current temperature value, and the temperature values ​​in different value intervals correspond to different temperature fuzzy sets. For example, the temperature variation range in the current device is [0°, 90°], which can be divided into five temperature fuzzy sets of {very low, low, normal, high, very high}. The temperature membership is the membership of the temperature value relative to the temperature fuzzy set. Different temperature memberships can be calculated for different temperature fuzzy sets. In addition, the temperature domain range is a pre-set domain range for temperature, and its value can be set according to actual experience, which is not limited by the present invention.

[0091] In one embodiment of the present invention, determining the temperature fuzzy set corresponding to the current temperature value and the temperature membership of the current temperature value to the temperature fuzzy set according to the current temperature value and the temperature domain range may include:

[0092] The current temperature domain value is obtained by calculation according to the current temperature value and the temperature domain range;

[0093] Determine the temperature fuzzy set corresponding to the current temperature value according to the current temperature domain value;

[0094] The membership degree of the current temperature value to the temperature fuzzy set is calculated based on the current temperature domain value.

[0095] This embodiment provides a method for determining the current temperature fuzzy set and the current temperature membership according to the current temperature value and the temperature domain range. First, the current temperature domain value can be calculated according to the current temperature value and the temperature domain range. The temperature domain values ​​of different value intervals correspond to different temperature fuzzy sets, so the temperature fuzzy set corresponding to the current temperature domain value can be determined, that is, the above-mentioned current temperature fuzzy set, and further combined with the corresponding relationship between the temperature domain value and the temperature fuzzy set to calculate the membership of the current temperature value to the current temperature fuzzy set, that is, the above-mentioned current temperature membership.

[0096] In one embodiment of the present invention, calculating and obtaining the current temperature domain value according to the current temperature value and the temperature domain range may include:

[0097] The temperature domain calculation formula is used to calculate the current temperature value and the temperature domain range to obtain the current temperature domain value; wherein, the temperature domain calculation formula is:

[0098] ;

[0099] in, Indicates the current temperature domain value, Indicates the current temperature value. Represents the boundary value of the temperature domain range, Indicates the temperature variation range.

[0100] This embodiment provides a method for calculating the current temperature value and the temperature domain range based on the temperature domain calculation formula to obtain the current temperature domain value. For example, assuming that the current temperature value collected by the temperature sensor is is 20, and the temperature domain range is pre-set to [-5,5]. The value is 5, the temperature range = [0°, 90°], substitute it into the above calculation formula to get the current temperature domain value It is -2.8.

[0101] In one embodiment of the present invention, determining the temperature fuzzy set corresponding to the current temperature value according to the current temperature domain value may include: determining the temperature fuzzy set hit by the current temperature domain value according to the temperature domain-temperature fuzzy set correspondence relationship;

[0102] Accordingly, calculating the membership of the current temperature value to the temperature fuzzy set according to the current temperature domain value may include: calculating the current temperature domain value according to a function formula corresponding to the temperature domain-temperature fuzzy set correspondence relationship to obtain the membership of the current temperature value to the temperature fuzzy set.

[0103] Specifically, a correspondence between the temperature domain and the temperature fuzzy set can be created in advance. By matching the correspondence, the temperature fuzzy set hit by the previous temperature domain value can be determined, and the current temperature membership corresponding to the current temperature domain value can be calculated based on the function formula of the correspondence, that is, the membership of the current temperature value to the current temperature fuzzy set.

[0104] For example, see Figure 3 , Figure 3 A schematic diagram of the temperature domain-temperature fuzzy set correspondence provided by an embodiment of the present invention, the horizontal axis is the temperature domain value, the value range is [-5,5], the vertical axis is the temperature membership, the value is [0,1], VL corresponds to the temperature fuzzy set "very low", L corresponds to the temperature fuzzy set "low", M corresponds to the temperature fuzzy set "normal", H corresponds to the temperature fuzzy set "high", VH corresponds to the temperature fuzzy set "very high", thus, the current temperature fuzzy set corresponding to the current temperature value and the membership of the current temperature value to the current temperature fuzzy set can be determined according to the mapping relationship and its functional relationship. It can be understood that there are generally two temperature fuzzy sets corresponding to a temperature domain value, such as Figure 3 As shown, when the current temperature domain value is 3.9, the hit temperature fuzzy sets are H and VH. Correspondingly, the membership of the current temperature value to the current temperature fuzzy set includes the membership of the current temperature value to the temperature fuzzy set H and the membership of the current temperature value to the temperature fuzzy set VH.

[0105] S104: Determine the temperature change rate fuzzy set corresponding to the current temperature change rate and the temperature change rate domain range according to the current temperature change rate and the temperature change rate membership of the current temperature change rate to the temperature change rate fuzzy set.

[0106] This step aims to realize the calculation of temperature change rate fuzzy set and temperature change rate membership, which can be obtained by calculating the current temperature change rate and the temperature change rate domain range. Among them, the temperature change rate fuzzy set corresponds to the current temperature change rate, and the temperature change rate in different value intervals corresponds to different temperature change rate fuzzy sets. For example, the temperature change rate in the current device has a range of [-4°, 4°], which can be divided into five temperature change rate fuzzy sets of {rapid decline, decline, unchanged, rise, rapid rise}. The temperature change rate membership is the membership of the temperature change rate value relative to the temperature change rate fuzzy set. Different temperature change rate memberships can be calculated for different temperature change rate fuzzy sets. In addition, the temperature change rate domain range is a pre-set domain range for the temperature change rate, and its value can be set according to actual experience, which is not limited by the present invention.

[0107] In one embodiment of the present invention, determining the temperature change rate fuzzy set corresponding to the current temperature change rate and the temperature change rate domain range according to the current temperature change rate and the temperature change rate membership of the current temperature change rate to the temperature change rate fuzzy set may include:

[0108] The current temperature change rate domain value is obtained by calculation according to the current temperature change rate and the temperature change rate domain range;

[0109] Determine the temperature change rate fuzzy set corresponding to the current temperature change rate according to the current temperature change rate domain value;

[0110] The membership degree of the current temperature change rate to the temperature change rate fuzzy set is calculated according to the current temperature change rate domain value.

[0111] This embodiment provides a method for determining the current temperature change rate fuzzy set and the current temperature change rate membership according to the current temperature change rate and the temperature change rate domain range. First, the current temperature change rate domain value can be calculated according to the current temperature change rate and the temperature change rate domain range. The temperature change rate domain values ​​in different value intervals correspond to different temperature change rate fuzzy sets. Therefore, the temperature change rate fuzzy set corresponding to the current temperature change rate domain value can be determined, that is, the current temperature change rate fuzzy set mentioned above. The membership of the current temperature change rate to the current temperature change rate fuzzy set is further calculated in combination with the corresponding relationship between the temperature change rate domain value and the temperature change rate fuzzy set, that is, the current temperature change rate membership mentioned above.

[0112] In one embodiment of the present invention, the current temperature change rate domain value can be calculated according to the current temperature change rate and the temperature change rate domain range, including:

[0113] The temperature change rate domain calculation formula is used to calculate the current temperature change rate and the temperature change rate domain range to obtain the current temperature change rate domain value; the temperature change rate domain calculation formula is:

[0114] ;

[0115] in, represents the current temperature change rate domain value, represents the current temperature change rate, represents the boundary value of the temperature change rate domain, Indicates the range of temperature change rate.

[0116] This embodiment provides a method for calculating the current temperature change rate and the temperature change rate domain range based on the temperature change rate domain calculation formula to obtain the current temperature change rate domain value, which is basically consistent with the implementation method of the above-mentioned temperature domain calculation formula and will not be repeated here.

[0117] In one embodiment of the present invention, determining the temperature change rate fuzzy set corresponding to the current temperature change rate according to the current temperature change rate domain value may include: determining the temperature change rate fuzzy set hit by the current temperature change rate domain value according to the temperature change rate domain-temperature change rate fuzzy set correspondence relationship;

[0118] Correspondingly, calculating the membership of the current temperature change rate to the temperature change rate fuzzy set according to the current temperature change rate domain value may include: calculating the current temperature change rate domain value according to the function formula corresponding to the temperature change rate domain-temperature change rate fuzzy set correspondence relationship to obtain the membership of the current temperature change rate to the temperature change rate fuzzy set.

[0119] Specifically, a correspondence between the temperature change rate domain and the temperature change rate fuzzy set can be created in advance. By matching the correspondence, the temperature change rate fuzzy set hit by the previous temperature change rate domain value can be determined, and the current temperature change rate membership corresponding to the current temperature change rate domain value can be calculated based on the function formula of the correspondence, that is, the membership of the current temperature change rate to the current temperature change rate fuzzy set.

[0120] For example, see Figure 4 , Figure 4A schematic diagram of the correspondence between a temperature change rate domain and a temperature change rate fuzzy set provided in an embodiment of the present invention, wherein the horizontal axis is the temperature change rate domain value, and the value range is [-4, 4]; the vertical axis is the temperature membership, and the value range is [0, 1]. VD corresponds to the temperature change rate fuzzy set "rapid decline", D corresponds to the temperature change rate fuzzy set "decline", N corresponds to the temperature change rate fuzzy set "unchanged", U corresponds to the temperature change rate fuzzy set "increase", and VU corresponds to the temperature change rate fuzzy set "rapid increase". Thus, the current temperature change rate fuzzy set corresponding to the current temperature change rate and the membership of the current temperature change rate to the current temperature change rate fuzzy set can be determined according to the mapping relationship and its functional relationship. It can be understood that there are generally two temperature change rate fuzzy sets corresponding to a temperature change rate domain value, such as Figure 4 As shown, when the current temperature change rate domain value is 2.5, the hit temperature change rate fuzzy sets are U and VU. Correspondingly, the membership of the current temperature change rate to the current temperature change rate fuzzy set includes the membership of the current temperature change rate to the temperature change rate fuzzy set U and the membership of the current temperature change rate to the temperature change rate fuzzy set VU.

[0121] S105: Determine the corresponding rotational speed fuzzy set according to the temperature fuzzy set and the temperature change rate fuzzy set, and calculate the corresponding rotational speed membership according to the temperature membership and the temperature change rate membership.

[0122] This step aims to realize the fuzzy value calculation of the current cooling fan speed based on the current temperature fuzzy set and temperature change rate fuzzy, that is, to combine the two to calculate the current cooling fan speed fuzzy set and its corresponding current input membership.

[0123] In one embodiment of the present invention, determining the corresponding speed fuzzy set according to the temperature fuzzy set and the temperature change rate fuzzy set may include: determining the speed fuzzy set corresponding to the temperature fuzzy set and the temperature change rate fuzzy set according to preset fuzzy rules; wherein the preset fuzzy rules are the mapping relationship between the temperature fuzzy set, the temperature change rate fuzzy set, and the speed fuzzy set.

[0124] For example, please refer to Table 1, which is a preset fuzzy rule table provided in an embodiment of the present invention:

[0125] Table 1 A preset fuzzy rule table

[0126]

[0127] Among them, the first column Te represents each temperature change rate fuzzy set, the first row Tr represents each temperature fuzzy set, and the rest are the speed fuzzy sets corresponding to different temperature fuzzy sets and different temperature change rate fuzzy sets. For example: if Tr is "H" and Te is "U", then Rc is "F"; if Tr is "M" and Te is "N", then Rc is "M"; if Tr is "L" and Te is "D", then Rc is "S".

[0128] It should be noted that, in this embodiment, assuming that the range of the cooling fan speed is [0r, 8000r], it can be divided into five speed fuzzy sets {very slow, slow, medium, fast, very fast}, then: VS corresponds to the speed fuzzy set "very slow", S corresponds to the speed fuzzy set "slow", M corresponds to the speed fuzzy set "medium", F corresponds to the speed fuzzy set "fast", VF corresponds to the speed fuzzy set "very fast". On this basis, combined with Figure 3 and Figure 4 , please refer to Figure 5 , Figure 5 A schematic diagram of the corresponding relationship between the speed domain and the speed fuzzy set provided in an embodiment of the present invention, wherein the horizontal axis is the speed domain value, and the value range is [-6, 6], and the vertical axis is the speed membership, and the value range is [0, 1].

[0129] In one embodiment of the present invention, calculating the corresponding rotational speed membership according to the temperature membership and the temperature change rate membership may include:

[0130] According to the temperature fuzzy set and the temperature change rate fuzzy set, list all the temperature-temperature change rate fuzzy set combinations;

[0131] For the speed fuzzy set corresponding to each temperature-temperature change rate fuzzy set combination, the speed membership corresponding to the speed fuzzy set is determined according to the temperature membership and temperature change rate membership corresponding to the temperature-temperature change rate fuzzy set combination;

[0132] When the number of speed memberships corresponding to the same speed fuzzy set is not unique, the maximum speed membership is taken as the speed membership corresponding to the speed fuzzy set;

[0133] When the number of speed memberships corresponding to the same speed fuzzy set is unique, the unique speed membership is taken as the speed membership corresponding to the speed fuzzy set.

[0134] Among them, for the speed fuzzy set corresponding to each temperature-temperature change rate fuzzy set combination, the speed membership corresponding to the speed fuzzy set is determined according to the temperature membership and temperature change rate membership corresponding to the temperature-temperature change rate fuzzy set combination, which may include: when the temperature membership is greater than the temperature change rate membership, taking the value of the temperature change rate membership as the speed membership; when the temperature membership is not greater than the temperature change rate membership, taking the value of the temperature membership as the speed membership.

[0135] The above embodiment provides an implementation method for calculating the rotational speed membership according to the temperature membership and the temperature change rate membership. The specific implementation process is introduced below by taking examples.

[0136] Assume that the current sampled temperature value Tr is 80, and the corresponding temperature domain value is 3.9. By calculating the formula, the membership of this temperature value to the temperature fuzzy set "H" is 0.44, and the membership to the temperature fuzzy set "VH" is 0.56; Assume that the current temperature change rate Te is 2.5, and the corresponding temperature change rate domain value is 2.5. By calculating the formula, the membership of this temperature change rate to the temperature change rate fuzzy set "U" is 0.75, and the membership to the temperature change rate fuzzy set "VU" is 0.25. Then, according to the preset fuzzy rule table, the following rules can be triggered:

[0137] Rule 1: If Tr is "H" and Te is "U", then Rc is "F";

[0138] Rule 2: If Tr is "H" and Te is "VU", then Rc is "VF";

[0139] Rule 3: If Tr is "VH" and Te is "U", then Rc is "VF";

[0140] Rule 4: If Tr is "VH" and Te is "VU", then Rc is "VF".

[0141] At this point, the Rc membership corresponding to each rule can be obtained by taking the minimum value:

[0142] Rule 1: ;

[0143] Rule 2: ;

[0144] Rule 3: ;

[0145] Rule 4: .

[0146] Among them, when multiple rules output "VF", the Rc membership corresponding to VF can be obtained by taking the maximum value, that is: .

[0147] S106: Determine an actual speed value according to the speed membership, and control the temperature of the cooling fan according to the actual speed value.

[0148] This step aims to achieve defuzzification of the speed fuzzy set, that is, to calculate the actual speed value according to the current speed membership, so as to control the speed of the cooling fan according to the actual temperature value to achieve temperature control.

[0149] In one embodiment of the present invention, determining the actual speed value according to the speed membership may include:

[0150] The speed membership is calculated according to the speed calculation formula to obtain the actual speed value; wherein the speed calculation formula is:

[0151] ;

[0152] in, Indicates the actual speed value. represents the number of speed fuzzy sets, Indicates The maximum speed value corresponding to the speed fuzzy set is: Indicates The speed membership degree corresponding to the speed fuzzy set.

[0153] The embodiment of the present application provides a method for calculating the speed membership based on the speed calculation formula to obtain the actual speed value. , On the basis of, assuming that the maximum speed value corresponding to the speed fuzzy set F is 6000r, and the maximum speed value corresponding to the speed fuzzy set VF is 8000r, then:

[0154] ;

[0155] That is, the actual speed value is 7120r, thus, the cooling fan can be controlled to run at a speed of 7120r.

[0156] In one embodiment of the present invention, the programmable logic device is connected to the cooling fan through the motor, and accordingly, the temperature of the cooling fan is controlled according to the actual speed value, which may include:

[0157] Determine the actual pulse signal corresponding to the actual speed value according to the speed-pulse width mapping relationship;

[0158] Send an actual pulse signal to the motor so that the motor runs according to the actual pulse signal, thereby driving the cooling fan to run according to the actual speed value.

[0159] This embodiment provides a method for implementing cooling fan control based on actual speed value, that is, motor control based on pulse signal. Among them, the speed-pulse width mapping relationship is created in advance based on actual experience, and can be directly called when used. The actual pulse signal corresponding to the actual speed value can be determined by data query, so as to realize motor control to drive cooling fan control. Therefore, accurate temperature control is achieved through PWM technology (Pulse Width Modulation, pulse width modulation technology).

[0160] Finally, please refer to Figure 6 , Figure 6The following is a flow chart of another temperature control method provided by an embodiment of the present invention. Combined with the above description, it can be determined that the implementation process includes the following steps:

[0161] (1) Define fuzzy sets: temperature fuzzy set, temperature change rate fuzzy set, speed fuzzy set;

[0162] (2) Establish a membership function, such as Figure 3 , Figure 4 , Figure 5 As shown;

[0163] (3) Perform fuzzy reasoning according to the preset fuzzy rule table: as shown in Table 1;

[0164] (4) Defuzzification: as the above speed calculation formula.

[0165] It can be seen that the temperature control method provided in the embodiment of the present invention uses a programmable logic device to implement temperature control, and no longer relies on a BMC device, thereby effectively avoiding the problem of loss of temperature control function due to BMC abnormality; on this basis, in the process of temperature control based on a programmable logic device, a fuzzy control logic is introduced, the collected current temperature value is fuzzified, and corresponding fuzzy calculations are performed to obtain a fuzzy value about the speed of the cooling fan, and finally the fuzzy value is defuzzified to obtain an accurate speed value of the cooling fan, so that the cooling fan can be controlled by using the speed value of the cooling fan to achieve temperature control. It can be seen that the technical solution realizes accurate calculation of the speed value of the cooling fan through the fuzzy control logic, no longer relies on inaccurate cooling fan gear control, can adapt to different working environments and cooling requirements, has higher accuracy and flexibility, and can achieve energy saving and noise reduction effects to a large extent.

[0166] Based on the above embodiments:

[0167] In one embodiment of the present invention, the temperature control method may further include: updating the preset fuzzy rules according to the actual rotation speed value and the current temperature value within a preset time period.

[0168] Specifically, in actual application scenarios, in order to ensure the accuracy of temperature control, the preset fuzzy rules can be optimized at regular time intervals using the actual speed value and current temperature value within the time period (for example, 10 temperature control cycles). Specifically, the mapping relationship between the temperature fuzzy set, the temperature change rate fuzzy set, and the speed fuzzy set is adjusted so that the preset fuzzy rules can adapt to the current temperature control scenario in real time, further ensuring the accuracy of temperature control.

[0169] An embodiment of the present invention provides a temperature control system.

[0170] like Figure 1 As shown, Figure 1 This is a structural schematic diagram of a temperature control system provided by the present invention, the temperature control system comprises: a programmable logic device, a temperature sensor, and a cooling fan, wherein the programmable logic device is connected to the temperature sensor and the cooling fan;

[0171] Temperature sensor, used to collect temperature and obtain the current temperature value;

[0172] A programmable logic device is used to calculate the current temperature change rate according to the current temperature value and the previous temperature value; determine the temperature fuzzy set corresponding to the current temperature value according to the current temperature value and the temperature domain range, and the temperature membership of the current temperature value to the temperature fuzzy set; determine the temperature change rate fuzzy set corresponding to the current temperature change rate according to the current temperature change rate and the temperature change rate domain range, and the temperature change rate membership of the current temperature change rate to the temperature change rate fuzzy set; determine the corresponding speed fuzzy set according to the temperature fuzzy set and the temperature change rate fuzzy set, and calculate the corresponding speed membership according to the temperature membership and the temperature change rate membership; determine the actual speed value according to the speed membership;

[0173] The cooling fan is used to achieve temperature control according to the actual speed value.

[0174] It can be seen that the temperature control system provided in the embodiment of the present invention uses programmable logic devices to achieve temperature control and is no longer dependent on BMC devices, effectively avoiding the problem of loss of temperature control function due to BMC abnormalities; on this basis, in the process of temperature control based on programmable logic devices, fuzzy control logic is introduced, the collected current temperature value is fuzzified, and corresponding fuzzy calculations are performed to obtain a fuzzy value about the speed of the cooling fan, and finally it is defuzzified to obtain an accurate speed value of the cooling fan, so that the cooling fan can be controlled by using the speed value of the cooling fan to achieve temperature control. It can be seen that the technical solution realizes accurate calculation of the speed value of the cooling fan through fuzzy control logic, no longer relies on inaccurate cooling fan gear control, can adapt to different working environments and heat dissipation requirements, has higher accuracy and flexibility, and can achieve energy saving and noise reduction effects to a large extent.

[0175] For an introduction to the system provided by the embodiment of the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0176] An embodiment of the present invention provides a temperature control device.

[0177] Please refer to Figure 7 , Figure 7 This is a schematic diagram of the structure of a temperature control device provided by the present invention, which is applied to Figure 1 The programmable logic device shown may include:

[0178] The temperature acquisition module 1 is used to acquire the temperature using the temperature sensor to obtain the current temperature value;

[0179] A first calculation module 2, used for calculating the current temperature change rate according to the current temperature value and the previous temperature value;

[0180] A first determination module 3 is used to determine the temperature fuzzy set corresponding to the current temperature value and the temperature membership of the current temperature value to the temperature fuzzy set according to the current temperature value and the temperature domain range;

[0181] The second determination module 4 is used to determine the temperature change rate fuzzy set corresponding to the current temperature change rate and the temperature change rate domain range, and the temperature change rate membership of the current temperature change rate to the temperature change rate fuzzy set;

[0182] The second calculation module 5 is used to determine the corresponding rotational speed fuzzy set according to the temperature fuzzy set and the temperature change rate fuzzy set, and calculate the corresponding rotational speed membership according to the temperature membership and the temperature change rate membership;

[0183] The temperature control module 6 is used to determine the actual speed value according to the speed membership, and to control the temperature of the cooling fan according to the actual speed value.

[0184] It can be seen that the temperature control device provided in the embodiment of the present invention uses a programmable logic device to achieve temperature control and is no longer dependent on a BMC device, thereby effectively avoiding the problem of loss of temperature control function due to BMC abnormality; on this basis, in the process of temperature control based on a programmable logic device, a fuzzy control logic is introduced, the collected current temperature value is fuzzified, and corresponding fuzzy calculations are performed to obtain a fuzzy value about the speed of the cooling fan, and finally the fuzzy value is defuzzified to obtain an accurate speed value of the cooling fan, so that the cooling fan can be controlled using the speed value of the cooling fan to achieve temperature control. It can be seen that the technical solution realizes accurate calculation of the speed value of the cooling fan through the fuzzy control logic, no longer relies on inaccurate cooling fan gear control, can adapt to different working environments and cooling requirements, has higher accuracy and flexibility, and can achieve energy saving and noise reduction effects to a large extent.

[0185] In one embodiment of the present invention, the first determining module 3 may include:

[0186] A first calculation unit, used for calculating and obtaining a current temperature domain value according to a current temperature value and a temperature domain range;

[0187] A first determining unit, used to determine a temperature fuzzy set corresponding to a current temperature value according to a current temperature domain value;

[0188] The second calculation unit is used to calculate the membership degree of the current temperature value to the temperature fuzzy set according to the current temperature domain value.

[0189] In one embodiment of the present invention, the first calculation unit may be specifically used to calculate the current temperature value and the temperature domain range using a temperature domain calculation formula to obtain the current temperature domain value; wherein the temperature domain calculation formula is:

[0190] ;

[0191] in, Indicates the current temperature domain value, Indicates the current temperature value. Represents the boundary value of the temperature domain range, Indicates the temperature variation range.

[0192] In one embodiment of the present invention, the first determining unit may be specifically configured to determine the temperature fuzzy set hit by the current temperature domain value according to the temperature domain-temperature fuzzy set correspondence relationship;

[0193] Accordingly, the second calculation unit may be specifically configured to calculate the current temperature domain value according to a function formula corresponding to the temperature domain-temperature fuzzy set correspondence relationship to obtain the membership degree of the current temperature value to the temperature fuzzy set.

[0194] In one embodiment of the present invention, the second determining module 4 may include:

[0195] A third calculation unit is used to calculate and obtain a current temperature change rate domain value according to the current temperature change rate and the temperature change rate domain range;

[0196] A second determining unit is used to determine a temperature change rate fuzzy set corresponding to the current temperature change rate according to the current temperature change rate domain value;

[0197] The fourth calculation unit is used to calculate the membership degree of the current temperature change rate to the temperature change rate fuzzy set according to the current temperature change rate domain value.

[0198] In one embodiment of the present invention, the third calculation unit may be specifically used to calculate the current temperature change rate and the temperature change rate domain range using the temperature change rate domain calculation formula to obtain the current temperature change rate domain value; wherein the temperature change rate domain calculation formula is:

[0199] ;

[0200] in, represents the current temperature change rate domain value, represents the current temperature change rate, represents the boundary value of the temperature change rate domain, Indicates the range of temperature change rate.

[0201] In one embodiment of the present invention, the second determining unit may be specifically configured to determine the temperature change rate fuzzy set hit by the current temperature change rate domain value according to the temperature change rate domain-temperature change rate fuzzy set correspondence relationship;

[0202] Accordingly, the fourth calculation unit can be specifically used to calculate the current temperature change rate domain value according to the function formula corresponding to the temperature change rate domain-temperature change rate fuzzy set correspondence relationship to obtain the membership degree of the current temperature change rate to the temperature change rate fuzzy set.

[0203] In one embodiment of the present invention, the above-mentioned second calculation module 5 can be specifically used to determine the speed fuzzy set corresponding to the temperature fuzzy set and the temperature change rate fuzzy set according to the preset fuzzy rules; wherein the preset fuzzy rules are the mapping relationship between the temperature fuzzy set, the temperature change rate fuzzy set, and the speed fuzzy set.

[0204] In one embodiment of the present invention, the second calculation module 5 may include:

[0205] A listing unit, used for listing various temperature-temperature change rate fuzzy set combinations according to the temperature fuzzy set and the temperature change rate fuzzy set;

[0206] A third determining unit is used to determine the speed membership corresponding to the speed fuzzy set according to the temperature membership and the temperature change rate membership corresponding to the temperature-temperature change rate fuzzy set combination, for each speed fuzzy set corresponding to the temperature-temperature change rate fuzzy set combination;

[0207] A first setting unit is used to use the maximum speed membership as the speed membership corresponding to the speed fuzzy set when the number of speed memberships corresponding to the same speed fuzzy set is not unique;

[0208] The second setting unit is used to use the unique speed membership as the speed membership corresponding to the speed fuzzy set when the number of speed memberships corresponding to the same speed fuzzy set is unique.

[0209] In one embodiment of the present invention, the above-mentioned third determination unit can be specifically used to use the value of the temperature change rate membership as the speed membership when the temperature membership is greater than the temperature change rate membership; when the temperature membership is not greater than the temperature change rate membership, use the value of the temperature membership as the speed membership.

[0210] In one embodiment of the present invention, the temperature control module 6 can be specifically used to calculate the speed membership according to the speed calculation formula to obtain the actual speed value; wherein the speed calculation formula is:

[0211] ;

[0212] in, Indicates the actual speed value. represents the number of speed fuzzy sets, Indicates The maximum speed value corresponding to the speed fuzzy set is: Indicates The speed membership degree corresponding to the speed fuzzy set.

[0213] In one embodiment of the present invention,

[0214] For an introduction to the device provided in the embodiment of the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0215] An embodiment of the present invention provides an electronic device.

[0216] Please refer to Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device provided by the present invention, and the electronic device may include:

[0217] A memory 11, used for storing computer programs;

[0218] The processor 10 can implement the steps of any one of the above-mentioned temperature control methods when being used to execute a computer program.

[0219] like Figure 8 , which is a schematic diagram of the composition structure of an electronic device, the electronic device may include: a processor 10, a memory 11, a communication interface 12 and a communication bus 13. The processor 10, the memory 11 and the communication interface 12 all communicate with each other through the communication bus 13.

[0220] In the embodiment of the present invention, the processor 10 may be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic devices.

[0221] The processor 10 may call a program stored in the memory 11 . Specifically, the processor 10 may execute operations in the embodiment of the temperature control method.

[0222] The memory 11 is used to store one or more programs, which may include program codes, and the program codes include computer operation instructions. In the embodiment of the present invention, the memory 11 at least stores programs for implementing the following functions:

[0223] Use the temperature sensor to collect temperature and obtain the current temperature value;

[0224] The current temperature change rate is calculated based on the current temperature value and the previous temperature value;

[0225] Determine the temperature fuzzy set corresponding to the current temperature value and the temperature membership of the current temperature value to the temperature fuzzy set according to the current temperature value and the temperature domain range;

[0226] According to the current temperature change rate and the temperature change rate domain range, the temperature change rate fuzzy set corresponding to the current temperature change rate and the temperature change rate membership of the current temperature change rate to the temperature change rate fuzzy set are determined;

[0227] Determine the corresponding speed fuzzy set according to the temperature fuzzy set and the temperature change rate fuzzy set, and calculate the corresponding speed membership according to the temperature membership and the temperature change rate membership;

[0228] The actual speed value is determined according to the speed membership, and the temperature of the cooling fan is controlled according to the actual speed value.

[0229] In a possible implementation, the memory 11 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function, etc.; the data storage area may store data created during use.

[0230] In addition, the memory 11 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device or other volatile solid-state storage device.

[0231] The communication interface 12 may be an interface of a communication module, and is used to connect to other devices or systems.

[0232] Of course, it should be noted that Figure 8 The structure shown does not constitute a limitation on the electronic device in the embodiment of the present invention. In actual applications, the electronic device may include Figure 8 More or fewer components than shown, or combinations of certain components.

[0233] An embodiment of the present invention provides a computer-readable storage medium.

[0234] The computer-readable storage medium provided in the embodiment of the present invention stores a computer program, and when the computer program is executed by a processor, the steps of any one of the above-mentioned temperature control methods can be implemented.

[0235] Among them, the computer-readable storage medium can be any available medium that can be stored in a computer or a data storage device such as a server or data center that includes one or more available media integrated. For example, it can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape, etc.), an optical medium (such as a DVD) or a semiconductor medium (such as a solid-state hard disk) and other media that can store computer program codes.

[0236] For an introduction to the computer-readable storage medium provided in an embodiment of the present invention, please refer to the above method embodiment, and the present invention will not elaborate on it here.

[0237] An embodiment of the present invention provides a computer program product.

[0238] The computer program product provided in the embodiment of the present invention includes a computer program / instruction. When the computer program / instruction is executed by a processor, the steps of any one of the above-mentioned temperature control methods can be implemented.

[0239] Specifically, in the above embodiments, all or part of them can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of them can be implemented in the form of a computer program product.

[0240] Among them, the computer program product may include one or more computer programs / instructions, and when the computer program / instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention may be generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. Computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line, etc.) or wireless (e.g., infrared, wireless, microwave, etc.) means.

[0241] For an introduction to the computer program product provided by the embodiment of the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0242] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0243] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0244] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0245] The technical solution provided by the present invention is described in detail above. Specific examples are used herein to illustrate the principle and implementation of the present invention, and the description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. A temperature control method, It is characterized in that Applied to a programmable logic device, the programmable logic device is connected to a temperature sensor and a cooling fan, and the method comprises: Using the temperature sensor to collect temperature and obtain the current temperature value; Calculating a current temperature change rate according to the current temperature value and the previous temperature value; Determine, according to the current temperature value and the temperature domain range, a temperature fuzzy set corresponding to the current temperature value and a temperature membership degree of the current temperature value to the temperature fuzzy set; Determining a temperature change rate fuzzy set corresponding to the current temperature change rate and a temperature change rate domain range according to the current temperature change rate and the temperature change rate fuzzy set, and a temperature change rate membership degree of the current temperature change rate to the temperature change rate fuzzy set; Determine a corresponding rotational speed fuzzy set according to the temperature fuzzy set and the temperature change rate fuzzy set, and calculate a corresponding rotational speed membership according to the temperature membership and the temperature change rate membership; An actual speed value is determined according to the speed membership, and the temperature of the cooling fan is controlled according to the actual speed value.

2. The temperature control method according to claim 1, It is characterized in that Determining a temperature fuzzy set corresponding to the current temperature value and a temperature membership of the current temperature value to the temperature fuzzy set according to the current temperature value and the temperature domain range, including: Calculate and obtain the current temperature domain value according to the current temperature value and the temperature domain range; Determine the temperature fuzzy set corresponding to the current temperature value according to the current temperature domain value; The membership degree of the current temperature value to the temperature fuzzy set is calculated according to the current temperature domain value.

3. The temperature control method according to claim 2, It is characterized in that The current temperature domain value is obtained by calculation according to the current temperature value and the temperature domain range, including: The current temperature value and the temperature domain range are calculated using a temperature domain calculation formula to obtain the current temperature domain value; wherein the temperature domain calculation formula is: ; in, represents the current temperature domain value, represents the current temperature value, represents the boundary value of the temperature domain range, Indicates the temperature variation range.

4. The temperature control method according to claim 2, It is characterized in that Determining a temperature fuzzy set corresponding to the current temperature value according to the current temperature domain value includes: Determine the temperature fuzzy set hit by the current temperature domain value according to the temperature domain-temperature fuzzy set correspondence relationship; Accordingly, the membership of the current temperature value to the temperature fuzzy set is calculated according to the current temperature domain value, including: The current temperature domain value is calculated according to a function formula corresponding to the temperature domain-temperature fuzzy set correspondence relationship to obtain the membership degree of the current temperature value to the temperature fuzzy set.

5. The temperature control method according to claim 1, It is characterized in that Determining a temperature change rate fuzzy set corresponding to the current temperature change rate and a temperature change rate domain range according to the current temperature change rate, and a temperature change rate membership of the current temperature change rate to the temperature change rate fuzzy set, including: Calculate the current temperature change rate domain value according to the current temperature change rate and the temperature change rate domain range; Determine the temperature change rate fuzzy set corresponding to the current temperature change rate according to the current temperature change rate domain value; The membership degree of the current temperature change rate to the temperature change rate fuzzy set is calculated according to the current temperature change rate domain value.

6. The temperature control method according to claim 5, It is characterized in that The current temperature change rate domain value is calculated according to the current temperature change rate and the temperature change rate domain range, including: The current temperature change rate and the temperature change rate domain range are calculated using the temperature change rate domain calculation formula to obtain the current temperature change rate domain value; wherein the temperature change rate domain calculation formula is: ; in, represents the current temperature change rate domain value, represents the current temperature change rate, represents the boundary value of the temperature change rate domain range, Indicates the range of temperature change rate.

7. The temperature control method according to claim 5, It is characterized in that Determining a temperature change rate fuzzy set corresponding to the current temperature change rate according to the current temperature change rate domain value includes: Determine the temperature change rate fuzzy set hit by the current temperature change rate domain value according to the temperature change rate domain-temperature change rate fuzzy set correspondence relationship; Accordingly, the membership degree of the current temperature change rate to the temperature change rate fuzzy set is calculated according to the current temperature change rate domain value, including: The current temperature change rate domain value is calculated according to the function formula corresponding to the temperature change rate domain-temperature change rate fuzzy set correspondence relationship to obtain the membership degree of the current temperature change rate to the temperature change rate fuzzy set.

8. The temperature control method according to claim 1, It is characterized in that Determining a corresponding rotation speed fuzzy set according to the temperature fuzzy set and the temperature change rate fuzzy set includes: Determine the rotation speed fuzzy set corresponding to the temperature fuzzy set and the temperature change rate fuzzy set according to a preset fuzzy rule; The preset fuzzy rules are mapping relationships among temperature fuzzy sets, temperature change rate fuzzy sets, and rotation speed fuzzy sets.

9. The temperature control method according to claim 8, It is characterized in that The corresponding rotation speed membership is calculated according to the temperature membership and the temperature change rate membership, including: According to the temperature fuzzy set and the temperature change rate fuzzy set, each temperature-temperature change rate fuzzy set combination is listed; For each rotation speed fuzzy set corresponding to a temperature-temperature change rate fuzzy set combination, determining the rotation speed membership corresponding to the rotation speed fuzzy set according to the temperature membership and the temperature change rate membership corresponding to the temperature-temperature change rate fuzzy set combination; When the number of speed memberships corresponding to the same speed fuzzy set is not unique, the maximum speed membership is used as the speed membership corresponding to the speed fuzzy set; When the number of speed memberships corresponding to the same speed fuzzy set is unique, the unique speed membership is used as the speed membership corresponding to the speed fuzzy set.

10. The temperature control method according to claim 9, It is characterized in that For each speed fuzzy set corresponding to a temperature-temperature change rate fuzzy set combination, determining the speed membership corresponding to the speed fuzzy set according to the temperature membership and the temperature change rate membership corresponding to the temperature-temperature change rate fuzzy set combination, including: When the temperature membership is greater than the temperature change rate membership, the value of the temperature change rate membership is used as the speed membership; When the temperature membership is not greater than the temperature change rate membership, the value of the temperature membership is used as the speed membership.

11. The temperature control method according to any one of claims 1 to 10, It is characterized in that Determining an actual speed value according to the speed membership includes: The speed membership is calculated according to the speed calculation formula to obtain the actual speed value; wherein the speed calculation formula is: ; in, represents the actual speed value, represents the number of the speed fuzzy sets, Indicates The maximum speed value corresponding to the speed fuzzy set is: Indicates The speed membership degree corresponding to the speed fuzzy set.

12. A temperature control system, It is characterized in that It includes a programmable logic device, a temperature sensor, and a cooling fan, wherein the programmable logic device is connected to the temperature sensor and the cooling fan; The temperature sensor is used to collect temperature and obtain the current temperature value; The programmable logic device is used to calculate the current temperature change rate according to the current temperature value and the previous temperature value; determine the temperature fuzzy set corresponding to the current temperature value and the temperature membership of the current temperature value to the temperature fuzzy set according to the current temperature value and the temperature domain range; Determine a temperature change rate fuzzy set corresponding to the current temperature change rate and a temperature change rate domain range according to the current temperature change rate and the temperature change rate domain range, and a temperature change rate membership of the current temperature change rate to the temperature change rate fuzzy set; determine a corresponding rotational speed fuzzy set according to the temperature fuzzy set and the temperature change rate fuzzy set, and calculate a corresponding rotational speed membership according to the temperature membership and the temperature change rate membership; Determining an actual speed value according to the speed membership; The cooling fan is used to achieve temperature control according to the actual rotation speed value.

13. A temperature control device, It is characterized in that Applied to a programmable logic device, the programmable logic device is connected to a temperature sensor and a cooling fan, and the device comprises: A temperature acquisition module is used to acquire temperature using the temperature sensor to obtain the current temperature value; A first calculation module, used for calculating the current temperature change rate according to the current temperature value and the previous temperature value; A first determination module, configured to determine a temperature fuzzy set corresponding to the current temperature value and a temperature membership of the current temperature value to the temperature fuzzy set according to the current temperature value and a temperature domain range; A second determination module is used to determine the temperature change rate fuzzy set corresponding to the current temperature change rate and the temperature change rate fuzzy set according to the current temperature change rate and the temperature change rate domain range, and the temperature change rate membership of the current temperature change rate to the temperature change rate fuzzy set; a second calculation module, configured to determine a corresponding rotational speed fuzzy set according to the temperature fuzzy set and the temperature change rate fuzzy set, and calculate a corresponding rotational speed membership according to the temperature membership and the temperature change rate membership; The temperature control module is used to determine an actual speed value according to the speed membership, and to control the temperature of the cooling fan according to the actual speed value.

14. An electronic device, It is characterized in that include: Memory for storing computer programs; A processor, configured to implement the steps of the temperature control method according to any one of claims 1 to 11 when executing the computer program.

15. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the temperature control method according to any one of claims 1 to 11 are implemented.

16. A computer program product comprising a computer program / instructions, It is characterized in that When the computer program / instructions are executed by a processor, the steps of the temperature control method according to any one of claims 1 to 11 are implemented.

Citation Information

Patent Citations

  • Evaluation method for safety status of tire of running automobile

    CN101776527A

  • Fan regulation and control method and device for performing fuzzy control on multiple temperature sensors

    CN114647183A

  • Water cooling system for heat dissipation component of wind generating set and control method and device of water cooling system

    CN115506980A

  • Control method, device and equipment for instantaneous fuel injection rate of engine and storage medium

    CN115853660A

  • Cooling fan air speed control method based on fuzzy control for glass factory

    CN116006492A