A temperature value compensation method and system for a thermostat

By building a master-slave temperature control system and dynamically adjusting the voltage compensation model of the thermostat, the problem of measurement error of the thermostat after the aging of electronic components is solved, and high-precision temperature control and performance improvement are achieved.

CN119148541BActive Publication Date: 2025-04-01GUANGDONG HUILONG ELECTRIC CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411638965.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-04-01
Estimated Expiration
2044-11-18

AI Technical Summary

Technical Problem

After a long time of use, the existing thermostats have caused voltage output errors due to aging of electronic components. The existing technology based on preset compensation values ​​cannot be dynamically adjusted, resulting in the measurement error being no longer accurate.

Method used

Build a master-slave temperature control system, centrally manage and monitor each thermostat through the main control module, obtain voltage measurement and compensation time series based on the voltage compensation model, generate voltage output time series, and dynamically adjust the voltage compensation model by correcting the fitted parameter group to ensure that the compensation parameters match the current component status.

Benefits of technology

It realizes high-precision temperature control of the thermostat in the aging of electronic components, ensures accurate measurement results, and improves the performance of the thermostat in different environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119148541B_ABST
    Figure CN119148541B_ABST
Patent Text Reader

Abstract

The present invention discloses a temperature numerical compensation method and system for a thermostat, and relates to the field of electrical digital processing technology. The method includes: constructing a master-slave temperature control system, setting a voltage compensation model corresponding to a number of thermostats; setting the thermostat to obtain a voltage compensation time series according to the voltage compensation model during operation, and transmitting the voltage measurement time series and the voltage compensation time series to the main control module; the main control module generates a voltage output time series according to the voltage measurement time series and the voltage compensation time series, and corrects the fitting parameter group and sends it to the thermostat; the thermostat updates the stored voltage compensation model according to the fitting parameter group. The present invention updates the stored voltage compensation model according to the fitting parameter group by the thermostat, so that the compensation parameters always match the state of the current electronic components of the thermostat, thereby ensuring that the thermostat can still maintain high-precision temperature control under the condition of aging of the electronic components.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electrical digital processing, and in particular to a temperature value compensation method and system for a thermostat. Background Art

[0002] Thermostat is widely used in modern industrial and living environments. It measures temperature by changing the voltage signal caused by the change in the resistance of the thermistor. However, due to the temperature rise of the thermistor, the temperature rise of the circuit board and the temperature rise of the control box, there is a significant error between the temperature corresponding to the voltage signal directly measured by the thermostat circuit and the actual ambient temperature.

[0003] In view of the measurement error caused by the above temperature rise, the prior art generally adopts the method of presetting compensation value to correct it. For example, when the thermostat is started, the system compensates according to the preset time interval and compensation value to make the measurement result closer to the actual ambient temperature. Such a method can effectively reduce the error of the thermostat in the early stage of use.

[0004] However, with long-term use, the electronic components inside the thermostat, such as capacitors, resistors, sensors, etc., will gradually age and their performance will decline, causing the existing compensation method based on preset compensation values ​​to no longer be accurate. Therefore, it is urgent to propose a temperature value compensation method to solve the problem that the existing technology lacks the ability to dynamically adjust the compensation parameters and cannot cope with the problem of thermostat voltage output error caused by component aging. Summary of the invention

[0005] The present invention provides a temperature value compensation method and system for a thermostat to solve at least one of the problems mentioned in the above background technology.

[0006] The specific technical solutions provided by this application are as follows:

[0007] A temperature value compensation method for a thermostat comprises the following steps:

[0008] Construct a master-slave temperature control system and set voltage compensation models corresponding to several temperature controllers; the master-slave temperature control system includes a master control module and the several temperature controllers; the several temperature controllers are respectively connected to the master control module in communication;

[0009] The temperature controller is set to obtain a voltage compensation time series according to a voltage compensation model during operation, and transmit the voltage measurement time series and the voltage compensation time series to a main control module;

[0010] The main control module generates a voltage output time series according to the voltage measurement time series and the voltage compensation time series, and corrects the fitting parameter group and sends it to the temperature controller; the fitting parameter group includes a first fitting parameter, a second fitting parameter and a third fitting parameter;

[0011] The temperature controller updates the stored voltage compensation model according to the fitting parameter group;

[0012] The voltage compensation model is expressed as:

[0013] ,

[0014]

[0015] in, express The voltage compensation value at the moment, represents the steady-state voltage compensation value, is the first fitting parameter, represents the steady-state voltage measurement value, is the second fitting parameter, is the third fitting parameter.

[0016] As a preferred solution, the voltage compensation model corresponding to the plurality of temperature controllers is set, comprising the steps of:

[0017] S11, obtaining a resistance-temperature mapping relationship and a resistance-pressure mapping relationship of a thermostat;

[0018] S12, setting the test environment temperature, starting the thermostat, recording the voltage measurement time series of the thermostat, and obtaining a steady-state voltage measurement value according to the voltage measurement time series;

[0019] S13, determining a theoretical steady-state resistance value according to the test environment temperature and the resistance-temperature mapping relationship, and determining a theoretical steady-state voltage output according to the theoretical steady-state resistance value and the resistance-voltage mapping relationship;

[0020] S14, calculating the difference between the voltage measurement value corresponding to each sampling time point in the voltage measurement time series and the theoretical steady-state voltage output, and obtaining the voltage compensation value and the steady-state voltage compensation value corresponding to each sampling time point;

[0021] S15, calculating a first fitting parameter reference value according to the voltage compensation value and the steady-state voltage compensation value corresponding to each sampling time point;

[0022] S16. Repeat S12-S15 until the preset number of cycles is reached; remove abnormal values ​​from the obtained first fitting parameter reference values ​​and take the average value to obtain the first fitting parameter of the voltage compensation model; calculate the second fitting parameter and the third fitting parameter of the voltage compensation model based on the steady-state voltage compensation value and the steady-state voltage measurement value obtained in each cycle.

[0023] As a preferred solution, the resistance-temperature mapping relationship is expressed as:

[0024]

[0025]

[0026] in, Indicates the thermistor temperature corresponding to the thermistor value R; k is a positive integer; represents the kth resistance-temperature polynomial; represents the m-th order polynomial coefficient of the k-th resistance-temperature polynomial; represents the order of the kth resistance-temperature polynomial; to To set a constant value.

[0027] As a preferred solution, the resistance-pressure mapping relationship is expressed as:

[0028]

[0029] in, Indicates the voltage measurement value corresponding to the thermistor value R; represents the reference voltage, represents the reference resistance, and are all constants.

[0030] As a preferred embodiment, the first fitting parameter reference value is calculated according to the voltage compensation value and the steady-state voltage compensation value corresponding to each sampling time point, specifically, the first fitting parameter reference value is calculated according to the voltage compensation value and the steady-state voltage compensation value corresponding to each sampling time point by the least squares method; the second fitting parameter and the third fitting parameter of the voltage compensation model are calculated according to the steady-state voltage compensation value and the steady-state voltage measurement value obtained in each cycle, specifically, the second fitting parameter and the third fitting parameter of the voltage compensation model are calculated according to the steady-state voltage compensation value and the steady-state voltage measurement value obtained in each cycle by the least squares method.

[0031] As a preferred solution, the correction fitting parameter group comprises the steps of:

[0032] Obtain a steady-state voltage measurement value and its corresponding steady-state measurement time according to a voltage measurement time series; obtain a steady-state voltage compensation value and its corresponding steady-state compensation time according to a voltage compensation time series;

[0033] If the compensation time difference between the steady-state measurement time and the steady-state compensation time is greater than a set first threshold, the first fitting parameter is corrected according to the steady-state measurement time.

[0034] As a preferred solution, the modified fitting parameter group further comprises the steps of:

[0035] Obtain the working state of the controlled device corresponding to the steady-state measurement time, and match the standard steady-state voltage measurement value according to the working state of the controlled device;

[0036] If the voltage measurement difference between the steady-state voltage measurement value and the standard steady-state voltage measurement value is greater than a set second threshold value, it is determined whether the corresponding thermostat has been marked as a state to be corrected; if it has not been marked as a state to be corrected, the corresponding thermostat is marked as a state to be corrected, and the steady-state voltage compensation value, the steady-state voltage measurement value and the voltage measurement difference are cached as a first data group; if it has been marked as a state to be corrected, the steady-state voltage compensation value, the steady-state voltage measurement value and the voltage measurement difference are cached as a second data group, and the second fitting parameters and the third fitting parameters are corrected according to the first data group and the second data group.

[0037] As a preferred solution, the second fitting parameter and the third fitting parameter are corrected according to the first data set and the second data set, which is expressed as:

[0038] ,

[0039]

[0040] in, is the steady-state voltage compensation value of the first data group, is the steady-state voltage compensation value of the second data group; is the voltage measurement difference of the first data group, The voltage measurement difference of the second data group; is the steady-state voltage measurement value of the first data group, is the steady-state voltage measurement value of the second data group.

[0041] As a preferred solution, after generating the voltage output time series, the step of:

[0042] Transmit voltage output time series to a remote management module;

[0043] The remote management module generates a voltage output time curve according to the voltage output time series, and performs data visualization processing on the voltage output time curve.

[0044] The present invention also provides a temperature value compensation system for a thermostat, which is used to implement the temperature value compensation method for the thermostat, and comprises a main control module and a plurality of thermostats; the plurality of thermostats are respectively connected to the main control module for communication;

[0045] The temperature controller comprises a voltage measurement module, a voltage compensation module and a first data transmission module; the voltage measurement module is used to obtain a voltage measurement time series, and the voltage compensation module is used to obtain a voltage compensation time series according to a voltage compensation model; the first data transmission module is used to transmit the voltage measurement time series and the voltage compensation time series to the main control module, and update them according to the modified fitting parameter group;

[0046] The main control module includes a second data transmission module and a data processing module; the second data transmission module is used to receive the voltage measurement time series and the voltage compensation time series, and send the corrected fitting parameter group to the temperature controller; the data processing module is used to generate a voltage output time series according to the voltage measurement time series and the voltage compensation time series, and correct the fitting parameter group.

[0047] Compared with the prior art, the present invention has the following beneficial effects:

[0048] The present invention realizes centralized management and monitoring of each thermostat through a main control module by constructing a master-slave temperature control system; based on the voltage compensation model set corresponding to the thermostat, the thermostat can transmit the voltage measurement time series and the voltage compensation time series to the main control module, and the main control module generates a voltage output time series according to the voltage measurement time series and the voltage compensation time series, so as to realize accurate measurement of the ambient temperature of the controlled equipment; and the main control module also corrects the fitting parameter group according to the voltage measurement time series and the voltage compensation time series, and the thermostat updates the stored voltage compensation model according to the fitting parameter group, so that the compensation parameters always match the current state of the electronic components of the thermostat, thereby ensuring that the thermostat can still maintain high-precision temperature control when the electronic components are aging.

[0049] The embodiment of the present invention obtains the difference between the steady-state voltage measurement value and the theoretical steady-state voltage output of the temperature controller at the test environment temperature according to the resistance-temperature mapping relationship and the resistance-voltage mapping relationship to obtain the voltage compensation value and the steady-state voltage compensation value corresponding to each sampling time point, and calculates the first fitting parameter reference value according to the voltage compensation value and the steady-state voltage compensation value corresponding to each sampling time point to ensure the accuracy of the first fitting parameter reference value obtained in each cycle; the first fitting parameter of the voltage compensation model is obtained by removing abnormal values ​​from the obtained several first fitting parameter reference values ​​and taking the average value to reduce experimental accidental errors and improve the accuracy of the first fitting parameter of the voltage compensation model; the second fitting parameter and the third fitting parameter of the voltage compensation model are calculated according to the steady-state voltage compensation value and the steady-state voltage measurement value obtained in each cycle to obtain a complete voltage compensation model. The voltage compensation model corresponding to the temperature controller is set through the above steps to ensure that the voltage compensation model has not only high accuracy, but also high reliability and versatility, thereby improving the performance of the temperature controller in different environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0052] Figure 1 A schematic flow chart of a temperature value compensation method for a thermostat provided by an embodiment of the present invention;

[0053] Figure 2 A schematic diagram of a flow chart of setting voltage compensation models corresponding to a plurality of temperature controllers provided in an embodiment of the present invention;

[0054] Figure 3 A schematic diagram of a process for correcting a fitting parameter group provided by an embodiment of the present invention;

[0055] Figure 4 The figure is a schematic diagram of the structure of a temperature value compensation system of a thermostat according to an embodiment of the present invention. DETAILED DESCRIPTION

[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 are within the scope of protection of the present invention.

[0057] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0058] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least the feature. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0059] Thermostat is widely used in modern industrial and living environments. It measures temperature by changing the voltage signal caused by the change in the resistance of the thermistor. However, due to the temperature rise of the thermistor, the temperature rise of the circuit board and the temperature rise of the control box, there is a significant error between the temperature corresponding to the voltage signal directly measured by the thermostat circuit and the actual ambient temperature.

[0060] In view of the measurement error caused by the above temperature rise, the prior art generally adopts the method of presetting compensation value to correct it. For example, when the thermostat is started, the system compensates according to the preset time interval and compensation value to make the measurement result closer to the actual ambient temperature. Such a method can effectively reduce the error of the thermostat in the early stage of use.

[0061] However, with long-term use, the electronic components inside the thermostat, such as capacitors, resistors, sensors, etc., will gradually age and their performance will decline, causing the existing compensation method based on preset compensation values ​​to no longer be accurate. Therefore, it is urgent to propose a temperature value compensation method to solve the problem that the existing technology lacks the ability to dynamically adjust the compensation parameters and cannot cope with the problem of thermostat voltage output error caused by component aging.

[0062] See also Figure 1 The present invention provides a temperature value compensation method for a thermostat, comprising:

[0063] S1. Construct a master-slave temperature control system and set voltage compensation models corresponding to a plurality of temperature controllers; the master-slave temperature control system includes a master control module and the plurality of temperature controllers; the plurality of temperature controllers are respectively connected to the master control module for communication;

[0064] S2, setting the temperature controller to obtain a voltage compensation time series according to a voltage compensation model during operation, and transmitting the voltage measurement time series and the voltage compensation time series to a main control module;

[0065] S3, the main control module generates a voltage output time series according to the voltage measurement time series and the voltage compensation time series, and corrects the fitting parameter group and sends it to the temperature controller; the fitting parameter group includes a first fitting parameter, a second fitting parameter and a third fitting parameter;

[0066] S4. The temperature controller updates the stored voltage compensation model according to the fitting parameter group.

[0067] The voltage compensation model is expressed as:

[0068] ,

[0069]

[0070] in, express The voltage compensation value at the moment, represents the steady-state voltage compensation value, is the first fitting parameter, represents the steady-state voltage measurement value, is the second fitting parameter, is the third fitting parameter.

[0071] It should be noted that in this application, the voltage measurement value refers to the voltage value directly measured by the thermostat, and the voltage output value refers to the voltage value obtained by adding the voltage measurement value to the voltage compensation value output by the voltage compensation model. The steady-state voltage measurement value refers to the voltage value when the temperature of the thermistor reaches a stable state after the temperature sensor of the thermostat has been running for a long time at ambient temperature. This voltage value no longer changes significantly over time, reflecting the voltage measurement value of the thermistor under the current ambient temperature and thermal equilibrium conditions. Due to the heating of the electronic components inside the thermostat, the voltage measurement value is usually slightly higher than the voltage corresponding to the actual ambient temperature. Therefore, it is necessary to calculate the real-time voltage compensation value to compensate the voltage measurement value to obtain the voltage output value.

[0072] In the master-slave temperature control system constructed in the present application, the main control module is responsible for coordinating and correcting multiple thermostats. Each thermostat measures the temperature independently and communicates with the main control module to obtain guidance and make adjustments. During operation, the thermostat generates a set of voltage measurement time series and voltage compensation time series based on the measured temperature according to the pre-defined voltage compensation model. The voltage measurement time series and the voltage compensation time series are sent to the main control module for centralized processing. The centralized processing may include converting the voltage output time series into an ambient temperature time series, and identifying the errors caused by the aging of the voltage compensation model of each thermostat according to the voltage output time series, and correcting the fitting parameter group of each thermostat accordingly. The corrected fitting parameter group is sent back to the thermostat, and the thermostat updates its stored voltage compensation model according to the corrected fitting parameter group. The present application implements dynamic adjustment of the voltage compensation model of the thermostat to compensate for the voltage output error caused by hardware aging.

[0073] The present application constructs a master-slave temperature control system to achieve centralized management and monitoring of each thermostat through a main control module; based on the voltage compensation model set corresponding to the thermostat, the thermostat can transmit the voltage measurement time series and the voltage compensation time series to the main control module, and the main control module generates a voltage output time series based on the voltage measurement time series and the voltage compensation time series to achieve accurate measurement of the ambient temperature of the controlled equipment; and the main control module also corrects the fitting parameter group based on the voltage measurement time series and the voltage compensation time series, and the thermostat updates the stored voltage compensation model based on the fitting parameter group, so that the compensation parameters always match the current state of the electronic components of the thermostat, thereby ensuring that the thermostat can maintain high-precision temperature control even when the electronic components are aging.

[0074] The present invention is explained in more detail below in conjunction with an embodiment of the present invention. A temperature value compensation method for a thermostat is provided, comprising:

[0075] S1. Build a master-slave temperature control system and set voltage compensation models corresponding to several temperature controllers;

[0076] The master-slave temperature control system includes a master control module and the plurality of thermostats; the plurality of thermostats are respectively connected to the master control module for communication;

[0077] For further information, see Figure 2 In step S1, the voltage compensation model corresponding to the plurality of temperature controllers is set, comprising the steps of:

[0078] S11, obtaining a resistance-temperature mapping relationship and a resistance-pressure mapping relationship of a thermostat;

[0079] The resistance-temperature mapping relationship refers to the mapping relationship between thermistor value and thermistor temperature; the resistance-voltage mapping relationship refers to the mapping relationship between thermistor value and voltage measurement value. The resistance-temperature mapping relationship and the resistance-voltage mapping relationship can be obtained through experiments or data provided by the manufacturer.

[0080] Further, the resistance-temperature mapping relationship is expressed as:

[0081]

[0082]

[0083] in, Indicates the thermistor temperature corresponding to the thermistor value R; k is a positive integer; represents the kth resistance-temperature polynomial, that is, the thermistor value is [ ) interval, to To set the constant value, it indicates the range of the thermistor resistance; represents the m-th order polynomial coefficient of the k-th resistance-temperature polynomial; Represents the order of the kth resistance-temperature polynomial.

[0084] In one embodiment, the temperature controller measures the thermistor value through a voltage divider circuit formed by connecting a thermistor in series with a reference resistor to construct a resistance-voltage mapping relationship. In this embodiment, the resistance-voltage mapping relationship is expressed as:

[0085]

[0086] in, Indicates the voltage measurement value corresponding to the thermistor value R; represents the reference voltage, represents the reference resistance, and are all constants.

[0087] S12, setting the test environment temperature, starting the thermostat, recording the voltage measurement time series of the thermostat, and obtaining the steady-state voltage measurement value according to the voltage measurement time series; the voltage measurement time series stores the voltage measurement values ​​corresponding to each sampling time point of the thermostat under the test environment temperature;

[0088] S13, determining a theoretical steady-state resistance value according to the test environment temperature and the resistance-temperature mapping relationship, and determining a theoretical steady-state voltage output according to the theoretical steady-state resistance value and the resistance-voltage mapping relationship;

[0089] S14, calculating the difference between the voltage measurement value corresponding to each sampling time point in the voltage measurement time series and the theoretical steady-state voltage output, and obtaining the voltage compensation value and the steady-state voltage compensation value corresponding to each sampling time point;

[0090] S15, calculating a first fitting parameter reference value according to the voltage compensation value and the steady-state voltage compensation value corresponding to each sampling time point;

[0091] Among them, the voltage compensation model is set as follows through data analysis:

[0092] , After analyzing the experimental data, it is determined that the relationship between the difference between the voltage measurement value and the test environment temperature over time is ideally fitted by the voltage compensation model provided in this embodiment.

[0093] Based on step S15, the voltage compensation model is fitted, including fitting the first fitting parameter by processing the voltage compensation value at each sampling time point by the least square method. When fitting the first fitting parameter, is the voltage compensation value at each sampling time point t, The steady-state voltage compensation value is obtained by analyzing the voltage compensation value corresponding to each sampling time point. The voltage compensation model is fitted through the discretized voltage compensation value of each sampling time point and applied to the actual working process to determine the voltage compensation value at any time point.

[0094] S16. Repeat S12-S15 until the preset number of cycles is reached; remove abnormal values ​​from the obtained first fitting parameter reference values ​​and take the average value to obtain the first fitting parameter of the voltage compensation model; calculate the second fitting parameter and the third fitting parameter of the voltage compensation model based on the steady-state voltage compensation value and the steady-state voltage measurement value obtained in each cycle.

[0095] Based on step S16, the voltage compensation model fitting further includes fitting the second fitting parameter and the third fitting parameter by processing the steady-state voltage compensation value and the steady-state voltage measurement value by the least square method. When fitting the second fitting parameter and the third fitting parameter, is the steady-state voltage compensation value obtained for each cycle, Steady-state voltage measurements taken for each cycle.

[0096] This embodiment obtains the difference between the steady-state voltage measurement value and the theoretical steady-state voltage output of the temperature controller at the test environment temperature according to the resistance-temperature mapping relationship and the resistance-voltage mapping relationship to obtain the voltage compensation value and the steady-state voltage compensation value corresponding to each sampling time point, and calculates the first fitting parameter reference value according to the voltage compensation value and the steady-state voltage compensation value corresponding to each sampling time point to ensure the accuracy of the first fitting parameter reference value obtained in each cycle; the first fitting parameter of the voltage compensation model is obtained by removing the abnormal values ​​from the obtained several first fitting parameter reference values ​​and taking the average value to reduce the experimental accidental error and improve the accuracy of the first fitting parameter of the voltage compensation model; the second fitting parameter and the third fitting parameter of the voltage compensation model are calculated according to the steady-state voltage compensation value and the steady-state voltage measurement value obtained in each cycle to obtain a complete voltage compensation model. This embodiment sets the voltage compensation model corresponding to the temperature controller through the above steps to ensure that the voltage compensation model has not only high accuracy, but also high reliability and versatility, thereby improving the performance of the temperature controller in different environments.

[0097] It should be noted that in each round of repeated execution of S12-S15, the test environment temperature can be set to the same or different values. During the test process of this embodiment, it was found that the test environment temperature had a significant effect on the voltage measurement value corresponding to each sampling time point in the voltage measurement time series, but the time required for the voltage measurement value to reach the steady-state voltage measurement value from the start of the thermostat was basically the same, and the linear relationship between the steady-state voltage compensation value and the steady-state voltage measurement value was also basically the same, that is, the fitting parameter group can be regarded as not affected by the test environment temperature during the application of this application, and if the electrical characteristics of the electronic components (such as capacitors, resistors, sensors, etc.) inside the thermostat remain unchanged, they can be regarded as constant values. However, the electronic components inside the thermostat will gradually age over time, which leads to changes in their electrical characteristics, making the fitting parameter group obtained by the test of this step S1 no longer accurate. Therefore, the embodiment of the present application corrects the fitting parameter group of the voltage compensation model through subsequent steps.

[0098] S2, setting the temperature controller to obtain a voltage compensation time series according to a voltage compensation model during operation, and transmitting the voltage measurement time series and the voltage compensation time series to a main control module;

[0099] Step S2 sets the temperature controller to transmit the voltage measurement time series and voltage compensation time series to the main control module during daily operation and temperature control according to the voltage compensation model of each temperature controller obtained in step S1. The voltage measurement time series is the actual voltage value measured by the temperature controller at different time points. These measured values ​​are arranged in chronological order to form a time series. These values ​​can reflect the actual working state of the temperature controller at different times. The voltage compensation time series is the voltage compensation value calculated and applied by the temperature controller at each time point according to its internal voltage compensation model.

[0100] S3, the main control module generates a voltage output time series according to the voltage measurement time series and the voltage compensation time series, and corrects the fitting parameter group and sends it to the temperature controller;

[0101] The main control module receives the voltage measurement time series and voltage compensation time series transmitted by the thermostat in real time or at a fixed time, and adds the voltage measurement time series and the voltage compensation time series to generate the voltage output time series. The voltage output time series is used to represent the voltage output value corresponding to each sampling time point of the thermostat. In this way, the working status and voltage change trend of the thermostat can be grasped in time, and the current voltage compensation model can be analyzed to see if it is accurate, so as to make necessary adjustments.

[0102] For further information, see Figure 3 , the correction fitting parameter group comprises the steps of:

[0103] S31, obtaining a steady-state voltage measurement value and its corresponding steady-state measurement time according to a voltage measurement time series; obtaining a steady-state voltage compensation value and its corresponding steady-state compensation time according to a voltage compensation time series;

[0104] S32, if the compensation time difference between the steady-state measurement time and the steady-state compensation time is greater than a set first threshold, correcting the first fitting parameter according to the steady-state measurement time;

[0105] In this embodiment, the voltage value when the voltage reaches the steady state and the corresponding time point at this time are extracted from the voltage measurement time series, and are recorded as the steady-state voltage measurement value and the corresponding steady-state measurement time respectively. The voltage value when the voltage reaches the steady state after the compensation is applied and the corresponding time point at this time are extracted from the voltage compensation time series, and are recorded as the steady-state voltage compensation value and the corresponding steady-state compensation time respectively. Then, the steady-state voltage measurement time and the steady-state voltage compensation time are compared. If the time difference (compensation time difference) between them is greater than a preset threshold value, it means that the compensation response time is not ideal, and the first fitting parameter needs to be adjusted by the steady-state voltage measurement time to improve the voltage compensation effect. Specifically, in the voltage compensation model, the first fitting parameter determines how fast the system reaches the steady state. A smaller first fitting parameter will cause the system to approach the steady state faster. Therefore, if the steady-state voltage measurement time is greater than the steady-state voltage compensation time, the first fitting parameter is increased; otherwise, the first fitting parameter is reduced. By correcting the first compensation parameter, this embodiment can ensure that the compensation system reaches the ideal stable voltage within the predicted time range to better match the dynamic response characteristics of the actual system.

[0106] Furthermore, the correction fitting parameter group further includes the steps of:

[0107] S33, obtaining the working state of the controlled device corresponding to the steady-state measurement time, and matching the standard steady-state voltage measurement value according to the working state of the controlled device;

[0108] In this embodiment, the main control module is connected to the controlled devices of all thermostats in communication. In one embodiment, the controlled device of the thermostat is an air conditioner. While receiving the voltage measurement time series and voltage compensation time series transmitted by the thermostat, the main control module also obtains the working status of the controlled device transmitted by the controlled device, such as temperature, air volume, working mode, etc. Based on the working status of the controlled device, the main control module can match the standard steady-state voltage measurement value of the thermostat in the same working status of the controlled device stored in the memory; the standard steady-state voltage measurement value of the working status of the controlled device can be obtained through experimental testing of the thermostat before it leaves the factory. It should be noted that in order to reduce the workload of experimental testing, only the standard steady-state voltage measurement values ​​of the working status of several controlled devices with higher usage frequency can be tested in the specific implementation. Steps S33 and S34 of this embodiment are only executed when the working status of the controlled device can be matched.

[0109] S34. If the voltage measurement difference between the steady-state voltage measurement value and the standard steady-state voltage measurement value is greater than the set second threshold value, determine whether the corresponding thermostat has been marked as a state to be corrected; if it has not been marked as a state to be corrected, mark the corresponding thermostat as a state to be corrected, and cache the steady-state voltage compensation value, the steady-state voltage measurement value and the voltage measurement difference as a first data group; if it has been marked as a state to be corrected, cache the steady-state voltage compensation value, the steady-state voltage measurement value and the voltage measurement difference as a second data group, and correct the second fitting parameter and the third fitting parameter according to the first data group and the second data group.

[0110] Based on the standard steady-state voltage measurement value of the same thermostat under the same controlled device working state obtained in step S33, if the difference between the steady-state voltage measurement value currently calculated by the main control module and the standard steady-state voltage measurement value is too large (the voltage measurement difference is greater than the set second threshold), it means that in the current voltage compensation model of the thermostat, according to the mapping relationship between the current steady-state voltage compensation value and the steady-state voltage measurement value Calculated steady-state voltage compensation value There is a deviation from the ideal state. Therefore, when the voltage measurement difference between the steady-state voltage measurement value and the standard steady-state voltage measurement value is greater than the set second threshold value, the corresponding thermostat is first marked as a state to be corrected, and then the steady-state voltage compensation value, the steady-state voltage measurement value and the voltage measurement difference are cached as the first data group; after marking the corresponding thermostat as a state to be corrected, if the main control module subsequently calculates that the difference between the steady-state voltage measurement value of the thermostat and the standard steady-state voltage measurement value is still too large (the voltage measurement difference is greater than the set second threshold value), the steady-state voltage compensation value, the steady-state voltage measurement value and the voltage measurement difference obtained for the second time are cached as the second data group. It should be noted that the working states of the controlled devices corresponding to the first data group and the second data group need to be different. Therefore, the steady-state voltage compensation value, the steady-state voltage measurement value and the voltage measurement difference in the first data group and the second data group are different. Then, the first data group and the second data group can be compared based on the difference between the first data group and the second data group. Perform a linear fit.

[0111] Specifically, the second fitting parameter and the third fitting parameter are corrected according to the first data group and the second data group, which is expressed as:

[0112] ,

[0113]

[0114] in, is the steady-state voltage compensation value of the first data group, is the steady-state voltage compensation value of the second data group; is the voltage measurement difference of the first data group, The voltage measurement difference of the second data group; is the steady-state voltage measurement value of the first data group, is the steady-state voltage measurement value of the second data group.

[0115] It should be noted that although this embodiment only describes performing linear fitting through two data groups to correct the second fitting parameter and the third fitting parameter, those skilled in the art can understand that in this embodiment, linear fitting can also be performed based on more data groups after accumulating these data groups.

[0116] In one embodiment, after generating the voltage output time series, the method further includes the following steps:

[0117] Transmit the voltage output time series to the remote management module; In this embodiment, the main control module has the function of remote communication with the remote management module. Specifically, the main control module transmits the generated voltage output time series to the remote management module based on the selection of a pre-set communication protocol (such as HTTP, MQTT, CoAP).

[0118] The remote management module generates a voltage output time curve according to the voltage output time series, and performs data visualization processing on the voltage output time curve. The remote management module receives the voltage output time series, processes and analyzes the received data, converts it into a voltage output time curve, and then intuitively displays the data to the remote management personnel according to the selected chart representation. In this embodiment, the graphical display of the voltage output time curve can intuitively display the law of voltage change over time, and the remote management personnel can quickly identify abnormal voltage fluctuations through the visualized chart, which is convenient for rapid response and problem solving.

[0119] S4. The temperature controller updates the stored voltage compensation model according to the fitting parameter group.

[0120] Based on the modified fitting parameter group transmitted by the main control module, the thermostat updates its stored voltage compensation model. Exemplarily, the thermostat can use non-volatile memory such as EEPROM, Flash memory, etc. to retain the voltage compensation model parameters to ensure that the voltage compensation model parameters will not be lost even if the thermostat is powered off. In this step, the thermostat receives the fitting parameter group transmitted by the main control module through the built-in communication interface, and verifies and checks the new parameters before updating to ensure that their format and values ​​are valid to prevent erroneous data from causing system failures.

[0121] See also Figure 4 , based on the same technical concept as the aforementioned temperature value compensation method of the thermostat, the present invention also provides a temperature value compensation system of the thermostat, including a main control module and a plurality of thermostats; the plurality of thermostats are respectively connected to the main control module for communication;

[0122] The temperature controller comprises a voltage measurement module, a voltage compensation module and a first data transmission module; the voltage measurement module is used to obtain a voltage measurement time series, and the voltage compensation module is used to obtain a voltage compensation time series according to a voltage compensation model; the first data transmission module is used to transmit the voltage measurement time series and the voltage compensation time series to the main control module, and update them according to the modified fitting parameter group;

[0123] The main control module includes a second data transmission module and a data processing module; the second data transmission module is used to receive the voltage measurement time series and the voltage compensation time series, and send the corrected fitting parameter group to the temperature controller; the data processing module is used to generate a voltage output time series according to the voltage measurement time series and the voltage compensation time series, and correct the fitting parameter group.

[0124] The present application constructs a master-slave temperature control system to achieve centralized management and monitoring of each thermostat through a main control module; based on the voltage compensation model set corresponding to the thermostat, the thermostat can transmit the voltage measurement time series and the voltage compensation time series to the main control module, and the main control module generates a voltage output time series based on the voltage measurement time series and the voltage compensation time series to achieve accurate measurement of the ambient temperature of the controlled equipment; and the main control module also corrects the fitting parameter group based on the voltage measurement time series and the voltage compensation time series, and the thermostat updates the stored voltage compensation model based on the fitting parameter group, so that the compensation parameters always match the current state of the electronic components of the thermostat, thereby ensuring that the thermostat can maintain high-precision temperature control even when the electronic components are aging.

[0125] In the embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the modules can be electrical, mechanical or other forms.

[0126] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0127] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0128] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

[0129] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A temperature value compensation method for a thermostat, characterized in that: Includes steps: Construct a master-slave temperature control system and set voltage compensation models corresponding to several temperature controllers; the master-slave temperature control system includes a master control module and the several temperature controllers; the several temperature controllers are respectively connected to the master control module in communication; The temperature controller is set to obtain a voltage compensation time series according to a voltage compensation model during operation, and transmit the voltage measurement time series and the voltage compensation time series to a main control module; The main control module generates a voltage output time series according to the voltage measurement time series and the voltage compensation time series, and corrects the fitting parameter group and sends it to the temperature controller; the fitting parameter group includes a first fitting parameter, a second fitting parameter and a third fitting parameter; The temperature controller updates the stored voltage compensation model according to the fitting parameter group; The voltage compensation model is expressed as: ; ; in, express The voltage compensation value at the moment, represents the steady-state voltage compensation value, is the first fitting parameter, represents the steady-state voltage measurement value, is the second fitting parameter, is the third fitting parameter; The step of setting a voltage compensation model corresponding to a plurality of temperature controllers comprises the following steps: S11, obtaining a resistance-temperature mapping relationship and a resistance-pressure mapping relationship of a thermostat; S12, setting the test environment temperature, starting the thermostat, recording the voltage measurement time series of the thermostat, and obtaining a steady-state voltage measurement value according to the voltage measurement time series; S13, determining a theoretical steady-state resistance value according to the test environment temperature and the resistance-temperature mapping relationship, and determining a theoretical steady-state voltage output according to the theoretical steady-state resistance value and the resistance-voltage mapping relationship; S14, calculating the difference between the voltage measurement value corresponding to each sampling time point in the voltage measurement time series and the theoretical steady-state voltage output, and obtaining the voltage compensation value and the steady-state voltage compensation value corresponding to each sampling time point; S15, calculating a first fitting parameter reference value according to the voltage compensation value and the steady-state voltage compensation value corresponding to each sampling time point; S16. Repeat S12-S15 until the preset number of cycles is reached; remove abnormal values ​​from the obtained first fitting parameter reference values ​​and take the average value to obtain the first fitting parameter of the voltage compensation model; calculate the second fitting parameter and the third fitting parameter of the voltage compensation model based on the steady-state voltage compensation value and the steady-state voltage measurement value obtained in each cycle.

2. The temperature value compensation method of a thermostat according to claim 1, characterized in that: The resistance-temperature mapping relationship is expressed as: ; ; in, Indicates the thermistor temperature corresponding to the thermistor value R; k is a positive integer; represents the kth resistance-temperature polynomial; represents the m-th order polynomial coefficient of the k-th resistance-temperature polynomial; represents the order of the kth resistance-temperature polynomial; to To set a constant value.

3. The temperature value compensation method of a thermostat according to claim 1, characterized in that: The resistance-pressure mapping relationship is expressed as: ; in, Indicates the voltage measurement value corresponding to the thermistor value R; represents the reference voltage, represents the reference resistance, and are all constants.

4. The temperature value compensation method of a thermostat according to claim 1, characterized in that: The first fitting parameter reference value is calculated according to the voltage compensation value and the steady-state voltage compensation value corresponding to each sampling time point, specifically, the first fitting parameter reference value is calculated according to the voltage compensation value and the steady-state voltage compensation value corresponding to each sampling time point by the least squares method; the second fitting parameter and the third fitting parameter of the voltage compensation model are calculated according to the steady-state voltage compensation value and the steady-state voltage measurement value obtained in each cycle, specifically, the second fitting parameter and the third fitting parameter of the voltage compensation model are calculated according to the steady-state voltage compensation value and the steady-state voltage measurement value obtained in each cycle by the least squares method.

5. The temperature value compensation method of a thermostat according to claim 1, characterized in that: The correction fitting parameter group comprises the steps of: Obtain a steady-state voltage measurement value and its corresponding steady-state measurement time according to a voltage measurement time series; obtain a steady-state voltage compensation value and its corresponding steady-state compensation time according to a voltage compensation time series; If the compensation time difference between the steady-state measurement time and the steady-state compensation time is greater than a set first threshold, the first fitting parameter is corrected according to the steady-state measurement time.

6. A temperature value compensation method for a thermostat according to claim 5, characterized in that: The modified fitting parameter group further comprises the steps of: Obtain the working state of the controlled device corresponding to the steady-state measurement time, and match the standard steady-state voltage measurement value according to the working state of the controlled device; If the voltage measurement difference between the steady-state voltage measurement value and the standard steady-state voltage measurement value is greater than a set second threshold, determining whether the corresponding thermostat has been marked as a state to be corrected; If it is not marked as a state to be corrected, the corresponding temperature controller is marked as a state to be corrected, and the steady-state voltage compensation value, the steady-state voltage measurement value and the voltage measurement difference are cached as the first data group; if it is marked as a state to be corrected, the steady-state voltage compensation value, the steady-state voltage measurement value and the voltage measurement difference are cached as the second data group, and the second fitting parameters and the third fitting parameters are corrected according to the first data group and the second data group.

7. The temperature value compensation method of a thermostat according to claim 6, characterized in that: The second fitting parameter and the third fitting parameter are corrected according to the first data set and the second data set, which is expressed as: ; ; in, is the steady-state voltage compensation value of the first data group, is the steady-state voltage compensation value of the second data group; is the voltage measurement difference of the first data group, The voltage measurement difference of the second data group; is the steady-state voltage measurement value of the first data group, is the steady-state voltage measurement value of the second data group.

8. The temperature value compensation method of a thermostat according to claim 7, characterized in that: After the voltage output time series is generated, the step further includes: Transmit voltage output time series to a remote management module; The remote management module generates a voltage output time curve according to the voltage output time series, and performs data visualization processing on the voltage output time curve.

9. A temperature value compensation system for a thermostat, characterized in that: A method for implementing the temperature value compensation of a thermostat as claimed in any one of claims 1 to 8, comprising a main control module and a plurality of thermostats; the plurality of thermostats are respectively connected to the main control module for communication; The temperature controller comprises a voltage measurement module, a voltage compensation module and a first data transmission module; the voltage measurement module is used to obtain a voltage measurement time series, and the voltage compensation module is used to obtain a voltage compensation time series according to a voltage compensation model; the first data transmission module is used to transmit the voltage measurement time series and the voltage compensation time series to the main control module, and update them according to the modified fitting parameter group; The main control module includes a second data transmission module and a data processing module; The second data transmission module is used to receive the voltage measurement time series and the voltage compensation time series, and send the modified fitting parameter group to the temperature controller; The data processing module is used to generate a voltage output time series according to the voltage measurement time series and the voltage compensation time series, and to correct the fitting parameter group.

Citation Information

Patent Citations

  • Temperature controller and temperature compensation method thereof

    CN113835456A

  • Temperature compensation method and device for temperature controller

    CN115712316A