Fan control method and device, electronic equipment and storage medium
By setting the first and second preset timers to control the sampling period and the execution time of the fan drive algorithm respectively, the problems of long ADC interrupt execution time and timer asynchrony in fan control are solved, and the reliability and accuracy of fan control are improved.
Patent Information
- Application Number
- CN202510735409.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-04
- Publication Date
- 2025-09-12
AI Technical Summary
In the existing fan control method, the ADC sampling interrupt execution time is too long, resulting in the interrupt execution interval being exceeded, affecting the normal operation of the control system, and the timer asynchrony leads to inconsistency and error in the sampling data.
The first preset timer and the second preset timer are used to control the sampling period and the execution time of the fan driving algorithm respectively. The second counting period is set to be greater than the first counting period to ensure the stable execution of the fan driving algorithm and the synchronization of the sampling process.
The reliability and accuracy of fan control are improved, the problem of long ADC interrupt execution time is avoided, and the inconsistency of sampling data caused by timer asynchrony is solved, ensuring the stable operation of the system.
Smart Images

Figure CN120626526A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of fan control, and in particular to a fan control method, device, electronic equipment and storage medium. Background Art
[0002] In daily life, fans are generally set up to meet the cooling needs of equipment. Fan control usually adopts PID (Proportional-Integral-Derivative) control or fuzzy control. The ADC (Analog-to-Digital Converter) performs data sampling and then calculates the current control quantity required by the fan, such as PWM (Pulse Width Modulation) duty cycle and voltage output. Finally, a drive signal is generated to control the operating parameters of the fan motor.
[0003] However, existing fan control methods only use a single timer. If the driver algorithm is directly executed during the ADC sampling interrupt to calculate the fan's current control variable, this can cause the interrupt execution time to be too long, exceeding the interrupt execution interval. In this case, the ADC sampling interrupt cannot be re-entered to obtain the result, thus affecting the normal operation of the control system. Summary of the Invention
[0004] The objects of the present invention include, for example, providing a wind turbine control method, device, electronic device and storage medium, which can at least partially solve the above-mentioned technical problems.
[0005] The embodiments of the present invention can be implemented as follows:
[0006] In a first aspect, an embodiment of the present invention provides a wind turbine control method, the method comprising:
[0007] receiving configuration information, the configuration information including a target sampling mode of an analog-to-digital converter and a sampling order and sampling grouping of a plurality of sampling targets;
[0008] Controlling the analog-to-digital converter to switch to the target sampling mode, and sampling each of the sampling targets according to the sampling order and sampling grouping based on a first counting cycle of a first preset timer to obtain a sampling value corresponding to each of the sampling targets;
[0009] receiving a timer interrupt instruction, and controlling a second preset timer interrupt based on the timer interrupt instruction, and determining a target operating parameter of the fan according to each of the sampled values based on a fan drive algorithm, wherein a second counting period corresponding to the second preset timer is greater than the first counting period;
[0010] The operating state of the wind turbine is adjusted based on the target operating parameter.
[0011] Optionally, the target sampling mode is continuous selective sampling, and the first counting period based on the first preset timer samples each of the sampling targets according to the sampling order and sampling grouping to obtain a sampling value corresponding to each of the sampling targets, including:
[0012] Dividing each of the sampling targets into a plurality of sampling groups based on the sampling grouping, each of the sampling groups including at least one of the sampling targets;
[0013] sorting the sampling groups according to the sampling order;
[0014] In each of the first counting cycles, sampling targets in one of the sampling groups are sampled according to the sampling order to obtain corresponding sampling values until the sampling of each of the sampling targets is completed.
[0015] Optionally, the method further includes:
[0016] Whenever sampling of a sampling target in the sampling group is completed, the sampling channel of the analog-to-digital converter is set to the sampling channel corresponding to the sampling target in the next sampling group;
[0017] After completing the sampling of each sampling target, controlling the analog-to-digital converter to resample the sampling targets in the first sampling group in the next first counting cycle.
[0018] Optionally, the method further includes:
[0019] When the target operating parameter of the fan is determined according to each of the sampled values based on the fan driving algorithm, the second preset timer is reset.
[0020] Optionally, the method further includes:
[0021] Performing filtering on each of the sampled values;
[0022] Converting the filtered sample values into digital signals respectively;
[0023] Each of the digital signals is stored in a preset memory.
[0024] Optionally, the sampling targets include U-phase current, V-phase current, W-phase current, bus voltage, and ambient temperature.
[0025] Optionally, a second counting period corresponding to the second preset timer is 10 times the first counting period.
[0026] In a second aspect, an embodiment of the present invention provides a fan control device, the fan control device comprising:
[0027] A configuration information receiving unit, configured to receive configuration information, wherein the configuration information includes a target sampling mode of the analog-to-digital converter and a sampling order and sampling grouping of multiple sampling targets;
[0028] a sampling unit, configured to control the analog-to-digital converter to switch to the target sampling mode, and sample each of the sampling targets according to the sampling order and sampling group based on a first counting cycle of a first preset timer to obtain a sampling value corresponding to each of the sampling targets;
[0029] a target operating parameter determination unit, configured to receive a timer interrupt instruction, control a second preset timer interrupt based on the timer interrupt instruction, and determine a target operating parameter of the fan according to each of the sampled values based on a fan drive algorithm, wherein a second counting period corresponding to the second preset timer is greater than the first counting period;
[0030] A fan control unit is used to adjust the operating state of the fan based on the target operating parameters.
[0031] In a third aspect, an embodiment of the present invention provides an electronic device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above methods when executing the program.
[0032] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a computer program, and when the computer program is executed, the server where the computer-readable storage medium is located is controlled to implement the steps of any of the above methods.
[0033] The beneficial effects of the embodiments of the present invention include, for example:
[0034] By setting a first preset timer and a second preset timer to respectively time the sampling period and the execution of the fan drive algorithm, the problem of the ADC interrupting the execution of the fan drive algorithm for too long is avoided. Moreover, by setting the second counting period to be greater than the first counting period, the potential synchronization problem between the two timers is avoided. This further improves the reliability and accuracy of fan control. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces 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 therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.
[0036] Figure 1 A block diagram of an electronic device provided by an embodiment of the present invention;
[0037] Figure 2 A flow chart of the steps of a fan control method provided by an embodiment of the present invention;
[0038] Figure 3 A sampling timing diagram provided by an embodiment of the present invention;
[0039] Figure 4 This is an architectural diagram of a fan control device provided by an embodiment of the present invention.
[0040] Icon: 100 - electronic device; 110 - memory; 120 - processor; 130 - communication module; 300 - fan control device; 301 - configuration information receiving unit; 302 - sampling unit; 303 - target operating parameter determination unit; 304 - fan control unit. DETAILED DESCRIPTION
[0041] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of 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. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.
[0042] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention as claimed, but rather merely represents selected embodiments of the present invention. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present invention without creative effort are intended to fall within the scope of protection of the present invention.
[0043] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings.
[0044] In addition, the terms "first", "second", etc., if used, are merely used to distinguish and describe, and should not be understood as indicating or implying relative importance.
[0045] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.
[0046] Current dual-resistor sampling technology typically requires using an ADC to sample phase currents while the lower bridge is fully off. This approach requires a long sampling time per channel, while the time it takes to fully off the lower bridge is strictly limited. Therefore, it doesn't provide sufficient time to complete all necessary sampling tasks.
[0047] Furthermore, if the driver algorithm is executed directly in the ADC sampling interrupt, the interrupt execution time may be too long, thus exceeding the interrupt execution interval. In this case, the ADC sampling interrupt will not be able to enter again to obtain the result, thus affecting the normal operation of the system.
[0048] To circumvent this issue, the sampling process is typically synchronized by setting an additional timer with the same count value as the fan timer. However, this approach can lead to inconsistencies and errors in the sampled data due to potential asynchrony between the two timers, further reducing the reliability and stability of the system.
[0049] Based on the above situation, the embodiments of the present invention provide a wind turbine control method, device, electronic device and storage medium, which can effectively alleviate the above technical problems.
[0050] Please refer to Figure 1 , is a block diagram of an electronic device 100 provided in this application. The electronic device 100 can be a device capable of data processing, which is not limited in this embodiment. The electronic device 100 includes a memory 110, a processor 120, and a communication module 130. The memory 110, processor 120, and communication module 130 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses or signal lines.
[0051] The memory 110 is used to store programs or data. The memory 110 may be, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc.
[0052] The processor 120 is used to read / write data or programs stored in the memory and execute corresponding functions.
[0053] The communication module 130 is used to establish a communication connection between the server and other communication terminals through the network, and to send and receive data through the network.
[0054] It should be understood that Figure 1 The structure shown is only a schematic diagram of the structure of the electronic device 100. The electronic device 100 may also include Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown. Figure 1 The components shown in the figure can be implemented by hardware, software or a combination thereof. The electronic device 100 can be set in other devices or as an independent device.
[0055] The embodiment of the present invention provides a fan control method, which can be applied to the electronic device 100. The method includes: Figure 2 The following steps are shown:
[0056] Step S110: receiving configuration information, wherein the configuration information includes a target sampling mode of an analog-to-digital converter and a sampling order and sampling grouping of multiple sampling targets.
[0057] Step S120: controlling the analog-to-digital converter to switch to the target sampling mode, and sampling each of the sampling targets according to the sampling order and sampling grouping based on the first counting cycle of the first preset timer to obtain a sampling value corresponding to each of the sampling targets.
[0058] Step S130: Receive a timer interrupt instruction, and control a second preset timer interrupt based on the timer interrupt instruction, and at the same time, based on the fan drive algorithm, determine the target operating parameters of the fan according to each of the sampling values, wherein the second counting period corresponding to the second preset timer is greater than the first counting period.
[0059] Step S140: adjusting the operating state of the wind turbine based on the target operating parameters.
[0060] In step S110 , configuration information is received, where the configuration information includes a target sampling mode of an analog-to-digital converter and a sampling order and sampling grouping of multiple sampling targets.
[0061] Configuration information can be sent from the control terminal to the wind turbine controller. The operator uses the control terminal to select the target sampling mode for the analog-to-digital converter from multiple sampling modes and determine the specific sampling order for multiple sampling targets. If more than one sampling target is required for a single sampling, sampling groups can also be configured. Once configured, the control terminal packages the configuration information and sends it to the wind turbine controller, which then proceeds according to the configuration information.
[0062] For example, the sampling targets are A, B, C, and D, and the sampling modes are X, Y, and Z. The operator can select X as the target sampling mode on the control terminal, and divide A, B, C, and D into three sampling groups: AC, B, and D. The sampling order is to sample B first, then AC, and finally D.
[0063] In step S120, the analog-to-digital converter is controlled to switch to the target sampling mode, and each sampling target is sampled according to the sampling order and sampling group based on the first counting cycle of the first preset timer to obtain a sampling value corresponding to each sampling target.
[0064] After receiving the configuration information, the controller first controls the analog-to-digital converter to switch the sampling mode to the target sampling mode. Then, using the first count cycle (i.e., sampling frequency) corresponding to the first preset timer, the controller controls the analog-to-digital converter to sample each sampling target according to the sampling order and sampling grouping in the configuration information, thereby obtaining the sampling value corresponding to each sampling target.
[0065] Optionally, the target sampling mode is continuous selective sampling, and the first counting period based on the first preset timer samples each of the sampling targets according to the sampling order and sampling grouping to obtain a sampling value corresponding to each of the sampling targets, including:
[0066] Based on the sampling grouping, the sampling targets are divided into a plurality of sampling groups, each of which includes at least one sampling target, and the sampling groups are sorted according to the sampling order.
[0067] In each of the first counting cycles, sampling targets in one of the sampling groups are sampled according to the sampling order to obtain corresponding sampling values until the sampling of each of the sampling targets is completed.
[0068] The target sampling mode is continuous selection sampling, that is, each time a different sampling target is selected for sampling according to the sampling order and sampling grouping. Still taking the above example, if the sampling targets are A, B, C, and D, the target sampling mode is continuous selection sampling. The sampling groups in the configuration information are AC, B, and D, and the sampling order is to sample B first, then AC, and finally D. Then, when the first counting cycle of the first preset timer arrives, the controller first samples B and obtains the sampling value corresponding to B; when the next first counting cycle arrives, it samples A and C respectively and obtains the sampling values corresponding to A and C respectively; when the next first counting cycle arrives, it samples D and obtains the sampling value corresponding to D.
[0069] Optionally, the sampling targets include U-phase current, V-phase current, W-phase current, bus voltage, and ambient temperature.
[0070] Optionally, the method further includes:
[0071] Whenever sampling of a sampling target in the sampling group is completed, the sampling channel of the analog-to-digital converter is set to the sampling channel corresponding to the sampling target in the next sampling group.
[0072] After completing the sampling of each sampling target, controlling the analog-to-digital converter to resample the sampling targets in the first sampling group in the next first counting cycle.
[0073] As an optional implementation, Figure 3 As shown, after each sampling cycle of the analog-to-digital converter, the sampling channel can be set to the sampling channel corresponding to the sampling target to be sampled in the next first counting cycle. For example, when the first preset timer reaches the first first counting cycle, sampling of the U-phase current is started. After sampling, it is set to the V-phase current channel (the sampling target in the next sampling group), while waiting for the second first counting cycle to arrive. When the second first counting cycle arrives, sampling of the V-phase current is started. After sampling, it is set to the sampling channel corresponding to the sampling target in the next sampling group, while waiting for the next first counting cycle to arrive... until sampling of all sampling targets is completed.
[0074] After the sampling of all sampling targets is completed, when the next first counting cycle of the first preset timer arrives, the analog-to-digital converter is controlled to recycle and sample the sampling targets in the first sampling group according to the sampling sequence and the divided sampling groups.
[0075] In this way, not only can the overall sampling time be effectively shortened, but it can also ensure that each sampling target has enough time to be accurately sampled, and at the same time, the sampling of other sampling targets will not be affected by the long sampling time of a certain sampling target.
[0076] In step S130, a timer interrupt instruction is received, and a second preset timer interrupt is controlled based on the timer interrupt instruction. At the same time, based on the fan drive algorithm, the target operating parameters of the fan are determined according to each of the sampling values, wherein the second counting period corresponding to the second preset timer is greater than the first counting period.
[0077] In addition to the first preset timer, a second preset timer can be set to control the start and stop of the fan drive algorithm. To ensure that the execution time of the fan drive algorithm does not interfere with the subsequent sampling process, the second count period corresponding to the second preset timer can be set to be greater than the first count period. The timer interrupt command can be issued by the operator at the control terminal. When the controller receives the timer interrupt command, it controls the second preset timer to interrupt and starts the fan drive algorithm to determine the target operating parameters of the fan based on the sampled values.
[0078] Optionally, a second counting period corresponding to the second preset timer is 10 times the first counting period.
[0079] In order to ensure the stable execution of the fan driving algorithm and avoid the problem of excessively long interrupt execution time, the second counting period can be set to 10 times the first counting period, which is much longer than the first counting period.
[0080] Optionally, the method further includes: when determining the target operating parameters of the fan according to each of the sampled values based on a fan driving algorithm, re-timing the second preset timer.
[0081] To ensure that the fan drive algorithm is in the predetermined position each time it is executed, such as Figure 3 As shown, the second preset timer can be controlled to re-time when the fan driving algorithm is executed.
[0082] In step S140 , the operating state of the wind turbine is adjusted based on the target operating parameters.
[0083] After the target operating parameters of the fan are determined by the fan drive algorithm, the controller can generate a drive signal (such as a PWM waveform) according to the target operating parameters to control the motor operating parameters of the fan, thereby achieving the effect of adjusting the operating state of the fan.
[0084] Optionally, the method further includes:
[0085] Filtering is performed on each of the sampled values, converting each of the sampled values after filtering into a digital signal, and storing each of the digital signals in a preset memory.
[0086] In addition to calculating and adjusting target operating parameters for the fan's operating status based on sampled values, the controller can also filter and digitally convert each sampled value, then store the converted sampled values in a preset memory, making it easier for staff to perform data analysis and fault tracing.
[0087] Based on the same inventive concept, Figure 4 As shown, the embodiment of the present invention provides a fan control device 300, including:
[0088] The configuration information receiving unit 301 is configured to receive configuration information, where the configuration information includes a target sampling mode of an analog-to-digital converter and a sampling order and sampling grouping of multiple sampling targets.
[0089] The sampling unit 302 is used to control the analog-to-digital converter to switch to the target sampling mode, and sample each sampling target according to the sampling order and sampling group based on the first counting cycle of the first preset timer to obtain a sampling value corresponding to each sampling target.
[0090] The target operating parameter determination unit 303 is used to receive a timer interrupt instruction, and control the second preset timer interrupt based on the timer interrupt instruction, and determine the target operating parameter of the fan according to each of the sampled values based on the fan driving algorithm.
[0091] The fan control unit 304 is configured to adjust the operating state of the fan based on the target operating parameters.
[0092] Regarding the above-mentioned fan control device 300, the specific functions of each unit therein have been described in detail in the embodiment of the fan control method provided in this specification, and will not be elaborated here.
[0093] Based on the same inventive concept, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of any of the above-mentioned fan control methods when executed by a processor.
[0094] The present invention has at least the following beneficial effects:
[0095] 1. By setting a first preset timer and a second preset timer to respectively time the sampling period and the fan drive algorithm execution, the problem of the ADC interrupt executing the fan drive algorithm for too long is avoided. By setting the second counting period to be longer than the first counting period, the potential synchronization problem between the two timers is avoided. This improves the reliability and accuracy of fan control.
[0096] 2. Set the second counting period to 10 times the first counting period, which is much longer than the first counting period. This ensures the stable execution of the fan drive algorithm and avoids the problem of excessively long interrupt execution time.
[0097] 3. When the fan drive algorithm is executed, the second preset timer is controlled to re-time, ensuring that the fan drive algorithm is executed at the predetermined position each time, further improving the reliability and accuracy of the fan control.
[0098] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions, and operations of the devices, methods, and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or part of the code, which contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the boxes can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, as well as the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified functions or actions, or can be implemented using a combination of dedicated hardware and computer instructions.
[0099] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0100] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0101] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.
Claims
1. A fan control method, characterized in that: The method comprises: receiving configuration information, the configuration information including a target sampling mode of an analog-to-digital converter and a sampling order and sampling grouping of a plurality of sampling targets; Controlling the analog-to-digital converter to switch to the target sampling mode, and sampling each of the sampling targets according to the sampling order and sampling grouping based on a first counting cycle of a first preset timer to obtain a sampling value corresponding to each of the sampling targets; receiving a timer interrupt instruction, and controlling a second preset timer interrupt based on the timer interrupt instruction, and determining a target operating parameter of the fan according to each of the sampled values based on a fan drive algorithm, wherein a second counting period corresponding to the second preset timer is greater than the first counting period; The operating state of the wind turbine is adjusted based on the target operating parameter.
2. The fan control method according to claim 1, wherein: The target sampling mode is continuous selective sampling, and the first counting period based on the first preset timer samples each of the sampling targets according to the sampling order and sampling group to obtain a sampling value corresponding to each of the sampling targets, including: Dividing each of the sampling targets into a plurality of sampling groups based on the sampling grouping, each of the sampling groups including at least one of the sampling targets; sorting the sampling groups according to the sampling order; In each of the first counting cycles, sampling targets in one of the sampling groups are sampled according to the sampling order to obtain corresponding sampling values until the sampling of each of the sampling targets is completed.
3. The fan control method according to claim 2, wherein: The method further comprises: Whenever sampling of a sampling target in the sampling group is completed, the sampling channel of the analog-to-digital converter is set to the sampling channel corresponding to the sampling target in the next sampling group; After completing the sampling of each sampling target, controlling the analog-to-digital converter to resample the sampling targets in the first sampling group in the next first counting cycle.
4. The fan control method according to claim 1, wherein: The method further comprises: When the target operating parameter of the fan is determined according to each of the sampled values based on the fan driving algorithm, the second preset timer is reset.
5. The fan control method according to claim 1, wherein: The method further comprises: Performing filtering on each of the sampled values; Converting the filtered sample values into digital signals respectively; Each of the digital signals is stored in a preset memory.
6. The fan control method according to claim 1, wherein: The sampling targets include U-phase current, V-phase current, W-phase current, bus voltage, and ambient temperature.
7. The fan control method according to claim 1, wherein: A second counting period corresponding to the second preset timer is 10 times the first counting period.
8. A fan control device, characterized in that: The fan control device comprises: A configuration information receiving unit, configured to receive configuration information, wherein the configuration information includes a target sampling mode of the analog-to-digital converter and a sampling order and sampling grouping of multiple sampling targets; a sampling unit, configured to control the analog-to-digital converter to switch to the target sampling mode, and sample each of the sampling targets according to the sampling order and sampling group based on a first counting cycle of a first preset timer to obtain a sampling value corresponding to each of the sampling targets; a target operating parameter determination unit, configured to receive a timer interrupt instruction, control a second preset timer interrupt based on the timer interrupt instruction, and determine a target operating parameter of the fan according to each of the sampled values based on a fan drive algorithm, wherein a second counting period corresponding to the second preset timer is greater than the first counting period; A fan control unit is used to adjust the operating state of the fan based on the target operating parameters.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a computer program, and when the computer program is executed, the server where the computer-readable storage medium is located is controlled to implement the steps of the method according to any one of claims 1 to 7.