Fan control method, computer program product, device and storage medium
By calculating the target fan speed and duty cycle, the correspondence between multiple high-level times and control status values is determined, and the control status value combination of multiple pulse width modulation signal groups is formed, which solves the problem that the existing fan control interface cannot effectively transmit more information, realizes multiple transmission of fan control information, and improves the reliability of the server.
Patent Information
- Application Number
- CN202411912834.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2044-12-24
AI Technical Summary
The existing fan control interface cannot effectively transmit more information, resulting in insufficient regulation of the server cooling system, affecting the reliability of the server.
By calculating the standard high-level time of the target fan speed, measuring the resolution of the fan duty cycle and the period of the pulse width modulation signal, the target difference value is calculated, and the corresponding relationship between multiple high-level times and the control state value is determined, forming a combination of control state values of multiple pulse width modulation signal groups to realize the transmission of multiple control information of the fan.
Without changing the server system structure, different fan control information is characterized by combining different control status values of multiple pulse width modulation signal groups, multiple transmission of fan control information is realized, and the reliability of the server is improved.
Smart Images

Figure CN119353251B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a fan control method, a computer program product, a device and a storage medium. Background Art
[0002] The efficient and stable operation of the server cooling system is crucial to the server. The cooling system of the air-cooled server is usually composed of multiple internal cooling fans. In order to meet the refined control requirements of the server cooling system, it is necessary to obtain detailed operating status data of the cooling fan, which requires the control interface between the fan controller and the fan to be able to transmit data.
[0003] The traditional fan control interface uses two signal lines, PWM (pulse width modulation signal) and TACH (fan speed feedback signal), for fan speed regulation and speed feedback, and cannot transmit more information. In related technologies, additional communication lines are mainly added between the fan and the fan controller to achieve more information transmission between the fan controller and the fan. However, adding signal lines to the fan control cable and changing the fan connector to achieve more information transmission between the fan controller and the fan can easily lead to incompatibility of the server system and reduce the reliability of the server system. Summary of the invention
[0004] Based on this, it is necessary to provide a fan control method, computer program product, device and storage medium that can improve server reliability in response to the above technical problems.
[0005] In order to solve the above technical problems, in a first aspect, a fan control method is provided, the method comprising:
[0006] Calculate the standard high level time of the pulse width modulation signal based on the fan target speed;
[0007] Calculating a target difference value based on a measurement resolution of a fan duty cycle measurement unit and a period of a pulse width modulation signal;
[0008] Determine the corresponding relationship between a plurality of high level times and a plurality of control state values according to the target difference and the standard high level time;
[0009] Determine a control state value combination of each pulse width modulation signal group in a plurality of pulse width modulation signal groups based on a correspondence between a plurality of high level times and a plurality of control state values, wherein the control state value combination of each pulse width modulation signal group has a function definition of the control state value combination of the corresponding pulse width modulation signal group;
[0010] Obtain a functional definition of a target control state value combination that matches the fan control information, determine the target control state value combination based on the functional definition of the target control state value combination, assemble the target control state value combination according to a preset rule to form a pulse width modulation signal sequence group, and control the fan based on the pulse width modulation signal sequence group.
[0011] In one embodiment, calculating the standard high level time of the pulse width modulation signal based on the fan target speed includes:
[0012] The rated speed of the fan is obtained, the fan target speed is used as the dividend, the fan rated speed is used as the divisor, and the quotient obtained by dividing the fan target speed by the fan rated speed is used as the standard duty cycle;
[0013] The period of the pulse width modulation signal is obtained, and the product obtained by multiplying the standard duty cycle and the period of the pulse width modulation signal is used as the standard high level time of the pulse width modulation signal.
[0014] In one embodiment, calculating the target difference based on the measurement resolution of the fan duty cycle measurement unit and the period of the pulse width modulation signal includes:
[0015] The measurement resolution of the fan duty cycle measurement unit and the period of the pulse width modulation signal are multiplied to obtain a target difference value.
[0016] In one embodiment, the method further includes: the multiple high-level times include a first high-level time, a second high-level time, and a third high-level time; the multiple control state values include a first control state value, a second control state value, and a third control state value; the multiple high-level times are determined according to the target difference and the standard high-level time; and establishing a correspondence between the multiple high-level times and the multiple control state values includes:
[0017] Taking the standard high level time as the minuend and the target difference as the subtrahend, subtracting the standard high level time from the target difference to obtain the first high level time, and establishing a corresponding relationship between the first high level time and the first control state value;
[0018] Taking the standard high level time as the second high level time, and establishing a corresponding relationship between the second high level time and the second control state value;
[0019] The standard high level time and the target difference are added to obtain the third high level time, and a corresponding relationship between the third high level time and the third control state value is established.
[0020] In one embodiment, each pulse width modulation signal group includes a plurality of pulse width modulation signals, and a control state value combination of each pulse width modulation signal group in the plurality of pulse width modulation signal groups is determined based on a correspondence between a plurality of high level times and a plurality of control state values, including:
[0021] Obtaining a high level time corresponding to each pulse width modulation signal among a plurality of pulse width modulation signals;
[0022] Find a target high level time that matches the high level time corresponding to each pulse width modulation signal from the correspondence between the multiple high level times and the multiple control state values, and obtain the target control state value corresponding to the target high level time;
[0023] The target control state value corresponding to each pulse width modulation signal is combined according to the arrangement order of each pulse width modulation signal of the plurality of pulse width modulation signals in each pulse width modulation signal group to obtain a control state value combination of each pulse width modulation signal group.
[0024] In one embodiment, the method further comprises:
[0025] A correspondence between the control state value combination of each pulse width modulation signal group and the functional definition of the control state value combination of each pulse width modulation signal group is established, and the correspondence between the control state value combination of each pulse width modulation signal group and the functional definition of the control state value combination of each pulse width modulation signal group is stored in a first preset table.
[0026] In one embodiment, obtaining a function definition of a target control state value combination matching the fan control information, and determining the target control state value combination based on the function definition of the target control state value combination includes:
[0027] Obtaining a first preset table, and determining whether a function definition of a control state value combination of a pulse width modulation signal group consistent with the fan control information can be found in the first preset table;
[0028] If yes, searching the first preset table for the function definition of the first control state value combination of the pulse width modulation signal group consistent with the fan control information, and taking the control state value combination corresponding to the function definition of the first control state value combination as the first control state value combination;
[0029] Determining whether there is any fan control information that is not found in the first preset table and is consistent with the functional definition of the control state value combination of the pulse width modulation signal group;
[0030] If yes, the fan control information that is not found in the first preset table to be consistent with the functional definition of the control state value combination of the pulse width modulation signal group and the functional definition of the control state value combination of the pulse width modulation signal group are input into the deep model for feature extraction to obtain fan control features and control state value functional features;
[0031] Calculate the similarity value of the fan control feature and the control state value function feature;
[0032] When the similarity value is greater than a preset threshold, the function definition of the control state value combination corresponding to the similarity value is used as the function definition of the second control state value combination, and the control state value combination corresponding to the function definition of the second control state value combination is used as the second control state value combination;
[0033] A target control state value combination is determined based on the first control state value combination and the second control state value combination.
[0034] In one embodiment, the target control state values are combined and assembled according to a preset rule to form a pulse width modulation signal sequence group, and the fan is controlled based on the pulse width modulation signal sequence group, including:
[0035] Obtaining a target control state value combination of each pulse width modulation signal group in a plurality of pulse width modulation signal groups and a function definition of a target control state value combination corresponding to the target state value combination;
[0036] Acquire multiple pulse width modulation signal group numbers, form a pulse width modulation signal sequence group based on the multiple pulse width modulation signal group numbers, the target control state value combination and the function definition of the target control state value combination, and send the pulse width modulation signal sequence group to the first duty cycle measurement unit at the fan end through the pulse width modulation signal generator;
[0037] In response to the first duty cycle measurement unit receiving the pulse width modulation signal sequence group, the pulse width modulation signal sequence group is parsed to obtain the fan target speed and fan control information, and the fan is regulated according to the fan target speed and the fan control information.
[0038] In one embodiment, parsing the pulse width modulation signal sequence group to obtain a fan target speed and fan control information, and regulating the fan according to the fan target speed and the fan control information includes:
[0039] In response to the first duty cycle measurement unit at the fan end receiving the pulse width modulation signal sequence group, parsing the pulse width modulation signal sequence group to obtain fan control information and a control state value combination of each pulse width modulation signal group in a plurality of pulse width modulation signal groups corresponding to the pulse width modulation signal sequence group;
[0040] Determine the high level time corresponding to each pulse width modulation signal of the plurality of pulse width modulation signals in each pulse width modulation signal group based on the control state value combination of each pulse width modulation signal group;
[0041] Calculating a duty cycle of each pulse width modulation signal based on a high level time corresponding to each pulse width modulation signal among a plurality of pulse width modulation signals;
[0042] Performing mean filtering on the duty cycle of a pulse width modulation signal among the plurality of pulse width modulation signals to obtain a target duty cycle;
[0043] The fan target speed is calculated based on the target duty cycle, and the fan is regulated according to the fan target speed and the fan control information.
[0044] In one embodiment, the method further includes: after regulating the target fan according to the fan speed and the fan control information, the method further includes:
[0045] Monitor the fan speed in real time, obtain the actual fan speed, and calculate the period of the fan speed feedback signal based on the actual fan speed;
[0046] Obtaining a duty cycle value of each fan speed feedback signal in the fan speed feedback signal group through a timer;
[0047] Obtaining a second preset table, wherein the second preset table stores a correspondence between a duty cycle value of each fan speed feedback signal in the fan speed feedback signal group and a function definition of each fan speed feedback signal;
[0048] Acquire the fan return data, search for a target fan speed feedback signal function definition that matches the fan return data from a second preset table, and determine a duty cycle value combination of the target fan speed feedback signal based on the target fan speed feedback signal function definition;
[0049] A fan speed feedback signal sequence group is generated based on a duty cycle value combination of a target fan speed feedback signal and a target fan speed feedback signal function definition, and the fan speed feedback signal sequence group is sent to a fan controller end.
[0050] In one embodiment, generating a fan speed feedback signal sequence group based on a duty cycle value combination of a target fan speed feedback signal and a target fan speed feedback signal function definition includes:
[0051] The serial number of each fan speed feedback signal in the fan speed feedback signal group is obtained, and a fan speed feedback signal sequence group is generated based on the serial number of the fan speed feedback signal, a duty cycle value combination of the target fan speed feedback signal, and a target fan speed feedback signal function definition.
[0052] In one embodiment, after sending the fan speed feedback signal sequence group to the fan controller end, the method includes:
[0053] In response to the second duty cycle measurement unit at the fan controller receiving the fan speed feedback signal sequence group sent by the fan speed feedback signal generator at the fan end, the fan controller parses the fan speed feedback signal sequence group to obtain the actual fan speed and fan return data.
[0054] In order to solve the above technical problem, in a second aspect, a computer program product is provided, including a computer program, which implements the steps of the method in the first aspect when executed by a processor.
[0055] In order to solve the above technical problem, a third aspect provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: the processor implements the steps of the above first aspect method when executing the computer program.
[0056] In order to solve the above technical problems, in a fourth aspect, the present application 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 of the above first aspect are implemented.
[0057] Different from the related art, the present application calculates the standard high level time of the pulse width modulation signal based on the fan target speed; calculates the target difference based on the measurement resolution of the fan duty cycle measurement unit and the period of the pulse width modulation signal; determines the correspondence between multiple high level times and multiple control state values according to the target difference and the standard high level time; determines the control state value combination of each pulse width modulation signal group in the multiple pulse width modulation signal groups based on the correspondence between the multiple high level times and the multiple control state values, and the control state value combination of each pulse width modulation signal group has the functional definition of the control state value combination of the corresponding pulse width modulation signal group; obtains the functional definition of the target control state value combination matching the fan control information, determines the target control state value combination based on the functional definition of the target control state value combination, and assembles the target control state value combination according to the preset rules to form a pulse width modulation signal sequence group, and controls the fan based on the pulse width modulation signal sequence group. In this way, without changing the server system structure, different fan control information is represented by different control state value combinations of the pulse width modulation signal groups in the multiple pulse width modulation signal groups, so as to realize the transmission of multiple fan control information, which can save costs and improve server reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 A schematic diagram of the structure of a fan control system in one embodiment;
[0059] Figure 2 is a flow chart of a fan control method in one embodiment;
[0060] Figure 3 A schematic diagram of a pulse width modulation signal and a fan speed feedback signal waveform in the prior art;
[0061] Figure 4 is a waveform diagram of a pulse width modulation signal in one embodiment;
[0062] Figure 5 A schematic diagram of a fan speed feedback signal waveform in one embodiment;
[0063] Figure 6 is a flow chart of a fan control method according to another embodiment;
[0064] Figure 7 is a structural block diagram of a fan control device in one embodiment;
[0065] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0066] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0067] In the prior art, a fan controller sends a PWM signal (pulse width modulation signal) with a fixed frequency and adjustable duty cycle to the cooling fan through a PWM signal line (pulse width modulation signal transmission line). The cooling fan measures the duty cycle value corresponding to the PWM signal to control the cooling fan speed, and sends a TACH signal (fan speed feedback signal) with a variable frequency through a TACH signal line (fan speed feedback signal transmission line). The fan controller measures the TACH signal frequency and converts it to obtain the actual speed of the fan.
[0068] Based on the existing fan control interface, only two speed information, namely the target speed and the actual speed, are transmitted between the fan controller and the cooling fan, and no more information can be transmitted.
[0069] With the development of technology, the requirements for fan control are getting higher and higher. Simply transmitting two speed information, namely the target speed and the actual speed, can no longer meet the requirements. Usually, if you want to transmit more information between the fan controller and the fan, the common way is to add additional communication lines, but it is necessary to change the fan control cable and fan connector, which may easily lead to incompatibility with the existing server system.
[0070] In view of the above technical problems, the present application proposes a fan control method, which is applied to a fan control system. The fan control system in the present application is as follows: Figure 1 shown.
[0071] The fan control system of the present application includes a fan controller and a fan, wherein a first duty cycle test unit (duty cycle measurement unit) and a fan speed feedback signal generator (frequency generator) are provided on the fan, and a pulse width modulation signal generator (PWM generator) and a second duty cycle test unit (frequency measurement unit) are provided on the fan controller. The fan controller transmits the processed total pulse width modulation signal in the present application to the fan through a pulse width modulation signal (including a pulse width modulation signal sequence group) transmission line formed by the pulse width modulation signal generator with the first duty cycle test unit, and the fan transmits the processed total fan speed feedback signal (including a fan speed feedback signal sequence group) in the present application to the fan controller through a fan speed feedback signal transmission line formed between the fan speed feedback signal generator and the second duty cycle test unit.
[0072] Among them, the pulse width modulation signal generator (PWM generator) and the fan speed feedback signal generator (frequency generator) play the role of sending signals, and the first duty cycle test unit and the second duty cycle test unit receive the signals sent by the generator and analyze the signals. Pulse width modulation signal (PWM) is an analog signal level digital encoding method, which adjusts the changes of signals, energy, etc. by adjusting the changes in duty cycle. TACH signal, the full name is tachometer, also known as FG (Frequency Generator) signal, is mainly used to output a square wave signal with variable frequency, and is widely used in the speed measurement of fans and other rotating equipment.
[0073] In the present application, there is no need to change the structure of the existing fan cable and connector. Based on the existing pulse width modulation signal transmission line and fan speed feedback signal transmission line, data transmission between the fan controller and the fan is achieved, which is conducive to cost saving.
[0074] In one embodiment, Figure 2 As shown, the present application provides a fan control method, which specifically includes the following steps:
[0075] Step 101: Calculate a standard high level time of a pulse width modulation signal based on a target speed of the fan.
[0076] First, the fan controller receives the fan control instruction and parses it to obtain the fan target speed and fan control information of the fan control instruction. The fan target speed here refers to the number of fan blades that the fan is expected to rotate per minute. The fan control information may include the direction of the fan, the power consumption of the fan, the position of the fan, and other information in addition to the fan speed.
[0077] The pulse width modulation signal transmission line can be used to transmit the fan speed, but it cannot directly transmit fan control information other than the fan speed, such as the fan direction, the fan power consumption, etc. This step extracts the fan target speed and the fan control information during the analysis, so as to facilitate the processing and integration of the fan target speed and the fan control information respectively.
[0078] See also Figure 3 (a) in FIG. 1 shows the pulse width modulation signal (PWM signal) waveform of the existing fan control interface. The PWM signal period sent by the fan controller is fixed, and the fan target speed is set by adjusting the duty cycle. Fan target speed ; Wherein, duty cycle Duty = high level time Th / period Tp of PWM signal. Generally, the high level time of the PWM signal in each adjacent period is Th, that is, the duty cycle of the PWM signal in each adjacent period is also the same.
[0079] See also Figure 3 (b) in FIG. 1 shows the fan speed feedback signal (TACH signal) waveform of the existing fan control interface. The cooling fan changes the frequency of the TACH signal according to the actual fan speed. The actual fan speed N = 60 / a TACH signal cycle T. A TACH signal cycle contains two square waves, that is, a TACH signal cycle .
[0080] From the above description, it can be seen that in this step, the fan rated speed (fan rated maximum speed) can be obtained, the fan target speed is used as the dividend, the fan rated speed is used as the divisor, and the quotient obtained by dividing the fan target speed by the fan rated speed is used as the standard duty cycle.
[0081] By acquiring the period of the pulse width modulation signal, a product obtained by multiplying the standard duty cycle and the period of the pulse width modulation signal is used as the standard high level time of the pulse width modulation signal.
[0082] Step 102: Calculate a target difference based on a measurement resolution of a fan duty cycle measurement unit and a period of a pulse width modulation signal.
[0083] Specifically, the measurement resolution of the fan duty cycle measurement unit and the period of the pulse width modulation signal are multiplied to obtain the target difference. The fan duty cycle measurement unit may be a device or component capable of obtaining the duty cycle corresponding to the pulse width modulation signal based on the pulse width modulation signal.
[0084] See also Figure 4 In this application, the total pulse width modulation signal transmitted to the fan is divided into multiple pulse width modulation signal groups (such as PWM Group 1 and PWM Group 2 in the figure), and each pulse width modulation signal group includes multiple pulse width modulation signals. For example, PWM Group 1 includes a total of (n+1) pulse width modulation signals from Th0 to Thn. The periods of each pulse width modulation signal are the same, all Tp, but the high level time is different. Among them, the high level time corresponding to the 0th pulse width modulation signal is Th0. In this application, Th0 is set as the standard high level time. The high level time corresponding to the 1st pulse width modulation signal to the nth pulse width modulation signal is represented by (Thx).
[0085] x∈[1~n] indicates that x is any pulse width modulation signal from 1 to n pulse width modulation signals. The formula for calculating the target difference is as follows:
[0086] ;
[0087] Wherein, Δt is the target difference, k is the measurement resolution of the fan duty cycle measurement unit, which can be the minimum measurement resolution of the fan duty cycle measurement unit, and Tp is the period of the pulse width modulation signal.
[0088] Step 103: determining a correspondence between a plurality of high-level times and a plurality of control state values according to the target difference and the standard high-level time.
[0089] Step 104, determining a control state value combination of each pulse width modulation signal group in a plurality of pulse width modulation signal groups based on a correspondence between a plurality of high level times and a plurality of control state values, wherein the control state value combination of each pulse width modulation signal group has a functional definition of the control state value combination of the corresponding pulse width modulation signal group.
[0090] Step 105, obtaining a functional definition of a target control state value combination that matches the fan control information, determining a target control state value combination based on the functional definition of the target control state value combination, and assembling the target control state value combination according to a preset rule to form a pulse width modulation signal sequence group, and regulating the fan based on the pulse width modulation signal sequence group.
[0091] Specifically, the multiple high level times include a first high level time, a second high level time and a third high level time, the multiple control state values include a first control state value, a second control state value and a third control state value, the multiple high level times are determined according to the target difference and the standard high level time, and the corresponding relationship between the multiple high level times and the multiple control state values is established, including: taking the standard high level time as the minuend and the target difference as the subtrahend, subtracting the standard high level time and the target difference to obtain the first high level time, and establishing the corresponding relationship between the first high level time and the first control state value; taking the standard high level time as the second high level time, and establishing the corresponding relationship between the second high level time and the second control state value; adding the standard high level time and the target difference to obtain the third high level time, and establishing the corresponding relationship between the third high level time and the third control state value.
[0092] In the present application, a plurality of high-level times (Thx) obtained by adding and subtracting the standard high-level time and the target difference can be used as a basis to establish a correspondence between a plurality of high-level times and a plurality of control state values, so as to characterize each pulse width modulation signal group by the correspondence between a plurality of high-level times and a plurality of control state values.
[0093] In a specific implementation, the generation process of various high level times is as follows:
[0094]
[0095] In this application, the first control state value is 0, the second control state value is Z, and the third control state value is 1. It can be understood that the specific values of the first control state value, the second control state value, and the third control state value can be set according to actual needs. This application does not limit the specific values of the first control state value, the second control state value, and the third control state value.
[0096] The first control state value may be represented by a valid state 0, the second control state value may be represented by an invalid state Z, and the third control state value may be represented by a valid state 1. Therefore, each pulse width modulation signal in each pulse width modulation signal group may be represented by a combination of multiple control state values, and each pulse width modulation signal may be set to start and end with an invalid state Z, and contain n (n≥0) valid states (valid state 0 or valid state 1) in between.
[0097] Let the duty cycle mean DutyRef = standard high level time Th0 / pulse width modulation signal period Tp. In order to make the duty cycle mean of the entire pulse width modulation signal group equal to the duty cycle mean, it is necessary to satisfy (Th1+Th2+Th3+...+Thn) / n=Th0, that is, the mean of the sum of the high level times of all pulse width modulation signals in each pulse width modulation signal group needs to be the standard high level time.
[0098] To meet the above conditions, it can be known that the number of first control state values 0 and third control state values 1 in a pulse width modulation signal group must be equal, that is, Num (valid state 0) = Num (valid state 1) = n / 2, where n is an even number.
[0099] Taking the pulse width modulation signal group with n=6 as an example, the number of the first control state value 0 and the third control state value 1 are both 3, and a pulse width modulation signal group with n=6 can be listed. The specific different control state value combinations that can be represented are shown in Table 1.
[0100]
[0101] Table 1
[0102] Specifically, in the present application, by setting the high level time (Thx) corresponding to each pulse width modulation signal in a plurality of pulse width modulation signals, x∈[1~n], the high level time corresponding to each pulse width modulation signal in a total of n pulse width modulation signals Th1~Thn is obtained, and a target high level time matching the high level time corresponding to each pulse width modulation signal is searched from the correspondence between the plurality of high level times and the plurality of control state values, and a target control state value corresponding to the target high level time is obtained; the target control state value corresponding to each pulse width modulation signal is combined according to the arrangement order of each pulse width modulation signal of the plurality of pulse width modulation signals in each pulse width modulation signal group, to obtain a control state value combination of each pulse width modulation signal group.
[0103] For example, the high level time corresponding to the first pulse width modulation signal is A. From the correspondence between multiple high level times and multiple control state values, find out which of the first high level time, the second high level time, and the third high level time the high level time A corresponds to. Assuming that the high level time corresponds to the first high level time, write the control state value 0 corresponding to the first high level time in the position of the first pulse width modulation signal in the pulse width modulation signal group where it is located, and so on, until the target control state value corresponding to each pulse width modulation signal is found. As shown in Table 1, n=6, then the target control state values corresponding to n+1 pulse width modulation signals are obtained. Assuming that the target control state values corresponding to the n+1 pulse width modulation signals are all Z, the control state value combination generated for each pulse width modulation signal group is "ZZZZZZZ".
[0104] Further, the target control state value combination of each pulse width modulation signal group in the multiple pulse width modulation signal groups and the functional definition of the target control state value combination corresponding to the target state value combination are obtained. Table 1 is a form of the first preset table, which stores the corresponding relationship between the control state value combination of each pulse width modulation signal group and the functional definition of the control state value combination of each pulse width modulation signal group. The functional definition of the control state value combination of the pulse width modulation signal group shown in Table 1 includes: 1 empty state, which is the PWM signal state when the communication is idle; 2 start and end flags, which are used to indicate the start and end of the PWM Group command; 2 read and write flags, which are used to indicate the type of the PWM Group command; 16 numerical values (hexadecimal 0-F) are used to form a pulse width modulation signal sequence group.
[0105] Specifically, the fan control information and the first preset table can be obtained to determine whether the function definition of the control state value combination of the pulse width modulation signal group that is consistent with the fan control information can be found in the first preset table. If it cannot be found, the fan control information that is not found in the first preset table that is consistent with the function definition of the control state value combination of the pulse width modulation signal group and the function definition of the control state value combination of the pulse width modulation signal group are directly input into the deep model for feature extraction to obtain fan control features and control state value function features; the similarity value of the fan control features and the control state value function features is calculated, and when the similarity value is greater than a preset threshold, the function definition of the control state value combination corresponding to the similarity value is used as the function definition of the target control state value combination.
[0106] If it can be found, the function definition of the first control state value combination of the pulse width modulation signal group consistent with the fan control information is searched in the first preset table, and the control state value combination corresponding to the function definition of the first control state value combination is used as the first control state value combination. It is further determined whether there is fan control information that is not found in the first preset table and is consistent with the function definition of the control state value combination of the pulse width modulation signal group.
[0107] If not, it means that the function definition of the first control state value combination of the pulse width modulation signal group consistent with all the fan control information can be found in the first preset table, and the first control state value combination is directly output as the target control state combination.
[0108] If so, it means that some fan control information cannot be directly found in the first preset table. At this time, the fan control information that is not found in the first preset table and is consistent with the functional definition of the control state value combination of the pulse width modulation signal group and the functional definition of the control state value combination of the pulse width modulation signal group can be input into the deep model for feature extraction to obtain fan control features and control state value functional features; calculate the similarity value of the fan control features and the control state value functional features.
[0109] The fan control feature can be subjected to feature extraction to obtain a first feature vector, and the control state value function feature can be subjected to vector extraction to obtain a second feature vector.
[0110] The spatial distance between the first eigenvector and the second eigenvector may be calculated, and the calculated spatial distance may represent a similarity value between the first eigenvector and the second eigenvector.
[0111] In this embodiment, if the spatial distance between the first eigenvector and the second eigenvector is larger, it means that the similarity value of the fan control feature and the control state value function feature is lower. Conversely, if the spatial distance between the first eigenvector and the second eigenvector is smaller, it means that the similarity value of the fan control feature and the control state value function feature is higher. Optionally, the spatial distance can be Euclidean distance, Chebyshev distance, Minkowski distance, Manhattan distance or cosine distance, etc., which is not limited here.
[0112] When the similarity value is greater than a preset threshold, the function definition of the control state value combination corresponding to the similarity value is used as the function definition of the second control state value combination, and the control state value combination corresponding to the function definition of the second control state value combination is used as the second control state value combination; based on the first control state value combination and the second control state value combination, a target control state value combination is determined, so that the fan control information is accurately matched with the function definition of the control state value combination at multiple levels to obtain the function definition of the target control state value combination, and the target control state value combination is obtained based on the function definition of the control state value combination, thereby realizing accurate transmission of the fan control information.
[0113] A plurality of pulse width modulation signal group numbers are obtained, a pulse width modulation signal sequence group is formed based on the plurality of pulse width modulation signal group numbers, a target control state value combination and a functional definition of the target control state value combination, and the pulse width modulation signal sequence group is sent to a first duty cycle measurement unit at the fan end through a pulse width modulation signal generator. In response to the first duty cycle measurement unit receiving the pulse width modulation signal sequence group, the pulse width modulation signal sequence group is parsed to obtain a fan target speed and fan control information, and the fan is regulated according to the fan target speed and the fan control information.
[0114] Exemplarily, the pulse width modulation signal sequence group may be as shown in Table 2:
[0115]
[0116] Table 2
[0117] As can be seen from Table 2, according to the order of arrangement of the serial numbers of multiple pulse width modulation signal groups, the corresponding target control state value combinations and the functional definitions of the target control state value combinations are assembled to form a pulse width modulation signal sequence group, and the total pulse width modulation signal finally sent to the fan end is generated based on the pulse width modulation signal sequence group. In this way, the fan controller can transmit a command composed of multiple (pulse width modulation signal groups) PWM Groups to the fan through a pulse width modulation signal transmission line that transmits a pulse width modulation signal. The command format is shown in Table 2. The function definition of the control state value combination corresponding to PWM Group 1 is a command start flag, the function definition of the control state value combination corresponding to PWM Group 2 is a command read and write flag, PWM Group 3 and PWM Group 4 form a command value with a length of 8 bits, and the length of the command value can be increased or decreased according to actual needs. The function definition of the control state value combination corresponding to PWM Group 5 is a command end flag, which realizes the transmission of multiple control information.
[0118] After the first duty cycle test unit at the fan end receives the pulse width modulation signal sequence group, the pulse width modulation signal sequence group can be parsed to obtain fan control information and a control state value combination of each pulse width modulation signal group in the multiple pulse width modulation signal groups corresponding to the pulse width modulation signal sequence group. Based on the control state value combination of each pulse width modulation signal group, the high level time corresponding to each pulse width modulation signal in the multiple pulse width modulation signals in each pulse width modulation signal group is determined; based on the high level time corresponding to each pulse width modulation signal in the multiple pulse width modulation signals, the duty cycle of each pulse width modulation signal is calculated; the duty cycles of all pulse width modulation signals in the multiple pulse width modulation signals are mean filtered to obtain a target duty cycle; based on the target duty cycle, the fan target speed is calculated, and the fan is regulated according to the fan target speed and the fan control information.
[0119] For example, by parsing the pulse width modulation signal sequence group in Table 2, multiple control state value combinations (Z000111; Z110011 or Z110100; Z001011 to Z110001; Z001011 to Z110001; Z111000) corresponding to multiple pulse width modulation signal groups (PWM Group 1, PWM Group 2, PWM Group 3, PWM Group 4, PWM Group 5) in Table 2 can be obtained.
[0120] Taking PWM Group 1 as an example, its corresponding control state value combination is "Z000111", which means that PWM Group 1 includes 7 pulse width modulation signals, the high level time Th0 corresponding to the 0th pulse width modulation signal is Th0 corresponding to the second control state value Z, and the high level time Th1 corresponding to the 1st pulse width modulation signal is Th1 corresponding to the first control state value 0. ...The high level time Th6 corresponding to the seventh pulse width modulation signal is the high level time Th6 corresponding to the third control state value 1 In this way, the high level time corresponding to each pulse width modulation signal in the multiple pulse width modulation signals in each pulse width modulation signal group is obtained. Based on the duty cycle calculation formula: Duty = high level time Th / PWM signal period Tp, the duty cycle of each pulse width modulation signal is calculated, and the duty cycle of the pulse width modulation signal in the multiple pulse width modulation signals is average filtered to obtain the target duty cycle. The average filter is a typical linear filtering algorithm, which means that a template is given to the target pixel on the image, and the template includes the surrounding adjacent pixels (8 pixels around the target pixel as the center, forming a filtering template, that is, including the target pixel itself), and then the average value of all pixels in the template is used to replace the original pixel value; that is, in the fan, the first duty cycle measurement unit will average filter the measured target duty cycle. Although there are differences in the duty cycles corresponding to the pulse width modulation signals in each pulse width modulation signal group, the duty cycle obtained after the average filter is still the target duty cycle. The fan target speed is calculated based on the target duty cycle, and the fan is regulated according to the fan target speed and fan control information.
[0121] In one embodiment, the fan target speed and fan control information obtained by parsing the first duty cycle measurement unit can be represented as the first fan target speed and the first fan control information; the fan controller receives the fan control instruction, and the fan target speed and fan control information obtained by parsing the fan control instruction are represented as the second fan target speed and the second fan control information, and it is determined whether the first fan target speed and the second fan target speed are consistent, and whether the first fan control information is consistent with the second fan control information; when the first fan target speed and the second fan target speed are consistent and the first fan control information is consistent with the second fan control information, the fan is regulated according to the first fan target speed and the first fan control information; if the first fan target speed and the second fan target speed are inconsistent and / or the first fan control information is inconsistent with the second fan control information, an alarm instruction is triggered to suspend the operation of regulating the fan according to the first fan target speed and the first fan control information; at this time, the display can display the alarm information, and the operator can perform troubleshooting according to the alarm information, thereby further improving the reliability of the fan control system.
[0122] In the prior art, a pulse width modulation signal transmission line can only be used to transmit pulse width modulation signals. When other fan control information is to be transmitted, the transmission of other fan control information is achieved by additionally setting up a transmission line between the fan controller and the fan. In the present application, the fan control information is integrated with the fan target speed, and different fan control information is represented by different control state value combinations of pulse width modulation signal groups in multiple pulse width modulation signal groups, so as to achieve integrated transmission of multiple control information only by transmitting the pulse width modulation signal of the pulse width modulation signal sequence group.
[0123] In one embodiment, after the target fan is regulated according to the fan speed and fan control information, it includes: real-time monitoring of the fan speed, obtaining the actual fan speed, and calculating the period of the fan speed feedback signal according to the actual fan speed; obtaining the duty cycle value of each fan speed feedback signal in the fan speed feedback signal group through a timer.
[0124] The monitoring module can be set to monitor the fan speed in real time and obtain the actual speed of the fan. Subsequently, a fan control strategy can be generated according to the actual speed of the fan, and the fan control strategy can be used to regulate the fan speed.
[0125] After obtaining the actual fan speed, the period of the fan speed feedback signal can be calculated based on the actual fan speed. For the fan speed feedback signal, the cooling fan must transmit the actual speed to the fan controller. Assuming that the actual fan speed is N, the period of the fan speed feedback signal is Tt=60 / N / 2.
[0126] The fan controller in the present application is provided with an MCU (micro control unit), which is connected to a timer and can directly calculate the duty cycle value of each fan speed feedback signal in the fan speed feedback signal group.
[0127] Obtain a second preset table, in which the corresponding relationship between the duty cycle value of each fan speed feedback signal in the fan speed feedback signal group and the functional definition of each fan speed feedback signal is stored. In the present application, a corresponding relationship between the duty cycle values of different fan speed feedback signals and the functional definitions of different fan speed feedback signals can be established and stored in the second preset table, so as to facilitate the subsequent generation and analysis of the fan speed feedback signal sequence based on the second preset table.
[0128] Exemplarily, a correspondence can be established between TACH signals (fan speed feedback signals) with different duty cycles and functional definitions of different fan speed feedback signals, as shown in Table 3, including: 1 empty state, which is the duty cycle of the TACH signal when the communication is idle; 2 start and end flags, which are used to indicate the start and end of TACH data transmission; 16 numerical values (hexadecimal 0-F), which are used to form a fan speed feedback signal sequence, and a total fan speed feedback signal is generated based on the fan speed feedback signal sequence and sent to the fan controller.
[0129]
[0130] Table 3
[0131] See also Figure 5 , n adjacent cycles of TACH signals (fan speed feedback signals) are divided into a fan speed feedback signal group (TACH Group), the high level time of the TACH signal of each cycle in a TACH Group is represented by Tax(x∈[1-n]), and the corresponding duty cycle is represented by Dax(x∈[1-n]). The high level time and duty cycle values corresponding to the corresponding multiple fan speed feedback signals in the fan speed feedback signal group are integrated to obtain a fan speed feedback signal sequence.
[0132] Specifically, the fan return data is obtained, and a target fan speed feedback signal function definition that matches the fan return data is searched from a second preset table, and a duty cycle value combination of the target fan speed feedback signal is determined based on the target fan speed feedback signal function definition; a fan speed feedback signal sequence group is generated based on the duty cycle value combination of the target fan speed feedback signal and the target fan speed feedback signal function definition, and the fan speed feedback signal sequence group is sent to the fan controller end.
[0133] The fan return data is the return data corresponding to the fan control command. The target fan speed feedback signal function definition that matches the fan return data can be found in the second preset table, and the duty cycle value of the target fan speed feedback signal is determined based on the target fan speed feedback signal function definition. For example, the fan return data includes the fan rotation direction, and the target fan speed feedback signal function definition that matches the fan rotation direction is D. Look up Table 3, and the duty cycle value of the target fan speed feedback signal corresponding to the fan target fan speed feedback signal function definition of D is 80%. The duty cycle values of all fan target fan speed feedback signals are obtained, and the duty cycle value combination of the target fan speed feedback signal is obtained. The serial number of each fan speed feedback signal in the fan speed feedback signal group is obtained, and a fan speed feedback signal sequence is generated based on the serial number of the fan speed feedback signal, the duty cycle value of the target fan speed feedback signal, and the target fan speed feedback signal function definition.
[0134] Combined with the fan speed feedback signal function definition in Table 3, the cooling fan can carry the return data of the fan speed feedback signal sequence to the fan controller through the fan speed feedback signal, that is, the total fan speed feedback signal. The data sent is the return data corresponding to the fan controller command. The return data format is shown in Table 4, Da0 is the return data start mark, Da1 to Da(n-1) constitute the return data value, and Dan is the return data end mark.
[0135]
[0136] Table 4
[0137] In response to the second duty cycle measurement unit at the fan controller end receiving the return data carrying the fan speed feedback signal sequence sent by the fan speed feedback signal generator at the fan end, the fan controller parses the fan speed feedback signal sequence, obtains the actual fan speed and the fan return data, and realizes the data return of the TACH signal.
[0138] In this application, data transmission between the fan controller and the fan is realized based on the existing fan cables and connectors. Through the proposed PWM and TACH signal communication control scheme, the command sending of the PWM signal and the data return of the TACH signal are realized. The duty cycle of the PWM signal is no longer a single constant value. By adjusting the duty cycle of the PWM signal in adjacent cycles, a PWM Group containing the target speed and fan control information is generated to realize the command sending of the PWM signal. The duty cycle of the TACH signal is no longer a constant 50%. By adjusting the duty cycle of the TACH signal in adjacent cycles, a TACH Group containing the actual speed and return data is generated to realize the data return of the TACH signal. In this way, the technical problem that only two speed information, the target speed and the actual speed, are transmitted between the fan controller and the cooling fan in the existing fan control interface and more information cannot be transmitted is solved.
[0139] In order to better illustrate the fan control method provided by the present application, in a specific implementation manner, the steps of the fan control method are as follows: Figure 6 As shown:
[0140] In the fan controller, obtain the fan control instruction, which carries the target speed and command information of the fan. Calculate the standard duty cycle (DutyRef) according to the target speed of the fan, and calculate the high level time corresponding to the PWM signal based on the standard duty cycle and the period of the PWM signal. This high level time is the average high level time Th0; calculate the target difference Δt according to this Th0, obtain the high level time corresponding to the three control states, and look up Table 1 in the solution; convert the fan control information (command information shown in the figure) into multiple groups of PWM Group state values (combination of control state values of each pulse width modulation signal group) according to Table 1, that is, calculate each group [Th1...Thn]); synthesize the pulse width modulation signal sequence group, and then send it to the fan end through the PWM generator (pulse width modulation signal generator).
[0141] The fan obtains the duty cycle value of the PWM Group sequence (pulse width modulation signal sequence group) through the first duty cycle measurement unit, and converts it to obtain the target speed and fan control information. The fan speed is adjusted according to the target speed; the data to be returned is prepared according to the fan control information of the fan control instruction, and the high level time of the TACH signal is calculated; the TACH Group sequence (fan speed feedback signal group) is synthesized and sent to the fan controller through the frequency duty cycle generator (fan speed feedback signal generator). The fan controller obtains the frequency and duty cycle value of the TACH Group sequence through the frequency duty cycle measurement unit (second duty cycle measurement unit), and converts it to obtain the actual speed and return data. At this point, the communication control between the fan controller and the cooling fan is completed.
[0142] It should be understood that although Figure 2 , Figure 6 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 , Figure 6 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0143] In one embodiment, Figure 7 As shown, a fan control device is provided, comprising: a calculation module 20, a determination module 21, and a control module 22, wherein:
[0144] The calculation module 20 is used to calculate the standard high level time of the pulse width modulation signal based on the fan target speed; and calculate the target difference based on the measurement resolution of the fan duty cycle measurement unit and the period of the pulse width modulation signal;
[0145] A determination module 21 is used to determine the correspondence between multiple high-level times and multiple control state values according to the target difference and the standard high-level time; based on the correspondence between the multiple high-level times and the multiple control state values, determine the control state value combination of each pulse width modulation signal group in the multiple pulse width modulation signal groups, and the control state value combination of each pulse width modulation signal group has the function definition of the control state value combination of the corresponding pulse width modulation signal group;
[0146] The control module 22 is used to obtain the functional definition of the target control state value combination matching the fan control information, determine the target control state value combination based on the functional definition of the target control state value combination, and assemble the target control state value combination according to preset rules to form a pulse width modulation signal sequence group, and control the fan based on the pulse width modulation signal sequence group.
[0147] In one embodiment, the above device can implement another implementation of the fan control method, and the specific steps are as follows:
[0148] The standard high level time for calculating the pulse width modulation signal based on the fan target speed includes:
[0149] The rated speed of the fan is obtained, the fan target speed is used as the dividend, the fan rated speed is used as the divisor, and the quotient obtained by dividing the fan target speed by the fan rated speed is used as the standard duty cycle;
[0150] The period of the pulse width modulation signal is obtained, and the product obtained by multiplying the standard duty cycle and the period of the pulse width modulation signal is used as the standard high level time of the pulse width modulation signal.
[0151] In one embodiment, the above device can implement another implementation of the fan control method, and the specific steps are as follows:
[0152] The target difference calculated based on the measurement resolution of the fan duty cycle measurement unit and the period of the pulse width modulation signal includes:
[0153] The measurement resolution of the fan duty cycle measurement unit and the period of the pulse width modulation signal are multiplied to obtain a target difference value.
[0154] In one embodiment, the above device can implement another implementation of the fan control method, and the specific steps are as follows:
[0155] The method further includes: the plurality of high-level times include a first high-level time, a second high-level time, and a third high-level time; the plurality of control state values include a first control state value, a second control state value, and a third control state value; the plurality of high-level times are determined according to the target difference and the standard high-level time; and establishing a correspondence between the plurality of high-level times and the plurality of control state values includes:
[0156] Taking the standard high level time as the minuend and the target difference as the subtrahend, subtracting the standard high level time from the target difference to obtain the first high level time, and establishing a corresponding relationship between the first high level time and the first control state value;
[0157] Taking the standard high level time as the second high level time, and establishing a corresponding relationship between the second high level time and the second control state value;
[0158] The standard high level time and the target difference are added to obtain the third high level time, and a corresponding relationship between the third high level time and the third control state value is established.
[0159] In one embodiment, the above device can implement another implementation of the fan control method, and the specific steps are as follows:
[0160] Each pulse width modulation signal group includes a plurality of pulse width modulation signals, and a control state value combination of each pulse width modulation signal group in the plurality of pulse width modulation signal groups is determined based on a correspondence between a plurality of high level times and a plurality of control state values, including:
[0161] Obtaining a high level time corresponding to each pulse width modulation signal among a plurality of pulse width modulation signals;
[0162] Find a target high level time that matches the high level time corresponding to each pulse width modulation signal from the correspondence between the multiple high level times and the multiple control state values, and obtain the target control state value corresponding to the target high level time;
[0163] The target control state value corresponding to each pulse width modulation signal is combined according to the arrangement order of each pulse width modulation signal of the plurality of pulse width modulation signals in each pulse width modulation signal group to obtain a control state value combination of each pulse width modulation signal group.
[0164] In one embodiment, the above device can implement another implementation of the fan control method, and the specific steps are as follows:
[0165] The method also includes:
[0166] A correspondence between the control state value combination of each pulse width modulation signal group and the functional definition of the control state value combination of each pulse width modulation signal group is established, and the correspondence between the control state value combination of each pulse width modulation signal group and the functional definition of the control state value combination of each pulse width modulation signal group is stored in a first preset table.
[0167] In one embodiment, the above device can implement another implementation of the fan control method, and the specific steps are as follows:
[0168] Acquiring a function definition of a target control state value combination matching the fan control information, and determining the target control state value combination based on the function definition of the target control state value combination includes:
[0169] Obtaining a first preset table, and determining whether a function definition of a control state value combination of a pulse width modulation signal group consistent with the fan control information can be found in the first preset table;
[0170] If yes, searching the first preset table for the function definition of the first control state value combination of the pulse width modulation signal group consistent with the fan control information, and taking the control state value combination corresponding to the function definition of the first control state value combination as the first control state value combination;
[0171] Determining whether there is any fan control information that is not found in the first preset table and is consistent with the functional definition of the control state value combination of the pulse width modulation signal group;
[0172] If yes, the fan control information that is not found in the first preset table to be consistent with the functional definition of the control state value combination of the pulse width modulation signal group and the functional definition of the control state value combination of the pulse width modulation signal group are input into the deep model for feature extraction to obtain fan control features and control state value functional features;
[0173] Calculate the similarity value of the fan control feature and the control state value function feature;
[0174] When the similarity value is greater than a preset threshold, the function definition of the control state value combination corresponding to the similarity value is used as the function definition of the second control state value combination, and the control state value combination corresponding to the function definition of the second control state value combination is used as the second control state value combination;
[0175] A target control state value combination is determined based on the first control state value combination and the second control state value combination.
[0176] In one embodiment, the above device can implement another implementation of the fan control method, and the specific steps are as follows:
[0177] The target control state values are combined and assembled according to preset rules to form a pulse width modulation signal sequence group. The fan is controlled based on the pulse width modulation signal sequence group, including:
[0178] Obtaining a target control state value combination of each pulse width modulation signal group in a plurality of pulse width modulation signal groups and a function definition of a target control state value combination corresponding to the target state value combination;
[0179] Acquire multiple pulse width modulation signal group numbers, form a pulse width modulation signal sequence group based on the multiple pulse width modulation signal group numbers, the target control state value combination and the function definition of the target control state value combination, and send the pulse width modulation signal sequence group to the first duty cycle measurement unit at the fan end through the pulse width modulation signal generator;
[0180] In response to the first duty cycle measurement unit receiving the pulse width modulation signal sequence group, the pulse width modulation signal sequence group is parsed to obtain the fan target speed and fan control information, and the fan is regulated according to the fan target speed and the fan control information.
[0181] In one embodiment, the above device can implement another implementation of the fan control method, and the specific steps are as follows:
[0182] Parsing the pulse width modulation signal sequence group to obtain a fan target speed and fan control information, and regulating the fan according to the fan target speed and the fan control information includes:
[0183] In response to receiving the pulse width modulation signal sequence group at the fan end, parsing the pulse width modulation signal sequence group to obtain the fan target speed and fan control information, and regulating the fan according to the fan target speed and the fan control information includes:
[0184] In response to the first duty cycle measurement unit at the fan end receiving the pulse width modulation signal sequence group, parsing the pulse width modulation signal sequence group to obtain fan control information and a control state value combination of each pulse width modulation signal group in a plurality of pulse width modulation signal groups corresponding to the pulse width modulation signal sequence group;
[0185] Determine the high level time corresponding to each pulse width modulation signal of the plurality of pulse width modulation signals in each pulse width modulation signal group based on the control state value combination of each pulse width modulation signal group;
[0186] Calculating a duty cycle of each pulse width modulation signal based on a high level time corresponding to each pulse width modulation signal among a plurality of pulse width modulation signals;
[0187] Performing mean filtering on the duty cycle of a pulse width modulation signal among the plurality of pulse width modulation signals to obtain a target duty cycle;
[0188] The fan target speed is calculated based on the target duty cycle, and the fan is regulated according to the fan target speed and the fan control information.
[0189] In one embodiment, the above device can implement another implementation of the fan control method, and the specific steps are as follows:
[0190] The method further includes: after adjusting the target fan according to the fan speed and the fan control information, the method further includes:
[0191] Monitor the fan speed in real time, obtain the actual fan speed, and calculate the period of the fan speed feedback signal based on the actual fan speed;
[0192] Obtaining a duty cycle value of each fan speed feedback signal in the fan speed feedback signal group through a timer;
[0193] Obtaining a second preset table, wherein the second preset table stores a correspondence between a duty cycle value of each fan speed feedback signal in the fan speed feedback signal group and a function definition of each fan speed feedback signal;
[0194] Acquire the fan return data, search for a target fan speed feedback signal function definition that matches the fan return data from a second preset table, and determine a duty cycle value combination of the target fan speed feedback signal based on the target fan speed feedback signal function definition;
[0195] A fan speed feedback signal sequence group is generated based on a duty cycle value combination of a target fan speed feedback signal and a target fan speed feedback signal function definition, and the fan speed feedback signal sequence group is sent to a fan controller end.
[0196] In one embodiment, the above device can implement another implementation of the fan control method, and the specific steps are as follows:
[0197] The fan speed feedback signal sequence group generated based on the duty cycle value combination of the target fan speed feedback signal and the target fan speed feedback signal function definition includes:
[0198] The serial number of each fan speed feedback signal in the fan speed feedback signal group is obtained, and a fan speed feedback signal sequence group is generated based on the serial number of the fan speed feedback signal, a duty cycle value combination of the target fan speed feedback signal, and a target fan speed feedback signal function definition.
[0199] In one embodiment, the above device can implement another implementation of the fan control method, and the specific steps are as follows:
[0200] The fan speed feedback signal sequence group is sent to the fan controller end including:
[0201] In response to the second duty cycle measurement unit at the fan controller receiving the fan speed feedback signal sequence group sent by the fan speed feedback signal generator at the fan end, the fan controller parses the fan speed feedback signal sequence group to obtain the actual fan speed and fan return data.
[0202] For the specific definition of the fan control device, please refer to the definition of the fan control method above, which will not be repeated here. Each module in the above fan control device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0203] In one embodiment, the present application also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the fan control methods provided by the above methods.
[0204] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a fan control method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0205] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0206] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0207] Step 101: Calculate a standard high level time of a pulse width modulation signal based on a target speed of the fan.
[0208] Step 102: Calculate a target difference based on a measurement resolution of a fan duty cycle measurement unit and a period of a pulse width modulation signal.
[0209] Step 103: determining a correspondence between a plurality of high-level times and a plurality of control state values according to the target difference and the standard high-level time.
[0210] Step 104, determining a control state value combination of each pulse width modulation signal group in a plurality of pulse width modulation signal groups based on a correspondence between a plurality of high level times and a plurality of control state values, wherein the control state value combination of each pulse width modulation signal group has a functional definition of the control state value combination of the corresponding pulse width modulation signal group.
[0211] Step 105, obtaining a functional definition of a target control state value combination that matches the fan control information, determining a target control state value combination based on the functional definition of the target control state value combination, and assembling the target control state value combination according to a preset rule to form a pulse width modulation signal sequence group, and regulating the fan based on the pulse width modulation signal sequence group.
[0212] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0213] The standard high level time for calculating the pulse width modulation signal based on the fan target speed includes:
[0214] The rated speed of the fan is obtained, the fan target speed is used as the dividend, the fan rated speed is used as the divisor, and the quotient obtained by dividing the fan target speed by the fan rated speed is used as the standard duty cycle;
[0215] The period of the pulse width modulation signal is obtained, and the product obtained by multiplying the standard duty cycle and the period of the pulse width modulation signal is used as the standard high level time of the pulse width modulation signal.
[0216] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0217] The target difference calculated based on the measurement resolution of the fan duty cycle measurement unit and the period of the pulse width modulation signal includes:
[0218] The measurement resolution of the fan duty cycle measurement unit and the period of the pulse width modulation signal are multiplied to obtain a target difference value.
[0219] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0220] The method further includes: the plurality of high-level times include a first high-level time, a second high-level time, and a third high-level time; the plurality of control state values include a first control state value, a second control state value, and a third control state value; the plurality of high-level times are determined according to the target difference and the standard high-level time; and establishing a correspondence between the plurality of high-level times and the plurality of control state values includes:
[0221] Taking the standard high level time as the minuend and the target difference as the subtrahend, subtracting the standard high level time from the target difference to obtain the first high level time, and establishing a corresponding relationship between the first high level time and the first control state value;
[0222] Taking the standard high level time as the second high level time, and establishing a corresponding relationship between the second high level time and the second control state value;
[0223] The standard high level time and the target difference are added to obtain the third high level time, and a corresponding relationship between the third high level time and the third control state value is established.
[0224] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0225] Each pulse width modulation signal group includes a plurality of pulse width modulation signals, and a control state value combination of each pulse width modulation signal group in the plurality of pulse width modulation signal groups is determined based on a correspondence between a plurality of high level times and a plurality of control state values, including:
[0226] Obtaining a high level time corresponding to each pulse width modulation signal among a plurality of pulse width modulation signals;
[0227] Find a target high level time that matches the high level time corresponding to each pulse width modulation signal from the correspondence between the multiple high level times and the multiple control state values, and obtain the target control state value corresponding to the target high level time;
[0228] The target control state value corresponding to each pulse width modulation signal is combined according to the arrangement order of each pulse width modulation signal of the plurality of pulse width modulation signals in each pulse width modulation signal group to obtain a control state value combination of each pulse width modulation signal group.
[0229] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0230] The method also includes:
[0231] A correspondence between the control state value combination of each pulse width modulation signal group and the functional definition of the control state value combination of each pulse width modulation signal group is established, and the correspondence between the control state value combination of each pulse width modulation signal group and the functional definition of the control state value combination of each pulse width modulation signal group is stored in a first preset table.
[0232] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0233] Acquiring a function definition of a target control state value combination matching the fan control information, and determining the target control state value combination based on the function definition of the target control state value combination includes:
[0234] Obtaining a first preset table, and determining whether a function definition of a control state value combination of a pulse width modulation signal group consistent with the fan control information can be found in the first preset table;
[0235] If yes, searching the first preset table for the function definition of the first control state value combination of the pulse width modulation signal group consistent with the fan control information, and taking the control state value combination corresponding to the function definition of the first control state value combination as the first control state value combination;
[0236] Determining whether there is any fan control information that is not found in the first preset table and is consistent with the functional definition of the control state value combination of the pulse width modulation signal group;
[0237] If yes, the fan control information that is not found in the first preset table to be consistent with the functional definition of the control state value combination of the pulse width modulation signal group and the functional definition of the control state value combination of the pulse width modulation signal group are input into the deep model for feature extraction to obtain fan control features and control state value functional features;
[0238] Calculate the similarity value of the fan control feature and the control state value function feature;
[0239] When the similarity value is greater than a preset threshold, the function definition of the control state value combination corresponding to the similarity value is used as the function definition of the second control state value combination, and the control state value combination corresponding to the function definition of the second control state value combination is used as the second control state value combination;
[0240] A target control state value combination is determined based on the first control state value combination and the second control state value combination.
[0241] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0242] The target control state values are combined and assembled according to preset rules to form a pulse width modulation signal sequence group. The fan is controlled based on the pulse width modulation signal sequence group, including:
[0243] Obtaining a target control state value combination of each pulse width modulation signal group in a plurality of pulse width modulation signal groups and a function definition of a target control state value combination corresponding to the target state value combination;
[0244] Acquire multiple pulse width modulation signal group numbers, form a pulse width modulation signal sequence group based on the multiple pulse width modulation signal group numbers, the target control state value combination and the function definition of the target control state value combination, and send the pulse width modulation signal sequence group to the first duty cycle measurement unit at the fan end through the pulse width modulation signal generator;
[0245] In response to the first duty cycle measurement unit receiving the pulse width modulation signal sequence group, the pulse width modulation signal sequence group is parsed to obtain the fan target speed and fan control information, and the fan is regulated according to the fan target speed and the fan control information.
[0246] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0247] Parsing the pulse width modulation signal sequence group to obtain a fan target speed and fan control information, and regulating the fan according to the fan target speed and the fan control information includes:
[0248] In response to the first duty cycle measurement unit at the fan end receiving the pulse width modulation signal sequence group, parsing the pulse width modulation signal sequence group to obtain fan control information and a control state value combination of each pulse width modulation signal group in a plurality of pulse width modulation signal groups corresponding to the pulse width modulation signal sequence group;
[0249] Determine the high level time corresponding to each pulse width modulation signal of the plurality of pulse width modulation signals in each pulse width modulation signal group based on the control state value combination of each pulse width modulation signal group;
[0250] Calculating a duty cycle of each pulse width modulation signal based on a high level time corresponding to each pulse width modulation signal among a plurality of pulse width modulation signals;
[0251] Performing mean filtering on the duty cycle of a pulse width modulation signal among the plurality of pulse width modulation signals to obtain a target duty cycle;
[0252] The fan target speed is calculated based on the target duty cycle, and the fan is regulated according to the fan target speed and the fan control information.
[0253] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0254] The method further includes: after adjusting the target fan according to the fan speed and the fan control information, the method further includes:
[0255] Monitor the fan speed in real time, obtain the actual fan speed, and calculate the period of the fan speed feedback signal based on the actual fan speed;
[0256] Obtaining a duty cycle value of each fan speed feedback signal in the fan speed feedback signal group through a timer;
[0257] Obtaining a second preset table, wherein the second preset table stores a correspondence between a duty cycle value of each fan speed feedback signal in the fan speed feedback signal group and a function definition of each fan speed feedback signal;
[0258] Acquire the fan return data, search for a target fan speed feedback signal function definition that matches the fan return data from a second preset table, and determine a duty cycle value combination of the target fan speed feedback signal based on the target fan speed feedback signal function definition;
[0259] A fan speed feedback signal sequence group is generated based on a duty cycle value combination of a target fan speed feedback signal and a target fan speed feedback signal function definition, and the fan speed feedback signal sequence group is sent to a fan controller end.
[0260] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0261] The fan speed feedback signal sequence group generated based on the duty cycle value combination of the target fan speed feedback signal and the target fan speed feedback signal function definition includes:
[0262] The serial number of each fan speed feedback signal in the fan speed feedback signal group is obtained, and a fan speed feedback signal sequence group is generated based on the serial number of the fan speed feedback signal, a duty cycle value combination of the target fan speed feedback signal, and a target fan speed feedback signal function definition.
[0263] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0264] The fan speed feedback signal sequence group is sent to the fan controller end including:
[0265] In response to the second duty cycle measurement unit at the fan controller receiving the fan speed feedback signal sequence group sent by the fan speed feedback signal generator at the fan end, the fan controller parses the fan speed feedback signal sequence group to obtain the actual fan speed and fan return data.
[0266] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0267] Step 101: Calculate a standard high level time of a pulse width modulation signal based on a target speed of the fan.
[0268] Step 102: Calculate a target difference based on a measurement resolution of a fan duty cycle measurement unit and a period of a pulse width modulation signal.
[0269] Step 103: determining a correspondence between a plurality of high-level times and a plurality of control state values according to the target difference and the standard high-level time.
[0270] Step 104, determining a control state value combination of each pulse width modulation signal group in a plurality of pulse width modulation signal groups based on a correspondence between a plurality of high level times and a plurality of control state values, wherein the control state value combination of each pulse width modulation signal group has a functional definition of the control state value combination of the corresponding pulse width modulation signal group.
[0271] Step 105, obtaining a functional definition of a target control state value combination that matches the fan control information, determining a target control state value combination based on the functional definition of the target control state value combination, and assembling the target control state value combination according to a preset rule to form a pulse width modulation signal sequence group, and regulating the fan based on the pulse width modulation signal sequence group.
[0272] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0273] The standard high level time for calculating the pulse width modulation signal based on the fan target speed includes:
[0274] The rated speed of the fan is obtained, the fan target speed is used as the dividend, the fan rated speed is used as the divisor, and the quotient obtained by dividing the fan target speed by the fan rated speed is used as the standard duty cycle;
[0275] The period of the pulse width modulation signal is obtained, and the product obtained by multiplying the standard duty cycle and the period of the pulse width modulation signal is used as the standard high level time of the pulse width modulation signal.
[0276] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0277] The target difference calculated based on the measurement resolution of the fan duty cycle measurement unit and the period of the pulse width modulation signal includes:
[0278] The measurement resolution of the fan duty cycle measurement unit and the period of the pulse width modulation signal are multiplied to obtain a target difference value.
[0279] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0280] The method further includes: the plurality of high-level times include a first high-level time, a second high-level time, and a third high-level time; the plurality of control state values include a first control state value, a second control state value, and a third control state value; the plurality of high-level times are determined according to the target difference and the standard high-level time; and establishing a correspondence between the plurality of high-level times and the plurality of control state values includes:
[0281] Taking the standard high level time as the minuend and the target difference as the subtrahend, subtracting the standard high level time from the target difference to obtain the first high level time, and establishing a corresponding relationship between the first high level time and the first control state value;
[0282] Taking the standard high level time as the second high level time, and establishing a corresponding relationship between the second high level time and the second control state value;
[0283] The standard high level time and the target difference are added to obtain the third high level time, and a corresponding relationship between the third high level time and the third control state value is established.
[0284] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0285] Each pulse width modulation signal group includes a plurality of pulse width modulation signals, and a control state value combination of each pulse width modulation signal group in the plurality of pulse width modulation signal groups is determined based on a correspondence between a plurality of high level times and a plurality of control state values, including:
[0286] Obtaining a high level time corresponding to each pulse width modulation signal among a plurality of pulse width modulation signals;
[0287] Find a target high level time that matches the high level time corresponding to each pulse width modulation signal from the correspondence between the multiple high level times and the multiple control state values, and obtain the target control state value corresponding to the target high level time;
[0288] The target control state value corresponding to each pulse width modulation signal is combined according to the arrangement order of each pulse width modulation signal of the plurality of pulse width modulation signals in each pulse width modulation signal group to obtain a control state value combination of each pulse width modulation signal group.
[0289] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0290] The method also includes:
[0291] A correspondence between the control state value combination of each pulse width modulation signal group and the functional definition of the control state value combination of each pulse width modulation signal group is established, and the correspondence between the control state value combination of each pulse width modulation signal group and the functional definition of the control state value combination of each pulse width modulation signal group is stored in a first preset table.
[0292] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0293] Acquiring a function definition of a target control state value combination matching the fan control information, and determining the target control state value combination based on the function definition of the target control state value combination includes:
[0294] Obtaining a first preset table, and determining whether a function definition of a control state value combination of a pulse width modulation signal group consistent with the fan control information can be found in the first preset table;
[0295] If yes, searching the first preset table for the function definition of the first control state value combination of the pulse width modulation signal group consistent with the fan control information, and taking the control state value combination corresponding to the function definition of the first control state value combination as the first control state value combination;
[0296] Determining whether there is any fan control information that is not found in the first preset table and is consistent with the functional definition of the control state value combination of the pulse width modulation signal group;
[0297] If yes, the fan control information that is not found in the first preset table to be consistent with the functional definition of the control state value combination of the pulse width modulation signal group and the functional definition of the control state value combination of the pulse width modulation signal group are input into the deep model for feature extraction to obtain fan control features and control state value functional features;
[0298] Calculate the similarity value of the fan control feature and the control state value function feature;
[0299] When the similarity value is greater than a preset threshold, the function definition of the control state value combination corresponding to the similarity value is used as the function definition of the second control state value combination, and the control state value combination corresponding to the function definition of the second control state value combination is used as the second control state value combination;
[0300] A target control state value combination is determined based on the first control state value combination and the second control state value combination.
[0301] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0302] The target control state values are combined and assembled according to preset rules to form a pulse width modulation signal sequence group. The fan is controlled based on the pulse width modulation signal sequence group, including:
[0303] Obtaining a target control state value combination of each pulse width modulation signal group in a plurality of pulse width modulation signal groups and a function definition of a target control state value combination corresponding to the target state value combination;
[0304] Acquire multiple pulse width modulation signal group numbers, form a pulse width modulation signal sequence group based on the multiple pulse width modulation signal group numbers, the target control state value combination and the function definition of the target control state value combination, and send the pulse width modulation signal sequence group to the first duty cycle measurement unit at the fan end through the pulse width modulation signal generator;
[0305] In response to the first duty cycle measurement unit receiving the pulse width modulation signal sequence group, the pulse width modulation signal sequence group is parsed to obtain the fan target speed and fan control information, and the fan is regulated according to the fan target speed and the fan control information.
[0306] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0307] Parsing the pulse width modulation signal sequence group to obtain a fan target speed and fan control information, and regulating the fan according to the fan target speed and the fan control information includes:
[0308] In response to the first duty cycle measurement unit at the fan end receiving the pulse width modulation signal sequence group, parsing the pulse width modulation signal sequence group to obtain fan control information and a control state value combination of each pulse width modulation signal group in a plurality of pulse width modulation signal groups corresponding to the pulse width modulation signal sequence group;
[0309] Determine the high level time corresponding to each pulse width modulation signal of the plurality of pulse width modulation signals in each pulse width modulation signal group based on the control state value combination of each pulse width modulation signal group;
[0310] Calculating a duty cycle of each pulse width modulation signal based on a high level time corresponding to each pulse width modulation signal among a plurality of pulse width modulation signals;
[0311] Performing mean filtering on the duty cycle of a pulse width modulation signal among the plurality of pulse width modulation signals to obtain a target duty cycle;
[0312] The fan target speed is calculated based on the target duty cycle, and the fan is regulated according to the fan target speed and the fan control information.
[0313] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0314] The method further includes: after adjusting the target fan according to the fan speed and the fan control information, the method further includes:
[0315] Monitor the fan speed in real time, obtain the actual fan speed, and calculate the period of the fan speed feedback signal based on the actual fan speed;
[0316] Obtaining a duty cycle value of each fan speed feedback signal in the fan speed feedback signal group through a timer;
[0317] Obtaining a second preset table, wherein the second preset table stores a correspondence between a duty cycle value of each fan speed feedback signal in the fan speed feedback signal group and a function definition of each fan speed feedback signal;
[0318] Acquire the fan return data, search for a target fan speed feedback signal function definition that matches the fan return data from a second preset table, and determine a duty cycle value combination of the target fan speed feedback signal based on the target fan speed feedback signal function definition;
[0319] A fan speed feedback signal sequence group is generated based on a duty cycle value combination of a target fan speed feedback signal and a target fan speed feedback signal function definition, and the fan speed feedback signal sequence group is sent to a fan controller end.
[0320] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0321] The fan speed feedback signal sequence group generated based on the duty cycle value combination of the target fan speed feedback signal and the target fan speed feedback signal function definition includes:
[0322] The serial number of each fan speed feedback signal in the fan speed feedback signal group is obtained, and a fan speed feedback signal sequence group is generated based on the serial number of the fan speed feedback signal, a duty cycle value combination of the target fan speed feedback signal, and a target fan speed feedback signal function definition.
[0323] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0324] The fan speed feedback signal sequence group is sent to the fan controller end including:
[0325] In response to the second duty cycle measurement unit at the fan controller receiving the fan speed feedback signal sequence group sent by the fan speed feedback signal generator at the fan end, the fan controller parses the fan speed feedback signal sequence group to obtain the actual fan speed and fan return data.
[0326] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0327] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0328] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application.
Claims
1. A fan control method, characterized in that: include: Calculate the standard high level time of the pulse width modulation signal based on the fan target speed; Calculating a target difference value based on a measurement resolution of a fan duty cycle measurement unit and a period of a pulse width modulation signal; Determine the corresponding relationship between a plurality of high level times and a plurality of control state values according to the target difference and the standard high level time; Determine a control state value combination of each pulse width modulation signal group in a plurality of pulse width modulation signal groups based on the correspondence between the plurality of high level times and the plurality of control state values, wherein the control state value combination of each pulse width modulation signal group has a function definition of the control state value combination of the corresponding pulse width modulation signal group; Obtain a functional definition of a target control state value combination that matches the fan control information, determine the target control state value combination based on the functional definition of the target control state value combination, assemble the target control state value combination according to a preset rule to form a pulse width modulation signal sequence group, and control the fan based on the pulse width modulation signal sequence group.
2. The method according to claim 1, characterized in that The method of calculating the standard high level time of the pulse width modulation signal based on the fan target speed includes: The rated speed of the fan is obtained, the fan target speed is used as the dividend, the fan rated speed is used as the divisor, and the quotient obtained by dividing the fan target speed by the fan rated speed is used as the standard duty cycle; The period of the pulse width modulation signal is obtained, and the product obtained by multiplying the standard duty cycle and the period of the pulse width modulation signal is used as the standard high level time of the pulse width modulation signal.
3. The method according to claim 1, characterized in that The target difference calculation based on the measurement resolution of the fan duty cycle measurement unit and the period of the pulse width modulation signal includes: A measurement resolution of the fan duty cycle measurement unit and a period of the pulse width modulation signal are multiplied to obtain a target difference.
4. The method according to claim 1, characterized in that: The multiple high level times include a first high level time, a second high level time, and a third high level time, the multiple control state values include a first control state value, a second control state value, and a third control state value, and the determining of the multiple high level times according to the target difference and the standard high level time, and establishing a corresponding relationship between the multiple high level times and the multiple control state values includes: Taking the standard high-level time as the minuend and the target difference as the subtrahend, subtracting the standard high-level time from the target difference to obtain a first high-level time, and establishing a corresponding relationship between the first high-level time and the first control state value; Taking the standard high level time as the second high level time, and establishing a corresponding relationship between the second high level time and the second control state value; The standard high level time and the target difference are added to obtain a third high level time, and a corresponding relationship between the third high level time and the third control state value is established.
5. The method according to claim 1, characterized in that Each pulse width modulation signal group includes a plurality of pulse width modulation signals, and the control state value combination of each pulse width modulation signal group in the plurality of pulse width modulation signal groups is determined based on the correspondence between the plurality of high level times and the plurality of control state values, including: Obtaining a high level time corresponding to each pulse width modulation signal among a plurality of pulse width modulation signals; Searching for a target high level time that matches the high level time corresponding to each pulse width modulation signal from the correspondence between the multiple high level times and the multiple control state values, and acquiring a target control state value corresponding to the target high level time; The target control state value corresponding to each pulse width modulation signal is combined according to the arrangement order of each pulse width modulation signal of the plurality of pulse width modulation signals in each pulse width modulation signal group to obtain a control state value combination of each pulse width modulation signal group.
6. The method according to claim 1, characterized in that The method further comprises: A correspondence between the control state value combination of each pulse width modulation signal group and the functional definition of the control state value combination of each pulse width modulation signal group is established, and the correspondence between the control state value combination of each pulse width modulation signal group and the functional definition of the control state value combination of each pulse width modulation signal group is stored in a first preset table.
7. The method according to claim 1, characterized in that The acquiring a function definition of a target control state value combination matching the fan control information and determining the target control state value combination based on the function definition of the target control state value combination comprises: Obtaining a first preset table, and determining whether a function definition of a control state value combination of a pulse width modulation signal group consistent with the fan control information can be found in the first preset table; If yes, searching the first preset table for the function definition of the first control state value combination of the pulse width modulation signal group consistent with the fan control information, and taking the control state value combination corresponding to the function definition of the first control state value combination as the first control state value combination; Determining whether there is any fan control information that is not found in the first preset table and is consistent with the functional definition of the control state value combination of the pulse width modulation signal group; If yes, the fan control information that is not found in the first preset table to be consistent with the functional definition of the control state value combination of the pulse width modulation signal group and the functional definition of the control state value combination of the pulse width modulation signal group are input into the deep model for feature extraction to obtain fan control features and control state value functional features; Calculate the similarity value of the fan control feature and the control state value function feature; When the similarity value is greater than a preset threshold, the function definition of the control state value combination corresponding to the similarity value is used as the function definition of the second control state value combination, and the control state value combination corresponding to the function definition of the second control state value combination is used as the second control state value combination; A target control state value combination is determined based on the first control state value combination and the second control state value combination.
8. The method according to claim 1, characterized in that Combining and assembling the target control state values according to a preset rule to form a pulse width modulation signal sequence group, and regulating the fan based on the pulse width modulation signal sequence group includes: Obtaining a target control state value combination of each pulse width modulation signal group in a plurality of pulse width modulation signal groups and a function definition of a target control state value combination corresponding to the target state value combination; Acquire multiple pulse width modulation signal group numbers, form a pulse width modulation signal sequence group based on the multiple pulse width modulation signal group numbers, the target control state value combination and the function definition of the target control state value combination, and send the pulse width modulation signal sequence group to the first duty cycle measurement unit at the fan end through a pulse width modulation signal generator; In response to the first duty cycle measurement unit receiving the pulse width modulation signal sequence group, the pulse width modulation signal sequence group is parsed to obtain the fan target speed and fan control information, and the fan is regulated according to the fan target speed and fan control information.
9. The method according to claim 8, characterized in that The step of parsing the pulse width modulation signal sequence group to obtain a fan target speed and fan control information, and regulating the fan according to the fan target speed and fan control information includes: In response to the first duty cycle measurement unit at the fan end receiving the pulse width modulation signal sequence group, parsing the pulse width modulation signal sequence group to obtain fan control information and a control state value combination of each pulse width modulation signal group in a plurality of pulse width modulation signal groups corresponding to the pulse width modulation signal sequence group; Determine the high level time corresponding to each pulse width modulation signal of the plurality of pulse width modulation signals in each pulse width modulation signal group based on the control state value combination of each pulse width modulation signal group; Calculating a duty cycle of each pulse width modulation signal based on a high level time corresponding to each pulse width modulation signal among the plurality of pulse width modulation signals; Performing mean filtering on the duty cycle of a pulse width modulation signal among the plurality of pulse width modulation signals to obtain a target duty cycle; The fan target speed is calculated based on the target duty cycle, and the fan is regulated according to the fan target speed and the fan control information.
10. The method according to claim 9, characterized in that The step of regulating the fan according to the fan target speed and the fan control information includes: Monitor the fan speed in real time, obtain the actual fan speed, and calculate the period of the fan speed feedback signal according to the actual fan speed; Obtaining a duty cycle value of each fan speed feedback signal in the fan speed feedback signal group through a timer; Acquire a second preset table, wherein the second preset table stores a correspondence between a duty cycle value of each fan speed feedback signal in the fan speed feedback signal group and a function definition of each fan speed feedback signal; Acquire fan return data, search the second preset table for a target fan speed feedback signal function definition that matches the fan return data, and determine a target fan speed feedback signal duty cycle value combination based on the target fan speed feedback signal function definition; A fan speed feedback signal sequence group is generated based on the duty cycle value combination of the target fan speed feedback signal and the target fan speed feedback signal function definition, and the fan speed feedback signal sequence group is sent to the fan controller end.
11. The method according to claim 10, characterized in that The step of generating a fan speed feedback signal sequence group based on the duty cycle value combination of the target fan speed feedback signal and the target fan speed feedback signal function definition includes: The serial number of each fan speed feedback signal in the fan speed feedback signal group is obtained, and a fan speed feedback signal sequence group is generated based on the serial number of the fan speed feedback signal, the duty cycle value combination of the target fan speed feedback signal, and the target fan speed feedback signal function definition.
12. The method according to claim 10, characterized in that The step of sending the fan speed feedback signal sequence group to the fan controller end includes: In response to the second duty cycle measurement unit at the fan controller end receiving the fan speed feedback signal sequence group sent by the fan speed feedback signal generator at the fan end, the fan controller parses the fan speed feedback signal sequence group to obtain the actual fan speed and fan return data.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.
14. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 12 are implemented.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.
Citation Information
Patent Citations
Fan rotating speed adjusting method and device, equipment and medium
CN115263794A
Frequency converter fan control method, device and equipment and storage medium
CN115773267A