Fan control method and device, electronic equipment and storage medium
By collecting the computer's environmental status data, calculating the Euclidean distance and similarity, and dynamically adjusting the working status of the fan, solving the problem that the fan cannot be dynamically adjusted in the existing technology, and achieving efficient heat dissipation and energy utilization of the computer.
Patent Information
- Application Number
- CN202510443515.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-10
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2045-04-10
AI Technical Summary
The prior art cannot dynamically adjust the working status of the fan according to the real-time condition of the computer, resulting in poor heat dissipation of the computer and affecting the running speed.
By collecting the environmental status data set, it is determined whether it is within the preset safe temperature threshold range. If within the range, calculate the Euclidean distance between each historical dataset and the current dataset, obtain the target historical dataset with the highest similarity, and calculate the target control parameters based on its historical control parameters. If the range is out of range, obtain the emergency control parameters and adjust the operating status of the fan.
It realizes accurate dynamic adjustment of the fan working state, adapts to environmental changes, improves energy utilization efficiency, and ensures good heat dissipation.
Smart Images

Figure CN119934066A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fan control, and in particular to a fan control method, device, electronic equipment and storage medium. Background Art
[0002] Since a computer generates a certain amount of heat during operation, if the computer is not cooled in time, the computer fan will be too high, which will affect the computer's operating speed. Current technology cannot dynamically adjust the fan in the computer according to the real-time status of the computer. Summary of the invention
[0003] In order to solve the above technical problems, embodiments of the present invention provide a fan control method, device, electronic device and storage medium.
[0004] In a first aspect, an embodiment of the present invention provides a fan control method, the method comprising: Collecting an environmental status data set, and determining whether the environmental status data set is within a preset safety temperature threshold range; If it is within the preset safety temperature threshold range, respectively obtain the Euclidean distance between each historical data set and the environmental status data set, and obtain the target Euclidean distance less than the preset distance threshold from each Euclidean distance, and determine the historical data set corresponding to each target Euclidean distance as the target historical data set; Respectively obtaining historical control parameters and similarities in the target historical data set, and calculating target control parameters according to the historical control parameters and each of the similarities; If it is outside the preset safety temperature threshold range, obtaining emergency control parameters according to the environmental status data set; The working state of the fan is adjusted according to the target control parameter or the emergency control parameter.
[0005] In one implementation, the Euclidean distance between each of the historical data sets and the environmental status data set is calculated using a distance calculation formula.
[0006] In one embodiment, the similarity between each of the historical data sets and the environmental status data set is obtained according to each of the Euclidean distances; A sum of the Euclidean distance and a preset constant is obtained, and the reciprocal of the sum is determined as the similarity.
[0007] In one embodiment, the historical control parameters include: historical fan speed control parameters and historical start / stop time control parameters; Determine a target fan speed control parameter according to each of the similarities and each of the historical fan speed control parameters; The target start-stop time control parameter is determined according to each of the similarities and each of the historical start-stop time control parameters.
[0008] In one implementation, the product of each of the similarities and each of the historical fan speed control parameters is obtained, and the products are summed to obtain a first sum value; acquiring a second sum value of each of the similarities, and determining a ratio of the first sum value to the second sum value as the target fan speed control parameter; Obtaining the product of each of the similarities and each of the historical start / stop time control parameters, and summing the products to obtain a third sum value; The ratio of the third sum value to the second sum value is determined as the target start-stop time control parameter.
[0009] In one embodiment, the emergency control parameter includes: a first emergency control parameter and a second emergency control parameter; the environmental status data set includes: a machine temperature value; If the machine temperature value is greater than the preset maximum safety temperature value, obtaining the first emergency control parameter according to the machine temperature value; If the machine temperature value is lower than a preset minimum safety temperature value, the second emergency control parameter is obtained according to the machine temperature value.
[0010] In one embodiment, the first emergency control parameter includes: a first emergency fan speed control parameter and a first emergency start / stop time control parameter; The second emergency control parameters include: a second emergency fan speed control parameter and a second emergency start / stop time control parameter; Obtaining a temperature deviation value between the machine temperature value and the preset maximum safety temperature value; Obtaining a first product of the temperature deviation value and a first preset temperature coefficient, and determining a sum of the first product and a preset normal fan speed control parameter as a first emergency fan speed control parameter; Obtaining a second product of the temperature deviation value and a first preset time coefficient, and determining a sum of the second product and a preset conventional start-stop time control parameter as a first emergency start-stop time control parameter; Obtaining a third product of the preset normal fan speed control parameter and the second preset temperature coefficient, and determining the third product as a second emergency fan speed control parameter; A fourth product of the preset normal start-stop time control parameter and the second preset time coefficient is obtained, and the fourth product is determined as a second emergency start-stop time control parameter.
[0011] In a second aspect, an embodiment of the present invention provides a fan control device, the fan control device comprising: A judgment module is used to collect an environmental status data set and judge whether the environmental status data set is within a preset safety temperature threshold range; A first acquisition module is used to respectively acquire the Euclidean distance between each historical data set and the environmental status data set if the temperature is within the preset safety temperature threshold range, and acquire a target Euclidean distance less than the preset distance threshold from each of the Euclidean distances, and determine the historical data set corresponding to each of the target Euclidean distances as the target historical data set; A calculation module, used to respectively obtain the historical control parameters and similarities in the target historical data set, and calculate the target control parameters according to the historical control parameters and each of the similarities; A second acquisition module is used to acquire emergency control parameters according to the environmental status data set if the temperature is outside the preset safety temperature threshold range; The adjustment module is used to adjust the working state of the fan according to the target control parameter or the emergency control parameter.
[0012] In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and when the computer program is run by the processor, the fan control method provided in the first aspect is executed.
[0013] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing a computer program. When the computer program is run on a processor, the fan control method provided in the first aspect is executed.
[0014] The fan control method, device, electronic device and storage medium provided by the present invention include: collecting an environmental state data set, determining whether the environmental state data set is within a preset safety temperature threshold range; if it is within the preset safety temperature threshold range, respectively obtaining the Euclidean distance between each historical data set and the environmental state data set, and obtaining a target Euclidean distance less than the preset distance threshold in each Euclidean distance, and determining the historical data set corresponding to each target Euclidean distance as the target historical data set; respectively obtaining the historical control parameters and similarities in the target historical data set, and calculating the target control parameters according to the historical control parameters and each similarity; if it is outside the preset safety temperature threshold range, obtaining emergency control parameters according to the environmental state data set; adjusting the working state of the fan according to the target control parameters or the emergency control parameters. The present invention collects the current environmental state data set, obtains multiple target historical data sets with the highest similarity to the current environmental state data set in the historical data set, obtains the target control parameters according to the target historical data set and the similarity, and adjusts the working state of the fan according to the target control parameters, so as to accurately adapt to environmental changes, improve the overall energy utilization efficiency, and ensure good heat dissipation. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solution of the present invention, the following will briefly introduce the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope of protection of the present invention. In each of the drawings, similar components are numbered similarly.
[0016] Figure 1 A schematic diagram of a flow chart of a fan control method provided by an embodiment of the present invention is shown; Figure 2 Another schematic diagram of the flow of the fan control method provided by an embodiment of the present invention is shown; Figure 3 A schematic structural diagram of a fan control device provided by an embodiment of the present invention is shown; Figure 4 A schematic structural diagram of an electronic device provided by an embodiment of the present invention is shown.
[0017] Icons: 300 - fan control device, 301 - determination module, 302 - first acquisition module, 303 - calculation module, 304 - second acquisition module, 305 - adjustment module, 400 - electronic device, 401 - transceiver, 402 - processor, 403 - memory. DETAILED DESCRIPTION
[0018] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.
[0019] The components of the embodiments of the present invention generally described and shown in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0020] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present invention belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present invention.
[0021] Example 1 An embodiment of the present invention provides a fan control method.
[0022] See also Figure 1 , fan control methods include: S101, collecting an environmental status data set, and determining whether the environmental status data set is within a preset safety temperature threshold range.
[0023] In this embodiment, the ambient temperature, computer temperature, CPU load, CPU main frequency and power consumption are collected in real time and stored in the current data storage device, and it is determined whether the computer temperature is within the preset safe temperature threshold range and whether the CPU load is within the safe load threshold range.
[0024] By obtaining the judgment results of computer temperature and CPU load, corresponding control instructions are issued to the fan to achieve dynamic adjustment of the control strategy.
[0025] S102: If the temperature is within the preset safety temperature threshold range, the Euclidean distances between each historical data set and the environmental status data set are respectively obtained, and a target Euclidean distance less than the preset distance threshold is obtained from each of the Euclidean distances, and the historical data sets corresponding to each of the target Euclidean distances are determined as the target historical data sets.
[0026] It should be noted that by normalizing the data, we ensure that they are compared at the same scale, and set a reasonable distance threshold based on the distribution of historical data and the sensitivity of the system to different parameters. If the Euclidean distance is less than the distance threshold, the historical record is considered similar to the current record, and the N records with the highest similarity are selected for subsequent processing.
[0027] In this embodiment, the Euclidean distance is used to measure the similarity between the current real-time data and the historical record data, so as to determine which historical records are closest to the current state. The Euclidean distance threshold can be set as a percentage of the maximum distance, such as: Euclidean distance threshold = maximum distance × 0.2, that is, only the historical data with a distance less than 20% of the maximum distance from the current data is considered. In other embodiments, the Euclidean distance threshold can be dynamically adjusted according to the feedback of the system, which is not limited here.
[0028] In one implementation, the Euclidean distance between each of the historical data sets and the environmental status data set is calculated using a distance calculation formula.
[0029] It should be noted that the current data and historical data are substituted into the distance calculation formula to calculate the distance between each historical record and the current data point. The distance calculation formula is: Euclidean distance = For example, the current ambient temperature is 26℃, the machine temperature is 61℃, the CPU load is 43, the CPU main frequency is 2.1GHZ, and the power consumption data is 16W. The historical data obtained includes: the ambient temperature is 25℃, the machine temperature is 60℃, the CPU load is 40, the CPU main frequency is 2.0GHZ, and the power consumption data is 15W. The calculated Euclidean distance = The Euclidean distance value obtained is 3.47. Similarly, the Euclidean distance values of multiple historical data and current data are obtained, and the Euclidean distance values less than the preset distance threshold are retained, as shown in Table 1. Table 1 is an example table of historical environment status data set.
[0030] Table 1. Example table of historical environmental status dataset
[0031] In one embodiment, if Figure 2 As shown, S1031, obtaining the similarity between each of the historical data sets and the environmental status data set according to each of the Euclidean distances; S1032, obtaining the sum of the Euclidean distance and a preset constant, and determining the reciprocal of the sum as the similarity.
[0032] It should be noted that by calculating the similarity of each similar record, the reciprocal of the Euclidean distance is used as the weight. The higher the similarity, the greater the weight. The specific formula is as follows:
[0033] in, is a small constant that prevents the denominator from being zero.
[0034] It is further explained that by calculating the Euclidean distance between the historical data set and the environmental state data set to obtain the similarity, the historical data most similar to the current environmental state can be accurately found. By determining the control parameters of the fan in the historical data, an effective reference basis can be provided for the current fan control, thereby more accurately controlling the operation of the fan.
[0035] S103, respectively obtaining historical control parameters and similarities in the target historical data set, and calculating target control parameters according to the historical control parameters and the similarities.
[0036] In one embodiment, the historical control parameters include: historical fan speed control parameters and historical start and stop time control parameters; determining a target fan speed control parameter based on each of the similarities and each of the historical fan speed control parameters; determining a target start and stop time control parameter based on each of the similarities and each of the historical start and stop time control parameters.
[0037] For example, if the temperature inside the computer is 65°C, the CPU load is 50%, the CPU frequency is 2.0GHz, and the current power consumption is 20W, and these real-time data are stored in the current data storage. By comparing the current data with the historical data, a historical data similar to the current conditions is obtained, including: the ambient temperature is 27°C, the machine temperature is 64°C, the CPU load is 49%, the CPU frequency is 2.1GHz, and the power consumption is 19W.
[0038] Based on the historical records found, the current control strategy is calculated through weighted calculation: adjust the fan's working state to 80% speed and set the start and stop time to 4 minutes. At this time, the fan works at a higher speed to ensure that the temperature of the device is within an acceptable range.
[0039] In one embodiment, the product of each of the similarities and each of the historical fan speed control parameters is obtained, and the products are summed to obtain a first sum value; a second sum value of each of the similarities is obtained, and the ratio of the first sum value to the second sum value is determined as the target fan speed control parameter; the product of each of the similarities and each of the historical start and stop time control parameters is obtained, and the products are summed to obtain a third sum value; the ratio of the third sum value to the second sum value is determined as the target start and stop time control parameter.
[0040] It should be noted that the target fan speed control parameter is calculated by extracting the historical fan speed control parameter and the similarity. The specific formula is as follows:
[0041] The target fan start and stop time control parameters are calculated by extracting the historical fan start and stop time control parameters and similarity. The specific formula is as follows:
[0042] S104: If the temperature is outside the preset safety temperature threshold range, obtaining emergency control parameters according to the environmental status data set.
[0043] It is understandable that when the current ambient temperature or CPU load exceeds the safety threshold, a higher fan speed and longer start and stop time are adopted to ensure the cooling effect of the system. If it is in a low load and low temperature environment, you can choose to reduce the fan speed to reduce power consumption. The fan is dynamically adjusted according to the current state of the fan to achieve precise control of the fan, reduce unnecessary energy loss, and ensure the cooling effect, so that the computer can run in a suitable working environment.
[0044] In one embodiment, the emergency control parameters include: a first emergency control parameter and a second emergency control parameter; the environmental status data set includes: a machine temperature value; if the machine temperature value is greater than a preset maximum safety temperature value, the first emergency control parameter is obtained according to the machine temperature value; if the machine temperature value is less than a preset minimum safety temperature value, the second emergency control parameter is obtained according to the machine temperature value.
[0045] It should be noted that when the system temperature or CPU load exceeds the safety threshold, emergency cooling is required by increasing the fan speed and extending the start and stop time. This process requires precise calculations to ensure that the system temperature returns to normal within a reasonable time.
[0046] When the temperature exceeds the threshold, the fan needs to increase its speed to quickly reduce the temperature. The increase in fan speed can be calculated based on the temperature deviation. The start and stop time needs to be extended to ensure that the fan has enough time to effectively dissipate heat. The increase in start and stop time can also be dynamically adjusted based on the temperature deviation.
[0047] When the ambient temperature drops below the set low temperature threshold, the system can automatically enter low power mode. In this case, the fan does not need to run excessively, so the fan speed and start and stop time will be reduced to reduce system energy consumption.
[0048] In one embodiment, the first emergency control parameter includes: a first emergency fan speed control parameter and a first emergency start and stop time control parameter; the second emergency control parameter includes: a second emergency fan speed control parameter and a second emergency start and stop time control parameter; obtaining a temperature deviation value between the machine temperature value and the preset maximum safety temperature value; obtaining a first product of the temperature deviation value and a first preset temperature coefficient, and determining the sum of the first product and the preset conventional fan speed control parameter as the first emergency fan speed control parameter; obtaining a second product of the temperature deviation value and the first preset time coefficient, and determining the sum of the second product and the preset conventional start and stop time control parameter as the first emergency start and stop time control parameter.
[0049] Obtain a third product of the preset conventional fan speed control parameter and the second preset temperature coefficient, and determine the third product as the second emergency fan speed control parameter; obtain a fourth product of the preset conventional start-stop time control parameter and the second preset time coefficient, and determine the fourth product as the second emergency start-stop time control parameter.
[0050] It should be noted that the increase in fan speed can be calculated based on the temperature deviation between the current temperature and the preset maximum safety temperature. The calculation of the first emergency fan speed control parameter is as follows: Fan_speed = Fan_base_speed + a × (T_current - T_threshold). Among them, T_current is the current machine temperature value, T_threshold is the preset maximum safety temperature value, Fan_speed is the first emergency fan speed control parameter, Fan_base_speed is the preset normal fan speed control parameter, and a is the first preset temperature coefficient.
[0051] Among them, the preset conventional fan speed control parameter can be set according to actual conditions, generally 50%. The first preset temperature coefficient is used to control the impact of temperature deviation on the fan speed. It can be adjusted according to the heat dissipation capacity of the system and is usually set to a constant, such as 10 or 20.
[0052] For example, the preset normal fan speed control parameter is 50%, the preset maximum safety temperature value is 70°C, the machine temperature value is 75°C, and a is 10, then: Fan_speed=50+10x(75-70) =100%. If the calculated first emergency fan speed control parameter is greater than 100%, the first emergency fan speed control parameter is limited to 100%.
[0053] It is further explained that the increase of the start-stop time can also be controlled by the temperature deviation. The calculation method of the first emergency start-stop time control parameter is as follows: On_time=On_base_time+β×(T_current-T_threshold).
[0054] Among them, On_base_time is the preset regular start and stop time control parameter. β is the first preset time coefficient, which is used to control the impact of temperature deviation on the start and stop time. The fan maintains heat dissipation for a longer time by extending the start and stop time.
[0055] It should be understood that the determination is made by judging whether the machine temperature is lower than the preset minimum safe temperature value. If the temperature is lower than the value, the fan is controlled to enter the low power consumption mode. The second preset temperature coefficient and the second preset time coefficient are set to control the start of the fan in the low power consumption mode.
[0056] For example, when the machine temperature is 40°C, the preset minimum safety temperature is 50°C, the preset normal fan speed control parameter is 60%, and the preset normal start and stop time control parameter is 10 minutes, then by setting the second preset temperature coefficient to 0.5 and the second preset time coefficient to 0.2, the second emergency fan speed control parameter obtained is the product of the preset normal fan speed control parameter and the second preset temperature coefficient, that is, 30%, and the second emergency start and stop time control parameter obtained is the product of the preset normal start and stop time control parameter and the second preset time coefficient, that is, 2 minutes, then the fan speed is controlled to be reduced to 30%, and the start and stop time is 2 minutes.
[0057] The present invention reduces power consumption by reducing fan speed and start-stop time, and when the temperature gradually returns to the normal working range, the fan speed and start-stop time are smoothly restored to the normal working state. This control strategy not only ensures energy saving in low temperature environment, but also provides necessary heat dissipation capacity at high temperature, thus enhancing the adaptability of the system.
[0058] S105: Adjust the working state of the fan according to the target control parameter or the emergency control parameter. It should be noted that the fan method provided by the present invention is applied to an embedded control system, wherein the embedded control system includes: a memory, a collector, a processor and a comparator.
[0059] The memory includes: historical data memory and current data memory. The historical data memory is used to store the ambient temperature, machine temperature, CPU load, CPU main frequency, power consumption and corresponding heat dissipation control parameters (such as fan speed, start and stop time, etc.) under different conditions. The current data memory is used to store the current ambient temperature, machine temperature, CPU load, CPU main frequency and power consumption data in real time.
[0060] The collector includes a temperature collector, a CPU load collector, a CPU main frequency collector and a power consumption collector. The temperature collector is used to collect the current ambient temperature and machine temperature. The CPU load collector is used to collect the CPU load in real time. The CPU main frequency collector is used to collect the current CPU main frequency in real time. The power consumption collector is used to collect system power consumption data in real time. The comparator includes: a first comparator and a second comparator. The first comparator is used to compare the current data with the historical data and output the historical record that is most similar to the current data. The second comparator is used to infer the control strategy that should be adopted under the current conditions based on the temperature, power consumption and control parameters in the historical records. The low-power processor is used to adjust the working state of the fan according to the output of the second comparator to ensure system stability and minimize energy consumption.
[0061] It is further explained that over time, the system is able to adapt to environmental changes and changes in machine characteristics. When the cooling capacity of the equipment decreases, the system will automatically adjust the control strategy and increase the fan speed to ensure stability. At the same time, the system can adjust the control strategy based on the feedback results. For example, if the new control strategy causes the temperature to rise under the same environmental conditions, the system will reduce the fan speed to avoid ineffective cooling operations. Through real-time monitoring and self-learning, the system is able to form a closed-loop control system and continuously optimize its control strategy. After each adjustment, the system will record the results and use them as the basis for the next decision, gradually improving its efficiency and reliability to ensure that the system can adapt to new working environments and conditions.
[0062] The fan control method provided in this embodiment collects the current environmental status data set, obtains multiple target historical data sets with the highest similarity to the current environmental status data set in the historical data sets, obtains target control parameters according to the target historical data sets and the similarities, and adjusts the working state of the fan according to the target control parameters, so as to accurately adapt to environmental changes, improve the overall energy utilization efficiency, and ensure good heat dissipation.
[0063] Example 2 In addition, an embodiment of the present invention provides a fan control device.
[0064] like Figure 3 As shown, the fan control device 300 includes: The judgment module 301 is used to collect an environmental status data set and judge whether the environmental status data set is within a preset safe temperature threshold range; The first acquisition module 302 is used to respectively acquire the Euclidean distance between each historical data set and the environmental status data set if the temperature is within the preset safety temperature threshold range, and acquire a target Euclidean distance less than the preset distance threshold from each of the Euclidean distances, and determine the historical data set corresponding to each of the target Euclidean distances as the target historical data set; A calculation module 303 is used to respectively obtain the historical control parameters and similarities in the target historical data set, and calculate the target control parameters according to the historical control parameters and each similarity; A second acquisition module 304 is used to acquire emergency control parameters according to the environmental status data set if the temperature is outside the preset safety temperature threshold range; The adjustment module 305 is used to adjust the working state of the fan according to the target control parameter or the emergency control parameter.
[0065] The fan control device 300 provided in this embodiment can implement the fan control method provided in Embodiment 1, and will not be described again to avoid repetition.
[0066] The fan control device provided in this embodiment collects the current environmental status data set and obtains multiple target historical data sets with the highest similarity to the current environmental status data set in the historical data sets, obtains the target control parameters according to the target historical data sets and the similarities, and adjusts the working state of the fan according to the target control parameters, so as to accurately adapt to environmental changes, improve the overall energy utilization efficiency, and ensure good heat dissipation.
[0067] Example 3 In addition, an embodiment of the present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program runs on the processor, the fan control method provided in Embodiment 1 is executed.
[0068] For details, see Figure 4The electronic device 400 includes: a transceiver 401, a bus interface and a processor 402, wherein the processor 402 is used to: collect an environmental status data set, and determine whether the environmental status data set is within a preset safety temperature threshold range; if it is within the preset safety temperature threshold range, respectively obtain the Euclidean distance between each historical data set and the environmental status data set, and obtain a target Euclidean distance less than the preset distance threshold in each Euclidean distance, and determine the historical data set corresponding to each target Euclidean distance as a target historical data set; respectively obtain historical control parameters and similarities in the target historical data set, and calculate the target control parameters according to the historical control parameters and each similarity; if it is outside the preset safety temperature threshold range, obtain emergency control parameters according to the environmental status data set; and adjust the working state of the fan according to the target control parameter or the emergency control parameter.
[0069] In one implementation, the processor 402 is further configured to: calculate the Euclidean distance between each of the historical data sets and the environmental status data set respectively by using a distance calculation formula.
[0070] In one embodiment, the processor 402 is further used to: obtain the similarity between each of the historical data sets and the environmental status data set according to each of the Euclidean distances; obtain the sum of the Euclidean distance and a preset constant, and determine the reciprocal of the sum as the similarity.
[0071] In one embodiment, the processor 402 is also used for: the historical control parameters include: historical fan speed control parameters and historical start and stop time control parameters; determining the target fan speed control parameter according to each of the similarities and each of the historical fan speed control parameters; determining the target start and stop time control parameter according to each of the similarities and each of the historical start and stop time control parameters.
[0072] In one embodiment, the processor 402 is further used to: obtain the product of each of the similarities and each of the historical fan speed control parameters, and sum the products to obtain a first sum value; obtain a second sum value of each of the similarities, and determine the ratio of the first sum value to the second sum value as the target fan speed control parameter; obtain the product of each of the similarities and each of the historical start and stop time control parameters, and sum the products to obtain a third sum value; determine the ratio of the third sum value to the second sum value as the target start and stop time control parameter.
[0073] In one embodiment, the processor 402 is also used for: the emergency control parameters include: a first emergency control parameter and a second emergency control parameter; the environmental status data set includes: a machine temperature value; if the machine temperature value is greater than a preset maximum safety temperature value, the first emergency control parameter is obtained according to the machine temperature value; if the machine temperature value is less than a preset minimum safety temperature value, the second emergency control parameter is obtained according to the machine temperature value.
[0074] In one embodiment, the processor 402 is also used for: the first emergency control parameter includes: a first emergency fan speed control parameter and a first emergency start and stop time control parameter; the second emergency control parameter includes: a second emergency fan speed control parameter and a second emergency start and stop time control parameter; obtaining a temperature deviation value between the machine temperature value and the preset maximum safety temperature value; obtaining a first product of the temperature deviation value and a first preset temperature coefficient, and determining the sum of the first product and the preset conventional fan speed control parameter as the first emergency fan speed control parameter; obtaining a second product of the temperature deviation value and a first preset time coefficient, and determining the sum of the second product and the preset conventional start and stop time control parameter as the first emergency start and stop time control parameter; obtaining a third product of the preset conventional fan speed control parameter and the second preset temperature coefficient, and determining the third product as the second emergency fan speed control parameter; obtaining a fourth product of the preset conventional start and stop time control parameter and the second preset time coefficient, and determining the fourth product as the second emergency start and stop time control parameter.
[0075] In the embodiment of the present invention, the electronic device 400 further includes a memory 403. Figure 4 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically connecting various circuits of one or more processors represented by processor 402 and memory represented by memory 403. The bus architecture may also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 401 may be a plurality of components, i.e., including a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. The processor 402 is responsible for managing the bus architecture and general processing, and the memory 403 may store data used by the processor 402 when performing operations.
[0076] The electronic device 400 provided in the embodiment of the present invention can execute the steps of the fan control method provided in the above method embodiment 1, which will not be described again to avoid repetition.
[0077] The electronic device provided in this embodiment collects the current environmental state data set, obtains multiple target historical data sets with the highest similarity to the current environmental state data set in the historical data sets, obtains target control parameters according to the target historical data sets and the similarities, and adjusts the working state of the fan according to the target control parameters, so as to accurately adapt to environmental changes, improve the overall energy utilization efficiency, and ensure good heat dissipation.
[0078] Example 4 The present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the fan control method provided in Example 1 is implemented.
[0079] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0080] The computer-readable storage medium provided in this embodiment can implement the fan control method provided in Embodiment 1, and will not be described again here to avoid repetition.
[0081] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0082] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A fan control method, characterized in that: The method comprises: Collecting an environmental status data set, and determining whether the environmental status data set is within a preset safety temperature threshold range; If it is within the preset safety temperature threshold range, respectively obtain the Euclidean distance between each historical data set and the environmental status data set, and obtain the target Euclidean distance less than the preset distance threshold from each Euclidean distance, and determine the historical data set corresponding to each target Euclidean distance as the target historical data set; Respectively obtaining historical control parameters and similarities in the target historical data set, and calculating target control parameters according to the historical control parameters and each of the similarities; If it is outside the preset safety temperature threshold range, obtaining emergency control parameters according to the environmental status data set; The working state of the fan is adjusted according to the target control parameter or the emergency control parameter.
2. The fan control method according to claim 1, characterized in that: The obtaining of the Euclidean distance between each historical data set and the environmental status data set includes: The Euclidean distance between each of the historical data sets and the environmental status data set is calculated respectively by a distance calculation formula.
3. The fan control method according to claim 2, characterized in that: The similarities in the target historical data set are respectively obtained, including: Obtaining the similarity between each of the historical data sets and the environmental status data set according to each of the Euclidean distances; A sum of the Euclidean distance and a preset constant is obtained, and the reciprocal of the sum is determined as the similarity.
4. The fan control method according to claim 1, characterized in that: The historical control parameters include: historical fan speed control parameters and historical start-stop time control parameters; The obtaining of the historical control parameters and similarities in the target historical data set respectively, and calculating the target control parameters according to the historical control parameters and the similarities, includes: Determine a target fan speed control parameter according to each of the similarities and each of the historical fan speed control parameters; The target start-stop time control parameter is determined according to each of the similarities and each of the historical start-stop time control parameters.
5. The fan control method according to claim 4, characterized in that: The determining the target fan speed control parameter according to each of the similarities and each of the historical fan speed control parameters comprises: Obtaining the product of each of the similarities and each of the historical fan speed control parameters, and summing the products to obtain a first sum value; acquiring a second sum value of each of the similarities, and determining a ratio of the first sum value to the second sum value as the target fan speed control parameter; The determining the target start-stop time control parameter according to each of the similarities and each of the historical start-stop time control parameters includes: Obtaining the product of each of the similarities and each of the historical start / stop time control parameters, and summing the products to obtain a third sum value; The ratio of the third sum value to the second sum value is determined as the target start-stop time control parameter.
6. The fan control method according to claim 1, characterized in that: The emergency control parameters include: a first emergency control parameter and a second emergency control parameter; the environmental status data set includes: a machine temperature value; If the temperature is outside the preset safety temperature threshold range, obtaining emergency control parameters according to the machine temperature value includes: If the machine temperature value is greater than the preset maximum safety temperature value, obtaining the first emergency control parameter according to the machine temperature value; If the machine temperature value is lower than a preset minimum safety temperature value, the second emergency control parameter is obtained according to the machine temperature value.
7. The fan control method according to claim 6, characterized in that: The first emergency control parameter includes: a first emergency fan speed control parameter and a first emergency start / stop time control parameter; The second emergency control parameters include: a second emergency fan speed control parameter and a second emergency start / stop time control parameter; The acquiring the first emergency control parameter according to the machine temperature value includes: Obtaining a temperature deviation value between the machine temperature value and the preset maximum safety temperature value; Obtaining a first product of the temperature deviation value and a first preset temperature coefficient, and determining a sum of the first product and a preset normal fan speed control parameter as a first emergency fan speed control parameter; Obtaining a second product of the temperature deviation value and a first preset time coefficient, and determining a sum of the second product and a preset conventional start-stop time control parameter as a first emergency start-stop time control parameter; The acquiring the second emergency control parameter according to the machine temperature value includes: Obtaining a third product of the preset normal fan speed control parameter and the second preset temperature coefficient, and determining the third product as a second emergency fan speed control parameter; A fourth product of the preset normal start-stop time control parameter and the second preset time coefficient is obtained, and the fourth product is determined as a second emergency start-stop time control parameter.
8. A fan control device, characterized in that: The device comprises: A judgment module is used to collect an environmental status data set and judge whether the environmental status data set is within a preset safety temperature threshold range; A first acquisition module is used to respectively acquire the Euclidean distance between each historical data set and the environmental status data set if the temperature is within the preset safety temperature threshold range, and acquire a target Euclidean distance less than the preset distance threshold from each of the Euclidean distances, and determine the historical data set corresponding to each of the target Euclidean distances as the target historical data set; A calculation module, used to respectively obtain the historical control parameters and similarities in the target historical data set, and calculate the target control parameters according to the historical control parameters and each of the similarities; A second acquisition module is used to acquire emergency control parameters according to the environmental status data set if the temperature is outside the preset safety temperature threshold range; The adjustment module is used to adjust the working state of the fan according to the target control parameter or the emergency control parameter.
9. An electronic device, characterized in that: The invention comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the fan control method according to any one of claims 1 to 7 is executed.
10. A computer-readable storage medium, characterized in that: The computer program is stored therein, and when the computer program is run on a processor, the fan control method according to any one of claims 1 to 7 is executed.
Citation Information
Patent Citations
Intelligent wind turbine generator working condition identification system and method
CN103161668A
Service life calculation method and device
CN105487459A
Fan rotation speed control method and device
CN105650022A
Fan control method and system
CN109958646A
Air conditioner control method and device and air conditioner
CN116928850A