A parameter testing method, device, equipment and medium
By automatically testing fan control data in the server using real-time or historical test data with cooling controllers and scripts, the problem of low parameter testing efficiency in the existing technology is solved, and efficient parameter value testing and optimization is achieved.
Patent Information
- Application Number
- CN202211327897.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-27
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2042-10-27
AI Technical Summary
In the prior art, the testing efficiency of parameter testing schemes is low, and the parameter values selected each time need to be tested separately. After updating the parameter values, it needs to be retested, which is inefficient.
Provide a parameter testing method, by obtaining test types and multiple sets of measured parameter values, using real-time or historical test data, with heat sink controllers and parameter test scripts, automatically conducting fan control data testing, and testing based on server temperature and fan PWM value. , generate fan control data.
The efficiency of parameter testing is improved, and users can determine the effectiveness of parameter values based on the test data, assist in optimizing the algorithm parameter values, and reduce testing time.
Smart Images

Figure CN115840352B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a parameter testing method, device, equipment and medium. Background Art
[0002] The server heat dissipation mainly relies on the fan installed in the server. The temperature sensor in the server transmits the detected server temperature to the heat dissipation controller in the server. The heat dissipation controller increases or decreases the pulse width modulation (PWM) value of the fan according to the server temperature, so that the fan speed increases or decreases.
[0003] The heat dissipation controller usually uses a specified control algorithm to calculate the PWM value change of the fan required for this fan speed control based on the server temperature, and then determines the expected PWM value for this fan speed control based on the PWM value change, and updates the current PWM value of the fan to the expected PWM value. The technician needs to test the parameter values of the algorithm parameters of the control algorithm to determine the validity of the parameter values.
[0004] In the related art, the parameter test scheme is usually as follows: during a test, the technician brings the selected parameter value into the real server for testing to obtain the fan control data corresponding to the parameter value. The parameter test scheme of the related art is limited to testing the currently selected parameter value. If the selected parameter value is updated, it needs to be retested, and the test efficiency is low. Summary of the invention
[0005] The present invention provides a parameter testing method, device, equipment and medium to solve the problem of low testing efficiency of parameter testing schemes in related technologies.
[0006] According to one aspect of the present invention, there is provided a parameter testing method, comprising:
[0007] Acquire a test type corresponding to a target control algorithm and a plurality of groups of measured parameter values; wherein the test type is a real-time test or a historical test;
[0008] If the test type is a real-time test, calling a heat dissipation controller and a parameter test script corresponding to the target control algorithm, testing each group of measured parameter values, and obtaining fan control data corresponding to each group of measured parameter values;
[0009] If the test type is a historical test, each group of measured parameter values is tested according to the historical test data and parameter test script corresponding to the target control algorithm to obtain fan control data corresponding to each group of measured parameter values.
[0010] The technical solution of the embodiment of the present invention can automatically test each group of measured parameter values according to the server temperature in real-time or historical tests and the current PWM value of the fan according to the test type specified by the user, and obtain fan control data corresponding to each group of measured parameter values. The test efficiency is high, which is convenient for the user to determine the validity of the measured parameter values according to the fan control data corresponding to each group of measured parameter values, and assist the user to optimize the parameter values of the algorithm parameters.
[0011] Optionally, calling the heat dissipation controller and parameter test script corresponding to the target control algorithm, testing each group of measured parameter values, and obtaining fan control data corresponding to each group of measured parameter values includes:
[0012] From each group of measured parameter values, a group of measured parameter values is obtained as the target measured parameter values, and the other groups of measured parameter values are determined as the basic measured parameter values;
[0013] The target measured parameter value is sent to a heat dissipation controller corresponding to the target control algorithm, so that the heat dissipation controller controls the rotation speed of the fan in the test server according to the target measured parameter value, and regularly feeds back the server temperature of the test server, the current pulse width modulation (PWM) value of the fan, and the expected PWM value at a preset time interval;
[0014] In the process of the heat dissipation controller controlling the rotation speed of the fan, calling the parameter test script corresponding to the target control algorithm, and determining the expected PWM value of the fan at each moment corresponding to each group of basic measured parameter values according to each group of basic measured parameter values, the server temperature at each moment, and the current PWM value of the fan;
[0015] Determine the expected PWM value of the fan at each moment fed back by the test server as the fan control data corresponding to the target measured parameter value;
[0016] The expected PWM values of the fan at each moment corresponding to each group of basic measured parameter values are determined as the fan control data corresponding to each group of basic measured parameter values.
[0017] The technical solution of the embodiment of the present invention can test each group of measured parameter values according to the real-time server temperature and the current PWM value of the fan during the process of the heat dissipation controller controlling the rotation speed of the fan in the test server, and obtain fan control data corresponding to each group of measured parameter values.
[0018] Optionally, calling a parameter test script corresponding to the target control algorithm, and determining, according to each group of basic measured parameter values, the server temperature at each time, and the current PWM value of the fan, the expected PWM value of the fan at each time corresponding to each group of basic measured parameter values, includes:
[0019] Call the parameter test script and perform the following operations through the parameter test script:
[0020] Determining parameter values of algorithm parameters of the target control algorithm according to the currently processed basic measured parameter values;
[0021] Using the target control algorithm, according to the server temperature at each moment, calculating the PWM value change of the fan at each moment;
[0022] According to the current PWM value and the PWM value variation of the fan at each moment, the expected PWM value of the fan at each moment corresponding to the currently processed basic measured parameter value is determined.
[0023] The technical solution of the embodiment of the present invention can calculate the fan control data corresponding to each group of basic measured parameter values according to the real-time server temperature and the current PWM value of the fan through a parameter test script during the process of the heat dissipation controller controlling the rotation speed of the fan in the test server.
[0024] Optionally, testing each group of measured parameter values according to the historical test data and parameter test script corresponding to the target control algorithm to obtain fan control data corresponding to each group of measured parameter values includes:
[0025] Extracting the server temperature and the current PWM value of the fan at each moment in the historical test from the historical test data corresponding to the target control algorithm;
[0026] Calling a parameter test script corresponding to the target control algorithm, and determining the expected PWM value of the fan at each moment corresponding to each group of measured parameter values according to each group of measured parameter values, the server temperature at each moment in the historical test, and the current PWM value of the fan;
[0027] The expected PWM values of the fan at each moment corresponding to each group of measured parameter values are determined as the fan control data corresponding to each group of measured parameter values.
[0028] The technical solution of the embodiment of the present invention can test each group of measured parameter values according to the server temperature and the current PWM value of the fan obtained during the completed parameter test process to obtain fan control data corresponding to each group of measured parameter values.
[0029] Optionally, calling a parameter test script corresponding to the target control algorithm, and determining the expected PWM value of the fan at each moment corresponding to each group of measured parameter values according to each group of measured parameter values, the server temperature at each moment in the historical test, and the current PWM value of the fan, comprises:
[0030] Call the parameter test script and perform the following operations through the parameter test script:
[0031] Determining parameter values of algorithm parameters of the target control algorithm according to the measured parameter values currently being processed;
[0032] Using the target control algorithm, according to the server temperature at each moment in the historical test, the PWM value change of the fan at each moment is calculated;
[0033] According to the current PWM value and the PWM value variation of the fan at each moment, the expected PWM value of the fan at each moment corresponding to the measured parameter value currently being processed is determined.
[0034] The technical solution of the embodiment of the present invention can calculate the fan control data corresponding to each group of measured parameter values according to the server temperature in the historical test and the current PWM value of the fan through the parameter test script.
[0035] Optionally, before obtaining the test type corresponding to the target control algorithm and the multiple groups of measured parameter values, the method further includes:
[0036] Obtain the parameter test scripts and historical test data corresponding to the target control algorithm uploaded by the user.
[0037] The technical solution of the embodiment of the present invention can obtain parameter test scripts and historical test data corresponding to the target control algorithm, so as to facilitate the implementation of specified test operations based on the parameter test scripts and historical test data during the test process.
[0038] Optionally, after obtaining the fan control data corresponding to each group of measured parameter values, the method further includes:
[0039] generating a visual chart corresponding to the fan control data;
[0040] The visualization chart is provided to a user.
[0041] The technical solution of the embodiment of the present invention can intuitively provide the fan control data corresponding to each group of measured parameter values obtained in the test to the user in the form of a visual chart.
[0042] According to another aspect of the present invention, there is provided a parameter testing device, comprising:
[0043] An information acquisition module, used to acquire a test type corresponding to a target control algorithm and a plurality of groups of measured parameter values; wherein the test type is a real-time test or a historical test;
[0044] A real-time test module, for, if the test type is a real-time test, calling a heat dissipation controller and a parameter test script corresponding to the target control algorithm, testing each group of measured parameter values, and obtaining fan control data corresponding to each group of measured parameter values;
[0045] The historical test module is used to test each group of measured parameter values according to the historical test data and parameter test script corresponding to the target control algorithm if the test type is a historical test, so as to obtain the fan control data corresponding to each group of measured parameter values.
[0046] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0047] at least one processor;
[0048] and a memory communicatively coupled to the at least one processor;
[0049] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the parameter testing method described in any embodiment of the present invention.
[0050] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the parameter testing method described in any embodiment of the present invention when executed.
[0051] The technical solution of the embodiment of the present invention obtains the test type corresponding to the target control algorithm and multiple groups of measured parameter values; when the test type is a real-time test, the heat dissipation controller and parameter test script corresponding to the target control algorithm are called to test each group of measured parameter values to obtain fan control data corresponding to each group of measured parameter values; when the test type is a historical test, each group of measured parameter values is tested according to the historical test data and parameter test script corresponding to the target control algorithm to obtain fan control data corresponding to each group of measured parameter values, thereby solving the problem of low test efficiency of parameter test schemes in related technologies, and achieving the goal of automatically testing each group of measured parameter values according to the test type specified by the user, based on the server temperature in real-time or historical tests and the current PWM value of the fan, to obtain fan control data corresponding to each group of measured parameter values, with high test efficiency, facilitating users to determine the validity of the measured parameter values according to the fan control data corresponding to each group of measured parameter values, and assisting users in optimizing the parameter values of algorithm parameters.
[0052] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0054] Figure 1 A flow chart of a parameter testing method provided in Example 1 of the present invention.
[0055] Figure 2 A flow chart of a parameter testing method provided in Embodiment 2 of the present invention.
[0056] Figure 3 This is a flow chart of a parameter testing method provided in Embodiment 3 of the present invention.
[0057] Figure 4 A flow chart of a parameter testing method provided in Embodiment 4 of the present invention.
[0058] Figure 5 This is a structural schematic diagram of a parameter testing device provided in Embodiment 5 of the present invention.
[0059] Figure 6 A schematic diagram of the structure of a server for implementing the parameter testing method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0060] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0061] It should be noted that the terms "target", "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprise", "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0062] Embodiment 1
[0063] Figure 1 This is a flow chart of a parameter testing method provided in the first embodiment of the present invention. This embodiment can be applied to testing the parameter values of the algorithm parameters of the control algorithm to assist the user in determining the validity of the parameter values. The method can be executed by a parameter testing device, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device. Figure 1 As shown, the method includes:
[0064] Step 101, obtaining a test type corresponding to a target control algorithm and a plurality of groups of measured parameter values: if the test type is a real-time test, executing step 102; if the test type is a historical test, executing step 103.
[0065] The test type is a real-time test or a historical test.
[0066] Optionally, the target control algorithm is a control algorithm that requires parameter testing. The target control algorithm may be a proportional integral derivative (PID) control algorithm that calculates the PWM value change of the fan required for fan speed control according to the difference between the server temperature and the preset temperature. The target control algorithm may also be an open-loop control algorithm or other control algorithm that calculates the PWM value change of the fan required for fan speed control according to the server temperature.
[0067] Optionally, multiple test types are set in advance according to different test methods in parameter testing. Test types include but are not limited to: real-time testing and historical testing.
[0068] Optionally, the real-time test is to test each group of measured parameter values corresponding to the control algorithm through a heat dissipation controller and a parameter test script corresponding to the control algorithm, and obtain fan control data corresponding to each group of measured parameter values.
[0069] Optionally, the historical test is to test each group of measured parameter values through historical test data and parameter test scripts corresponding to the control algorithm to obtain fan control data corresponding to each group of measured parameter values.
[0070] Optionally, each group of measured parameter values is a parameter value of an algorithm parameter to be tested. Multiple groups of different algorithm parameter values are set in advance according to the value range of the algorithm parameter of the target control algorithm. Each group of algorithm parameter values is a group of measured parameter values.
[0071] In a specific example, the target control algorithm is a PID control algorithm that calculates the PWM value change of the fan required for fan speed control based on the difference between the server temperature and the preset temperature. The preset temperature is the server temperature in a pre-set normal working state. The calculation formula of the target control algorithm is:
[0072]
[0073] Where t is the time variable, u(t) is the change in PWM value, e(t) is the difference between the server temperature and the preset temperature, and K p is the proportionality coefficient, K i is the integration coefficient, K d is the differential coefficient. The algorithm parameters of the target control algorithm include but are not limited to: proportional coefficient K p , integral coefficient K i and the differential coefficient K d . According to the proportionality factor K p , integral coefficient K i and the differential coefficient K dSet at least two different sets of proportional coefficients K p , integral coefficient K i and the differential coefficient K d Parameter value. Each set of proportional coefficients K p , integral coefficient K i and the differential coefficient K d The parameter values are a set of measured parameter values.
[0074] In another specific example, the target control algorithm is an open-loop control algorithm that calculates the PWM value change of the fan required for fan speed control according to the server temperature. The calculation formula of the target control algorithm is:
[0075] ΔPWM=K a T+K b ,
[0076] Where ΔPWM is the change in PWM value, T is the server temperature, K a and K b The algorithm parameters of the target control algorithm include but are not limited to: open-loop control coefficient K a and K b . According to the open loop control coefficient K a and K b Set at least two different open-loop control coefficients K a and K b Each set of open-loop control coefficients K a and K b The parameter values are a set of measured parameter values.
[0077] Step 102 : calling a heat dissipation controller and a parameter test script corresponding to the target control algorithm, testing each group of measured parameter values, and obtaining fan control data corresponding to each group of measured parameter values.
[0078] Optionally, the fan control data corresponding to the measured parameter value is an expected PWM value of the fan determined according to the measured parameter value.
[0079] Optionally, the heat dissipation controller corresponding to the target control algorithm is a heat dissipation controller in a test server. The test server is a real server used to assist in parameter testing. The heat dissipation controller is a controller used to control the fan set in the test server, thereby dissipating the heat of the test server. The heat dissipation controller can increase or decrease the fan speed by increasing or decreasing the PWM value of the fan. The temperature sensor in the test server sends the detected server temperature to the heat dissipation controller. The heat dissipation controller uses the target control algorithm to calculate the PWM value change of the fan required for this fan speed control based on the server temperature, and then determines the expected PWM value of this fan speed control based on the current PWM value of the fan and the PWM value change, and updates the current PWM value of the fan to the expected PWM value. The expected PWM value of the fan is the sum of the current PWM value of the fan and the PWM value change of the fan.
[0080] Optionally, the parameter test script corresponding to the target control algorithm is a script written by a user for determining the parameter values of the algorithm parameters of the target control algorithm based on the measured parameter values, and then using the target control algorithm to calculate the PWM value change of the fan based on the server temperature, and determine the expected PWM value of the fan corresponding to the measured parameter value based on the current PWM value of the fan and the PWM value change.
[0081] Optionally, the calling of the heat dissipation controller and parameter test script corresponding to the target control algorithm tests each group of measured parameter values to obtain fan control data corresponding to each group of measured parameter values, including: obtaining one group of measured parameter values from each group of measured parameter values as the target measured parameter values, and determining the other groups of measured parameter values as the basic measured parameter values; sending the target measured parameter values to the heat dissipation controller corresponding to the target control algorithm, so that the heat dissipation controller controls the speed of the fan in the test server according to the target measured parameter values, and regularly feeds back the server temperature of the test server and the current pulse width of the fan at a preset time interval. degree modulation PWM value and expected PWM value; in the process of the heat dissipation controller controlling the rotation speed of the fan, calling the parameter test script corresponding to the target control algorithm, and determining the expected PWM value of the fan at each moment corresponding to each group of basic measured parameter values according to each group of basic measured parameter values, the server temperature at each moment and the current PWM value of the fan; determining the expected PWM value of the fan at each moment fed back by the test server as the fan control data corresponding to the target measured parameter value; determining the expected PWM value of the fan at each moment corresponding to each group of basic measured parameter values as the fan control data corresponding to the each group of basic measured parameter values.
[0082] Therefore, when the heat dissipation controller controls the rotation speed of the fan in the test server, each group of measured parameter values is tested according to the real-time server temperature and the current PWM value of the fan to obtain fan control data corresponding to each group of measured parameter values.
[0083] In a specific example, from 10 groups of measured parameter values, one group of measured parameter values is randomly obtained as the target measured parameter values, and the other 9 groups of measured parameter values are determined as the basic measured parameter values. Thus, the 10 groups of measured parameter values are divided into target measured parameter values and 9 groups of basic measured parameter values.
[0084] Optionally, the electronic device sends the target measured parameter value to a heat dissipation controller corresponding to the target control algorithm. After receiving the target measured parameter value, the heat dissipation controller determines the parameter value of the algorithm parameter of the target control algorithm according to the target measured parameter value. Then, the heat dissipation controller uses the target control algorithm to calculate the PWM value change of the fan according to the server temperature at each moment, and determines the expected PWM value of the fan corresponding to the measured parameter value according to the current PWM value of the fan and the PWM value change, and updates the current PWM value of the fan to the expected PWM value.
[0085] Optionally, in the process of the heat dissipation controller controlling the rotation speed of the fan in the test server according to the target measured parameter value, the heat dissipation controller regularly feeds back the server temperature of the test server, the current pulse width modulation PWM value of the fan and the expected PWM value to the electronic device at a preset time interval. The preset time interval can be set according to business needs. Exemplarily, the preset time interval is 1 second. The expected PWM value of the fan at each moment fed back by the heat dissipation controller is the expected PWM value of the fan corresponding to the target measured parameter value. Data such as the server temperature of the test server, the current pulse width modulation PWM value of the fan, etc. obtained by real-time testing can be used as historical test data in subsequent historical tests.
[0086] Optionally, when the control time reaches a preset time, the heat dissipation controller stops controlling the rotation speed of the fan in the test server according to the target measured parameter value. The control time is the time for controlling the rotation speed of the fan in the test server. The preset time can be set according to business needs. Exemplarily, the preset time is 30 minutes.
[0087] Optionally, the calling of the parameter test script corresponding to the target control algorithm, and determining the expected PWM value of the fan at each moment corresponding to each group of basic measured parameter values according to each group of basic measured parameter values, the server temperature at each moment, and the current PWM value of the fan, includes: calling the parameter test script, and performing the following operations through the parameter test script: determining the parameter value of the algorithm parameter of the target control algorithm according to the currently processed basic measured parameter value; using the target control algorithm, and calculating the PWM value change of the fan at each moment according to the server temperature at each moment; determining the expected PWM value of the fan at each moment corresponding to the currently processed basic measured parameter value according to the current PWM value and the PWM value change of the fan at each moment. The expected PWM value of the fan is the sum of the current PWM value of the fan and the PWM value change of the fan. The expected PWM value of the fan at each moment is the expected PWM value of the fan corresponding to the currently processed basic measured parameter value.
[0088] Therefore, when the heat dissipation controller controls the rotation speed of the fan in the test server, the fan control data corresponding to each group of basic measured parameter values is calculated through the parameter test script according to the real-time server temperature and the current PWM value of the fan.
[0089] Step 103 : testing each group of measured parameter values according to the historical test data and parameter test script corresponding to the target control algorithm to obtain fan control data corresponding to each group of measured parameter values.
[0090] Optionally, the method tests each group of measured parameter values according to the historical test data and parameter test script corresponding to the target control algorithm to obtain fan control data corresponding to the each group of measured parameter values, including: extracting the server temperature and the current PWM value of the fan at each moment in the historical test from the historical test data corresponding to the target control algorithm; calling the parameter test script corresponding to the target control algorithm to determine the expected PWM value of the fan at each moment corresponding to the each group of measured parameter values according to the each group of measured parameter values, the server temperature at each moment in the historical test, and the current PWM value of the fan; and determining the expected PWM value of the fan at each moment corresponding to the each group of measured parameter values as the fan control data corresponding to the each group of measured parameter values.
[0091] Therefore, according to the server temperature and the current PWM value of the fan obtained in the completed parameter test process, each group of measured parameter values is tested to obtain the fan control data corresponding to each group of measured parameter values.
[0092] Optionally, the historical test is a completed parameter test of the target control algorithm. The historical test data corresponding to the target control algorithm is data obtained during the completed parameter test of the target control algorithm. The historical test data includes the server temperature at each moment in the completed parameter test process and the current PWM value of the fan. The electronic device can extract the server temperature and the current PWM value of the fan at each moment in the historical test from the historical test data corresponding to the target control algorithm.
[0093] Optionally, the calling of the parameter test script corresponding to the target control algorithm, and determining the expected PWM value of the fan at each moment corresponding to each group of measured parameter values according to each group of measured parameter values, the server temperature at each moment in the historical test, and the current PWM value of the fan, includes: calling the parameter test script, and performing the following operations through the parameter test script: determining the parameter value of the algorithm parameter of the target control algorithm according to the measured parameter value currently being processed; using the target control algorithm, and calculating the PWM value change of the fan at each moment according to the server temperature at each moment in the historical test; and determining the expected PWM value of the fan at each moment corresponding to the measured parameter value currently being processed according to the current PWM value of the fan at each moment and the PWM value change. The expected PWM value of the fan at each moment is the expected PWM value of the fan corresponding to the measured parameter value currently being processed.
[0094] Therefore, through the parameter test script, the fan control data corresponding to each group of measured parameter values is calculated according to the server temperature in the historical test and the current PWM value of the fan.
[0095] Optionally, before obtaining the test type corresponding to the target control algorithm and multiple groups of measured parameter values, it also includes: obtaining the parameter test script and historical test data corresponding to the target control algorithm uploaded by the user. The user uploads the parameter test script and historical test data corresponding to the target control algorithm to the electronic device through the terminal device. The electronic device stores the parameter test script and historical test data corresponding to the target control algorithm in a local database.
[0096] In this way, the parameter test script and historical test data corresponding to the target control algorithm can be obtained, so as to implement the specified test operations based on the parameter test script and historical test data during the test process.
[0097] Optionally, after obtaining the fan control data corresponding to each group of measured parameter values, it also includes: generating a visual chart corresponding to the fan control data; and providing the visual chart to a user. The visual chart corresponding to the fan control data is a chart used to display the fan control data. Visual charts include but are not limited to line charts, curve charts, and tables. The electronic device can generate a visual chart corresponding to the fan control data according to a preset chart generation rule. Providing the visual chart to the user includes: sending the visual chart to the user's terminal device.
[0098] Therefore, the fan control data corresponding to each group of measured parameter values obtained in the test can be intuitively provided to the user in the form of a visual chart.
[0099] The technical solution of the embodiment of the present invention obtains the test type corresponding to the target control algorithm and multiple groups of measured parameter values; when the test type is a real-time test, the heat dissipation controller and parameter test script corresponding to the target control algorithm are called to test each group of measured parameter values to obtain fan control data corresponding to each group of measured parameter values; when the test type is a historical test, each group of measured parameter values is tested according to the historical test data and parameter test script corresponding to the target control algorithm to obtain fan control data corresponding to each group of measured parameter values, thereby solving the problem of low test efficiency of parameter test schemes in related technologies, and achieving the goal of automatically testing each group of measured parameter values according to the test type specified by the user, based on the server temperature in real-time or historical tests and the current PWM value of the fan, to obtain fan control data corresponding to each group of measured parameter values, with high test efficiency, facilitating users to determine the validity of the measured parameter values according to the fan control data corresponding to each group of measured parameter values, and assisting users in optimizing the parameter values of algorithm parameters.
[0100] Embodiment 2
[0101] Figure 2 This is a flow chart of a parameter testing method provided by Embodiment 2 of the present invention. This embodiment of the present invention can be combined with each optional solution in one or more of the above embodiments. Figure 2 As shown, the method includes:
[0102] Step 201: Obtain a test type corresponding to a target control algorithm and multiple groups of measured parameter values.
[0103] The test type is a real-time test or a historical test.
[0104] Step 202: If the test type is a real-time test, a group of measured parameter values is obtained from each group of measured parameter values as the target measured parameter values, and the other groups of measured parameter values are determined as the basic measured parameter values.
[0105] Step 203: Send the target measured parameter value to the cooling controller corresponding to the target control algorithm, so that the cooling controller controls the rotation speed of the fan in the test server according to the target measured parameter value, and regularly feeds back the server temperature of the test server, the current pulse width modulation PWM value of the fan, and the expected PWM value at a preset time interval.
[0106] Step 204: During the process of the cooling controller controlling the rotational speed of the fan, a parameter test script corresponding to the target control algorithm is called to determine the expected PWM value of the fan at each moment corresponding to each group of basic measured parameter values, the server temperature at each moment, and the current PWM value of the fan.
[0107] Step 205: Determine the expected PWM value of the fan at each moment fed back by the test server as the fan control data corresponding to the target measured parameter value.
[0108] Step 206: Determine the expected PWM value of the fan at each moment corresponding to each group of basic measured parameter values as the fan control data corresponding to each group of basic measured parameter values.
[0109] The technical solution of the embodiment of the present invention has the beneficial effect of testing each group of measured parameter values according to the real-time server temperature and the current PWM value of the fan during the process of the heat dissipation controller controlling the rotation speed of the fan in the test server, thereby obtaining fan control data corresponding to each group of measured parameter values.
[0110] Embodiment 3
[0111] Figure 3 This is a flow chart of a parameter testing method provided in Embodiment 3 of the present invention. This embodiment of the present invention can be combined with each optional solution in one or more of the above embodiments. Figure 3 As shown, the method includes:
[0112] Step 301: Obtain a test type corresponding to a target control algorithm and multiple groups of measured parameter values.
[0113] The test type is a real-time test or a historical test.
[0114] Step 302: If the test type is a historical test, extract the server temperature and the current PWM value of the fan at each moment in the historical test from the historical test data corresponding to the target control algorithm.
[0115] Step 303, calling the parameter test script corresponding to the target control algorithm, and determining the expected PWM value of the fan at each moment corresponding to each group of measured parameter values according to the groups of measured parameter values, the server temperature at each moment in the historical test and the current PWM value of the fan.
[0116] Step 304: Determine the expected PWM value of the fan at each moment corresponding to each group of measured parameter values as the fan control data corresponding to each group of measured parameter values.
[0117] The technical solution of the embodiment of the present invention has the beneficial effect of testing each group of measured parameter values according to the server temperature and the current PWM value of the fan obtained during the completed parameter testing process, and obtaining fan control data corresponding to each group of measured parameter values.
[0118] Embodiment 4
[0119] Figure 4 A flow chart of a parameter testing method provided in Embodiment 4 of the present invention includes the following steps:
[0120] Step 401: Obtain parameter test scripts and historical test data corresponding to a target control algorithm uploaded by a user.
[0121] Step 402 , obtaining a test type corresponding to a target control algorithm and a plurality of groups of measured parameter values: if the test type is a real-time test, executing step 403 ; if the test type is a historical test, executing step 404 .
[0122] The test type is a real-time test or a historical test.
[0123] Step 403 : calling the heat dissipation controller and parameter test script corresponding to the target control algorithm, testing each group of measured parameter values, and obtaining fan control data corresponding to each group of measured parameter values.
[0124] Step 404: Test each group of measured parameter values according to the historical test data and parameter test script corresponding to the target control algorithm to obtain fan control data corresponding to each group of measured parameter values.
[0125] Step 405: Generate a visualization chart corresponding to the fan control data.
[0126] Step 406: Provide the visualization chart to the user.
[0127] The technical solution of the embodiment of the present invention achieves the beneficial effect of automatically testing each group of measured parameter values according to the server temperature in real-time or historical tests and the current PWM value of the fan according to the test type specified by the user, and obtaining the fan control data corresponding to each group of measured parameter values. The test efficiency is high, and it is convenient for the user to determine the validity of the measured parameter values according to the fan control data corresponding to each group of measured parameter values, thereby assisting the user in optimizing the parameter values of the algorithm parameters.
[0128] Embodiment 5
[0129] Figure 5 This is a schematic diagram of the structure of a parameter testing device provided in Embodiment 5 of the present invention. The device can be configured in an electronic device. Figure 5 As shown, the device includes: an information acquisition module 501, a real-time testing module 502 and a historical testing module 503.
[0130] Among them, the information acquisition module 501 is used to obtain the test type corresponding to the target control algorithm and multiple groups of measured parameter values; wherein the test type is real-time test or historical test; the real-time test module 502 is used to call the heat dissipation controller and parameter test script corresponding to the target control algorithm if the test type is real-time test, test each group of measured parameter values, and obtain the fan control data corresponding to each group of measured parameter values; the historical test module 503 is used to test each group of measured parameter values according to the historical test data and parameter test script corresponding to the target control algorithm if the test type is historical test, and obtain the fan control data corresponding to each group of measured parameter values.
[0131] The technical solution of the embodiment of the present invention obtains the test type corresponding to the target control algorithm and multiple groups of measured parameter values; when the test type is a real-time test, the heat dissipation controller and parameter test script corresponding to the target control algorithm are called to test each group of measured parameter values to obtain fan control data corresponding to each group of measured parameter values; when the test type is a historical test, each group of measured parameter values is tested according to the historical test data and parameter test script corresponding to the target control algorithm to obtain fan control data corresponding to each group of measured parameter values, thereby solving the problem of low test efficiency of parameter test schemes in related technologies, and achieving the goal of automatically testing each group of measured parameter values according to the server temperature in real-time or historical tests and the current PWM value of the fan according to the test type specified by the user, and obtaining fan control data corresponding to each group of measured parameter values, with high test efficiency, facilitating users to determine the validity of the measured parameter values according to the fan control data corresponding to each group of measured parameter values, and assisting users in optimizing the parameter values of algorithm parameters.
[0132] In an optional implementation of an embodiment of the present invention, optionally, the real-time test module 502 is specifically used to: obtain a group of measured parameter values from each group of measured parameter values as the target measured parameter values, and determine the other groups of measured parameter values as the basic measured parameter values; send the target measured parameter values to the heat dissipation controller corresponding to the target control algorithm, so that the heat dissipation controller controls the speed of the fan in the test server according to the target measured parameter values, and regularly feedback the server temperature of the test server, the current pulse width modulation PWM value of the fan and the expected PWM value according to a preset time interval; During the process of the heat dissipation controller controlling the rotational speed of the fan, the parameter test script corresponding to the target control algorithm is called to determine the expected PWM value of the fan at each moment corresponding to each group of basic measured parameter values, the server temperature at each moment and the current PWM value of the fan; the expected PWM value of the fan at each moment fed back by the test server is determined as the fan control data corresponding to the target measured parameter value; the expected PWM value of the fan at each moment corresponding to each group of basic measured parameter values is determined as the fan control data corresponding to the target measured parameter value.
[0133] In an optional implementation of an embodiment of the present invention, optionally, when the real-time test module 502 executes the operation of calling the parameter test script corresponding to the target control algorithm and determining the expected PWM value of the fan at each moment corresponding to each group of basic measured parameter values according to each group of basic measured parameter values, the server temperature at each moment and the current PWM value of the fan, it is specifically used to: call the parameter test script and perform the following operations through the parameter test script: determine the parameter value of the algorithm parameter of the target control algorithm according to the currently processed basic measured parameter value; use the target control algorithm to calculate the PWM value change of the fan at each moment according to the server temperature at each moment; determine the expected PWM value of the fan at each moment corresponding to the currently processed basic measured parameter value according to the current PWM value of the fan at each moment and the PWM value change.
[0134] In an optional implementation of an embodiment of the present invention, optionally, the historical test module 503 is specifically used to: extract the server temperature and the current PWM value of the fan at each moment in the historical test from the historical test data corresponding to the target control algorithm; call the parameter test script corresponding to the target control algorithm, and determine the expected PWM value of the fan at each moment corresponding to each group of measured parameter values according to the each group of measured parameter values, the server temperature at each moment in the historical test, and the current PWM value of the fan; determine the expected PWM value of the fan at each moment corresponding to each group of measured parameter values as the fan control data corresponding to the each group of measured parameter values.
[0135] In an optional implementation of an embodiment of the present invention, optionally, when the historical test module 503 executes the operation of calling a parameter test script corresponding to the target control algorithm and determining the expected PWM value of the fan at each moment corresponding to each group of measured parameter values according to the groups of measured parameter values, the server temperature at each moment in the historical test and the current PWM value of the fan, it is specifically used to: call the parameter test script and perform the following operations through the parameter test script: determine the parameter value of the algorithm parameter of the target control algorithm according to the currently processed measured parameter value; use the target control algorithm to calculate the PWM value change of the fan at each moment according to the server temperature at each moment in the historical test; determine the expected PWM value of the fan at each moment corresponding to the currently processed measured parameter value according to the current PWM value of the fan at each moment and the PWM value change.
[0136] In an optional implementation manner of the embodiment of the present invention, optionally, the parameter testing device further includes: an information uploading module, which is used to obtain parameter testing scripts and historical testing data corresponding to the target control algorithm uploaded by the user.
[0137] In an optional implementation manner of the embodiment of the present invention, optionally, the parameter testing device further includes: a chart generating module, used to generate a visual chart corresponding to the fan control data; and a chart providing module, used to provide the visual chart to a user.
[0138] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0139] The above-mentioned parameter testing device can execute the parameter testing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the parameter testing method.
[0140] Embodiment 6
[0141] Figure 6 The components, their connections and relationships, and their functions shown herein are merely examples and are not intended to limit the implementation of the invention described and / or claimed herein.
[0142] like Figure 6As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program built from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0143] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0144] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the parameter testing method.
[0145] In some embodiments, the parameter test method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is built into the RAM 13 and executed by the processor 11, one or more steps of the parameter test method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the parameter test method in any other appropriate manner (e.g., by means of firmware).
[0146] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0147] The computer programs for implementing the parameter testing method of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0148] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0149] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0150] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0151] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0152] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0153] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A parameter testing method, characterized in that: include: Acquire a test type corresponding to a target control algorithm and a plurality of groups of measured parameter values; wherein the test type is a real-time test or a historical test; If the test type is a real-time test, calling a heat dissipation controller and a parameter test script corresponding to the target control algorithm, testing each group of measured parameter values, and obtaining fan control data corresponding to each group of measured parameter values; If the test type is a historical test, each group of measured parameter values is tested according to the historical test data and parameter test script corresponding to the target control algorithm to obtain fan control data corresponding to each group of measured parameter values; The fan control data is an expected PWM value of the fan determined according to the measured parameter value.
2. The method according to claim 1, characterized in that The calling of the heat dissipation controller and parameter test script corresponding to the target control algorithm, testing each group of measured parameter values, and obtaining fan control data corresponding to each group of measured parameter values includes: From each group of measured parameter values, one group of measured parameter values is obtained as the target measured parameter values, and the other groups of measured parameter values are determined as the basic measured parameter values; The target measured parameter value is sent to a heat dissipation controller corresponding to the target control algorithm, so that the heat dissipation controller controls the rotation speed of the fan in the test server according to the target measured parameter value, and regularly feeds back the server temperature of the test server, the current pulse width modulation (PWM) value of the fan, and the expected PWM value at a preset time interval; In the process of the heat dissipation controller controlling the rotation speed of the fan, calling the parameter test script corresponding to the target control algorithm, and determining the expected PWM value of the fan at each moment corresponding to each group of basic measured parameter values according to each group of basic measured parameter values, the server temperature at each moment, and the current PWM value of the fan; Determine the expected PWM value of the fan at each moment fed back by the test server as the fan control data corresponding to the target measured parameter value; The expected PWM values of the fan at each moment corresponding to each group of basic measured parameter values are determined as the fan control data corresponding to each group of basic measured parameter values.
3. The method according to claim 2, characterized in that The calling of the parameter test script corresponding to the target control algorithm, and determining the expected PWM value of the fan at each moment corresponding to each group of basic measured parameter values according to each group of basic measured parameter values, the server temperature at each moment, and the current PWM value of the fan, comprises: Call the parameter test script and perform the following operations through the parameter test script: Determining parameter values of algorithm parameters of the target control algorithm according to the currently processed basic measured parameter values; Using the target control algorithm, according to the server temperature at each moment, calculating the PWM value change of the fan at each moment; According to the current PWM value and the PWM value variation of the fan at each moment, the expected PWM value of the fan at each moment corresponding to the currently processed basic measured parameter value is determined.
4. The method according to claim 1, characterized in that: The method of testing each group of measured parameter values according to the historical test data and parameter test script corresponding to the target control algorithm to obtain the fan control data corresponding to each group of measured parameter values includes: Extracting the server temperature and the current PWM value of the fan at each moment in the historical test from the historical test data corresponding to the target control algorithm; Calling a parameter test script corresponding to the target control algorithm, and determining the expected PWM value of the fan at each moment corresponding to each group of measured parameter values according to each group of measured parameter values, the server temperature at each moment in the historical test, and the current PWM value of the fan; The expected PWM values of the fan at each moment corresponding to each group of measured parameter values are determined as the fan control data corresponding to each group of measured parameter values.
5. The method according to claim 4, characterized in that The calling of the parameter test script corresponding to the target control algorithm, and determining the expected PWM value of the fan at each moment corresponding to each group of measured parameter values according to each group of measured parameter values, the server temperature at each moment in the historical test, and the current PWM value of the fan, comprises: Call the parameter test script and perform the following operations through the parameter test script: Determining parameter values of algorithm parameters of the target control algorithm according to the measured parameter values currently being processed; Using the target control algorithm, according to the server temperature at each moment in the historical test, the PWM value change of the fan at each moment is calculated; According to the current PWM value and the PWM value variation of the fan at each moment, the expected PWM value of the fan at each moment corresponding to the measured parameter value currently being processed is determined.
6. The method according to claim 1, characterized in that Before obtaining the test type corresponding to the target control algorithm and multiple groups of measured parameter values, it also includes: Obtain the parameter test scripts and historical test data corresponding to the target control algorithm uploaded by the user.
7. The method according to claim 1, characterized in that After obtaining the fan control data corresponding to each group of measured parameter values, the method further includes: generating a visual chart corresponding to the fan control data; The visualization chart is provided to a user.
8. A parameter testing device, characterized in that: include: An information acquisition module, used to acquire a test type corresponding to a target control algorithm and a plurality of groups of measured parameter values; wherein the test type is a real-time test or a historical test; A real-time test module, for, if the test type is a real-time test, calling a heat dissipation controller and a parameter test script corresponding to the target control algorithm, testing each group of measured parameter values, and obtaining fan control data corresponding to each group of measured parameter values; A historical test module, for testing each group of measured parameter values according to the historical test data and parameter test script corresponding to the target control algorithm if the test type is a historical test, to obtain fan control data corresponding to each group of measured parameter values; The fan control data is an expected PWM value of the fan determined according to the measured parameter value.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the parameter testing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the parameter testing method according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Method for starting a fan operation test
CN106462136A
Complex parameter-based configuration display control system
CN106569801A
