A method, device and medium for regulating the speed of a fan
By selecting the target controller of the associated temperature point device in the redundant controller for synchronization, the problem of waste of resources and poor speed regulation sensitivity in multi-control design is solved, and efficient fan speed regulation is achieved.
Patent Information
- Application Number
- CN202310141511.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-16
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2043-02-16
AI Technical Summary
During the fan speed regulation process of existing multi-control designs, synchronous temperature point data occupies a large amount of resources, resulting in low efficiency of synchronous data and poor sensitivity to speed regulation.
Acquire the temperature point data connected to the current controller, determine the corresponding PWM value, and synchronize it to the target controller. The target controller is a controller in the redundant controller that is associated with each temperature point device except the current controller, and determines the maximum PWM value according to the current and target controller PWM values for fan speed regulation.
It saves synchronous resources, improves the efficiency of synchronous data and the sensitivity of speed regulation, and avoids waste of resources.
Smart Images

Figure CN115962139B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fan control, and particularly to a method, device and medium for regulating the speed of a fan. Background Art
[0002] At present, in order to ensure the reliability of services, storage devices will design dual-control or quad-control redundant controllers. Some temperature points among the controllers need to participate in the speed regulation of all controllers or several of them, so the temperature points need to be synchronized. Fan speed regulation is relatively important for storage devices, which can ensure that within the operating temperature range of the ambient temperature, the temperatures of all components of the device are continuously maintained within the normal operating range of the components, thus ensuring the normal operation of the device.
[0003] Existing storage devices with multi-control design need to synchronize a large number of temperature points from the local controller to other controllers, and at the same time receive the temperature points and status information sent by other controllers. A large amount of resources are occupied during the synchronization and reception processes, resulting in low efficiency of synchronizing data and poor sensitivity of speed regulation response.
[0004] Therefore, it is urgent for those skilled in the art to seek a method for regulating the speed of a fan. Summary of the Invention
[0005] The purpose of the present invention is to provide a method, device and medium for regulating the speed of a fan, which can avoid the problem of resource waste caused by synchronizing all current temperature points to each controller corresponding to associated and unassociated temperature point devices through the local controller, save synchronization resources, improve the efficiency of synchronizing data, and at the same time improve the sensitivity of speed regulation.
[0006] To solve the above technical problems, the present invention provides a method for regulating the speed of a fan, including:
[0007] Obtain the temperature point data of each temperature point device connected to the current controller, and determine the corresponding PWM value according to each of the temperature point data;
[0008] Obtain the target controller corresponding to each of the temperature point devices, and synchronize each of the PWM values to the target controller, where the target controller is a controller other than the current controller in the redundant controller and associated with each of the temperature point devices;
[0009] Determine the maximum PWM value according to the PWM values of each of the temperature point devices corresponding to the current controller and the target controller for use in regulating the speed of the fan.
[0010] Preferably, the obtaining the target controller corresponding to each of the temperature point devices includes:
[0011] Obtain the temperature point device and the corresponding attribution information, where the attribution information is the device information of the pre-stored temperature point device and the serial number of the associated controller corresponding to the device information;
[0012] Determine the target controller associated with the current controller according to the attribution information.
[0013] Preferably, the step of synchronizing each PWM value to the target controller includes:
[0014] Determine the marking attribute information of the corresponding temperature point according to the attribution information, where the marking attribute information is global shared marking information or regional shared marking information;
[0015] Determine the synchronization priority order according to the marking attribute information;
[0016] Synchronize each PWM value to the target controller according to the synchronization priority order.
[0017] Preferably, the step of determining the maximum PWM value according to the PWM values of each temperature point device corresponding to the current controller and the target controller includes:
[0018] Determine the PWM values corresponding to each controller, and select the corresponding initial maximum PWM value within each controller;
[0019] Compare each initial maximum PWM value to determine the final maximum PWM value corresponding to the redundant controller as the maximum PWM value.
[0020] Preferably, when the marking attribute information is the regional shared marking information, after synchronizing each PWM value to the target controller and before determining the maximum PWM value according to the PWM values of each temperature point device corresponding to the current controller and the target controller, it further includes:
[0021] Obtain the first PWM value of the temperature point corresponding to the regional shared marking information determined by the target controller itself;
[0022] Receive the PWM value synchronized by the current controller;
[0023] Judge whether the PWM value is consistent with the first PWM value;
[0024] If they are consistent, enter the step of determining the maximum PWM value according to the PWM values of each temperature point device corresponding to the current controller and the target controller.
[0025] Preferably, the marking attribute information further includes single-board attribute information;
[0026] When the temperature point device is the single-board attribute information, the current controller does not participate in the synchronization process.
[0027] Preferably, after synchronizing each of the PWM values to the target controller, the method further includes:
[0028] Obtaining the temperature point device corresponding to each of the PWM values and the attribution information;
[0029] Mapping each of the PWM values, the temperature point device, and the attribution information and storing them in the database corresponding to the redundant controller.
[0030] To solve the above technical problems, the present invention further provides a device for fan speed regulation, including:
[0031] An acquisition module, configured to acquire temperature point data of the current controller connecting each temperature point device, and determine corresponding PWM values according to each of the temperature point data;
[0032] A synchronization module, configured to acquire a target controller corresponding to each of the temperature point devices, and synchronize each of the PWM values to the target controller, where the target controller is a controller other than the current controller in the redundant controller and associated with each of the temperature point devices;
[0033] A determination module, configured to determine a maximum PWM value according to the PWM values of each of the temperature point devices corresponding to the current controller and the target controller for use in the fan speed regulation.
[0034] To solve the above technical problems, the present invention further provides a device for fan speed regulation, including:
[0035] A memory, configured to store a computer program;
[0036] A processor, configured to implement the steps of the method for fan speed regulation as described above when executing the computer program.
[0037] To solve the above technical problems, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for fan speed regulation as described above are implemented.
[0038] A method for regulating the speed of a fan provided by the present invention includes: obtaining temperature point data of temperature point devices connected to the current controller, and determining corresponding PWM values according to the temperature point data; obtaining target controllers corresponding to the temperature point devices, and synchronizing the PWM values to the target controllers, where the target controller is a controller in the redundant controller other than the current controller and associated with the temperature point devices; determining the maximum PWM value according to the PWM values of the temperature point devices corresponding to the current controller and the target controller for fan speed regulation. This method synchronizes the controllers associated with the temperature point devices, avoiding the problem of resource waste caused by all current temperature points being synchronized to each controller corresponding to the associated and unassociated temperature point devices through the local controller, saving synchronization resources, improving the efficiency of synchronizing data, and at the same time improving the sensitivity of speed regulation.
[0039] In addition, the present invention also provides a device and medium for regulating the speed of a fan, which have the same beneficial effects as the above method for regulating the speed of a fan. Description of the Drawings
[0040] In order to more clearly illustrate the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0041] Figure 1 It is a flowchart of a method for regulating the speed of a fan provided by an embodiment of the present invention;
[0042] Figure 2 It is a structural diagram of a device for regulating the speed of a fan provided by an embodiment of the present invention;
[0043] Figure 3 It is a structural diagram of another device for regulating the speed of a fan provided by an embodiment of the present invention. Detailed Embodiments
[0044] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present invention.
[0045] The core of the present invention is to provide a method, device and medium for regulating the speed of a fan, avoiding the problem of resource waste caused by all current temperature points being synchronized to each controller corresponding to the associated and unassociated temperature point devices through the local controller, saving synchronization resources, improving the efficiency of synchronizing data, and at the same time improving the sensitivity of speed regulation.
[0046] To enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0047] It should be noted that the method for adjusting the fan speed provided by the present invention can be applied to a server with multiple controllers or other redundant scenarios, which are not limited herein. There are various methods for adjusting the rotation speed of the Central Processing Unit (CPU) fan. In the embodiments of the present invention, the PWM slope value is set. Through pulse width modulation, the PWM slope is the ratio at which the fan adjusts its rotation speed according to the temperature change. That is to say, the fan speed is still intelligently adjusted. However, the higher the PWM slope, the higher the rotation speed of the fan, and the more obvious the heat dissipation effect. Relatively, the louder the fan noise. On the contrary, the lower the PWM slope, the slower the fan rotation speed and the lower the heat dissipation effect. Each hardware component of the storage device is equipped with a fan, such as the air inlet, air outlet, power supply, CPU, hard disk, etc. For different hardware components, the corresponding fans are equipped with temperature sensors to measure the corresponding temperature, which becomes a temperature point. In a storage device with multiple controllers, the temperature points corresponding to different controllers are different. For example, the hard disk is only connected to the main controller, and the main controller will synchronize the temperature point data corresponding to the hard disk to each slave controller. Different board card settings may be connected to different controllers, not just the main controller. If it is only connected to some slave controllers, there is no need to obtain the temperature point data of the board card from the main controller. For the above connection and synchronization situations, the method for adjusting the fan speed provided by the present invention can solve the above technical problems.
[0048] Figure 1 It is a flowchart of a method for adjusting the fan speed provided by an embodiment of the present invention. As Figure 1 shown, the method includes:
[0049] S11: Obtain the temperature point data of each temperature point device connected to the current controller, and determine the corresponding PWM value according to each temperature point data;
[0050] S12: Obtain the target controller corresponding to each temperature point device, and synchronize each PWM value to the target controller, where the target controller is the controller other than the current controller in the redundant controller and associated with each temperature point device;
[0051] S13: Determine the maximum PWM value according to the PWM values of each temperature point device corresponding to the current controller and the target controller for fan speed adjustment.
[0052] Specifically, obtain the temperature point data of each temperature point device connected to the current controller. The corresponding acquisition method is to collect it through the temperature sensor of the temperature point device, and the collected data is the temperature point data. It can be understood that during the acquisition of the temperature point data, it is necessary to preprocess and denoise the original data to make the collected data less interfered, considering the accuracy of calculating the PWM value in the subsequent process.
[0053] Determine the corresponding PWM value according to the temperature point data. The calculation method of this embodiment is not specifically limited, as long as the PWM value can be obtained based on the temperature point data. On the main board with PWM function, in addition to the original temperature measurement circuit, there is an additional PWM control chip, whose function is to emit PWM pulse signals with different duty cycles according to the CPU temperature measured by the temperature measurement circuit. This pulse is a square wave. In one cycle, the proportion of the high-level time period of this square wave signal in the entire cycle is called the duty cycle. If the entire cycle is a high-level signal, the duty cycle is 100%, and vice versa, the duty cycle is zero.
[0054] In the simplest PWM temperature control circuit, there is an additional control circuit on the circuit board of the fan, which can be simply understood as a triode. One of its poles is connected to the PWM square wave pulse. If a high level appears on this pole, the other two poles of the triode are in the conducting state. If it is a low level, the other two poles are in the disconnected state. If the duty cycle of the emitted square wave pulse signal is 50%, that is, the high-level signal occupies half of a cycle, then this triode is in the conducting state for half of a cycle. It is very easy to control the fan speed by the conduction time length of this triode in one cycle. If the duty cycle of the PWM square wave pulse signal can be achieved in multiple levels, then the fan speed can also be achieved in multiple levels.
[0055] Obtain the target controller corresponding to each temperature point device. It should be noted that due to different temperature point devices, their corresponding controllers are different. For example, a plug-in card requires the design of two controllers. In the actual hardware connection, only one controller needs to be connected to the plug-in card, and the other controller only needs to synchronize with this controller. The current controller in step S11 is connected to each temperature point device, and its connection relationship is the actual connection process. The target controller in this embodiment is a virtual connection process, that is, the controller to be synchronized, that is, the target controller is the controller in the redundant controller except the current controller and associated with each temperature point device.
[0056] Synchronize the PWM values determined by the temperature point data to the target controller. The corresponding synchronization process can be to parallel-transmit the PEM values calculated by the current controller to the target controller, or to serially transmit them to the target controller, which is not limited here.
[0057] After the synchronization is completed, based on the PWM values of the temperature point devices corresponding to the current controller and the target controller, the maximum PWM value is determined for fan speed regulation. Since the temperature point devices corresponding to the current controller and the target controller are different, their corresponding PWM values are also different. Therefore, it is necessary to select the maximum PWM value corresponding to each controller. The number of redundant controllers is the same as the number of maximum PWM values. Finally, the final maximum PWM value is found among the maximum PWM values for fan speed regulation.
[0058] It should be noted that the current controller and the target controller in the redundant controller do not only refer to a certain controller itself. The current controller can be used as the target controller, and the target controller can also be used as the current controller. This invention only illustrates that in the redundant controller, the local controller only calculates the PWM values of the temperature points that need to be calculated by the local controller, that is, the controller connected to the temperature point device. The synchronization process only associates the controllers of the temperature point device, and not all redundant controllers need to be synchronized.
[0059] A method for fan speed regulation provided by an embodiment of the present invention includes: obtaining temperature point data of each temperature point device connected to the current controller, and determining the corresponding PWM value according to each temperature point data; obtaining the target controller corresponding to each temperature point device, and synchronizing each PWM value to the target controller, where the target controller is the controller in the redundant controller other than the current controller and associated with each temperature point device; determining the maximum PWM value according to the PWM values of the temperature point devices corresponding to the current controller and the target controller for fan speed regulation. This method synchronizes the controllers associated with the temperature point devices, avoiding the problem of resource waste caused by synchronizing all temperature points to each controller corresponding to the associated and unassociated temperature point devices through the local controller, saving synchronization resources, improving the efficiency of synchronized data, and at the same time improving the sensitivity of speed regulation.
[0060] Based on the above embodiment, obtaining the target controller corresponding to each temperature point device in step S12 includes:
[0061] Obtaining the temperature point device and the corresponding attribution information, where the attribution information is the device information of the temperature point device stored in advance and the serial number of the associated controller corresponding to the device information;
[0062] Determining the target controller associated with the current controller according to the attribution information.
[0063] Specifically, obtaining the temperature point device and the corresponding attribution information, the attribution information of the temperature point device records the description information (device information) of the device and the serial number of the associated controller corresponding to the device. For example, the device information is hardware, and the serial number of the associated controller is the number of the redundant controller, etc.
[0064] Determine the target controller associated with the current controller according to the attribution information, where the association here refers to the controller associated by virtual connection.
[0065] Based on the above embodiments, synchronize each PWM value to the target controller, including:
[0066] Determine the marking attribute information of the corresponding temperature point according to the attribution information, where the marking attribute information is global shared marking information or regional shared marking information;
[0067] Determine the synchronization priority order according to the marking attribute information;
[0068] Synchronize each PWM value to the target controller according to the synchronization priority order.
[0069] Correspondingly, determine the marking attribute information of the corresponding temperature point according to the attribution information, where the marking attribute information is global shared marking information or regional shared marking information. It should be noted that the marking attribute information corresponds to different controllers for different temperature point devices. The global shared marking information is required to be used by all controllers in the redundant controllers, and the regional shared marking information is used by multiple of them. Determine the synchronization priority order of the synchronization process according to different marking attribute information.
[0070] For example, there are 4 redundant controllers. When the marking attribute information is global shared marking information, set the slave control priority order, and synchronize each PWM value to the target controller according to the priority order. For slave controls 1, 2, and 3, first obtain the PWM value through the master control, synchronize it to slave control 1 through the master control, synchronize it to slave control 2 through slave control 1, and synchronize it to slave control 3 through slave control 2. When the marking attribute information is regional shared marking information, slave controls 1, 2, and 3 need to use it, that is, slave control 1 calculates the PWM value by itself, synchronizes it to slave control 2 through slave control 1, and synchronizes it to slave control 3 through slave control 2.
[0071] The embodiments of the present invention provide obtaining the target controller corresponding to each temperature point device, synchronizing each PWM value to the target controller, and synchronizing the controllers associated with the temperature point devices, avoiding the problem of resource waste caused by synchronizing all current temperature points to each controller corresponding to the associated and unassociated temperature point devices through the master control.
[0072] Based on the above embodiments, determine the maximum PWM value according to the PWM values of each temperature point device corresponding to the current controller and the target controller, including:
[0073] Determine the PWM values corresponding to each controller, and select the corresponding initial maximum PWM value in each controller;
[0074] Compare each initial maximum PWM value to determine the final maximum PWM value corresponding to the redundant controller as the maximum PWM value.
[0075] Specifically, determine the PWM values corresponding to the current controller and the target controller, select the corresponding initial maximum PWM value from the PWM values in the controller itself, compare the initial maximum PWM values in each controller, and use the final maximum PWM value in the redundant controller as the maximum PWM value. It can be understood that regardless of the marking attribute information and the corresponding synchronization process, finally, select the maximum PWM value by combining the PWM values corresponding to all temperature point data and output it to the fan control unit.
[0076] As an embodiment, when the marking attribute information is area sharing marking information, after synchronizing the PWM values to the target controller and before determining the maximum PWM value according to the PWM values of the temperature point devices corresponding to the current controller and the target controller, it further includes:
[0077] Obtain the first PWM value of the temperature point corresponding to the area sharing marking information determined by the target controller itself;
[0078] Receive the PWM value synchronized by the current controller;
[0079] Judge whether the PWM value is consistent with the first PWM value;
[0080] If they are consistent, enter the step of determining the maximum PWM value according to the PWM values of the temperature point devices corresponding to the current controller and the target controller.
[0081] Specifically, when there is area sharing marking information, it is necessary to additionally compare the PWM values of the controllers sharing the area with the local control area, that is, to judge whether the first PWM value of the temperature point determined by the target controller itself is consistent with the PWM value synchronized by the current controller. If they are consistent, enter the subsequent step of determining the maximum PWM value. If they are not consistent, it means that there is an error in the current controller or the PWM value of the controller, which may be caused by interference in the synchronization process or inaccurate calculation of the PWM value by a certain controller. In this case, the staff needs to conduct a troubleshooting.
[0082] The embodiment of the present invention provides to compare the consistency between the first PWM value of the temperature point determined by the target controller itself and the PWM value synchronized by the current controller, which ensures the accuracy of the subsequent obtained maximum PWM value.
[0083] On the basis of the above embodiment, if there is a temperature point device associated with only one controller, that is, the marking attribute information further includes single-board attribute information;
[0084] When the temperature point device is single-board attribute information, the current controller does not participate in the synchronization process.
[0085] Specifically, when the marking attribute of the temperature point device is the single-board attribute information, the value calculated by the local control of the current controller is directly used and does not participate in the synchronization process. The content synchronized by the present invention is shown in Table 1:
[0086] Table 1 Synchronization Information Table
[0087]
[0088] As an embodiment, synchronize the PWM array that needs to be synchronized by the local control to all other controllers. The data synchronized by other controllers is stored in the corresponding ID array in the large array. That is, after synchronizing each PWM value to the target controller, it further includes:
[0089] Obtain the temperature point device corresponding to each PWM value and the attribution information;
[0090] Map each PWM value, temperature point device, and attribution information and store them in the database corresponding to the redundant controller.
[0091] Specifically, the target controller obtains the temperature point device corresponding to each PWM value and the attribution information, and maps and stores each PWM value, temperature point device, and attribution information in the corresponding database, for example, saves them according to the controller ID.
[0092] When the temperature point device is the single-board attribute information provided by the embodiment of the present invention, the current controller does not participate in the synchronization process, reducing the synchronization times and synchronization resources. At the same time, after the synchronization process, a mapping relationship is established to store the temperature point device, attribution information, and each PWM value in the database corresponding to their respective controllers, making the process more complete and improving the reliability of the synchronized data.
[0093] The above details each embodiment corresponding to the method of fan speed regulation. On this basis, the present invention also discloses a device for fan speed regulation corresponding to the above method. Figure 2 It is a structural diagram of a device for fan speed regulation provided by an embodiment of the present invention. As Figure 2 shown, the device for fan speed regulation includes:
[0094] An acquisition module 11, configured to acquire the temperature point data of each temperature point device connected to the current controller, and determine the corresponding PWM value according to each temperature point data;
[0095] A synchronization module 12, configured to acquire the target controller corresponding to each temperature point device, and synchronize each PWM value to the target controller, where the target controller is the controller other than the current controller in the redundant controller and associated with each temperature point device;
[0096] A determination module 13, configured to determine a maximum PWM value for fan speed regulation according to the PWM values of the temperature point devices corresponding to the current controller and the target controller.
[0097] Since the embodiments of the device part correspond to the above-mentioned embodiments, the embodiments of the device part are described with reference to the embodiments of the above method part and will not be elaborated herein.
[0098] A device for fan speed regulation provided by an embodiment of the present invention includes: obtaining temperature point data of temperature point devices connected to a current controller, and determining corresponding PWM values according to the temperature point data; obtaining target controllers corresponding to the temperature point devices, and synchronizing the PWM values to the target controllers, where the target controller is a controller other than the current controller in a redundant controller and associated with the temperature point devices; determining a maximum PWM value for fan speed regulation according to the PWM values of the temperature point devices corresponding to the current controller and the target controller. This device synchronizes the controllers associated with the temperature point devices, avoiding the problem of resource waste caused by all current temperature points being synchronized to each controller corresponding to the associated and unassociated temperature point devices through the local controller, saving synchronization resources, improving the efficiency of synchronizing data, and at the same time improving the sensitivity of speed regulation.
[0099] Figure 3 The structural diagram of another device for fan speed regulation provided by an embodiment of the present invention is as Figure 3 shown, and the device includes:
[0100] A memory 21, configured to store a computer program;
[0101] A processor 22, configured to implement the steps of the method for fan speed regulation when executing the computer program.
[0102] The device for fan speed regulation provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer, or a desktop computer, etc.
[0103] Among them, the processor 22 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 22 may be implemented in at least one hardware form of a Digital Signal Processor (DSP), a Field-Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA). The processor 22 may also include a main processor and a coprocessor. The main processor is a processor used to process data in the wake state, also known as the CPU; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 22 may be integrated with a Graphics Processing Unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 22 may also include an Artificial Intelligence (AI) processor, which is used to process computational operations related to machine learning.
[0104] The memory 21 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 21 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In this embodiment, the memory 21 is at least used to store the following computer program 211. After the computer program is loaded and executed by the processor 22, it can implement the relevant steps of the fan speed regulation method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 21 may also include an operating system 212 and data 213, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 212 may include Windows, Unix, Linux, etc. The data 213 may include, but is not limited to, the data involved in the fan speed regulation method, etc.
[0105] In some embodiments, the fan speed regulation device may further include a display screen 23, an input / output interface 24, a communication interface 25, a power supply 26, and a communication bus 27.
[0106] Those skilled in the art can understand that Figure 3 the structure shown in
[0107] does not constitute a limitation on the fan speed regulation device, and may include more or fewer components than shown in the figure.
[0108] A device for regulating the speed of a fan provided by an embodiment of the present invention includes: obtaining temperature point data of each temperature point device connected to the current controller, and determining corresponding PWM values according to the temperature point data of each temperature point; obtaining the target controller corresponding to each temperature point device, and synchronizing each PWM value to the target controller, where the target controller is a controller in the redundant controller other than the current controller and associated with each temperature point device; determining the maximum PWM value according to the PWM values of each temperature point device corresponding to the current controller and the target controller for use in regulating the speed of the fan. This device synchronizes the controllers associated with the temperature point devices, avoiding the problem of resource waste caused by all current temperature points being synchronized to each controller corresponding to the associated and unassociated temperature point devices through the master controller, saving synchronization resources, improving the efficiency of synchronizing data, and at the same time improving the sensitivity of speed regulation.
[0109] Further, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor 22, the steps of the method for regulating the speed of the fan as described above are implemented.
[0110] It can be understood that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or 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 executes all or part of the steps of the methods described in various embodiments of the present invention. And the foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.
[0111] For the introduction of a computer-readable storage medium provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated herein. It has the same beneficial effects as the above method for regulating the speed of the fan.
[0112] As an embodiment, the implementation process can be as follows:
[0113] 1. Obtain the temperature values of all temperature points participating in regulation, as well as the alarm and error status.
[0114] 2. Select and calculate the PWM value of the temperature point according to the fru_type and the master-slave status of the master controller, and write the PWM value to be synchronized into the array to be synchronized according to the fru_type.
[0115] 3. Traverse all temperature points participating in speed regulation, and select the maximum PWM among all temperature points participating in speed regulation. Among them, when the fru_type in the slave controller is globally shared, the globally shared PWM of the same fru_type synchronized from the master controller is used. For region sharing, it is necessary to additionally compare the region-shared PWM of the same fru_type of the controller shared with the local control region.
[0116] 4. Write the calculated final output PWM value into the fan control module.
[0117] 5. Synchronize the PWM array that needs to be synchronized in the local control to all other controllers. The data synchronized by other controllers is saved in the corresponding ID array in the large array.
[0118] The above has introduced in detail a method for fan speed regulation, a device for fan speed regulation, and a medium provided by the present invention. The various embodiments in the specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same or similar parts among 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 description of the method part. It should be noted that for those of ordinary skill in the art in the technical field, without departing from the principle of the present invention, several improvements and modifications can still be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
[0119] It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.
Claims
1. A method for regulating the speed of a fan, characterized in that, Including: Obtain the temperature point data of each temperature point device connected to the current controller, and determine the corresponding PWM value according to each of the temperature point data; Obtain the target controller corresponding to each of the temperature point devices, and synchronize each of the PWM values to the target controller, where the target controller is a controller in the redundant controller other than the current controller and associated with each of the temperature point devices; Determine the maximum PWM value according to the PWM values of each of the temperature point devices corresponding to the current controller and the target controller for the fan speed regulation.
2. The method for regulating the speed of a fan according to claim 1, wherein The obtaining the target controller corresponding to each of the temperature point devices includes: Obtain the temperature point device and the corresponding attribution information, where the attribution information is the device information of the temperature point device stored in advance and the serial number of the associated controller corresponding to the device information; Determine the target controller associated with the current controller according to the attribution information.
3. The method for adjusting the fan speed according to claim 2, wherein, The synchronizing each of the PWM values to the target controller includes: Determine the marking attribute information of the corresponding temperature point according to the attribution information, where the marking attribute information is global shared marking information or regional shared marking information; Determine the synchronization priority order according to the marking attribute information; Synchronize each of the PWM values to the target controller according to the synchronization priority order.
4. The method for regulating the speed of a fan according to claim 3, wherein, The determining the maximum PWM value according to the PWM values of each of the temperature point devices corresponding to the current controller and the target controller includes: Determine the PWM values corresponding to each controller, and select the corresponding initial maximum PWM value in each of the controllers; Compare each of the initial maximum PWM values to determine the final maximum PWM value corresponding to the redundant controller as the maximum PWM value.
5. The method for regulating the speed of a fan according to claim 3, characterized in that, When the marking attribute information is the regional shared marking information, after the synchronizing each of the PWM values to the target controller and before the determining the maximum PWM value according to the PWM values of each of the temperature point devices corresponding to the current controller and the target controller, it further includes: Obtain the first PWM value of the temperature point corresponding to the regional shared marking information determined by the target controller itself; Receive the PWM value synchronized by the current controller; Judge whether the PWM value is consistent with the first PWM value; If they are consistent, enter the step of determining the maximum PWM value according to the PWM values of each of the temperature point devices corresponding to the current controller and the target controller.
6. The method for regulating the speed of a fan according to claim 5, characterized in that, The marking attribute information further includes single board attribute information; When the temperature point device is the single board attribute information, the current controller does not participate in the synchronization process.
7. The method for regulating the speed of a fan according to any one of claims 2 to 6, characterized in that, After the synchronizing each of the PWM values to the target controller, it further includes: Obtain the temperature point device corresponding to each of the PWM values and the attribution information; Map each of the PWM values, the temperature point device, and the attribution information and store them in the database corresponding to the redundant controller.
8. A device for regulating the speed of a fan, characterized in that, Including: An obtaining module, configured to obtain the temperature point data of each temperature point device connected to the current controller, and determine the corresponding PWM value according to each of the temperature point data; A synchronization module, configured to obtain the target controllers corresponding to the temperature point devices respectively, and synchronize each of the PWM values to the target controllers, where the target controllers are the controllers other than the current controller in the redundant controller and associated with each of the temperature point devices; A determination module, configured to determine the maximum PWM value for the fan speed regulation according to the PWM values of the temperature point devices corresponding to the current controller and the target controllers.
9. A device for adjusting the speed of a fan, characterized in that, Comprising: A memory, configured to store a computer program; A processor, configured to implement the steps of the method for fan speed regulation according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for fan speed regulation according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Fan regulation and control method, system and equipment of server and medium
CN114115490A
Data synchronization method and device for redundant firmware and medium
CN115576705A