Temperature compensation parameter calculation method and system for temperature controller
By acquiring and analyzing the temperature controller measurement point data and calculating the fitting curve equation, the problem of inaccurate temperature controller compensation parameters was solved, high-precision temperature measurement and automatic data processing were achieved, and the temperature controller performance was optimized.
Patent Information
- Application Number
- CN202510754544.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-06
- Publication Date
- 2025-10-17
AI Technical Summary
The existing compensation parameter calculation method of the thermostat cannot effectively cope with the temperature difference caused by the external and internal environmental heat, resulting in inaccurate temperature measurement and affecting product quality.
By acquiring temperature controller measurement point data and standard sensor data under various experimental conditions, data cleaning and group management are performed, the temperature mean and fitting curve equation are calculated, experimental and real-time curves are drawn, and compensation parameters are determined based on the fitting effect.
It improves the temperature measurement accuracy of the thermostat under different environmental conditions, automatically processes data, optimizes the thermostat performance, ensures consistency and real-time performance, and is suitable for a variety of thermostats and application scenarios.
Smart Images

Figure CN120804473A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of temperature controllers, in particular to a temperature controller temperature compensation parameter calculation method and system. BACKGROUND
[0002] A temperature controller is a device that can automatically control the running state of equipment or systems according to temperature changes. It converts temperature signals into electrical signals by sensing temperature changes, and controls the on-off of the circuit according to the preset temperature range, thereby achieving the adjustment and control of the temperature of the controlled object. Since spontaneous heating occurs in the circuit module of the temperature controller, it affects the judgment of the ambient temperature, so the ambient temperature detected by the temperature controller must be temperature compensated to obtain the accurate current ambient temperature. Therefore, a reasonable compensation parameter calculation method is crucial to improve the performance of the temperature controller.
[0003] Currently, the compensation parameters of the temperature controller are usually set according to a fixed constant temperature value. This method is more mechanical and cannot effectively respond to the temperature difference changes caused by external and internal environmental heat. Therefore, it cannot accurately describe the mathematical relationship between temperature and environment, resulting in inaccurate output of the ambient temperature in actual application, which further affects the product quality and the judgment of the temperature control system. SUMMARY
[0004] To this end, the present application provides a temperature controller temperature compensation parameter calculation method and system to solve the problem of inaccurate temperature compensation parameters of the temperature controller in the prior art.
[0005] In order to achieve the above-mentioned purpose, the present application provides the following technical solutions:
[0006] In a first aspect, a temperature controller temperature compensation parameter calculation method comprises:
[0007] Step 1: Obtain temperature controller first measurement point experimental data, temperature controller second measurement point experimental data and standard sensor data under multiple different experimental conditions, and store them in a database;
[0008] Step 2: Group manage the temperature controller first measurement point experimental data, temperature controller second measurement point experimental data and standard sensor data in the database, and perform data cleaning verification;
[0009] Step 3: Calculate the first measurement point temperature mean and the second measurement point temperature mean under each experimental condition according to the temperature controller first measurement point experimental data and the temperature controller second measurement point experimental data after data cleaning verification;
[0010] Step 4: Calculate the temperature compensation mean according to the first measurement point temperature mean, the second measurement point temperature mean and the standard sensor data;
[0011] Step 5: selecting a fitting curve equation according to the difference between the first measuring point temperature mean value and the second measuring point temperature mean value, and calculating the coefficients of the fitting curve equation according to the difference between the first measuring point temperature mean value and the second measuring point temperature mean value and the temperature compensation mean value, to obtain the final fitting curve equation;
[0012] Step 6: calculating the experimental temperature compensation parameters according to the temperature controller first measuring point experimental data, the temperature controller second measuring point experimental data and the standard sensor data in the database, and drawing an experimental curve;
[0013] Step 7: obtaining the temperature controller first measuring point real-time data and the temperature controller second measuring point real-time data, and calculating the real-time temperature compensation parameters according to the temperature controller first measuring point real-time data, the temperature controller second measuring point real-time data and the standard sensor data, and drawing a real-time curve;
[0014] Step 8: judging the fitting effect of the experimental curve and the real-time curve with the fitting curve equation, and determining the temperature controller temperature compensation parameters according to the fitting effect.
[0015] As preferred, in step 1, the experimental conditions include an experimental condition of 14° and an experimental condition of 26°, and each experimental condition is obtained at least three times of experimental data, at least 420 groups of data each time.
[0016] As preferred, in step 1, the temperature controller first measuring point experimental data, the temperature controller second measuring point experimental data and the standard sensor data are obtained through RS485 communication.
[0017] As preferred, in step 2, the data cleaning and checking includes checking whether the temperature controller first measuring point experimental data, the temperature controller second measuring point experimental data and the standard sensor data are complete, supplementing the missing groups and the data in the missing groups if not complete, and replacing the abnormal data obviously exceeding the normal data size with the average value.
[0018] As preferred, the missing data when supplementing the missing groups is the average value of the previous group and the next group.
[0019] As preferred, in step 4, the temperature compensation mean value calculation formula is: kr=(T1-T) / (T2-T1), wherein kr represents the temperature compensation mean value, T1 represents the first measuring point temperature mean value, T2 represents the second measuring point temperature mean value, and T represents the standard sensor data.
[0020] As preferred, step 5 specifically includes:
[0021] Step 501: calculating the difference between the first measuring point temperature mean value and the second measuring point temperature mean value;
[0022] Step 502: judging whether the difference between the first measuring point temperature mean value and the second measuring point temperature mean value is less than a threshold value;
[0023] Step 503: if less than the threshold value, selecting a first fitting curve equation; the first fitting curve equation is: kr=a(T2-T1)2+b(T2-T1)+c;
[0024] Step 504: if greater than or equal to the threshold value, selecting a second fitting curve equation; the second fitting curve equation is: kr=b(T2-T1)+c;
[0025] Step 505: calculating the coefficients of the first fitting curve equation or the second fitting curve equation according to the first measuring point temperature mean value, the second measuring point temperature mean value and the temperature compensation mean value, to obtain the final fitting curve equation.
[0026] As a preference, the threshold value is 1.5℃.
[0027] In a second aspect, a temperature compensation parameter calculation system of a temperature controller comprises:
[0028] An experimental data acquisition module is configured to acquire temperature controller first measuring point experimental data, temperature controller second measuring point experimental data and standard sensor data under multiple different experimental conditions, and store them in a database;
[0029] An experimental data cleaning module is configured to group manage and clean and verify the temperature controller first measuring point experimental data, the temperature controller second measuring point experimental data and the standard sensor data in the database;
[0030] An experimental data mean value calculation module is configured to calculate first measuring point temperature mean values and second measuring point temperature mean values under each experimental condition according to the temperature controller first measuring point experimental data and the temperature controller second measuring point experimental data after data cleaning and verification;
[0031] A temperature compensation mean value calculation module is configured to calculate temperature compensation mean values according to the first measuring point temperature mean values, the second measuring point temperature mean values and the standard sensor data;
[0032] A fitting curve equation determination module is configured to select a fitting curve equation according to the difference between the first measuring point temperature mean value and the second measuring point temperature mean value, and calculate the coefficients of the fitting curve equation according to the difference between the first measuring point temperature mean value and the second measuring point temperature mean value and the temperature compensation mean value, to obtain the final fitting curve equation;
[0033] An experimental curve drawing module is configured to calculate experimental temperature compensation parameters according to the temperature controller first measuring point experimental data, the temperature controller second measuring point experimental data and the standard sensor data in the database, and draw an experimental curve;
[0034] a real-time curve drawing module, configured to acquire the real-time data of the first measuring point of the temperature controller and the real-time data of the second measuring point of the temperature controller, and calculate a real-time temperature compensation parameter according to the real-time data of the first measuring point of the temperature controller, the real-time data of the second measuring point of the temperature controller and the standard sensor data, and draw a real-time curve;
[0035] a temperature compensation parameter determination module, configured to determine a fitting effect of the experimental curve and the real-time curve with the fitting curve equation, and determine the temperature compensation parameter of the temperature controller according to the fitting effect.
[0036] In a third aspect, a computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the temperature compensation parameter calculation method of the temperature controller when executing the computer program.
[0037] Compared with the prior art, the present application has at least the following beneficial effects:
[0038] The present application provides a temperature compensation parameter calculation method and system of a temperature controller, by acquiring the first measuring point experimental data, the second measuring point experimental data and the standard sensor data of the temperature controller under multiple different experimental conditions, and storing them in a database for data cleaning; calculating the first measuring point temperature mean value, the second measuring point temperature mean value and the temperature compensation mean value under each experimental condition, selecting a fitting curve equation according to the difference between the first measuring point temperature mean value and the second measuring point temperature mean value, and calculating the coefficient of the fitting curve equation according to the difference between the first measuring point temperature mean value and the second measuring point temperature mean value and the temperature compensation mean value, to obtain the final fitting curve equation; drawing an experimental curve and a real-time curve according to the experimental data in the database and the real-time temperature controller data, and determining the fitting effect of the experimental curve and the real-time curve with the fitting curve equation, and determining the temperature compensation parameter of the temperature controller according to the fitting effect. The temperature compensation parameter calculated by the method provided by the present application can effectively correct the measurement error of the temperature controller under different environmental conditions, so that the temperature measurement result is more accurate. BRIEF DESCRIPTION OF DRAWINGS
[0039] In order to more intuitively illustrate the prior art and the present application, the following exemplary drawings are given. It should be understood that the specific shapes, structures shown in the drawings should not be regarded as limiting conditions in the implementation of the present application; for example, based on the technical concepts disclosed in the present application and the exemplary drawings, those skilled in the art can easily make routine adjustments or further optimizations to the increase / decrease / attribute division of certain units (components), specific shapes, positional relationships, connection methods, size ratio relationships, etc.
[0040] Figure 1 A temperature compensation parameter calculation method flowchart for the first embodiment of the present application is provided;
[0041] Figure 2A temperature compensation parameter calculation method judgment flow chart provided for the embodiment one of the present application;
[0042] Figure 3 A temperature compensation parameter calculation method structure schematic view provided for the embodiment one of the present application;
[0043] Figure 4 A serial port parameter setting flow chart provided for the embodiment one of the present application;
[0044] Figure 5 A data acquisition flow chart provided for the embodiment one of the present application;
[0045] Figure 6 An experimental data timing polling acquisition flow chart provided for the embodiment one of the present application;
[0046] Figure 7 A data cleaning verification flow chart provided for the embodiment one of the present application;
[0047] Figure 8 A fitting effect schematic view when (T2-T1) <1.5℃ under 14° and 26° experimental conditions provided for the embodiment one of the present application;
[0048] Figure 9 A fitting effect schematic view when (T2-T1) ≥1.5℃ under 14° and 26° experimental conditions provided for the embodiment one of the present application;
[0049] Figure 10 A fitting effect schematic view when (T2-T1) <1.5℃ under 14° experimental conditions provided for the embodiment one of the present application;
[0050] Figure 11 A fitting effect schematic view when (T2-T1) <1.5℃ under 26° experimental conditions provided for the embodiment one of the present application;
[0051] Figure 12 A fitting effect schematic view when (T2-T1) ≥1.5℃ under 14° experimental conditions provided for the embodiment one of the present application;
[0052] Figure 13 A fitting effect schematic view when (T2-T1) ≥1.5℃ under 26° experimental conditions provided for the embodiment one of the present application. DETAILED DESCRIPTION
[0053] The present application will be further described in detail below with reference to the accompanying drawings.
[0054] In the description of the present application: unless otherwise specified, the meaning of "a plurality" is two or more. The terms "first", "second", "third" and the like in the present application are intended to distinguish the objects referred to, and do not have a special meaning in the technical connotation aspect (for example, it should not be understood as emphasizing importance or order, etc.). The expressions "include", "contain", "have" and the like also mean "not limited to" (certain units, components, materials, steps, etc.).
[0055] The terms such as "upper", "lower", "left", "right", "middle" and the like cited in the present application are generally indications made for the purpose of intuitive understanding with reference to the drawings, and are not absolute limitations on the positional relationship in the actual product.
[0056] Embodiment one
[0057] Please refer to Figure 1 and Figure 2 , the embodiment provides a temperature compensating parameter calculation method of a temperature controller, comprising:
[0058] S1: obtaining temperature controller first measuring point experimental data, temperature controller second measuring point experimental data and standard sensor data under a plurality of different experimental conditions, and storing them into a database;
[0059] In the embodiment, the standard temperature sensor refers to a room temperature sensor, which is a sensor that can accurately output the current environmental temperature after calibration. Specifically, in the embodiment, the temperature controller first measuring point experimental data and the temperature controller second measuring point experimental data are obtained through the temperature controller serial port and the room temperature serial port, therefore, the temperature controller serial port and the room temperature standard serial port need to be managed and set, as shown in Figure 3 . The setting of the device serial port parameters includes the setting of parameters such as serial port name, baud rate and check code, as shown in Figure 4 .
[0060] This step obtains the temperature data of the temperature controller and the standard temperature sensor through RS485 communication when obtaining the experimental data, and stores them into the database after decoding, as shown in the flow chart Figure 5 . When obtaining the experimental data, the method of timing polling is adopted, and two types of experimental conditions (experimental conditions of 14° and experimental conditions of 26°) are set in the experiment, one condition is selected for one experiment, and the number of groups required by the experiment, the interval time of each group (usually in seconds), and the reading time of each sensor and the temperature controller of each group (usually in milliseconds) are set. Usually, a group needs to read data from multiple temperature controllers at the same time, as shown in the flow chart Figure 6 .
[0061] For example, two temperature test points T1 (i.e., the first test point, which is close to the ventilation edge of the temperature controller) and T2 (i.e., the second test point, which is close to the position of the heat accumulation area of the mainboard of the temperature controller) are set in the temperature controller, and the first test point experimental data of the temperature controller and the second test point experimental data of the temperature controller are obtained; a standard sensor is set in the environment, and the ambient temperature T (i.e., the standard sensor data) is obtained. In this embodiment, the serial communication reads the first test point experimental data of the temperature controller, the second test point experimental data of the temperature controller, and the standard sensor data at a speed of every 30 seconds.
[0062] S2: The first test point experimental data of the temperature controller, the second test point experimental data of the temperature controller, and the standard sensor data in the database are grouped and managed, and data cleaning and verification are performed.
[0063] Specifically, the data is read from the stored database into the memory, and then it is checked whether the data is complete and normal. Specifically, when checking the completeness of the data: if the number of experimental groups is not complete, the missing group number is supplemented, and the data in the missing group (which is the average value of the previous group and the next group) is supplemented; when checking whether the data is normal: if it obviously exceeds the normal data size, it is determined to be abnormal data, and the average value is used to replace the abnormal data, and the process is as shown in Figure 7 .
[0064] For example, in the temperature laboratory, the ambient temperature of each time is set to 14° working condition or 26° working condition, the temperature controller is placed, and after the ambient temperature stabilizes to the set value, the data in the temperature controller is read, the experimental number is at least 3 times for each ambient temperature, and 420 groups are completed each time. After each time is completed, the data is cleaned and verified, the abnormal data is removed, and the data table is as shown in Table 1.
[0065] Table 1
[0066]
[0067] S3: The first test point temperature mean value and the second test point temperature mean value under each experimental working condition are calculated according to the first test point experimental data and the second test point experimental data of the temperature controller after data cleaning and verification.
[0068] S4: The temperature compensation mean value is calculated according to the first test point temperature mean value, the second test point temperature mean value, and the standard sensor data.
[0069] Specifically, the calculation formula of the temperature compensation mean value is: kr=(T1-T) / (T2-T1), wherein kr represents the temperature compensation mean value, T1 represents the first test point temperature mean value, T2 represents the second test point temperature mean value, and T represents the standard sensor data.
[0070] S5: selecting a fitting curve equation according to the difference between the first measuring point temperature mean value and the second measuring point temperature mean value, and calculating the coefficients of the fitting curve equation according to the difference between the first measuring point temperature mean value and the second measuring point temperature mean value and the temperature compensation mean value, to obtain the final fitting curve equation;
[0071] S5 specifically comprises:
[0072] S501: calculating the difference between the first measuring point temperature mean value and the second measuring point temperature mean value;
[0073] S502: judging whether the difference between the first measuring point temperature mean value and the second measuring point temperature mean value is less than a threshold value;
[0074] Specifically, this step needs to judge whether the temperature difference T2-T1 is less than the threshold value 1.5.
[0075] S503: if less than the threshold value, selecting a first fitting curve equation; the first fitting curve equation is: kr=a(T2-T1)2+b(T2-T1)+c;
[0076] S504: if greater than or equal to the threshold value, selecting a second fitting curve equation; the second fitting curve equation is: kr=b(T2-T1)+c;
[0077] S505: calculating the coefficients of the first fitting curve equation or the second fitting curve equation according to the first measuring point temperature mean value, the second measuring point temperature mean value and the temperature compensation mean value, to obtain the final fitting curve equation.
[0078] Because at least three experimental data are obtained for each experimental condition in this embodiment, and at least 420 groups of data are obtained each time, three equations can be obtained, and the coefficients a, b and c of the first fitting curve equation or the second fitting curve equation can be calculated by combining the three equations into an equation group.
[0079] S6: calculating experimental temperature compensation parameters according to the temperature controller first measuring point experimental data, the temperature controller second measuring point experimental data and the standard sensor data in the database, and drawing an experimental curve;
[0080] Specifically, although the fitting curve equation has been calculated in step S5, in order to ensure the accuracy and reliability of the fitting equation in actual application, the fitting curve needs to be verified.
[0081] This step brings the experimental data in the database into the first fitting curve equation or the second fitting curve equation, to obtain multiple kr values, and draws an experimental curve according to the kr values.
[0082] S7: Obtain the real-time data of the first measuring point of the temperature controller and the real-time data of the second measuring point of the temperature controller, and calculate the real-time temperature compensation parameter according to the real-time data of the first measuring point of the temperature controller, the real-time data of the second measuring point of the temperature controller and the standard sensor data, and draw a real-time curve;
[0083] Specifically, this step needs to obtain the real-time data of the temperature controller, and bring the real-time data of the temperature controller into the first fitting curve equation or the second fitting curve equation to obtain a plurality of kr values, and draw a real-time curve according to the kr values.
[0084] It should be noted that the calculation formula of the temperature compensation parameter is: kr=(T1-T) / (T2-T1).
[0085] S8: Determine the fitting effect of the experimental curve and the real-time curve with the fitting curve equation, and determine the temperature compensation parameter of the temperature controller according to the fitting effect.
[0086] Specifically, this step evaluates the goodness of the fitting effect by observing the coincidence degree, deviation and other indicators of the experimental curve, the real-time curve and the fitting curve equation. If the experimental curve and the real-time curve are highly coincident with the fitting curve equation, it means that the fitting equation is accurate and reliable, and the coefficients of the fitting equation can be used as the final temperature compensation parameter. If there is a large deviation, it may be necessary to adjust the fitting equation or recalculate the coefficients.
[0087] For example: please refer to Figure 8 , Figure 8 The fitting effect diagram when (T2-T1)<1.5℃ under the experimental conditions of 14° and 26°, in this case the fitting curve equation is the first fitting curve equation, that is, kr=a(T2-T1)2+b(T2-T1)+c.
[0088] Please refer to Figure 9 , Figure 9 The fitting effect diagram when (T2-T1)≥1.5℃ under the experimental conditions of 14° and 26°, in this case the fitting curve equation is the second fitting curve equation, that is, kr=b(T2-T1)+c.
[0089] Please refer to Figure 10 , Figure 10 The fitting effect diagram when (T2-T1)<1.5℃ under the experimental conditions of 14°, in this case the fitting curve equation is the first fitting curve equation, that is, kr=a(T2-T1)2+b(T2-T1)+c.
[0090] Please refer to Figure 11 , Figure 11For 26° experimental conditions: (T2-T1) <1.5℃, the fitting effect diagram is shown in the figure, and the fitting curve equation is the first fitting curve equation, that is, kr=a(T2-T1)2+b(T2-T1)+c.
[0091] Please refer to Figure 12 , Figure 12 For 14° experimental conditions: (T2-T1) ≥1.5℃, the fitting effect diagram is shown in the figure, and the fitting curve equation is the second fitting curve equation, that is, kr=b(T2-T1)+c.
[0092] Please refer to Figure 13 , Figure 13 For 26° experimental conditions: (T2-T1) ≥1.5℃, the fitting effect diagram is shown in the figure, and the fitting curve equation is the second fitting curve equation, that is, kr=b(T2-T1)+c.
[0093] The temperature compensation parameter calculation method of the temperature controller provided in this embodiment is to analyze and calculate the experimental temperature data obtained under a large number of different experimental conditions, calculate the compensation parameters through the characteristics of the experimental data and the mathematical model of the data, and then bring the compensation parameters into the temperature controller for use, which has the following advantages:
[0094] (1) Improve temperature measurement accuracy: By setting the compensation parameters, the measurement error of the temperature controller under different environmental conditions can be effectively corrected, making the temperature measurement result more accurate. This is very important for scenarios that require high-precision temperature control, such as laboratories and industrial production.
[0095] (2) Automatic data analysis: It can automatically process a large amount of experimental data and quickly calculate the appropriate compensation parameters, reducing the time and workload of manual data analysis and improving work efficiency.
[0096] (3) Optimize temperature controller performance: Accurate compensation parameters can make the temperature controller better adapt to environmental changes, reduce the temperature value output problem caused by product self-heating, and improve product quality.
[0097] (4) Repeatability and consistency: It can calculate compensation parameters according to pre-set algorithms and rules to ensure consistency and repeatability of data processing results, avoiding errors caused by human factors.
[0098] (5) Real-time and dynamic adjustment: It can dynamically adjust the compensation parameters according to real-time temperature data, so that the temperature controller can quickly respond to environmental changes and maintain temperature control stability.
[0099] (6) Data recording and tracing: It can record the experimental data and the setting process of the compensation parameters, which is convenient for subsequent data analysis, problem troubleshooting and quality tracing.
[0100] (7) Applicable to a variety of temperature controllers and application scenarios: can be optimized for different models of temperature controllers and different application scenarios (e.g. weather prediction, water resource management, and energy management, etc.) to set compensation parameters, with good versatility and flexibility.
[0101] In summary, the temperature compensation parameter calculation method for a temperature controller provided in this embodiment can obtain a large amount of temperature controller temperature data and standard sensor data, and form a mathematical model and a curve, so as to calculate and obtain compensation parameters under different working conditions, and apply them to the temperature controller, so that the temperature controller can accurately and quickly output the current environmental temperature in application.
[0102] Embodiment Two
[0103] The embodiment provides a temperature compensation parameter calculation system for a temperature controller, which comprises:
[0104] An experimental data acquisition module is configured to acquire temperature controller first measurement point experimental data, temperature controller second measurement point experimental data, and standard sensor data under a plurality of different experimental conditions, and store them in a database;
[0105] An experimental data cleaning module is configured to group and manage the temperature controller first measurement point experimental data, the temperature controller second measurement point experimental data, and the standard sensor data in the database, and perform data cleaning and verification;
[0106] An experimental data mean value calculation module is configured to calculate first measurement point temperature mean values and second measurement point temperature mean values under each experimental condition according to the temperature controller first measurement point experimental data and the temperature controller second measurement point experimental data after data cleaning and verification;
[0107] A temperature compensation mean value calculation module is configured to calculate temperature compensation mean values according to the first measurement point temperature mean values, the second measurement point temperature mean values, and the standard sensor data;
[0108] A fitting curve equation determination module is configured to select a fitting curve equation according to the difference between the first measurement point temperature mean values and the second measurement point temperature mean values, and calculate coefficients of the fitting curve equation according to the difference between the first measurement point temperature mean values and the second measurement point temperature mean values and the temperature compensation mean values, to obtain a final fitting curve equation;
[0109] An experimental curve drawing module is configured to calculate experimental temperature compensation parameters according to the temperature controller first measurement point experimental data, the temperature controller second measurement point experimental data, and the standard sensor data in the database, and draw an experimental curve;
[0110] The real-time curve drawing module is configured to acquire the real-time data of the first measuring point of the temperature controller and the real-time data of the second measuring point of the temperature controller, and calculate the real-time temperature compensation parameter according to the real-time data of the first measuring point of the temperature controller, the real-time data of the second measuring point of the temperature controller and the standard sensor data, and draw a real-time curve.
[0111] The temperature compensation parameter determination module is configured to determine the fitting effect of the experimental curve, the real-time curve and the fitting curve equation, and determine the temperature compensation parameter of the temperature controller according to the fitting effect.
[0112] The specific implementation of each module in the temperature controller temperature compensation parameter calculation system can refer to the above description of the temperature controller temperature compensation parameter calculation method, and will not be described here.
[0113] Embodiment three
[0114] The embodiment provides a computer device, which comprises a memory and a processor, the memory stores a computer program, and the processor implements the steps of the temperature controller temperature compensation parameter calculation method when executing the computer program.
[0115] The technical features of the above embodiments can be combined in any manner (as long as the combination of the technical features does not exist contradictions), in order to make the description simple, not all possible combinations of the technical features in the above embodiments are described; these embodiments which are not explicitly written should also be considered as the scope of the present disclosure.
Claims
1. A method for calculating temperature compensation parameters of a thermostat, characterized in that: include: Step 1: Acquire experimental data of the first measuring point of the thermostat, experimental data of the second measuring point of the thermostat, and standard sensor data under various experimental conditions, and store them in a database; Step 2: Grouping and managing the temperature controller first measurement point experimental data, the temperature controller second measurement point experimental data, and the standard sensor data in the database, and performing data cleaning and verification; Step 3: Calculate the mean temperature of the first measuring point and the mean temperature of the second measuring point under each experimental condition based on the experimental data of the first measuring point of the thermostat and the experimental data of the second measuring point of the thermostat after data cleaning and verification; Step 4: Calculate the temperature compensation mean value based on the temperature mean value of the first measuring point, the temperature mean value of the second measuring point, and the standard sensor data; Step 5: Select a fitting curve equation based on the difference between the average temperature of the first measuring point and the average temperature of the second measuring point, and calculate the coefficient of the fitting curve equation based on the difference between the average temperature of the first measuring point and the average temperature of the second measuring point and the temperature compensation mean to obtain the final fitting curve equation; Step 6: Calculate the experimental temperature compensation parameters according to the experimental data of the first measuring point of the thermostat, the experimental data of the second measuring point of the thermostat and the standard sensor data in the database, and draw an experimental curve; Step 7: Obtain the real-time data of the first measuring point of the thermostat and the real-time data of the second measuring point of the thermostat, calculate the real-time temperature compensation parameters based on the real-time data of the first measuring point of the thermostat, the real-time data of the second measuring point of the thermostat and the standard sensor data, and draw a real-time curve; Step 8: Determine the fitting effect of the experimental curve, the real-time curve, and the fitting curve equation, and determine the temperature compensation parameter of the thermostat according to the fitting effect.
2. The method for calculating the temperature compensation parameter of the thermostat according to claim 1, characterized in that: In step 1, the experimental working conditions include: a 14° experimental working condition and a 26° experimental working condition, and at least three experimental data are obtained for each experimental working condition, with at least 420 sets of data each time.
3. The method for calculating the temperature compensation parameter of the thermostat according to claim 1, wherein: In step 1, the experimental data of the first measuring point of the temperature controller, the experimental data of the second measuring point of the temperature controller and the standard sensor data are acquired through RS485 communication.
4. The method for calculating the temperature compensation parameter of a thermostat according to claim 1, wherein: In step 2, the data cleaning and verification includes: checking whether the experimental data of the first measuring point of the thermostat, the experimental data of the second measuring point of the thermostat, and the standard sensor data are complete. If not, the missing groups are supplemented and the data in the missing groups are supplemented; checking whether the experimental data of the first measuring point of the thermostat, the experimental data of the second measuring point of the thermostat, and the standard sensor data are normal, and replacing abnormal data that obviously exceeds the normal data size with the average value.
5. The method for calculating the temperature compensation parameter of the thermostat according to claim 4, characterized in that: When supplementing the missing groups, the missing data is the average value of the previous group and the next group.
6. The method for calculating the temperature compensation parameters of a thermostat according to claim 1, wherein: In step 4, the temperature compensation mean calculation formula is: kr = (T1-T) / (T2-T1), where kr represents the temperature compensation mean, T1 represents the temperature mean of the first measuring point, T2 represents the temperature mean of the second measuring point, and T represents the standard sensor data.
7. The method for calculating temperature compensation parameters of a thermostat according to claim 1, wherein: Step 5 specifically includes: Step 501: Calculate the difference between the average temperature of the first measuring point and the average temperature of the second measuring point; Step 502: Determine whether the difference between the average temperature of the first measuring point and the average temperature of the second measuring point is less than a threshold; Step 503: If it is less than the threshold, select the first fitting curve equation; the first fitting curve equation is: kr = a(T2-T1)2+b(T2-T1)+c; Step 504: If it is greater than or equal to the threshold, select a second fitting curve equation; the second fitting curve equation is: kr = b(T2-T1) + c; Step 505: Calculate the coefficients of the first fitting curve equation or the second fitting curve equation according to the first measuring point temperature average, the second measuring point temperature average, and the temperature compensation average to obtain a final fitting curve equation.
8. The method for calculating the temperature compensation parameters of a thermostat according to claim 7, wherein: The threshold value is 1.5°C.
9. A temperature controller temperature compensation parameter calculation system, characterized in that: include: The experimental data acquisition module is used to obtain the experimental data of the first measuring point of the thermostat, the experimental data of the second measuring point of the thermostat and the standard sensor data under various experimental conditions, and store them in the database; An experimental data cleaning module is used to group and manage the experimental data of the first measuring point of the thermostat, the experimental data of the second measuring point of the thermostat, and the standard sensor data in the database, and perform data cleaning and verification; The experimental data mean value calculation module is used to calculate the temperature mean of the first measuring point and the temperature mean of the second measuring point under each experimental working condition based on the experimental data of the first measuring point of the thermostat and the experimental data of the second measuring point of the thermostat after data cleaning and verification; A temperature compensation mean value calculation module is used to calculate a temperature compensation mean value based on the temperature mean value of the first measuring point, the temperature mean value of the second measuring point and standard sensor data; a fitting curve equation determination module, configured to select a fitting curve equation based on a difference between the average temperature of the first measuring point and the average temperature of the second measuring point, and calculate coefficients of the fitting curve equation based on the difference between the average temperature of the first measuring point and the average temperature of the second measuring point and a temperature compensation mean value, to obtain a final fitting curve equation; An experimental curve drawing module is used to calculate the experimental temperature compensation parameters according to the experimental data of the first measuring point of the thermostat, the experimental data of the second measuring point of the thermostat and the standard sensor data in the database, and draw the experimental curve; A real-time curve drawing module is used to obtain the real-time data of the first measuring point of the thermostat and the real-time data of the second measuring point of the thermostat, calculate the real-time temperature compensation parameter according to the real-time data of the first measuring point of the thermostat, the real-time data of the second measuring point of the thermostat and the standard sensor data, and draw the real-time curve; The temperature compensation parameter determination module is used to judge the fitting effect of the experimental curve and the real-time curve with the fitting curve equation, and determine the temperature compensation parameter of the thermostat according to the fitting effect.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Cited By
Personalized hygienic product recommendation method and system based on use state monitoring
CN121958663A