Temperature calibration method, electronic equipment and storage medium
By obtaining the temperature data of the high-precision sensor, determining the temperature control time and temperature compensation value, and directly correcting the measured temperature value of the low-precision sensor, solving the problems of inaccurate sensor calibration and long time, and achieving efficient and accurate temperature calibration.
Patent Information
- Application Number
- CN202510378382.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2025-08-08
AI Technical Summary
During the calibration process of existing temperature sensors, due to inconsistent thermal conduction paths, the calibration data is inaccurate and the calibration time is long, which affects the measurement accuracy and efficiency.
By obtaining the temperature data of the high-precision sensor, determining the temperature control time and temperature compensation value, directly correcting the measured temperature value of the low-precision sensor, and introducing sub-correlations of multiple test positions to improve calibration accuracy.
It realizes the correcting of temperature values immediately when the ambient temperature is stable, saves calibration time, improves the efficiency and accuracy of temperature calibration, and avoids the influence of sensor position differences.
Smart Images

Figure CN120445467A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of temperature detection, and more specifically, to a temperature calibration method, electronic equipment, and storage medium. Background Art
[0002] Temperature sensors (such as MEMS pressure sensors) require temperature calibration before shipment to ensure that the product's temperature measurement accuracy meets factory specifications. A common temperature calibration process involves using the output of a highly accurate temperature sensor (such as a PT1000) as the ambient temperature. Once the ambient temperature stabilizes at the set temperature, the ambient temperature and the measured temperature output of the temperature sensor to be calibrated are used as calibration data. A calibration equation is then established, and temperature calibration is performed based on this equation.
[0003] However, because the heat conduction path of a temperature sensor with higher temperature measurement accuracy (such as PT1000) is inconsistent with the heat conduction path of the temperature sensor to be calibrated, when the ambient temperature value stabilizes at the set temperature value, the temperature value output by the temperature sensor to be calibrated may still be in a dynamic change process. In other words, the temperature value output by the temperature sensor to be calibrated is not an accurate temperature value. In this case, if the temperature value in the dynamic change process is directly used as the calibration data, the temperature value of the calibrated temperature sensor will deviate from the actual data, affecting the measurement accuracy of the temperature sensor. If the temperature value of the temperature sensor to be calibrated is not obtained until it stabilizes, it will take a very long time to obtain accurate calibration data, which will greatly affect the calibration time and calibration efficiency of the test system. Summary of the Invention
[0004] An object of an embodiment of the present invention is to provide a new technical solution for temperature calibration.
[0005] According to a first aspect of the present invention, there is provided a temperature calibration method, comprising:
[0006] When the current ambient temperature reaches the set temperature, the measured temperature information output by the first sensor is obtained; wherein the measured temperature information includes the measured temperature value and a first acquisition time, and the first acquisition time is the acquisition time of the measured temperature value;
[0007] Determine a first temperature control time according to the first acquisition time and the temperature control start time; wherein the first temperature control time is the time interval from the start of temperature control to the first acquisition time;
[0008] Determine a temperature compensation value corresponding to the first temperature control time according to the first temperature control time and a preset corresponding relationship;
[0009] According to the temperature compensation value and the actually measured temperature value, a temperature value after compensating the actually measured temperature value is determined and output.
[0010] Optionally, before obtaining the measured temperature information output by the first sensor, the method further includes:
[0011] When the ambient temperature control of the set temperature value is started, obtaining a second temperature value output by a second sensor at a set time interval; wherein the temperature measurement accuracy of the second sensor is higher than the temperature measurement accuracy of the first sensor;
[0012] When the acquired second temperature value meets the set temperature condition, it is determined that the current ambient temperature value reaches the set temperature value.
[0013] Optionally, the set temperature condition is one of the following conditions:
[0014] A temperature difference between the second temperature value and the set temperature value is within a first set range;
[0015] The temperature difference between one of the second temperature values and the set temperature value is less than or equal to a first temperature difference threshold, and the temperature difference between two adjacent second temperature values within a set time period is less than or equal to the second temperature difference threshold.
[0016] Optionally, the preset corresponding relationship reflects the relationship between the temperature control time and the temperature compensation value under the temperature environment of the set temperature value, and the step of determining the preset corresponding relationship includes:
[0017] When the ambient temperature control of the set temperature value is started, first temperature data output by the sample sensor is obtained, and second temperature data output by the second sensor is obtained; wherein the temperature measurement accuracy of the second sensor is higher than the temperature measurement accuracy of the sample sensor;
[0018] The preset corresponding relationship is determined according to the second temperature data and the first temperature data.
[0019] Optionally, the first temperature data includes multiple first temperature values corresponding to multiple acquisition times, the second temperature data includes multiple second temperature values corresponding to the multiple acquisition times, and the time interval between two adjacent acquisition times in the multiple acquisition times is the set time interval. Determining the preset corresponding relationship based on the second temperature data and the first temperature data includes:
[0020] Determine a temperature stabilization time based on the second temperature data; wherein the temperature stabilization time is the time when the second temperature value first meets the set temperature condition;
[0021] determining a plurality of temperature control times according to the temperature stabilization time, the plurality of acquisition times, and the temperature control start time;
[0022] For each of the plurality of temperature control times, determining a temperature compensation value corresponding to the temperature control time according to a first temperature value and a second temperature value corresponding to the temperature control time;
[0023] The preset corresponding relationship is determined according to the temperature compensation value corresponding to each temperature control time.
[0024] Optionally, the measured temperature information further includes a first test position, where the first test position is a test position where the first sensor is located. The preset correspondence includes multiple sub-correspondences, where each sub-correspondence is a relationship between a temperature control time and a temperature compensation value of the first sensor at a test position under a temperature environment of the set temperature value. Determining the temperature compensation value corresponding to the first temperature control time based on the first temperature control time and the preset correspondence includes:
[0025] determining, according to the first test position, a sub-correspondence corresponding to the first test position from among the multiple sub-correspondences;
[0026] A temperature compensation value corresponding to the first temperature control time is determined according to the sub-correspondence corresponding to the first test position and the first temperature control time.
[0027] Optionally, the multiple sub-correspondences are determined by the following steps:
[0028] When the ambient temperature control of the set temperature value is activated, obtaining at least one first temperature data output by a sample sensor at each test position in a plurality of test positions, and obtaining second temperature data output by a second sensor;
[0029] For any test position of the multiple test positions, a sub-correspondence corresponding to the test position is determined according to the second temperature data and at least one first temperature data corresponding to the test position, so as to obtain multiple sub-correspondences corresponding to the multiple test positions.
[0030] Optionally, the first temperature data includes multiple first temperature values corresponding to multiple acquisition times, the second temperature data includes multiple second temperature values corresponding to multiple acquisition times, the time interval between two adjacent acquisition times in the multiple acquisition times is the set time interval, and determining the sub-correspondence corresponding to the test position based on the second temperature data and at least one first temperature data corresponding to the test position includes:
[0031] Determine a temperature stabilization time based on the second temperature data; wherein the temperature stabilization time is the time when the second temperature value first meets the set temperature condition;
[0032] determining a plurality of temperature control times according to the temperature stabilization time, the plurality of acquisition times, and the temperature control start time;
[0033] For any temperature control time among the multiple temperature control times, determining an average temperature value corresponding to the temperature control time according to at least one first temperature value corresponding to the temperature control time in the at least one first temperature data;
[0034] Determine a temperature compensation value corresponding to the temperature control time according to the average temperature value corresponding to the temperature control time and the second temperature value;
[0035] The sub-corresponding relationship corresponding to the test position is determined according to the temperature compensation value corresponding to each temperature control time.
[0036] According to a second aspect of the present disclosure, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store executable instructions; the processor is used to operate according to the control of the instructions to execute the method as described in the first aspect.
[0037] According to a third aspect of the present disclosure, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the method according to the first aspect is implemented.
[0038] One beneficial effect of the present invention is that, by using the correspondence between the temperature control time and the temperature compensation value in a temperature environment with a preset set temperature value, it is possible to directly perform temperature correction on the measured temperature value output by the first sensor when the current ambient temperature reaches the set temperature value, without having to wait for the first sensor to reach a temperature-stabilized state. This saves temperature calibration time and improves temperature calibration efficiency. Furthermore, determining the temperature compensation value based on the first acquisition time output by the first sensor improves the accuracy of temperature calibration, compared to the related art method of setting a fixed temperature compensation value for each set temperature value. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0040] Figure 1 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention;
[0041] Figure 2 is a flow chart of a temperature calibration method according to an embodiment of the present invention;
[0042] Figure 3 is a principle block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0043] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention.
[0044] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0045] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0046] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0047] It should be noted that like reference numerals and letters refer to like items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0048] <Hardware Configuration>
[0049] Figure 1 is a block diagram of a hardware configuration of the electronic device 100 according to an embodiment of the present invention.
[0050] The electronic device 100 may be a terminal device, for example, a desktop computer, a notebook computer, a PDA, a cloud server or other computing device, which is not limited here.
[0051] The electronic device 100 can obtain the measured temperature information output by the first sensor, and execute the temperature calibration method of the embodiment of the present application based on the measured temperature information, and output a temperature value after compensating the measured temperature value.
[0052] The first sensor may be a sensor having a temperature measurement function.
[0053] In this embodiment, referring to Figure 1 As shown, the electronic device 100 may include a processor 1100 , a memory 1200 , an interface device 1300 , a communication device 1400 , a display device 1500 , an input device 1600 , a speaker 1700 , a microphone 1800 , and the like.
[0054] The processor 1100 may be a mobile processor. The memory 1200 may include, for example, ROM (read-only memory), RAM (random access memory), and non-volatile memory such as a hard disk. The interface device 1300 may include, for example, a USB interface, a headphone jack, and the like. The communication device 1400 may be capable of wired or wireless communication. The communication device 1400 may include a short-range communication device, such as any device that performs short-range wireless communication based on a short-range wireless communication protocol such as Hilink protocol, WiFi (IEEE 802.11 protocol), Mesh, Bluetooth, ZigBee, Thread, Z-Wave, NFC, UWB, LiFi, etc. The communication device 1400 may also include a long-range communication device, such as any device that performs WLAN, GPRS, 2G / 3G / 4G / 5G long-range communication. The display device 1500 may be, for example, an LCD display, a touch screen display, etc. The display device 1500 is used to display the temperature value after compensation for the measured temperature value. The input device 1600 may include, for example, a touch screen, a keyboard, etc. The user may input / output voice information through the speaker 1700 and the microphone 1800.
[0055] In this embodiment, the memory 1200 of the electronic device 100 is used to store instructions for controlling the processor 1100 to perform at least one of the temperature calibration methods implemented by the electronic device according to any embodiment of the present invention. A skilled artisan can design instructions based on the disclosed embodiments of the present invention. How instructions control processor operations is well known in the art and will not be described in detail here.
[0056] Despite Figure 1 , multiple devices of the electronic device 100 are shown; however, the present invention may only relate to some of the devices, for example, the electronic device 100 only relates to the memory 1200 and the processor 1100 .
[0057] <Method Example>
[0058] Figure 2 1 is a flow chart of a temperature calibration method according to an embodiment of the present invention, which can be implemented by the electronic device 100 .
[0059] according to Figure 2 As shown, the temperature calibration method of this embodiment may include the following steps S2100 to S2400:
[0060] Step S2100: When the current ambient temperature reaches the set temperature, the measured temperature information output by the first sensor is obtained.
[0061] In this embodiment, the set temperature value may be a temperature control target value of the ambient temperature set for this temperature calibration.
[0062] The set temperature value can be, for example, 0°C, 25°C, 50°C, etc., which is not limited here.
[0063] The current ambient temperature value can be determined by the temperature value output by a temperature sensor with high temperature measurement accuracy.
[0064] In one embodiment, the measured temperature value output by the first sensor may be used as the current ambient temperature value.
[0065] In this embodiment, the first sensor may be a sensor with a temperature measurement function.
[0066] In another embodiment, in order to improve the temperature measurement accuracy of the current ambient temperature value, a second temperature value output by a second sensor having a higher temperature measurement accuracy than the first sensor may be used as the ambient temperature value.
[0067] In this embodiment, the second sensor is a sensor with a temperature measurement function, and the temperature measurement accuracy of the second sensor is higher than that of the first sensor.
[0068] Exemplarily, the first sensor may be a MEMS pressure sensor, and the second sensor may be a PT1000 sensor. The temperature measurement accuracy of the PT1000 sensor is higher than that of the MEMS pressure sensor.
[0069] The current ambient temperature value can be used to determine whether the current ambient temperature is stable. If the current ambient temperature value does not reach the set temperature value, the current ambient temperature value is in a dynamic change state. At this time, the current ambient temperature is not stable and the measured temperature information output by the first sensor is not obtained.
[0070] The current ambient temperature reaches the set temperature, that is, the current ambient temperature reaches the temperature control target value for this temperature calibration. In other words, the current ambient temperature is essentially stable at the set temperature, and the ambient temperature is relatively stable. At this point, obtaining the measured temperature information output by the first sensor can prevent the accuracy of the measured temperature information output by the first sensor from being affected by ambient temperature fluctuations, thereby improving temperature measurement accuracy.
[0071] In order to better judge whether the current ambient temperature value is stable, the inventors propose a solution to determine whether the ambient temperature is stable based on a second temperature value output by a second sensor with higher temperature measurement accuracy.
[0072] That is, in some embodiments, before obtaining the measured temperature information output by the first sensor in step S2100, the method further includes: step S3100 and step S3200.
[0073] Step S3100: When the ambient temperature control of the set temperature value is started, a second temperature value output by the second sensor at a set time interval is obtained.
[0074] In this embodiment, during the temperature calibration process, the user can operate the electronic device to select a set temperature value as the temperature control target value for this temperature calibration and send a temperature control start instruction containing the set temperature value to the test chamber. After receiving the temperature control start instruction, the test chamber starts ambient temperature control. For example, the set temperature value can be 20°C.
[0075] The second sensor and the first sensor are located in the test cavity to collect the temperature value of the test cavity.
[0076] In one example, the number of the second sensor may be one, and the second sensor may be located at any position in the test cavity.
[0077] In another example, the number of second sensors may be at least two. Acquiring the second temperature value output by the second sensor at a set time interval in step S3100 includes acquiring the second temperature value output by multiple second sensors at set time intervals. That is, one acquisition time corresponds to multiple second temperature values output by multiple second sensors. Subsequently, in step S3200, if the acquired second temperature value meets the set temperature condition, determining that the current ambient temperature value has reached the set temperature value includes determining that the current ambient temperature value has reached the set temperature value if the second temperature value output by each of the multiple second sensors meets the set temperature condition.
[0078] After starting the ambient temperature control of the set temperature value, a second temperature value output by the second sensor at a set time interval is obtained, wherein the temperature measurement accuracy of the second sensor is higher than the temperature measurement accuracy of the first sensor.
[0079] In one example, the second sensor may be a PT1000 sensor.
[0080] The set time interval may be a time interval for the second sensor to collect the second temperature value.
[0081] In an example, the set time interval may be 1 second, or 0.5 seconds, which is not limited here.
[0082] Step S3200: When the acquired second temperature value meets the set temperature condition, it is determined that the current ambient temperature value reaches the set temperature value.
[0083] In this embodiment, the set temperature condition may be a condition set for determining whether the current ambient temperature value is stable at the set temperature value (ie, reaches the set temperature value).
[0084] In one embodiment, the set temperature condition is that the temperature difference between a second temperature value and the set temperature value is within a first set range.
[0085] In this embodiment, the second temperature value output by the second sensor is used as the current ambient temperature value to determine whether the current ambient temperature value reaches the set temperature value.
[0086] The first setting range may be, for example, a range of -0.5°C to 0.5°C, or other ranges, which are not limited here.
[0087] It should be noted that the first setting range can be flexibly set according to the requirements of measurement accuracy, and its specific range value is not limited here.
[0088] For example, the set temperature value is 20° C., and the first set range is -0.5° C. to 0.5° C. If the second temperature values output by the second sensor at 1 second intervals include 20.5° C., it is considered that the current ambient temperature reaches the set temperature value.
[0089] In another embodiment, in order to improve the accuracy of judging whether the current ambient temperature reaches the set temperature value, the set temperature condition is: the temperature difference between a second temperature value and the set temperature value is within a first set range, and the temperature difference between two adjacent second temperature values is within a second set range.
[0090] In this embodiment, whether the current ambient temperature reaches the set temperature is determined by using the second temperature value and the temperature difference between two adjacent second temperature values.
[0091] The second setting range may be the same as the first setting range or may be a different range from the first setting range, which is not limited here.
[0092] For example, the set temperature value is 20°C, the second setting range can be 0.1~0.5, the first setting range is -0.5°C~0.5°C, and if the second temperature value output by the second sensor at a time interval of 1s is 19.6 or 19.7, it is determined that the current ambient temperature value reaches the set temperature value.
[0093] In another embodiment, in order to further improve the accuracy of judging whether the current ambient temperature reaches the set temperature value, the set temperature condition is: the temperature difference between a second temperature value and the set temperature value is within a first set range, and the temperature difference between two adjacent second temperature values within a set time period is within a second set range.
[0094] In this embodiment, whether the current ambient temperature reaches the set temperature value is determined by using the second temperature value and the temperature difference between two adjacent second temperature values within a set time period.
[0095] For example, the set temperature value is 20°C, the second setting range can be 0.1~0.5, the first setting range is -0.5°C~0.5°C, and the setting time is 3s. If the second temperature value output by the second sensor at a time interval of 1s is 19.6, 19.7, 19.8, or 19.9, then the above-mentioned set temperature conditions are met, and it is determined that the current ambient temperature value reaches the set temperature value.
[0096] When the current ambient temperature reaches the set temperature, the measured temperature information output by the first sensor is obtained, wherein the measured temperature information may be the measured temperature value and related information obtained by measuring the ambient temperature by the first sensor.
[0097] In one embodiment, the measured temperature information includes a measured temperature value and a first acquisition time.
[0098] In this embodiment, the first collection time is the collection time of the measured temperature value.
[0099] In another embodiment, the measured temperature information includes a measured temperature value, a first acquisition time, and a first test position.
[0100] In this embodiment, the first test position may be the test position where the first sensor is located.
[0101] Since the preset correspondence reflects the relationship between the temperature control time and the temperature compensation value under the temperature environment of the set temperature value, where the temperature control time refers to the time interval from the start of temperature control to the first acquisition time when the measured temperature value is collected, the temperature control start time during temperature calibration is often not zero, and the temperature control start time may be, for example, 13:00:00 or 9:00:00. Accordingly, the first acquisition time corresponding to the measured temperature value is not equal to the first temperature control time corresponding to the measured temperature value. Therefore, it is necessary to calculate the first temperature control time corresponding to the measured temperature value based on the first acquisition time and the temperature control start time of the measured temperature value.
[0102] Step S2200: determining a first temperature control time according to the first acquisition time and the temperature control start time.
[0103] In this embodiment, the first temperature control time is the time interval between the start of temperature control and the first acquisition time when the measured temperature value is acquired. The temperature control start time is the time when the ambient temperature control of the set temperature value is started.
[0104] The temperature control start time may be the time when the electronic device sends a temperature control start instruction to the test cavity.
[0105] Exemplarily, the temperature control start time is 9:00:00, the first acquisition time is 9:00:01, and the first temperature control time is 00:00:01.
[0106] Step S2300: determining a temperature compensation value corresponding to the first temperature control time according to the first temperature control time and a preset corresponding relationship.
[0107] In this embodiment, the preset corresponding relationship reflects the relationship between the temperature control time and the temperature compensation value under the temperature environment of the set temperature value.
[0108] In one example, the preset corresponding relationship may be presented in the form of a relationship curve between the temperature control time and the temperature compensation value.
[0109] In another example, the preset corresponding relationship may be presented in the form of a relationship between the temperature control time and the temperature compensation value.
[0110] Those skilled in the art should understand that there is no limitation on the presentation form of the preset corresponding relationship.
[0111] In some embodiments, the step of determining the preset corresponding relationship includes: steps S4100 to S4200.
[0112] Step S4100 , when the ambient temperature control of the set temperature value is started, first temperature data output by the sample sensor is obtained, and second temperature data output by the second sensor is obtained.
[0113] In this embodiment, the sample sensor may be the first sensor of this temperature calibration, or may be another sensor of the same type as the first sensor, which is not limited here.
[0114] The number of the second sensors may be one or more, which is not limited here.
[0115] If there are multiple second sensors, the average temperature data of the multiple second temperature data output by the multiple second sensors is used as the second temperature data acquired in step S4100. Each second sensor outputs one second temperature data. In other words, the average temperature data of the multiple second temperature data output by the multiple second sensors is used as the standard temperature data.
[0116] The second sensor has a higher temperature measurement accuracy than the sample sensor. The second temperature value output by the second sensor can be used as a standard temperature value, and the second temperature data output by the second sensor can also be called standard temperature data or reference temperature data.
[0117] Step S4200: Determine the preset corresponding relationship according to the second temperature data and the first temperature data.
[0118] In some embodiments, the first temperature data includes multiple first temperature values corresponding to multiple acquisition times, the second temperature data includes multiple second temperature values corresponding to the multiple acquisition times, and the time interval between two adjacent acquisition times in the multiple acquisition times is a set time interval.
[0119] For example, if the set temperature value is 20°C and the ambient temperature control at 20°C is started, the sample sensor collects temperature values at a set time interval (for example, 1s) to obtain first temperature data, and the second sensor collects temperature values at the set time interval (for example, 1s) to obtain second temperature data. That is to say, the corresponding collection time in the first temperature data and the second temperature data is the same.
[0120] In these embodiments, determining the preset corresponding relationship according to the second temperature data and the first temperature data in step S4200 includes: steps S4200.1 to S4200.4.
[0121] Step S4200.1: Determine the temperature stabilization time according to the second temperature data.
[0122] In this embodiment, the temperature stabilization time is the time when the second temperature value meets the set temperature condition for the first time.
[0123] In an example where the set temperature condition is that the temperature difference between the second temperature value and the set temperature value is within a first set range, the temperature stabilization time is the earliest time when the temperature difference between the second temperature value and the set temperature value is within the first set range.
[0124] In an example in which the set temperature condition is that the temperature difference between a second temperature value and the set temperature value is within a first set range, and the temperature difference between two adjacent second temperature values is within a second set range, the temperature stabilization time is the earliest time when the temperature difference between the second temperature value and the set temperature value is within the first set range, and the temperature difference between two adjacent second temperature values and the set temperature value is within the second set range.
[0125] Step S4200.2: Determine multiple temperature control times based on the temperature stabilization time, the multiple acquisition times, and the temperature control start time.
[0126] Exemplarily, the temperature control start time is 8:00:00, the time interval is set to 1s, multiple acquisition times are 8:00:01, 8:00::02, 8:00:03, 8:00:04, 8:00:05, 8:00:06, 8:00:07, etc., and the temperature stabilization time is 8:00:02. Then, the target time after the temperature stabilization time in the multiple acquisition times, that is, the multiple target times are 8:00:03, 8:00:04, 8:00:05, 8:00:06, and 8:00:07. Then, according to the temperature control start time and the above-mentioned multiple target times, the multiple temperature control times are determined to be 00:00:03, 00:00:04, 00:00:05, 00:00:06, and 00:00:07.
[0127] Step S4200.3: For each temperature control time among the multiple temperature control times, determine a temperature compensation value corresponding to the temperature control time according to the first temperature value and the second temperature value corresponding to the temperature control time.
[0128] In this embodiment, the temperature compensation value is the temperature difference between the first temperature value and the second temperature value.
[0129] Continuing with the above example, multiple temperature control times are 00:00:03, 00:00:04, 00:00:05, 00:00:06, and 00:00:07. For each temperature control time, the temperature compensation value corresponding to the temperature control time is calculated based on the first temperature value corresponding to the temperature control time in the first temperature data and the second temperature value corresponding to the temperature control time in the second temperature data.
[0130] Step S4200.4: Determine the preset corresponding relationship based on the temperature compensation value corresponding to each temperature control time.
[0131] Continuing with the above example, the preset corresponding relationship is obtained according to the temperature compensation value corresponding to each temperature control time of 00:00:03, 00:00:04, 00:00:05, 00:00:06, and 00:00:07.
[0132] In the example where the preset corresponding relationship is presented in the form of a relationship curve, the temperature compensation value corresponding to each temperature control time can be fitted using the least squares method to form a curve showing the change of temperature compensation value with temperature control time. This curve can represent the preset corresponding relationship.
[0133] The inventors discovered that, due to the uneven heat conduction when heating the test cavity when ambient temperature control is activated at a set temperature value, the temperature output by the first sensor located in the middle of the test cavity differs from the temperature output by the first sensor located at the edge of the test cavity under the same control time. That is, the first temperature values output by the sample sensors at different test positions at the same control time are different. However, since the second temperature values output by the second sensor at the same control time are the same, the temperature compensation values corresponding to different test positions at the same control time are different. Therefore, to prevent the accuracy of temperature calibration from being affected by differences in the test positions of the first sensor, sub-correspondences for multiple test positions are introduced into the preset correspondence, and the first test position of the first sensor is introduced into the measured temperature information, thereby facilitating the determination of the temperature compensation value based on the sub-correspondence corresponding to the first test position.
[0134] Based on this, in some embodiments, a plurality of test positions are preset in the test chamber, each test position corresponding to a sub-correspondence. The preset correspondence includes a plurality of sub-correspondences corresponding to the plurality of test positions. A sub-correspondence is a relationship between the temperature control time and the temperature compensation value of the first sensor at a test position under a temperature environment with a set temperature value.
[0135] In actual temperature calibration, the measured temperature information output by the first sensor includes a measured temperature value, a first acquisition time, and a first test position, wherein the first test position is a test position where the first sensor is located.
[0136] In these embodiments, determining the temperature compensation value corresponding to the first temperature control time according to the first temperature control time and a preset corresponding relationship in step S2300 includes: step S2300.1 and step S2300.2.
[0137] Step S2300.1: Determine, according to the first test position, a sub-correspondence corresponding to the first test position from among the multiple sub-correspondences.
[0138] In one example, 20 test positions are preset, and each of the 20 test positions corresponds to a relationship curve between temperature control time and temperature compensation value. According to the first test position where the first sensor is located during this temperature calibration, the relationship curve corresponding to the first test position is determined.
[0139] Step S2300.2: Determine a temperature compensation value corresponding to the first temperature control time according to the sub-correspondence corresponding to the first test position and the first temperature control time.
[0140] Continuing with the above example, on the relationship curve corresponding to the first test position, according to the first temperature control time, a temperature compensation value corresponding to the first temperature control time is determined.
[0141] In some embodiments, the multiple sub-correspondences are determined by the following steps: step S5100 and step S5200.
[0142] Step S5100 , when the ambient temperature control of the set temperature value is started, obtaining at least one first temperature data output by a sample sensor of each test position among a plurality of test positions, and obtaining second temperature data output by a second sensor.
[0143] In this embodiment, at least one sample sensor is provided at any test position in the test chamber, so as to obtain at least one first temperature data of the test position. In other words, one sample sensor at one test position corresponds to one first temperature data.
[0144] For example, three sample sensors may be provided for each test position in the test chamber, and the test may be repeated five times, so that 15 first temperature data may be obtained for one test position.
[0145] In an example, the number of the second sensor may be one, and the second sensor may be disposed at any position in the test chamber to obtain the second temperature data.
[0146] In another example, to improve the measurement accuracy of standard temperature values at different test locations within the test chamber, and thereby improve the accuracy of determining the temperature compensation value, the number of second sensors can be multiple, and each second sensor is arranged according to the distribution of the multiple test locations. In this way, it can be achieved that one test location corresponds to one second sensor, and one second sensor corresponds to at least one test location. Based on this, obtaining the second temperature data output by the second sensor in step S5100 includes: obtaining multiple second temperature data output by multiple second sensors. Wherein, one second sensor outputs one second temperature data, and one second sensor corresponds to at least one test location, then one test location corresponds to one second temperature data.
[0147] For example, if four adjacent test positions among multiple test positions are arranged according to the vertices of a square, a second sensor can be set at the geometric center of the square, and the second temperature data output by the second sensor can be used as the standard temperature data corresponding to the four test positions (that is, the second temperature data corresponding to the four test positions).
[0148] Step S5200: For any test position of the multiple test positions, determine the sub-correspondence corresponding to the test position according to the second temperature data and at least one first temperature data corresponding to the test position, and obtain multiple sub-correspondences corresponding to the multiple test positions.
[0149] In an example where the number of the second sensor is one, one test position has 15 first temperature data. The sub-correspondence of the test position is determined based on the 15 first temperature data and the second temperature data.
[0150] In an example where there are multiple second sensors and the second sensors are arranged according to the distribution of multiple test locations, each test location corresponds to one second temperature data. If four adjacent test locations are arranged as the vertices of a square, then one second sensor can be placed at the geometric center of the square. The second temperature data output by the second sensor at the geometric center of the square is used as the standard temperature data for the four test locations, thereby facilitating temperature compensation calculations for the first temperature data of the four test locations using the standard temperature data.
[0151] In some embodiments, the first temperature data includes multiple first temperature values corresponding to multiple acquisition times, the second temperature data includes multiple second temperature values corresponding to multiple acquisition times, and the time interval between two adjacent acquisition times in the multiple acquisition times is the set time interval. In step S5200, the sub-correspondence corresponding to the test position is determined based on the second temperature data and at least one first temperature data corresponding to the test position, including: steps S5200.1 to S5200.5.
[0152] Step S5200.1: Determine the temperature stabilization time according to the second temperature data.
[0153] In this embodiment, the temperature stabilization time is the time when the second temperature value meets the set temperature condition for the first time.
[0154] In an example where a test position corresponds to a second temperature data, determining the temperature stabilization time according to the second temperature data in step S5200.1 includes determining the temperature stabilization time according to the second temperature data corresponding to the test position.
[0155] This step is the same as that described in step S4200.1 above and will not be elaborated here.
[0156] Step S5200.2: Determine multiple temperature control times based on the temperature stabilization time, the multiple acquisition times, and the temperature control start time.
[0157] This step is the same as the content recorded in the above step S4200.2 and will not be elaborated here.
[0158] Step S5200.3: For any temperature control time among the multiple temperature control times, determine the average temperature value corresponding to the temperature control time according to at least one first temperature value corresponding to the temperature control time in the at least one first temperature data.
[0159] For example, a test position includes 15 first temperature data, and multiple temperature control times are 00:00:03, 00:00:04, 00:00:05, 00:00:06, and 00:00:07. For each temperature control time, it corresponds to 15 first temperature values. The average temperature value of the 15 first temperature values corresponding to any temperature control time is calculated, and the average temperature value is used as the average temperature value corresponding to the temperature control time.
[0160] Step S5200.4: Determine a temperature compensation value corresponding to the temperature control time based on the average temperature value and the second temperature value corresponding to the temperature control time.
[0161] In this embodiment, the temperature compensation value may be the temperature difference between the average temperature value corresponding to the temperature control time and the second temperature value.
[0162] Step S5200.5: Determine the sub-corresponding relationship corresponding to the test position according to the temperature compensation value corresponding to each temperature control time.
[0163] In this embodiment, the temperature compensation value corresponding to each temperature control time in a plurality of temperature control times of a test position is fitted by the least square method to obtain the sub-corresponding relationship corresponding to the test position.
[0164] For example, the sub-correspondence relationship corresponding to the test position obtained by the least squares method may be the following relationship:
[0165] T offset (t) = a + b*t + c*t 2 +d*t 3 +e*t 4 +…+x*t n
[0166] Among them, T offset is the temperature compensation value, t is the temperature control time in seconds (s), and a, b, c, d, e…x are the coefficients of the least squares linear fitting method.
[0167] Step S2400: determining and outputting a temperature value after compensating the actually measured temperature value based on the temperature compensation value and the actually measured temperature value.
[0168] In this embodiment, the measured temperature value is compensated according to the temperature compensation value to obtain a compensated temperature value.
[0169] According to the embodiments of the present application, by establishing a correspondence between the temperature control time and the temperature compensation value in a temperature environment with a preset set temperature value, it is possible to directly perform temperature correction on the measured temperature value output by the first sensor when the current ambient temperature reaches the set temperature value, without having to wait for the first sensor to reach a temperature-stabilized state. This saves temperature calibration time and improves temperature calibration efficiency. Furthermore, determining the temperature compensation value based on the first acquisition time output by the first sensor improves the accuracy of temperature calibration, compared to the related art method of setting a fixed temperature compensation value for each set temperature value.
[0170] In addition, by introducing sub-correspondences of multiple test positions in the preset correspondence and introducing the first test position where the first sensor is located in the measured temperature information, it is convenient to determine the temperature compensation value according to the sub-correspondence corresponding to the first test position, thereby avoiding the accuracy of temperature calibration being affected by the difference in the test position where the first sensor is located, and improving the accuracy of temperature calibration.
[0171] <Device Example>
[0172] Figure 3 FIG. 3 is a principle block diagram of an electronic device 300 according to an embodiment of the present invention.
[0173] In this embodiment, if Figure 3 As shown, the electronic device 300 includes a memory 310 and a processor 320, wherein the memory 310 is used to store executable instructions; the processor 320 is used to operate according to the control of the instructions to execute the method described in any of the above method embodiments.
[0174] In one embodiment of the present application, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the method described in the first aspect is implemented.
[0175] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.
[0176] A computer-readable storage medium can be a tangible device that can hold and store instructions for use by an instruction execution device. A computer-readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination thereof. As used herein, a computer-readable storage medium is not to be construed as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through an electrical wire.
[0177] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions to be stored in the computer-readable storage medium in each computing / processing device.
[0178] The computer program instructions for performing the operation of the present invention can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, and conventional procedural programming languages such as "C" language or similar programming languages. The computer readable program instructions can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), is personalized by utilizing the state information of the computer readable program instructions, and the electronic circuit can execute the computer readable program instructions, thereby realizing various aspects of the present invention.
[0179] Various aspects of the present invention are described herein with reference to flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present invention. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.
[0180] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device is generated that implements the functions / actions specified in one or more blocks in the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, where these instructions cause the computer, programmable data processing device, and / or other device to operate in a specific manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0181] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0182] The flowcharts and block diagrams in the accompanying drawings show the possible implementation architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment or part of an instruction, and the module, program segment or part of the instruction contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, implementation by software, and implementation by a combination of software and hardware are all equivalent.
[0183] While various embodiments of the present invention have been described above, the foregoing description is intended to be illustrative, non-exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is selected to best explain the principles of the embodiments, their practical applications, or technological improvements in the marketplace, or to enable others skilled in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.
Claims
1. A temperature calibration method, characterized in that: The method comprises: When the current ambient temperature reaches the set temperature, the measured temperature information output by the first sensor is obtained; wherein the measured temperature information includes the measured temperature value and a first acquisition time, and the first acquisition time is the acquisition time of the measured temperature value; Determine a first temperature control time according to the first acquisition time and the temperature control start time; wherein the first temperature control time is the time interval from the start of temperature control to the first acquisition time; Determine a temperature compensation value corresponding to the first temperature control time according to the first temperature control time and a preset corresponding relationship; According to the temperature compensation value and the actually measured temperature value, a temperature value after compensating the actually measured temperature value is determined and output.
2. The method according to claim 1, characterized in that Before obtaining the measured temperature information output by the first sensor, the method further includes: When the ambient temperature control of the set temperature value is started, obtaining a second temperature value output by a second sensor at a set time interval; wherein the temperature measurement accuracy of the second sensor is higher than the temperature measurement accuracy of the first sensor; When the acquired second temperature value meets the set temperature condition, it is determined that the current ambient temperature value reaches the set temperature value.
3. The method according to claim 2, characterized in that The set temperature condition is one of the following conditions: A temperature difference between the second temperature value and the set temperature value is within a first set range; A temperature difference between one of the second temperature values and the set temperature value is within a first set range, and a temperature difference between two adjacent second temperature values within a set time period is within the second set range.
4. The method according to claim 1, wherein The preset corresponding relationship reflects the relationship between the temperature control time and the temperature compensation value under the temperature environment of the set temperature value, and the step of determining the preset corresponding relationship includes: When the ambient temperature control of the set temperature value is started, first temperature data output by the sample sensor is obtained, and second temperature data output by the second sensor is obtained; wherein the temperature measurement accuracy of the second sensor is higher than the temperature measurement accuracy of the sample sensor; The preset corresponding relationship is determined according to the second temperature data and the first temperature data.
5. The method according to claim 4, characterized in that The first temperature data includes a plurality of first temperature values corresponding to a plurality of acquisition times, the second temperature data includes a plurality of second temperature values corresponding to the plurality of acquisition times, a time interval between two adjacent acquisition times in the plurality of acquisition times being a set time interval, and determining the preset corresponding relationship based on the second temperature data and the first temperature data includes: Determine a temperature stabilization time based on the second temperature data; wherein the temperature stabilization time is the time when the second temperature value first meets the set temperature condition; determining a plurality of temperature control times according to the temperature stabilization time, the plurality of acquisition times, and the temperature control start time; For each of the plurality of temperature control times, determining a temperature compensation value corresponding to the temperature control time according to a first temperature value and a second temperature value corresponding to the temperature control time; The preset corresponding relationship is determined according to the temperature compensation value corresponding to each temperature control time.
6. The method according to claim 1, characterized in that The measured temperature information also includes a first test position, where the first test position is a test position where the first sensor is located. The preset correspondence includes multiple sub-correspondences, where each sub-correspondence is a relationship between a temperature control time and a temperature compensation value of the first sensor at a test position under a temperature environment of the set temperature value. Determining the temperature compensation value corresponding to the first temperature control time based on the first temperature control time and the preset correspondence includes: determining, according to the first test position, a sub-correspondence corresponding to the first test position from among the multiple sub-correspondences; A temperature compensation value corresponding to the first temperature control time is determined according to the sub-correspondence corresponding to the first test position and the first temperature control time.
7. The method according to claim 6, characterized in that The multiple sub-correspondences are determined by the following steps: When the ambient temperature control of the set temperature value is activated, obtaining at least one first temperature data output by a sample sensor at each test position in a plurality of test positions, and obtaining second temperature data output by a second sensor; For any test position of the multiple test positions, a sub-correspondence corresponding to the test position is determined according to the second temperature data and at least one first temperature data corresponding to the test position, so as to obtain multiple sub-correspondences corresponding to the multiple test positions.
8. The method according to claim 7, characterized in that The first temperature data includes a plurality of first temperature values corresponding to a plurality of acquisition times, the second temperature data includes a plurality of second temperature values corresponding to the plurality of acquisition times, the time interval between two adjacent acquisition times in the plurality of acquisition times being the set time interval, and determining the sub-correspondence corresponding to the test position based on the second temperature data and at least one first temperature data corresponding to the test position includes: Determine a temperature stabilization time based on the second temperature data; wherein the temperature stabilization time is the time when the second temperature value first meets the set temperature condition; determining a plurality of temperature control times according to the temperature stabilization time, the plurality of acquisition times, and the temperature control start time; For any temperature control time among the multiple temperature control times, determining an average temperature value corresponding to the temperature control time according to at least one first temperature value corresponding to the temperature control time in the at least one first temperature data; Determine a temperature compensation value corresponding to the temperature control time according to the average temperature value corresponding to the temperature control time and the second temperature value; The sub-corresponding relationship corresponding to the test position is determined according to the temperature compensation value corresponding to each temperature control time.
9. An electronic device comprising a memory and a processor, wherein the memory is configured to store executable instructions; and the processor is configured to operate under the control of the instructions to execute the method according to any one of claims 1 to 8.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Temperature correction method of temperature controller, electronic equipment and computer storage medium
CN114354016A
Temperature measurement function calibration method, system and device, charging base and medium
CN114659674A
Temperature sensor test equipment and temperature sensor compensation method
CN114689214A
Temperature sensor calibration method and device, electronic equipment and storage medium
CN115876356A
Temperature sensor response time calibration method in nuclear power fatigue monitoring system
CN116625551A