A temperature compensation method and apparatus
By setting up external and internal temperature sensors in a temperature conduction scenario, and using thermistors and fixed resistors to calculate the temperature difference and compensation algorithm, the problem of low accuracy in temperature detection and compensation is solved, achieving efficient and low-cost temperature measurement and compensation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SOUTH CHINA SEA INST OF OCEANOLOGY CHINESE ACAD OF SCI
- Filing Date
- 2023-05-17
- Publication Date
- 2026-05-19
AI Technical Summary
In temperature measurement, rapidly changing external environments can cause thermal imbalances between the measuring part and the external environment, leading to significant measurement errors. This is especially true in temperature conduction scenarios, where the accuracy of temperature detection and compensation is low.
By setting first and second temperature sensors outside and inside the space area respectively, and using a temperature sensor composed of a thermistor and a fixed resistor connected in series, the temperature value is calculated, and the target temperature is determined based on the temperature difference and compensation algorithm, and then corrected by combining the distance temperature transfer efficiency model.
It improves the efficiency and accuracy of temperature detection and compensation, reduces measurement errors and compensation costs during the temperature equilibration process, and is suitable for practical scenarios.
Smart Images

Figure CN116593031B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of temperature measurement, and more particularly to a temperature compensation method and apparatus. Background Technology
[0002] In temperature measurement, the temperature is retrieved by detecting the resistance of a thermistor or platinum resistance thermometer, which requires a fixed reference resistor. During field measurements, the thermistor or platinum resistance thermometer is placed in a thin-walled enclosure to respond quickly to changes in external temperature, while the fixed reference resistor is placed inside the instrument compartment. Its temperature equilibrium lags behind the external temperature, and its temperature coefficient causes measurement errors.
[0003] In practical applications, when the ambient temperature changes rapidly and the thermal balance between the measuring part and the external environment is no longer met, a large measurement error will be introduced. A 1°C difference between the internal temperature and the external temperature will introduce a measurement error of more than 0.005°C.
[0004] Therefore, it is particularly important to provide an effective temperature compensation method to reduce temperature measurement errors during the temperature equilibrium process. Summary of the Invention
[0005] This invention provides a temperature compensation method and apparatus that can solve the problem of low accuracy in temperature detection and compensation in temperature conduction scenarios, improve the efficiency and accuracy of temperature detection and compensation, and reduce temperature measurement errors in the temperature equilibrium process.
[0006] To address the aforementioned technical problems, the first aspect of this invention discloses a temperature compensation method, the method comprising: determining a first temperature value outside a spatial region using a first temperature sensor disposed outside a spatial region of a certain space; and determining a second temperature value within the spatial region using a second temperature sensor disposed within the spatial region of the space.
[0007] During the process of balancing the temperature outside the space region and the temperature inside the space region, the target temperature of the space after temperature compensation is determined based on the first temperature value, the second temperature value, and a pre-determined temperature compensation algorithm.
[0008] As an optional implementation, in the first aspect of the present invention, determining a first temperature value outside a spatial region using a first temperature sensor disposed outside the spatial region includes:
[0009] A first temperature value outside the spatial region is determined by a first temperature sensor consisting of a first thermistor and a first fixed resistor connected in series, which is set outside the spatial region of a certain space.
[0010] The formula for calculating the first temperature value is as follows:
[0011]
[0012] Wherein, T1 is the first temperature value, U1 is the first thermistor voltage of the first thermistor, U2 is the first fixed voltage of the first fixed resistor, Rf1 is the resistance value of the first fixed resistor, and F1 is the pre-determined temperature inversion function of the first temperature sensor, used to determine the temperature value based on the resistance value.
[0013] As an optional implementation, in the first aspect of the present invention, determining a second temperature value within the spatial region using a second temperature sensor disposed within the spatial region of the space includes:
[0014] A second temperature value within the space is determined by a second temperature sensor consisting of a second thermistor and a second fixed resistor connected in series within the space area.
[0015] The formula for calculating the second temperature value is as follows:
[0016]
[0017] Wherein, T2 is the second temperature value; U3 is the second thermistor voltage of the second thermistor; U4 is the second fixed voltage of the second fixed resistor; Rf2 is the resistance value of the second fixed resistor; and F2 is a pre-determined temperature inversion function of the second temperature sensor, used to determine the temperature value based on the resistance value.
[0018] As an optional implementation, in a first aspect of the present invention, determining the target temperature of the space after temperature compensation based on the first temperature value, the second temperature value, and a pre-determined temperature compensation algorithm includes:
[0019] Based on the first temperature value and the second temperature value, determine the temperature difference between the first temperature value and the second temperature value;
[0020] Based on the temperature difference and the predetermined temperature compensation algorithm, the target temperature of the space after temperature compensation is calculated.
[0021] The temperature compensation algorithm includes:
[0022]
[0023] Wherein, T is the target temperature, (T1-T2) is the temperature difference between the first temperature value and the second temperature value, and S1 is the temperature coefficient of the first fixed resistor; or,
[0024]
[0025] Wherein, T is the target temperature, (T1-T2) is the temperature difference between the first temperature value and the second temperature value, and S2 is the temperature coefficient of the second fixed resistor.
[0026] As an optional implementation, in the first aspect of the present invention, the method further includes:
[0027] After determining the target temperature of the space after temperature compensation based on the first temperature value, the second temperature value, and a pre-determined temperature compensation algorithm, the distance difference between the first temperature sensor and the second temperature sensor is obtained.
[0028] Based on the distance difference and the preset distance-temperature transfer efficiency model, the temperature correction coefficient corresponding to the distance difference is determined, and the determined target temperature is corrected to obtain the corrected temperature.
[0029] The distance-temperature transfer efficiency model is used to characterize the relationship between temperature transfer distance and temperature transfer efficiency. The formula for calculating the corrected temperature is as follows:
[0030] T3 = u * T;
[0031] Where T3 is the corrected temperature, T is the target temperature, and u is the temperature correction coefficient corresponding to the distance difference.
[0032] A second aspect of the present invention discloses a temperature compensation device, the device comprising:
[0033] The first temperature module is used to determine a first temperature value outside the spatial area by means of a first temperature sensor located outside the spatial area of a certain space;
[0034] The second temperature module is used to determine a second temperature value within the space area by means of a second temperature sensor disposed within the space area;
[0035] The determination module is used to determine the target temperature of the space after temperature compensation during the process of balancing the temperature outside the space region and the temperature inside the space region, based on the first temperature value, the second temperature value, and a pre-determined temperature compensation algorithm.
[0036] As an optional implementation, in a second aspect of the present invention, the first temperature module is specifically used for:
[0037] A first temperature value outside the spatial region is determined by a first temperature sensor consisting of a first thermistor and a first fixed resistor connected in series, which is set outside the spatial region of a certain space.
[0038] The formula for calculating the first temperature value is as follows:
[0039]
[0040] Wherein, T1 is the first temperature value, U1 is the first thermistor voltage of the first thermistor, U2 is the first fixed voltage of the first fixed resistor, Rf1 is the resistance value of the first fixed resistor, and F1 is the pre-determined temperature inversion function of the first temperature sensor, used to determine the temperature value based on the resistance value.
[0041] As an optional implementation, in a second aspect of the invention, the second temperature module is specifically used for:
[0042] A second temperature value within the space is determined by a second temperature sensor consisting of a second thermistor and a second fixed resistor connected in series within the space area.
[0043] The formula for calculating the second temperature value is as follows:
[0044]
[0045] Wherein, T2 is the second temperature value; U3 is the second thermistor voltage of the second thermistor; U4 is the second fixed voltage of the second fixed resistor; Rf2 is the resistance value of the second fixed resistor; and F2 is a pre-determined temperature inversion function of the second temperature sensor, used to determine the temperature value based on the resistance value.
[0046] As an optional implementation, in a second aspect of the invention, the determining module is specifically used for:
[0047] Based on the first temperature value and the second temperature value, determine the temperature difference between the first temperature value and the second temperature value;
[0048] Based on the temperature difference and the predetermined temperature compensation algorithm, the target temperature of the space after temperature compensation is calculated.
[0049] The temperature compensation algorithm includes:
[0050]
[0051] Wherein, T is the target temperature, (T1-T2) is the temperature difference between the first temperature value and the second temperature value, and S1 is the temperature coefficient of the first fixed resistor; or,
[0052]
[0053] Wherein, T is the target temperature, (T1-T2) is the temperature difference between the first temperature value and the second temperature value, and S2 is the temperature coefficient of the second fixed resistor.
[0054] As an optional implementation, in a second aspect of the invention, the apparatus further includes:
[0055] A temperature correction module is used to obtain the distance difference between the first temperature sensor and the second temperature sensor;
[0056] Based on the distance difference and the preset distance-temperature transfer efficiency model, the temperature correction coefficient corresponding to the distance difference is determined, and the determined target temperature is corrected to obtain the corrected temperature.
[0057] The distance-temperature transfer efficiency model is used to characterize the relationship between temperature transfer distance and temperature transfer efficiency. The formula for calculating the corrected temperature is as follows:
[0058] T3 = u * T;
[0059] Where T3 is the corrected temperature, T is the target temperature, and u is the temperature correction coefficient corresponding to the distance difference.
[0060] A third aspect of the present invention discloses another temperature compensation device, the device comprising:
[0061] Memory containing executable program code;
[0062] A processor coupled to the memory;
[0063] The processor calls the executable program code stored in the memory to execute some or all of the steps in any of the temperature compensation methods disclosed in the first aspect of the present invention.
[0064] The fourth aspect of the present invention discloses a computer storage medium storing computer instructions, which, when invoked, are used to execute some or all of the steps in any of the temperature compensation methods disclosed in the first aspect of the present invention.
[0065] Compared with the prior art, the present invention has the following beneficial effects:
[0066] In this invention, a first temperature value is determined outside a spatial region by a first temperature sensor positioned outside the region; a second temperature value is determined within the spatial region by a second temperature sensor positioned within the region; during the balancing process between the outside and inside temperatures, the target temperature of the space after temperature compensation is determined based on the first and second temperature values and a pre-determined temperature compensation algorithm. Therefore, this invention solves the problem of low accuracy in temperature detection and compensation in temperature conduction scenarios, improves the efficiency and accuracy of temperature detection and compensation, reduces temperature measurement errors during the temperature balancing process, and lowers the cost of temperature compensation, making it easier to apply and popularize in practical scenarios. Attached Figure Description
[0067] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0068] Figure 1 This is a schematic diagram of a temperature compensation circuit disclosed in an embodiment of the present invention;
[0069] Figure 2 This is a schematic flowchart of a temperature compensation method disclosed in an embodiment of the present invention;
[0070] Figure 3 This is a schematic flowchart of another temperature compensation method disclosed in an embodiment of the present invention;
[0071] Figure 4 This is a schematic diagram of the structure of a temperature compensation device disclosed in an embodiment of the present invention;
[0072] Figure 5 This is a schematic diagram of another temperature compensation device disclosed in an embodiment of the present invention;
[0073] Figure 6 This is a schematic diagram of the structure of another temperature compensation device disclosed in an embodiment of the present invention. Detailed Implementation
[0074] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0075] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or end that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.
[0076] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0077] This invention discloses a temperature compensation method and apparatus, which can solve the problem of low accuracy in temperature detection and compensation in temperature conduction scenarios, improve the efficiency and accuracy of temperature detection and compensation, reduce temperature measurement errors during temperature equilibrium, and simultaneously reduce the cost of temperature compensation, making it easy to apply and popularize in practical scenarios. Furthermore, one or more embodiments of this invention can be applied to any scenario requiring temperature detection or temperature compensation, and the embodiments of this invention are not limited thereto.
[0078] Firstly, this temperature compensation method and device are applied in scenarios requiring heat transfer or conduction. In such scenarios, a sufficiently long time is needed to reach adequate thermal equilibrium, which leads to reduced temperature measurement efficiency and lower accuracy. For example, in practical oceanographic applications, temperature, salinity, and depth (TST) instruments, especially towed TST instruments, are frequently used. The external ambient temperature changes rapidly, and when the thermal equilibrium between the internal temperature measurement unit and the external environment is no longer met, significant measurement errors are introduced.
[0079] To better understand the temperature compensation method and apparatus disclosed in this invention, the temperature compensation circuit of this invention is first described. It should be noted that the circuit diagram shown below is only a part of the embodiments of this invention, and not all of them. Specifically, Figure 1 This is a circuit diagram illustrating temperature compensation according to an embodiment of the present invention. This device is applied in a temperature detection equipment comprising an inner space and an outer space, where temperature transmission between the inner and outer spaces cannot be synchronized in a timely manner. For example... Figure 1Preferably, the region containing Rt1 (i.e., the first thermistor) is the outer space, and the regions containing Rf1 (i.e., the first fixed resistor), Rt2 (i.e., the second thermistor), and Rf2 (i.e., the second fixed resistor) are the inner space. Alternatively, Rt1 and Rf1 can both be placed in the outer space, and Rt2 and Rf2 can both be placed in the inner space; this embodiment of the invention is not limited to this. Furthermore, U1 is the first thermistor voltage, U2 is the first fixed resistor voltage, U3 is the second thermistor voltage, and U4 is the second fixed resistor voltage.
[0080] Example 1
[0081] Please see Figure 2 , Figure 2 This is a schematic flowchart of a temperature compensation method disclosed in an embodiment of the present invention. Wherein, Figure 2 The described method can be applied to temperature detection or temperature compensation devices, which can be standalone devices or integrated into equipment requiring temperature detection; this embodiment of the invention does not impose limitations. Figure 2 As shown, the temperature compensation method may include the following operations:
[0082] 101. Determine the first temperature value outside the space region by using a first temperature sensor located outside the space region of a certain space.
[0083] In this embodiment of the invention, a first temperature value outside the space region is detected by a first temperature sensor disposed outside the space region. The first temperature sensor may be a thermocouple sensor, a resistive temperature sensor, a thermistor temperature sensor, or a fiber optic temperature sensor, and this embodiment of the invention does not limit the type of sensor.
[0084] Furthermore, the first temperature sensor is preferably placed on the outer wall of the space region, so that the first temperature sensor can better reflect the temperature outside the space region. It should be noted that if the first temperature sensor is far from the outer wall of the space region, it may introduce a large error due to heat conduction efficiency issues.
[0085] 102. Determine the second temperature value within the space area by using a second temperature sensor installed within the space area.
[0086] In this embodiment of the invention, similar to step 101, the second temperature sensor used to detect the temperature within the spatial region is not limited to any particular sensor type. Preferably, the second temperature sensor is placed on the inner edge (inner wall) of the spatial region near the outer wall.
[0087] 103. During the process of balancing the temperature outside the space region and the temperature inside the space region, the target temperature of the space after temperature compensation is determined based on the first temperature value, the second temperature value, and the pre-determined temperature compensation algorithm.
[0088] In this embodiment of the invention, during the process of balancing the temperature outside the space region and the temperature inside the space region, the target temperature value of the space after temperature compensation is determined by the amount of change between the first temperature value and the second temperature value, and the correlation between the amount of change and the corresponding temperature compensation index. The amount of change between the first electrical temperature value and the second temperature value can be selected according to the actual situation; it can be a differential change or a partial derivative change, and this embodiment of the invention does not impose any limitation.
[0089] Furthermore, the first temperature value and the second temperature value can be input into a pre-set mathematical model, namely the temperature compensation algorithm mentioned above, to determine the output result of the pre-set mathematical model, and the output result is determined as the target temperature value of the space after temperature compensation; wherein, the pre-set mathematical model includes a pre-set linear model, a pre-set nonlinear model, or a pre-set neural network model, and the embodiments of the present invention are not limited thereto.
[0090] As can be seen, the method described in the embodiments of the present invention can solve the problem of low accuracy of temperature detection and temperature compensation in temperature conduction scenarios, improve the efficiency and accuracy of temperature detection and temperature compensation, reduce temperature measurement errors in the temperature equilibrium process, and reduce the cost of temperature compensation, making it easy to apply and popularize in practical scenarios.
[0091] In an optional embodiment, such as Figure 1 The method for determining the first temperature value outside the space region may include the following operations:
[0092] The first temperature value outside the space region is determined by a first temperature sensor consisting of a first thermistor and a first fixed resistor connected in series, which is located outside the space region.
[0093] The formula for calculating the first temperature value is as follows:
[0094]
[0095] Wherein, T1 is the first temperature value, U1 is the first thermistor voltage of the first thermistor, U2 is the first fixed voltage of the first fixed resistor, Rf1 is the resistance value of the first fixed resistor, and F1 is the pre-determined temperature inversion function of the first temperature sensor, used to determine the temperature value based on the resistance value.
[0096] In this embodiment of the invention, a first temperature sensor, comprising at least one thermistor and one fixed resistor connected in series, is used to determine the temperature value outside a spatial region. It should be noted that the first thermistor and the first fixed resistor are merely for ease of description; they may include multiple resistors or a combination of resistors and other components to form the hot and cold junctions of the thermistor temperature sensor. This embodiment of the invention does not impose any limitations. Furthermore, a temperature inversion function for the first temperature sensor needs to be predetermined. This can be determined through calibration or statistical fitting, and this embodiment of the invention does not impose any limitations. This temperature inversion function is used to determine the actual first temperature value based on the detected value of the first thermistor, wherein the detection result of the first thermistor is determined by the voltage value of the first thermistor and the resistance and voltage values of the first fixed resistor.
[0097] As can be seen, the method described in the embodiments of the present invention can quickly determine the temperature value outside the space area by setting a thermal sensor, which can greatly reduce the cost of temperature compensation, achieve temperature detection with fewer components, reduce the temperature drift problem caused by complex circuits, further reduce the interference factors of temperature compensation, and improve the accuracy of detection.
[0098] In yet another alternative embodiment, the method for determining a second temperature value within a spatial region may include the following operations:
[0099] The second temperature value within the space is determined by a second temperature sensor consisting of a second thermistor and a second fixed resistor connected in series within the space area.
[0100] The formula for calculating the second temperature value is as follows:
[0101]
[0102] Where T2 is the second temperature value; U3 is the second thermistor voltage of the second thermistor; U4 is the second fixed voltage of the second fixed resistor; Rf2 is the resistance value of the second fixed resistor; and F2 is the pre-determined temperature inversion function of the second temperature sensor, used to determine the temperature value based on the resistance value.
[0103] In this embodiment of the invention, a thermal sensor is also used to quickly determine the temperature value within the space area. For details, please refer to the above embodiments, which will not be repeated here.
[0104] As can be seen, the method described in the embodiments of the present invention can quickly determine the temperature value in a spatial area by setting a thermal sensor, which can further greatly reduce the cost of temperature compensation, achieve temperature detection with fewer components while reducing the temperature drift problem caused by complex circuits, further reducing the interference factors of temperature compensation, and improving the accuracy of detection.
[0105] In yet another alternative embodiment, after determining a first temperature value outside the region and a second temperature value within the region, the method determines a target temperature for the space after temperature compensation, which may include the following operations:
[0106] Determine the temperature difference between the first temperature value and the second temperature value based on the first temperature value and the second temperature value;
[0107] Based on the temperature difference and a pre-determined temperature compensation algorithm, the target temperature of the space after temperature compensation is calculated.
[0108] The temperature compensation algorithm includes:
[0109]
[0110] Where T is the target temperature, (T1-T2) is the temperature difference between the first and second temperature values, and S1 is the temperature coefficient of the first fixed resistor; or...
[0111]
[0112] Where T is the target temperature, (T1-T2) is the temperature difference between the first temperature value and the second temperature value, and S2 is the temperature coefficient of the second fixed resistor.
[0113] In this embodiment of the invention, the difference between the first temperature and the second temperature is used as the change quantity, and the final target temperature is determined through a temperature compensation algorithm model. It should be noted that this embodiment discloses two temperature compensation algorithms. The first is based on the temperature measurement properties of the first temperature sensor, which is also the preferred solution. The first temperature sensor, as an external detection element, can quickly report temperature changes. The second is based on the temperature measurement properties of the second temperature sensor, and the specific algorithm can be selected according to the actual situation; this embodiment does not limit the choice. For example, in spaces with high temperature conductivity, the first temperature compensation algorithm can be used, while in spaces with low temperature conductivity, the second temperature compensation algorithm can be used. Similarly, both temperature compensation methods can be used simultaneously based on the time-varying temperature to improve the applicability of temperature detection.
[0114] As can be seen, the method described in the embodiments of the present invention can solve the problem of low accuracy in temperature detection and temperature compensation in temperature conduction scenarios, improve the efficiency and accuracy of temperature detection and temperature compensation, reduce temperature measurement errors in the temperature equilibrium process, reduce the cost of temperature compensation, improve the versatility and applicability of temperature compensation methods, and facilitate application and popularization in practical scenarios.
[0115] Example 2
[0116] Please see Figure 3 , Figure 3 This is a schematic flowchart of another temperature compensation method disclosed in an embodiment of the present invention. Wherein, Figure 3 The described method can be applied to temperature detection or temperature compensation devices, which can be standalone devices or integrated into equipment requiring temperature detection; this embodiment of the invention does not impose limitations. Figure 3 As shown, the temperature compensation method may include the following operations:
[0117] 201. Determine the first temperature value outside the space region by using a first temperature sensor located outside the space region of a certain space.
[0118] 202. Determine the second temperature value within the space area by using a second temperature sensor installed within the space area.
[0119] 203. During the process of balancing the temperature outside the space region and the temperature inside the space region, the target temperature of the space after temperature compensation is determined based on the first temperature value, the second temperature value, and the pre-determined temperature compensation algorithm.
[0120] In this embodiment of the invention, for other descriptions of steps 201-203, please refer to the detailed description of steps 101-103 in Embodiment 1 respectively. This embodiment of the invention will not repeat them.
[0121] 204. Correct the target temperature to obtain the corrected temperature.
[0122] In this embodiment of the invention, after determining the target temperature of the space after temperature compensation, the target temperature can be further corrected to obtain a corrected temperature. Specific methods may include the following operations:
[0123] Obtain the distance difference between the first temperature sensor and the second temperature sensor;
[0124] Based on the distance difference and the preset distance-temperature transfer efficiency model, the temperature correction coefficient corresponding to the distance difference is determined, and the determined target temperature is corrected to obtain the corrected temperature.
[0125] The distance-temperature transfer efficiency model is used to characterize the relationship between temperature transfer distance and temperature transfer efficiency. The formula for calculating the corrected temperature is as follows:
[0126] T3 = u * T;
[0127] Where T3 is the corrected temperature, T is the target temperature, and u is the temperature correction coefficient corresponding to the distance difference.
[0128] In this embodiment of the invention, the target temperature can be further corrected to further improve the accuracy and precision of temperature compensation. First, the distance difference between the first and second temperature sensors needs to be determined. This distance difference is then input into a preset distance-temperature transfer efficiency model to obtain the temperature correction coefficient. It should be noted that the temperature transfer efficiency model can be determined based on statistical values from historical detection data or through a laboratory temperature calibration process.
[0129] For example, taking the temperature calibration process as an example, different temperature values are set outside the space area. After the internal and external temperatures reach equilibrium, temperature detection points are designed at the same distance interval (e.g., 1 cm) on the virtual connection line between the first temperature sensor and the second temperature sensor. The actual temperature values corresponding to different distances are detected. Then, the actual temperature values at different locations, the currently set temperature value, and the distance position are fitted into a mathematical model to obtain the distance temperature transfer efficiency model.
[0130] As can be seen, the method described in the embodiments of the present invention can solve the problem of low accuracy in temperature detection and temperature compensation in temperature conduction scenarios. By combining the distance between temperature sensors, the temperature compensation value can be further corrected, which can effectively improve the efficiency and accuracy of temperature detection and temperature compensation, reduce the temperature measurement error in the temperature equilibrium process, and reduce the cost of temperature compensation. It is easy to apply and popularize in practical scenarios.
[0131] Example 3
[0132] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of a temperature compensation device disclosed in an embodiment of the present invention. Figure 4 The described device can be applied to temperature detection or temperature compensation devices. This temperature detection or compensation device can be a standalone device or integrated into a device requiring temperature detection; the embodiments of the present invention do not limit this. It should be noted that the temperature compensation device refers to the steps of a temperature compensation method described in Embodiments 1 and 2; detailed descriptions will not be repeated in this embodiment. Figure 4 As shown, the temperature compensation device may include:
[0133] The first temperature module 301 is used to determine the first temperature value outside the space area by means of a first temperature sensor set outside the space area of a certain space;
[0134] The second temperature module 302 is used to determine a second temperature value within the space area by means of a second temperature sensor disposed within the space area.
[0135] The determination module 303 is used to determine the target temperature of the space after temperature compensation based on the first temperature value, the second temperature value, and a pre-determined temperature compensation algorithm during the process of balancing the temperature outside the space region and the temperature inside the space region.
[0136] As can be seen, the device described in the embodiments of the present invention can solve the problem of low accuracy of temperature detection and temperature compensation in temperature conduction scenarios, improve the efficiency and accuracy of temperature detection and temperature compensation, reduce temperature measurement errors in the temperature equilibrium process, and reduce the cost of temperature compensation, making it easy to apply and popularize in practical scenarios.
[0137] In an optional embodiment, such as Figure 5 As shown, the first temperature module 301 is specifically used for:
[0138] A first temperature value outside a certain space region is determined by a first temperature sensor consisting of a first thermistor and a first fixed resistor connected in series, which is set outside the space region of a certain space.
[0139] The formula for calculating the first temperature value is as follows:
[0140]
[0141] Wherein, T1 is the first temperature value, U1 is the first thermistor voltage of the first thermistor, U2 is the first fixed voltage of the first fixed resistor, Rf1 is the resistance value of the first fixed resistor, and F1 is the pre-determined temperature inversion function of the first temperature sensor, used to determine the temperature value based on the resistance value.
[0142] As can be seen, the device described in the embodiments of the present invention can quickly determine the temperature value outside the space area by setting a thermal sensor, which can greatly reduce the cost of temperature compensation, achieve temperature detection with fewer components, reduce the temperature drift problem caused by complex circuits, further reduce the interference factors of temperature compensation, and improve the accuracy of detection.
[0143] In another alternative embodiment, such as Figure 5 As shown, the second temperature module 302 is specifically used for:
[0144] The second temperature value within the space is determined by a second temperature sensor consisting of a second thermistor and a second fixed resistor connected in series within the space area.
[0145] The formula for calculating the second temperature value is as follows:
[0146]
[0147] Where T2 is the second temperature value; U3 is the second thermistor voltage of the second thermistor; U4 is the second fixed voltage of the second fixed resistor; Rf2 is the resistance value of the second fixed resistor; and F2 is the pre-determined temperature inversion function of the second temperature sensor, used to determine the temperature value based on the resistance value.
[0148] As can be seen, the device described in the embodiments of the present invention can quickly determine the temperature value in a spatial area by setting a thermal sensor, which can further greatly reduce the cost of temperature compensation, achieve temperature detection with fewer components while reducing the temperature drift problem caused by complex circuits, further reducing the interference factors of temperature compensation, and improving the accuracy of detection.
[0149] In yet another alternative embodiment, such as Figure 5 As shown, module 303 is specifically used for:
[0150] Determine the temperature difference between the first temperature value and the second temperature value based on the first temperature value and the second temperature value;
[0151] Based on the temperature difference and a pre-determined temperature compensation algorithm, the target temperature of the space after temperature compensation is calculated.
[0152] The temperature compensation algorithm includes:
[0153]
[0154] Where T is the target temperature, (T1-T2) is the temperature difference between the first and second temperature values, and S1 is the temperature coefficient of the first fixed resistor; or...
[0155]
[0156] Where T is the target temperature, (T1-T2) is the temperature difference between the first temperature value and the second temperature value, and S2 is the temperature coefficient of the second fixed resistor.
[0157] As can be seen, the device described in the embodiments of the present invention can solve the problem of low accuracy in temperature detection and temperature compensation in temperature conduction scenarios, improve the efficiency and accuracy of temperature detection and temperature compensation, reduce temperature measurement errors in the temperature equilibrium process, reduce the cost of temperature compensation, improve the versatility and applicability of temperature compensation methods, and facilitate application and popularization in practical scenarios.
[0158] In yet another alternative embodiment, such as Figure 5 As shown, the device may further include:
[0159] Temperature correction module 304 is used to obtain the distance difference between the first temperature sensor and the second temperature sensor;
[0160] Based on the distance difference and the preset distance-temperature transfer efficiency model, the temperature correction coefficient corresponding to the distance difference is determined, and the determined target temperature is corrected to obtain the corrected temperature.
[0161] The distance-temperature transfer efficiency model is used to characterize the relationship between temperature transfer distance and temperature transfer efficiency. The formula for calculating the corrected temperature is as follows:
[0162] T3 = u * T;
[0163] Where T3 is the corrected temperature, T is the target temperature, and u is the temperature correction coefficient corresponding to the distance difference.
[0164] As can be seen, the device described in the embodiments of the present invention can solve the problem of low accuracy in temperature detection and temperature compensation in temperature conduction scenarios. At the same time, it can further correct the temperature compensation value by combining the distance between temperature sensors, effectively improving the efficiency and accuracy of temperature detection and temperature compensation, reducing temperature measurement errors in the temperature equilibrium process, and reducing the cost of temperature compensation. It is easy to apply and popularize in practical scenarios.
[0165] Example 4
[0166] Please see Figure 6 , Figure 6 This is a schematic diagram of another temperature compensation device disclosed in an embodiment of the present invention. Wherein, Figure 6 The described device can be applied to a temperature detection or temperature compensation device, which can be a standalone device or integrated into a processing device requiring temperature detection. This invention does not limit the scope of the invention. Figure 6 As shown, the temperature compensation device may include:
[0167] Memory 401 storing executable program code;
[0168] Processor 402 coupled to memory 401;
[0169] The processor 402 calls the executable program code stored in the memory 401 to execute some or all of the steps in the temperature compensation method disclosed in Embodiment 1 or Embodiment 2 of the present invention.
[0170] Example 5
[0171] This invention discloses a computer storage medium storing computer instructions, which, when invoked, are used to execute the steps in the temperature compensation method disclosed in Embodiment 1 or Embodiment 2 of this invention.
[0172] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0173] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0174] It should be noted that the computer program code required for the operation of each part of this manual can be written in any one or more programming languages, including object-oriented programming languages such as Java, Scala, Smalltalk, Eiffel, JADE, Emerald, C++, C#, VB.NET, Python, etc.; conventional procedural programming languages such as C, Visual Basic, Fortran2003, Perl, COBOL 2002, PHP, ABAP; dynamic programming languages such as Python, Ruby, and Groovy; or other programming languages. This program code can run entirely on a computer (PC, embedded intelligent device, etc.), or as a standalone software package on the user's computer, or partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter case, the remote computer can be connected to the user's computer through any network, such as a local area network (LAN) or wide area network (WAN), or connected to an external computer (e.g., via the Internet), or in a cloud computing environment, or used as a service such as Software as a Service (SaaS).
[0175] Finally, it should be noted that the temperature compensation method and apparatus disclosed in the embodiments of the present invention are merely preferred embodiments of the present invention and are only used to illustrate the technical solutions of the present invention, not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A temperature compensation method, characterized in that, The method includes: A first temperature value outside the spatial region is determined by a first temperature sensor consisting of a first thermistor and a first fixed resistor connected in series, which is set outside the spatial region of a certain space. A second temperature value within the space is determined by a second temperature sensor consisting of a second thermistor and a second fixed resistor connected in series within the space area. During the process of balancing the temperature outside the space region and the temperature within the space region, a temperature difference between the first temperature value and the second temperature value is determined based on the first temperature value and the second temperature value. Then, based on the temperature difference and a pre-determined temperature compensation algorithm, the target temperature of the space after temperature compensation is calculated. The temperature compensation algorithm includes: ; In the formula, T is the target temperature, U1 is the first thermistor voltage of the first thermistor, U2 is the first fixed voltage of the first fixed resistor, Rf1 is the resistance value of the first fixed resistor, F1 is the predetermined temperature inversion function of the first temperature sensor, used to determine the temperature value based on the resistance value, (T1-T2) is the temperature difference between the first temperature value and the second temperature value, and S1 is the temperature coefficient of the first fixed resistor; or, ; In the formula, T is the target temperature, U3 is the second thermistor voltage of the second thermistor, U4 is the second fixed voltage of the second fixed resistor, Rf2 is the resistance value of the second fixed resistor, F2 is the pre-determined temperature inversion function of the second temperature sensor, used to determine the temperature value based on the resistance value, (T1-T2) is the temperature difference between the first temperature value and the second temperature value, and S2 is the temperature coefficient of the second fixed resistor.
2. The temperature compensation method according to claim 1, characterized in that, The formula for calculating the first temperature value is: ; In the formula, T1 is the first temperature value, U1 is the first thermistor voltage of the first thermistor, U2 is the first fixed voltage of the first fixed resistor, Rf1 is the resistance value of the first fixed resistor, and F1 is the temperature inversion function of the first temperature sensor that is predetermined and used to determine the temperature value based on the resistance value.
3. The temperature compensation method according to claim 2, characterized in that, The formula for calculating the second temperature value is: ; In the formula, T2 is the second temperature value; U3 is the second thermistor voltage of the second thermistor; U4 is the second fixed voltage of the second fixed resistor; Rf2 is the resistance value of the second fixed resistor; and F2 is the pre-determined temperature inversion function of the second temperature sensor, used to determine the temperature value based on the resistance value.
4. The temperature compensation method according to any one of claims 1-3, characterized in that, After determining the target temperature of the space after temperature compensation based on the first temperature value, the second temperature value, and a pre-determined temperature compensation algorithm, the method further includes: Obtain the distance difference between the first temperature sensor and the second temperature sensor; Based on the distance difference and the preset distance-temperature transfer efficiency model, the temperature correction coefficient corresponding to the distance difference is determined, and the determined target temperature is corrected to obtain the corrected temperature. The distance-temperature transfer efficiency model is used to characterize the relationship between temperature transfer distance and temperature transfer efficiency. The formula for calculating the corrected temperature is as follows: ; In the formula, T3 is the corrected temperature, T is the target temperature, and u is the temperature correction coefficient corresponding to the distance difference.
5. A temperature compensation device, characterized in that, The device includes: The first temperature module is used to determine the first temperature value outside the spatial region by using a first temperature sensor consisting of a first thermistor and a first fixed resistor connected in series outside the spatial region of a certain space. The second temperature module is used to determine a second temperature value within the space region by means of a second temperature sensor consisting of a second thermistor and a second fixed resistor connected in series within the space region. A determining module is configured to, during the process of balancing the temperature outside the space region and the temperature within the space region, determine the temperature difference between the first temperature value and the second temperature value based on the first temperature value and the second temperature value, and calculate the target temperature of the space after temperature compensation based on the temperature difference and a pre-determined temperature compensation algorithm, wherein the temperature compensation algorithm includes: ; In the formula, T is the target temperature, U1 is the first thermistor voltage of the first thermistor, U2 is the first fixed voltage of the first fixed resistor, Rf1 is the resistance value of the first fixed resistor, F1 is the predetermined temperature inversion function of the first temperature sensor, used to determine the temperature value based on the resistance value, (T1-T2) is the temperature difference between the first temperature value and the second temperature value, and S1 is the temperature coefficient of the first fixed resistor; or, ; In the formula, T is the target temperature, U3 is the second thermistor voltage of the second thermistor, U4 is the second fixed voltage of the second fixed resistor, Rf2 is the resistance value of the second fixed resistor, F2 is the pre-determined temperature inversion function of the second temperature sensor, used to determine the temperature value based on the resistance value, (T1-T2) is the temperature difference between the first temperature value and the second temperature value, and S2 is the temperature coefficient of the second fixed resistor.
6. The temperature compensation device according to claim 5, characterized in that, The formula for calculating the first temperature value is: ; In the formula, T1 is the first temperature value, U1 is the first thermistor voltage of the first thermistor, U2 is the first fixed voltage of the first fixed resistor, Rf1 is the resistance value of the first fixed resistor, and F1 is the temperature inversion function of the first temperature sensor that is predetermined and used to determine the temperature value based on the resistance value.
7. The temperature compensation device according to claim 6, characterized in that, The formula for calculating the second temperature value is: ; In the formula, T2 is the second temperature value; U3 is the second thermistor voltage of the second thermistor; U4 is the second fixed voltage of the second fixed resistor; Rf2 is the resistance value of the second fixed resistor; and F2 is the pre-determined temperature inversion function of the second temperature sensor, used to determine the temperature value based on the resistance value.
8. The temperature compensation device according to claim 7, characterized in that, The device further includes: A temperature correction module is used to obtain the distance difference between the first temperature sensor and the second temperature sensor; Based on the distance difference and the preset distance-temperature transfer efficiency model, the temperature correction coefficient corresponding to the distance difference is determined, and the determined target temperature is corrected to obtain the corrected temperature. The distance-temperature transfer efficiency model is used to characterize the relationship between temperature transfer distance and temperature transfer efficiency. The formula for calculating the corrected temperature is as follows: ; Where T3 is the corrected temperature, T is the target temperature, and u is the temperature correction coefficient corresponding to the distance difference.