Automatic calibration method and system for thermocouple temperature collector

By dividing the voltage curve of the temperature collector into multiple voltage intervals and generating calibration instructions, automatic calibration of the thermocouple temperature collector is achieved, solving the problem of traditional inefficiency and significantly improving calibration efficiency.

CN119880196APending Publication Date: 2025-04-25FUJIAN NEBULA ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411689468.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

The calibration efficiency of traditional thermocouple temperature collectors is inefficient, requiring about half an hour to stabilize the temperature, resulting in the calibration process taking at least 7 hours.

Method used

The voltage curve of the temperature collector is divided into several voltage intervals through the upper computer, the first and second voltage setting values ​​are set, calibration commands are generated and sent to the process calibrator through the RS232 interface, the voltage output value is collected in real time and encrypted to the upper computer, and the calibration subfunction is calculated and spliced, and finally the UDP protocol is written to the temperature collector for automatic calibration.

Benefits of technology

Automatic calibration of the thermocouple temperature collector is realized, eliminating the steps of waiting for temperature stability, significantly improving calibration efficiency, and quickly completing calibration without manual wiring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119880196A_ABST
    Figure CN119880196A_ABST
Patent Text Reader

Abstract

The invention provides an automatic calibration method and system for a thermocouple temperature collector in the technical field of lithium battery detection, and the method comprises the steps: S1, dividing a voltage curve into a plurality of voltage intervals, setting a first voltage set value and a second voltage set value for each voltage interval, and transmitting the first voltage set value and the second voltage set value to a process calibrator; s2, the process calibrator executes voltage output operation based on the first voltage set value and the second voltage set value of each voltage interval; s3, the temperature collector collects a first voltage output value and a second voltage output value which are output by the process calibrator based on the first voltage set values and the second voltage set values and sends the first voltage output value and the second voltage output value to the upper computer; s4, the upper computer calculates calibration sub-functions based on the first voltage set value, the second voltage set value, the first voltage output value and the second voltage output value of each voltage interval, all the calibration sub-functions are spliced to obtain a calibration function, and the calibration function is written into the temperature collector. The thermocouple temperature collector calibration device has the advantage that the calibration efficiency of the thermocouple temperature collector is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of lithium battery detection, and in particular to an automatic calibration method and system for a thermocouple temperature collector. Background Art

[0002] Among all environmental factors, temperature has the greatest impact on the charging and discharging performance of lithium batteries. High temperature environment will destroy the chemical balance inside the lithium battery, weaken the overall performance of the lithium battery materials, and in severe cases, even cause the outer packaging of the lithium battery to bulge and rupture. Low temperature environment will reduce the activity of lithium ions, thereby increasing the internal resistance, weakening the discharge capacity of the lithium battery, and even precipitating metallic lithium on the anode surface of the lithium battery, causing irreversible damage. Therefore, during the charging and discharging process of the lithium battery, it is necessary to use thermocouples to constantly monitor the temperature changes of the lithium battery itself and the surrounding environment.

[0003] A thermocouple is two wires made of different conductors and welded together at one end. To obtain the temperature value of the thermocouple, the temperature collector needs to measure the cold end temperature and hot end voltage of the thermocouple. By querying the conversion table corresponding to the thermocouple temperature and voltage, the collected cold end temperature is converted into the cold end voltage, and then the sum of the cold end voltage and the hot end voltage is converted into the temperature, which is the temperature measured by the thermocouple. The temperature collector will have deviations in the process of collecting the thermocouple temperature, so the temperature collector needs to be calibrated to collect the thermocouple temperature more accurately.

[0004] For the calibration of temperature collectors, a high-precision dry-type metering furnace is traditionally used. The dry-type metering furnace is controlled to form a constant temperature environment in the furnace, and then the thermocouple is placed in the furnace. The temperature collector collects the temperature measured by the thermocouple, and finally the temperature value set by the dry-type metering furnace is used to calibrate the temperature value collected by the temperature collector. Because the temperature value collected by the temperature collector is in the range of -200℃ to 1000℃, and it is not a linear deviation, it is necessary to calibrate the temperature value collected by the temperature collector in sections. For each temperature calibration point, it takes about half an hour for the temperature of the dry-type metering furnace to stabilize after the temperature value is set. If the temperature curve is divided into 7 sections for calibration, 14 temperature calibration points are required. It takes at least 7 hours to calibrate all of them, which is inefficient.

[0005] Therefore, how to provide a method and system for automatic calibration of a thermocouple temperature collector to improve the calibration efficiency of the thermocouple temperature collector has become a technical problem to be solved urgently. Summary of the invention

[0006] The technical problem to be solved by the present invention is to provide a method and system for automatically calibrating a thermocouple temperature collector, so as to improve the calibration efficiency of the thermocouple temperature collector.

[0007] In a first aspect, the present invention provides a method for automatically calibrating a thermocouple temperature collector, comprising the following steps:

[0008] Step S1, the host computer divides the voltage curve of the temperature collector into a plurality of voltage intervals, sets a first voltage setting value and a second voltage setting value for each of the voltage intervals, generates a calibration instruction based on each of the first voltage setting value and the second voltage setting value, and sends the calibration instruction to the process calibrator through the RS232 interface;

[0009] Step S2, after the process calibrator verifies the received calibration instruction, it performs voltage output operations based on the first voltage setting value and the second voltage setting value of each voltage interval;

[0010] Step S3, a temperature collector for thermocouple temperature collection, real-time collection of the first voltage output value and the second voltage output value output by the process calibrator based on the first voltage setting value and the second voltage setting value of each voltage interval, encrypting each of the first voltage output value and the second voltage output value into encrypted detection data, and sending the encrypted detection data to the host computer;

[0011] Step S4, the host computer decrypts the received encrypted detection data to obtain the first voltage output value and the second voltage output value, calculates a calibration sub-function based on the first voltage setting value, the second voltage setting value, the first voltage output value and the second voltage output value of each voltage interval, and concatenates the calibration sub-functions to obtain a calibration function;

[0012] Step S5: The host computer writes the calibration function into the temperature collector through the UDP protocol to complete the automatic calibration of the temperature collector.

[0013] Furthermore, the step S1 is specifically as follows:

[0014] The host computer divides the voltage curve of the temperature collector into several voltage intervals, sets a first voltage setting value and a second voltage setting value for each voltage interval, obtains the current timestamp and the device serial number of the local computer, performs hash calculation on each of the first voltage setting value, the second voltage setting value, the timestamp and the device serial number to obtain a hash value, generates a calibration instruction based on each of the first voltage setting value, the second voltage setting value, the timestamp, the device serial number and the hash value, and sends the calibration instruction to the process calibrator in real time through the RS232 interface.

[0015] Furthermore, the step S2 is specifically as follows:

[0016] The process calibrator receives the calibration instruction in real time through the RS232 interface, parses the calibration instruction to obtain the first voltage setting value, the second voltage setting value, the timestamp, the device serial number and the hash value, performs integrity check on the first voltage setting value, the second voltage setting value, the timestamp and the device serial number through the hash value, performs timeliness check through the timestamp, performs legitimacy check on the device serial number through a preset device management table, and then performs voltage output operation to the temperature collector based on the first voltage setting value and the second voltage setting value of each voltage interval.

[0017] Furthermore, the step S3 is specifically as follows:

[0018] A temperature collector for thermocouple temperature collection, which collects in real time the first voltage output value and the second voltage output value output by the process calibrator based on the first voltage setting value and the second voltage setting value of each voltage interval;

[0019] The temperature collector encrypts the first voltage output value and the second voltage output value into first-level encrypted data through the 3DES algorithm, shifts each character of the first-level encrypted data to the left by 3 bits to obtain second-level encrypted data, encrypts the second-level encrypted data into encrypted detection data through the AES algorithm, and sends the encrypted detection data to the host computer in real time through the UDP protocol.

[0020] Furthermore, the step S4 is specifically as follows:

[0021] The host computer receives the encrypted detection data in real time through the UDP protocol, decrypts the encrypted detection data into secondary encrypted data through the AES algorithm, shifts each character of the secondary encrypted data to the right by 3 bits to obtain primary encrypted data, decrypts the primary encrypted data through the 3DES algorithm to obtain each first voltage output value and the second voltage output value, calculates a calibration sub-function based on the first voltage setting value, the second voltage setting value, the first voltage output value and the second voltage output value of each voltage interval, and splices each calibration sub-function to obtain a calibration function;

[0022] The calculation process of the calibration subfunction is:

[0023] Using a linear equation, a calibration factor k and a calibration factor b are calculated based on the first voltage setting value, the second voltage setting value, the first voltage output value, and the second voltage output value, and a calibration sub-function is constructed based on the calibration factor k and the calibration factor b: Vb1=Va1*k+b;

[0024] Vb2=Va2*k+b;

[0025] Among them, Vb1 represents the first voltage output value; Vb2 represents the second voltage output value; Va1 represents the first voltage setting value; Va2 represents the second voltage setting value.

[0026] In a second aspect, the present invention provides a thermocouple temperature collector automatic calibration system, comprising the following modules:

[0027] A voltage setting value sending module is used for the host computer to divide the voltage curve of the temperature collector into a plurality of voltage intervals, set a first voltage setting value and a second voltage setting value for each of the voltage intervals, generate a calibration instruction based on each of the first voltage setting value and the second voltage setting value, and send the calibration instruction to the process calibrator through the RS232 interface;

[0028] A voltage output module, used for the process calibrator to perform voltage output operations based on the first voltage setting value and the second voltage setting value of each voltage interval respectively after verifying the received calibration instruction;

[0029] A voltage output value acquisition module, a temperature collector for thermocouple temperature acquisition, a real-time acquisition process calibrator based on the first voltage setting value and the second voltage setting value of each voltage interval output first voltage output value and second voltage output value output, each of the first voltage output value and the second voltage output value is encrypted into encrypted detection data, and the encrypted detection data is sent to the host computer;

[0030] A calibration function generation module, used for the host computer to decrypt the encrypted detection data received to obtain the first voltage output value and the second voltage output value, calculate the calibration sub-function based on the first voltage setting value, the second voltage setting value, the first voltage output value and the second voltage output value of each voltage interval, and splice the calibration sub-functions to obtain the calibration function;

[0031] The automatic calibration module is used for the host computer to write the calibration function into the temperature collector through the UDP protocol to complete the automatic calibration of the temperature collector.

[0032] Furthermore, the voltage setting value sending module is specifically used for:

[0033] The host computer divides the voltage curve of the temperature collector into several voltage intervals, sets a first voltage setting value and a second voltage setting value for each voltage interval, obtains the current timestamp and the device serial number of the local computer, performs hash calculation on each of the first voltage setting value, the second voltage setting value, the timestamp and the device serial number to obtain a hash value, generates a calibration instruction based on each of the first voltage setting value, the second voltage setting value, the timestamp, the device serial number and the hash value, and sends the calibration instruction to the process calibrator in real time through the RS232 interface.

[0034] Furthermore, the voltage output module is specifically used for:

[0035] The process calibrator receives the calibration instruction in real time through the RS232 interface, parses the calibration instruction to obtain the first voltage setting value, the second voltage setting value, the timestamp, the device serial number and the hash value, performs integrity check on the first voltage setting value, the second voltage setting value, the timestamp and the device serial number through the hash value, performs timeliness check through the timestamp, performs legitimacy check on the device serial number through a preset device management table, and then performs voltage output operation to the temperature collector based on the first voltage setting value and the second voltage setting value of each voltage interval.

[0036] Furthermore, the voltage output value acquisition module is specifically used for:

[0037] A temperature collector for thermocouple temperature collection, which collects in real time the first voltage output value and the second voltage output value output by the process calibrator based on the first voltage setting value and the second voltage setting value of each voltage interval;

[0038] The temperature collector encrypts the first voltage output value and the second voltage output value into first-level encrypted data through the 3DES algorithm, shifts each character of the first-level encrypted data to the left by 3 bits to obtain second-level encrypted data, encrypts the second-level encrypted data into encrypted detection data through the AES algorithm, and sends the encrypted detection data to the host computer in real time through the UDP protocol.

[0039] Furthermore, the calibration function generation module is specifically used for:

[0040] The host computer receives the encrypted detection data in real time through the UDP protocol, decrypts the encrypted detection data into secondary encrypted data through the AES algorithm, shifts each character of the secondary encrypted data to the right by 3 bits to obtain primary encrypted data, decrypts the primary encrypted data through the 3DES algorithm to obtain each first voltage output value and the second voltage output value, calculates a calibration sub-function based on the first voltage setting value, the second voltage setting value, the first voltage output value and the second voltage output value of each voltage interval, and splices each calibration sub-function to obtain a calibration function;

[0041] The calculation process of the calibration subfunction is:

[0042] Using a linear equation, a calibration factor k and a calibration factor b are calculated based on the first voltage setting value, the second voltage setting value, the first voltage output value, and the second voltage output value, and a calibration sub-function is constructed based on the calibration factor k and the calibration factor b: Vb1=Va1*k+b;

[0043] Vb2=Va2*k+b;

[0044] Among them, Vb1 represents the first voltage output value; Vb2 represents the second voltage output value; Va1 represents the first voltage setting value; Va2 represents the second voltage setting value.

[0045] The advantages of the present invention are:

[0046] 1. Divide the voltage curve of the temperature collector into several voltage intervals through the host computer, set the first voltage setting value and the second voltage setting value for each voltage interval, generate a calibration instruction based on each first voltage setting value and the second voltage setting value and send it to the process calibrator; after the process calibrator verifies the calibration instruction, it performs the voltage output operation based on the first voltage setting value and the second voltage setting value of each voltage interval; then the temperature collector used for thermocouple temperature acquisition collects the first voltage output value and the second voltage output value output by the process calibrator based on the first voltage setting value and the second voltage setting value of each voltage interval in real time, encrypts each first voltage output value and the second voltage output value into encrypted detection data and sends it to the host computer; the host computer decrypts the encrypted detection data to obtain each first voltage output value and the second voltage output value, and generates the calibration instruction based on each first voltage setting value and the second voltage setting value of each voltage interval. The first voltage setting value, the second voltage setting value, the first voltage output value and the second voltage output value are used to calculate the calibration sub-function, the calibration function is obtained by splicing the calibration sub-functions, and the calibration function is written into the temperature collector to complete the automatic calibration of the temperature collector; that is, the voltage curve is divided into several voltage intervals, two temperature calibration points (the first voltage setting value and the second voltage setting value) are set for each voltage interval, the corresponding voltage setting value is output to the temperature collector through the process calibrator, the actual voltage output value is collected through the temperature collector, and then the calibration sub-function is solved by a linear equation, the calibration sub-function is spliced ​​to obtain the calibration function and written into the temperature collector, and the subsequent temperature collector can output the correct voltage value based on the calibration function. Compared with the traditional dry metrology furnace, there is no need to wait for the temperature to stabilize, thereby greatly improving the calibration efficiency of the thermocouple temperature collector.

[0047] 2. By setting a first voltage setting value and a second voltage setting value for each voltage interval, the current timestamp and the device serial number of the local machine are obtained, and hash calculations are performed on the first voltage setting value, the second voltage setting value, the timestamp and the device serial number to obtain a hash value. A calibration instruction is generated based on the first voltage setting value, the second voltage setting value, the timestamp, the device serial number and the hash value, and the calibration instruction is sent to the process calibrator in real time through the RS232 interface. Subsequently, the integrity check can be performed through the hash value, the timeliness check can be performed through the timestamp, and the legitimacy check can be performed through the device serial number. Three security measures are taken before and after to avoid output based on illegal calibration instructions, thereby greatly improving the security of automatic calibration of the temperature collector.

[0048] 3. The first voltage output value and the second voltage output value are encrypted into primary encrypted data through the 3DES algorithm, and each character of the primary encrypted data is shifted 3 bits to the left to obtain secondary encrypted data. The secondary encrypted data is encrypted into encrypted detection data through the AES algorithm, and the encrypted detection data is sent to the host computer in real time through the UDP protocol. If the corresponding encryption algorithm or data transformation rule is not known, the encrypted detection data cannot be cracked. At least 4 security measures (3DES algorithm, displacement direction, number of displacement bits, AES algorithm) are taken before and after, which greatly improves the security of the transmission of the first voltage output value and the second voltage output value, thereby greatly improving the security of the automatic calibration of the temperature collector. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.

[0050] Figure 1 The invention discloses a flow chart of an automatic calibration method for a thermocouple temperature collector.

[0051] Figure 2 The invention discloses a structural schematic diagram of an automatic calibration system for a thermocouple temperature collector. DETAILED DESCRIPTION

[0052] The technical solution in the embodiment of the present application has the following overall idea: the voltage curve is divided into several voltage intervals, two temperature calibration points (first voltage setting value and second voltage setting value) are set for each voltage interval, the corresponding voltage setting value is output to the temperature collector through the process calibrator, the actual voltage output value is collected by the temperature collector, and then the calibration sub-function is solved by a linear equation, the calibration sub-function is obtained by splicing the calibration sub-functions and writing the calibration function into the temperature collector. The subsequent temperature collector can output the correct voltage value based on the calibration function. Compared with the traditional dry-type metrology furnace, there is no need to wait for the temperature to stabilize, so as to improve the calibration efficiency of the thermocouple temperature collector.

[0053] Please refer to Figure 1 to Figure 2 As shown, a preferred embodiment of a method for automatic calibration of a thermocouple temperature collector of the present invention comprises the following steps:

[0054] Step S1, the host computer divides the voltage curve of the temperature collector into a plurality of voltage intervals, sets a first voltage setting value and a second voltage setting value for each of the voltage intervals, generates a calibration instruction based on each of the first voltage setting value and the second voltage setting value, and sends the calibration instruction to the process calibrator through the RS232 interface;

[0055] Step S2, after the process calibrator verifies the received calibration instruction, it performs voltage output operations based on the first voltage setting value and the second voltage setting value of each voltage interval;

[0056] Step S3, a temperature collector for thermocouple temperature collection, real-time collection of the first voltage output value and the second voltage output value output by the process calibrator based on the first voltage setting value and the second voltage setting value of each voltage interval, encrypting each of the first voltage output value and the second voltage output value into encrypted detection data, and sending the encrypted detection data to the host computer;

[0057] Step S4, the host computer decrypts the received encrypted detection data to obtain the first voltage output value and the second voltage output value, calculates a calibration sub-function based on the first voltage setting value, the second voltage setting value, the first voltage output value and the second voltage output value of each voltage interval, and concatenates the calibration sub-functions to obtain a calibration function;

[0058] Step S5: The host computer writes the calibration function into the temperature collector through the UDP protocol to complete the automatic calibration of the temperature collector.

[0059] If a high-precision dry-type metering furnace is used to calibrate the temperature collector, it will take at least 7 hours to complete the calibration, which seriously affects the production efficiency. However, the present invention can be calibrated anytime and anywhere, and does not require manual wiring. It can be operated by just clicking on the host computer, which is fast and accurate.

[0060] The step S1 is specifically as follows:

[0061] The host computer divides the voltage curve of the temperature collector into several voltage intervals, sets a first voltage setting value and a second voltage setting value for each voltage interval, obtains the current timestamp and the device serial number of the local computer, performs hash calculation on each of the first voltage setting value, the second voltage setting value, the timestamp and the device serial number to obtain a hash value, generates a calibration instruction based on each of the first voltage setting value, the second voltage setting value, the timestamp, the device serial number and the hash value, and sends the calibration instruction to the process calibrator in real time through the RS232 interface.

[0062] A first voltage setting value and a second voltage setting value are set for each voltage interval, the current timestamp and the device serial number of the local device are obtained, and hash calculation is performed on each first voltage setting value, the second voltage setting value, the timestamp and the device serial number to obtain a hash value. A calibration instruction is generated based on each first voltage setting value, the second voltage setting value, the timestamp, the device serial number and the hash value, and the calibration instruction is sent to the process calibrator in real time through the RS232 interface. Subsequently, the integrity check can be performed through the hash value, the timeliness check can be performed through the timestamp, and the legitimacy check can be performed through the device serial number. Three safety measures are taken before and after to avoid output based on illegal calibration instructions, thereby greatly improving the security of automatic calibration of the temperature collector.

[0063] In specific implementation, the voltage interval can be set to [-7mV, -3mV], [-3mV, -1.6mV], [-1.6mV, 0mV], [0mV, 1.6mV], [1.6mV, 3.5mV], [3.5mV, 20mV], [20mV, 45mV], and the two calibration points (first voltage setting value and second voltage setting value) of the first voltage interval are set to -6.2mV and -3.8mV; the second voltage interval is set to -2.6mV and -1.9mV; the third voltage interval is set to -1.2mV and -0.3mV; the fourth voltage interval is set to 0.4mV and 1.3mV; the fifth voltage interval is set to 2.1mV and 3.1mV; the sixth voltage interval is set to 6.8mV and 16.7mV; and the seventh voltage interval is set to 25mV and 40mV.

[0064] The step S2 is specifically as follows:

[0065] The process calibrator receives the calibration instruction in real time through the RS232 interface, parses the calibration instruction to obtain the first voltage setting value, the second voltage setting value, the timestamp, the device serial number and the hash value, performs integrity check on the first voltage setting value, the second voltage setting value, the timestamp and the device serial number through the hash value, performs timeliness check through the timestamp, performs legitimacy check on the device serial number through a preset device management table, and then performs voltage output operation to the temperature collector based on the first voltage setting value and the second voltage setting value of each voltage interval.

[0066] The step S3 is specifically as follows:

[0067] A temperature collector for thermocouple temperature collection, which collects in real time the first voltage output value and the second voltage output value output by the process calibrator based on the first voltage setting value and the second voltage setting value of each voltage interval;

[0068] The temperature collector encrypts the first voltage output value and the second voltage output value into first-level encrypted data through the 3DES algorithm, shifts each character of the first-level encrypted data to the left by 3 bits to obtain second-level encrypted data, encrypts the second-level encrypted data into encrypted detection data through the AES algorithm, and sends the encrypted detection data to the host computer in real time through the UDP protocol.

[0069] The first voltage output value and the second voltage output value are encrypted into first-level encrypted data through the 3DES algorithm, and each character of the first-level encrypted data is shifted 3 bits to the left to obtain second-level encrypted data. The second-level encrypted data is encrypted into encrypted detection data through the AES algorithm, and the encrypted detection data is sent to the host computer in real time through the UDP protocol. If the corresponding encryption algorithm or data transformation rule is not known, the encrypted detection data cannot be cracked. At least 4 security measures (3DES algorithm, displacement direction, number of displacement bits, AES algorithm) are taken before and after, which greatly improves the security of the transmission of the first voltage output value and the second voltage output value, thereby greatly improving the security of the automatic calibration of the temperature collector.

[0070] The step S4 is specifically as follows:

[0071] The host computer receives the encrypted detection data in real time through the UDP protocol, decrypts the encrypted detection data into secondary encrypted data through the AES algorithm, shifts each character of the secondary encrypted data to the right by 3 bits to obtain primary encrypted data, decrypts the primary encrypted data through the 3DES algorithm to obtain each first voltage output value and the second voltage output value, calculates a calibration sub-function based on the first voltage setting value, the second voltage setting value, the first voltage output value and the second voltage output value of each voltage interval, and splices each calibration sub-function to obtain a calibration function;

[0072] The calculation process of the calibration subfunction is:

[0073] Using a linear equation, a calibration factor k and a calibration factor b are calculated based on the first voltage setting value, the second voltage setting value, the first voltage output value, and the second voltage output value, and a calibration sub-function is constructed based on the calibration factor k and the calibration factor b: Vb1=Va1*k+b;

[0074] Vb2=Va2*k+b;

[0075] Among them, Vb1 represents the first voltage output value; Vb2 represents the second voltage output value; Va1 represents the first voltage setting value; Va2 represents the second voltage setting value.

[0076] A preferred embodiment of a thermocouple temperature collector automatic calibration system of the present invention includes the following modules:

[0077] A voltage setting value sending module is used for the host computer to divide the voltage curve of the temperature collector into a plurality of voltage intervals, set a first voltage setting value and a second voltage setting value for each of the voltage intervals, generate a calibration instruction based on each of the first voltage setting value and the second voltage setting value, and send the calibration instruction to the process calibrator through the RS232 interface;

[0078] A voltage output module, used for the process calibrator to perform voltage output operations based on the first voltage setting value and the second voltage setting value of each voltage interval respectively after verifying the received calibration instruction;

[0079] A voltage output value acquisition module, a temperature collector for thermocouple temperature acquisition, a real-time acquisition process calibrator based on the first voltage setting value and the second voltage setting value of each voltage interval output first voltage output value and second voltage output value output, each of the first voltage output value and the second voltage output value is encrypted into encrypted detection data, and the encrypted detection data is sent to the host computer;

[0080] A calibration function generation module, used for the host computer to decrypt the encrypted detection data received to obtain the first voltage output value and the second voltage output value, calculate the calibration sub-function based on the first voltage setting value, the second voltage setting value, the first voltage output value and the second voltage output value of each voltage interval, and splice the calibration sub-functions to obtain the calibration function;

[0081] The automatic calibration module is used for the host computer to write the calibration function into the temperature collector through the UDP protocol to complete the automatic calibration of the temperature collector.

[0082] If a high-precision dry-type metering furnace is used to calibrate the temperature collector, it will take at least 7 hours to complete the calibration, which seriously affects the production efficiency. However, the present invention can be calibrated anytime and anywhere, and does not require manual wiring. It can be operated by just clicking on the host computer, which is fast and accurate.

[0083] The voltage setting value sending module is specifically used for:

[0084] The host computer divides the voltage curve of the temperature collector into several voltage intervals, sets a first voltage setting value and a second voltage setting value for each voltage interval, obtains the current timestamp and the device serial number of the local computer, performs hash calculation on each of the first voltage setting value, the second voltage setting value, the timestamp and the device serial number to obtain a hash value, generates a calibration instruction based on each of the first voltage setting value, the second voltage setting value, the timestamp, the device serial number and the hash value, and sends the calibration instruction to the process calibrator in real time through the RS232 interface.

[0085] A first voltage setting value and a second voltage setting value are set for each voltage interval, the current timestamp and the device serial number of the local device are obtained, and hash calculation is performed on each first voltage setting value, the second voltage setting value, the timestamp and the device serial number to obtain a hash value. A calibration instruction is generated based on each first voltage setting value, the second voltage setting value, the timestamp, the device serial number and the hash value, and the calibration instruction is sent to the process calibrator in real time through the RS232 interface. Subsequently, the integrity check can be performed through the hash value, the timeliness check can be performed through the timestamp, and the legitimacy check can be performed through the device serial number. Three safety measures are taken before and after to avoid output based on illegal calibration instructions, thereby greatly improving the security of automatic calibration of the temperature collector.

[0086] In specific implementation, the voltage interval can be set to [-7mV, -3mV], [-3mV, -1.6mV], [-1.6mV, 0mV], [0mV, 1.6mV], [1.6mV, 3.5mV], [3.5mV, 20mV], [20mV, 45mV], and the two calibration points (first voltage setting value and second voltage setting value) of the first voltage interval are set to -6.2mV and -3.8mV; the second voltage interval is set to -2.6mV and -1.9mV; the third voltage interval is set to -1.2mV and -0.3mV; the fourth voltage interval is set to 0.4mV and 1.3mV; the fifth voltage interval is set to 2.1mV and 3.1mV; the sixth voltage interval is set to 6.8mV and 16.7mV; and the seventh voltage interval is set to 25mV and 40mV.

[0087] The voltage output module is specifically used for:

[0088] The process calibrator receives the calibration instruction in real time through the RS232 interface, parses the calibration instruction to obtain the first voltage setting value, the second voltage setting value, the timestamp, the device serial number and the hash value, performs integrity check on the first voltage setting value, the second voltage setting value, the timestamp and the device serial number through the hash value, performs timeliness check through the timestamp, performs legitimacy check on the device serial number through a preset device management table, and then performs voltage output operation to the temperature collector based on the first voltage setting value and the second voltage setting value of each voltage interval.

[0089] The voltage output value acquisition module is specifically used for:

[0090] A temperature collector for thermocouple temperature collection, which collects in real time the first voltage output value and the second voltage output value output by the process calibrator based on the first voltage setting value and the second voltage setting value of each voltage interval;

[0091] The temperature collector encrypts the first voltage output value and the second voltage output value into first-level encrypted data through the 3DES algorithm, shifts each character of the first-level encrypted data to the left by 3 bits to obtain second-level encrypted data, encrypts the second-level encrypted data into encrypted detection data through the AES algorithm, and sends the encrypted detection data to the host computer in real time through the UDP protocol.

[0092] The first voltage output value and the second voltage output value are encrypted into first-level encrypted data through the 3DES algorithm, and each character of the first-level encrypted data is shifted 3 bits to the left to obtain second-level encrypted data. The second-level encrypted data is encrypted into encrypted detection data through the AES algorithm, and the encrypted detection data is sent to the host computer in real time through the UDP protocol. If the corresponding encryption algorithm or data transformation rule is not known, the encrypted detection data cannot be cracked. At least 4 security measures (3DES algorithm, displacement direction, number of displacement bits, AES algorithm) are taken before and after, which greatly improves the security of the transmission of the first voltage output value and the second voltage output value, thereby greatly improving the security of the automatic calibration of the temperature collector.

[0093] The calibration function generation module is specifically used for:

[0094] The host computer receives the encrypted detection data in real time through the UDP protocol, decrypts the encrypted detection data into secondary encrypted data through the AES algorithm, shifts each character of the secondary encrypted data to the right by 3 bits to obtain primary encrypted data, decrypts the primary encrypted data through the 3DES algorithm to obtain each first voltage output value and the second voltage output value, calculates a calibration sub-function based on the first voltage setting value, the second voltage setting value, the first voltage output value and the second voltage output value of each voltage interval, and splices each calibration sub-function to obtain a calibration function;

[0095] The calculation process of the calibration subfunction is:

[0096] Using a linear equation, a calibration factor k and a calibration factor b are calculated based on the first voltage setting value, the second voltage setting value, the first voltage output value, and the second voltage output value, and a calibration sub-function is constructed based on the calibration factor k and the calibration factor b: Vb1=Va1*k+b;

[0097] Vb2=Va2*k+b;

[0098] Among them, Vb1 represents the first voltage output value; Vb2 represents the second voltage output value; Va1 represents the first voltage setting value; Va2 represents the second voltage setting value.

[0099] In summary, the advantages of the present invention are:

[0100] 1. Divide the voltage curve of the temperature collector into several voltage intervals through the host computer, set the first voltage setting value and the second voltage setting value for each voltage interval, generate a calibration instruction based on each first voltage setting value and the second voltage setting value and send it to the process calibrator; after the process calibrator verifies the calibration instruction, it performs the voltage output operation based on the first voltage setting value and the second voltage setting value of each voltage interval; then the temperature collector used for thermocouple temperature acquisition collects the first voltage output value and the second voltage output value output by the process calibrator based on the first voltage setting value and the second voltage setting value of each voltage interval in real time, encrypts each first voltage output value and the second voltage output value into encrypted detection data and sends it to the host computer; the host computer decrypts the encrypted detection data to obtain each first voltage output value and the second voltage output value, and generates the calibration instruction based on each first voltage setting value and the second voltage setting value of each voltage interval. The first voltage setting value, the second voltage setting value, the first voltage output value and the second voltage output value are used to calculate the calibration sub-function, the calibration function is obtained by splicing the calibration sub-functions, and the calibration function is written into the temperature collector to complete the automatic calibration of the temperature collector; that is, the voltage curve is divided into several voltage intervals, two temperature calibration points (the first voltage setting value and the second voltage setting value) are set for each voltage interval, the corresponding voltage setting value is output to the temperature collector through the process calibrator, the actual voltage output value is collected through the temperature collector, and then the calibration sub-function is solved by a linear equation, the calibration sub-function is spliced ​​to obtain the calibration function and written into the temperature collector, and the subsequent temperature collector can output the correct voltage value based on the calibration function. Compared with the traditional dry metrology furnace, there is no need to wait for the temperature to stabilize, thereby greatly improving the calibration efficiency of the thermocouple temperature collector.

[0101] 2. By setting a first voltage setting value and a second voltage setting value for each voltage interval, the current timestamp and the device serial number of the local machine are obtained, and hash calculations are performed on the first voltage setting value, the second voltage setting value, the timestamp and the device serial number to obtain a hash value. A calibration instruction is generated based on the first voltage setting value, the second voltage setting value, the timestamp, the device serial number and the hash value, and the calibration instruction is sent to the process calibrator in real time through the RS232 interface. Subsequently, the integrity check can be performed through the hash value, the timeliness check can be performed through the timestamp, and the legitimacy check can be performed through the device serial number. Three security measures are taken before and after to avoid output based on illegal calibration instructions, thereby greatly improving the security of automatic calibration of the temperature collector.

[0102] 3. The first voltage output value and the second voltage output value are encrypted into primary encrypted data through the 3DES algorithm, and each character of the primary encrypted data is shifted 3 bits to the left to obtain secondary encrypted data. The secondary encrypted data is encrypted into encrypted detection data through the AES algorithm, and the encrypted detection data is sent to the host computer in real time through the UDP protocol. If the corresponding encryption algorithm or data transformation rule is not known, the encrypted detection data cannot be cracked. At least 4 security measures (3DES algorithm, displacement direction, number of displacement bits, AES algorithm) are taken before and after, which greatly improves the security of the transmission of the first voltage output value and the second voltage output value, thereby greatly improving the security of the automatic calibration of the temperature collector.

[0103] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. A method for automatic calibration of a thermocouple temperature collector, characterized in that: The steps include: Step S1, the host computer divides the voltage curve of the temperature collector into a plurality of voltage intervals, sets a first voltage setting value and a second voltage setting value for each of the voltage intervals, generates a calibration instruction based on each of the first voltage setting value and the second voltage setting value, and sends the calibration instruction to the process calibrator through the RS232 interface; Step S2, after the process calibrator verifies the received calibration instruction, it performs voltage output operations based on the first voltage setting value and the second voltage setting value of each voltage interval; Step S3, a temperature collector for thermocouple temperature collection, real-time collection of the first voltage output value and the second voltage output value output by the process calibrator based on the first voltage setting value and the second voltage setting value of each voltage interval, encrypting each of the first voltage output value and the second voltage output value into encrypted detection data, and sending the encrypted detection data to the host computer; Step S4, the host computer decrypts the received encrypted detection data to obtain the first voltage output value and the second voltage output value, calculates a calibration sub-function based on the first voltage setting value, the second voltage setting value, the first voltage output value and the second voltage output value of each voltage interval, and concatenates the calibration sub-functions to obtain a calibration function; Step S5: The host computer writes the calibration function into the temperature collector through the UDP protocol to complete the automatic calibration of the temperature collector.

2. The automatic calibration method for a thermocouple temperature collector according to claim 1, characterized in that: The step S1 is specifically as follows: The host computer divides the voltage curve of the temperature collector into several voltage intervals, sets a first voltage setting value and a second voltage setting value for each voltage interval, obtains the current timestamp and the device serial number of the local computer, performs hash calculation on each of the first voltage setting value, the second voltage setting value, the timestamp and the device serial number to obtain a hash value, generates a calibration instruction based on each of the first voltage setting value, the second voltage setting value, the timestamp, the device serial number and the hash value, and sends the calibration instruction to the process calibrator in real time through the RS232 interface.

3. The automatic calibration method of a thermocouple temperature collector according to claim 1, characterized in that: The step S2 is specifically as follows: The process calibrator receives the calibration instruction in real time through the RS232 interface, parses the calibration instruction to obtain the first voltage setting value, the second voltage setting value, the timestamp, the device serial number and the hash value, performs integrity check on the first voltage setting value, the second voltage setting value, the timestamp and the device serial number through the hash value, performs timeliness check through the timestamp, performs legitimacy check on the device serial number through a preset device management table, and then performs voltage output operation to the temperature collector based on the first voltage setting value and the second voltage setting value of each voltage interval.

4. The automatic calibration method of a thermocouple temperature collector according to claim 1, characterized in that: The step S3 is specifically as follows: A temperature collector for thermocouple temperature collection, which collects in real time the first voltage output value and the second voltage output value output by the process calibrator based on the first voltage setting value and the second voltage setting value of each voltage interval; The temperature collector encrypts the first voltage output value and the second voltage output value into first-level encrypted data through the 3DES algorithm, shifts each character of the first-level encrypted data to the left by 3 bits to obtain second-level encrypted data, encrypts the second-level encrypted data into encrypted detection data through the AES algorithm, and sends the encrypted detection data to the host computer in real time through the UDP protocol.

5. The automatic calibration method for a thermocouple temperature collector according to claim 1, characterized in that: The step S4 is specifically as follows: The host computer receives the encrypted detection data in real time through the UDP protocol, decrypts the encrypted detection data into secondary encrypted data through the AES algorithm, shifts each character of the secondary encrypted data to the right by 3 bits to obtain primary encrypted data, decrypts the primary encrypted data through the 3DES algorithm to obtain each first voltage output value and the second voltage output value, calculates a calibration sub-function based on the first voltage setting value, the second voltage setting value, the first voltage output value and the second voltage output value of each voltage interval, and splices each calibration sub-function to obtain a calibration function; The calculation process of the calibration subfunction is: Using a linear equation, a calibration factor k and a calibration factor b are calculated based on the first voltage setting value, the second voltage setting value, the first voltage output value, and the second voltage output value, and a calibration sub-function is constructed based on the calibration factor k and the calibration factor b: Vb1=Va1*k+b; Vb2=Va2*k+b; Among them, Vb1 represents the first voltage output value; Vb2 represents the second voltage output value; Va1 represents the first voltage setting value; Va2 represents the second voltage setting value.

6. A thermocouple temperature collector automatic calibration system, characterized in that: Includes the following modules: A voltage setting value sending module is used for the host computer to divide the voltage curve of the temperature collector into a plurality of voltage intervals, set a first voltage setting value and a second voltage setting value for each of the voltage intervals, generate a calibration instruction based on each of the first voltage setting value and the second voltage setting value, and send the calibration instruction to the process calibrator through the RS232 interface; A voltage output module, used for the process calibrator to perform voltage output operations based on the first voltage setting value and the second voltage setting value of each voltage interval respectively after verifying the received calibration instruction; A voltage output value acquisition module, a temperature collector for thermocouple temperature acquisition, a real-time acquisition process calibrator based on the first voltage setting value and the second voltage setting value of each voltage interval output first voltage output value and second voltage output value output, each of the first voltage output value and the second voltage output value is encrypted into encrypted detection data, and the encrypted detection data is sent to the host computer; A calibration function generation module, used for the host computer to decrypt the encrypted detection data received to obtain the first voltage output value and the second voltage output value, calculate the calibration sub-function based on the first voltage setting value, the second voltage setting value, the first voltage output value and the second voltage output value of each voltage interval, and splice the calibration sub-functions to obtain the calibration function; The automatic calibration module is used for the host computer to write the calibration function into the temperature collector through the UDP protocol to complete the automatic calibration of the temperature collector.

7. The automatic calibration system for thermocouple temperature collector according to claim 6, characterized in that: The voltage setting value sending module is specifically used for: The host computer divides the voltage curve of the temperature collector into several voltage intervals, sets a first voltage setting value and a second voltage setting value for each voltage interval, obtains the current timestamp and the device serial number of the local computer, performs hash calculation on each of the first voltage setting value, the second voltage setting value, the timestamp and the device serial number to obtain a hash value, generates a calibration instruction based on each of the first voltage setting value, the second voltage setting value, the timestamp, the device serial number and the hash value, and sends the calibration instruction to the process calibrator in real time through the RS232 interface.

8. The automatic calibration system for thermocouple temperature collector according to claim 6, characterized in that: The voltage output module is specifically used for: The process calibrator receives the calibration instruction in real time through the RS232 interface, parses the calibration instruction to obtain the first voltage setting value, the second voltage setting value, the timestamp, the device serial number and the hash value, performs integrity check on the first voltage setting value, the second voltage setting value, the timestamp and the device serial number through the hash value, performs timeliness check through the timestamp, performs legitimacy check on the device serial number through a preset device management table, and then performs voltage output operation to the temperature collector based on the first voltage setting value and the second voltage setting value of each voltage interval.

9. The automatic calibration system for thermocouple temperature collector according to claim 6, characterized in that: The voltage output value acquisition module is specifically used for: A temperature collector for thermocouple temperature collection, which collects in real time the first voltage output value and the second voltage output value output by the process calibrator based on the first voltage setting value and the second voltage setting value of each voltage interval; The temperature collector encrypts the first voltage output value and the second voltage output value into first-level encrypted data through the 3DES algorithm, shifts each character of the first-level encrypted data to the left by 3 bits to obtain second-level encrypted data, encrypts the second-level encrypted data into encrypted detection data through the AES algorithm, and sends the encrypted detection data to the host computer in real time through the UDP protocol.

10. The automatic calibration system for thermocouple temperature collector according to claim 6, characterized in that: The calibration function generation module is specifically used for: The host computer receives the encrypted detection data in real time through the UDP protocol, decrypts the encrypted detection data into secondary encrypted data through the AES algorithm, shifts each character of the secondary encrypted data to the right by 3 bits to obtain primary encrypted data, decrypts the primary encrypted data through the 3DES algorithm to obtain each first voltage output value and the second voltage output value, calculates a calibration sub-function based on the first voltage setting value, the second voltage setting value, the first voltage output value and the second voltage output value of each voltage interval, and splices each calibration sub-function to obtain a calibration function; The calculation process of the calibration subfunction is: Using a linear equation, a calibration factor k and a calibration factor b are calculated based on the first voltage setting value, the second voltage setting value, the first voltage output value, and the second voltage output value, and a calibration sub-function is constructed based on the calibration factor k and the calibration factor b: Vb1=Va1*k+b; Vb2=Va2*k+b; Among them, Vb1 represents the first voltage output value; Vb2 represents the second voltage output value; Va1 represents the first voltage setting value; Va2 represents the second voltage setting value.