Temperature calibration method and device for single-bus temperature sensor
By using a single bus sensor integrated module controlled by an adiabatic bath and a microcontroller in the temperature sensor, efficient calibration of multiple temperature sensors is achieved, solving the problems of large limitations and low efficiency of calibration in the prior art, and improving calibration efficiency and accuracy.
Patent Information
- Application Number
- CN202411689872.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-03-14
AI Technical Summary
The existing temperature calibration methods are limited to a small number of temperature sensors and rely on ambient temperature as a reference. They have great limitations and are difficult to achieve efficient calibration of multiple temperature sensors.
By controlling the insulated bath to the set temperature, the temperature sensor is immersed into the bath. The microcontroller establishes a communication connection with the temperature sensor based on the single bus sensor integrated module, performs address reading, temperature reading and calibration procedures, obtains the temperature of the temperature sensor and the temperature of the insulated bath, and calculates and writes the calibration value to the EEPROM.
The simultaneous calibration of multiple temperature sensors is achieved, which improves calibration efficiency, and the temperature of the adiabatic bath is adjustable. It is suitable for the calibration of large batches of temperature sensors, ensuring the accuracy and reliability of the sensor under different temperature conditions.
Smart Images

Figure CN119618420A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of temperature sensors, and in particular to a temperature calibration method and device for a single-bus temperature sensor. Background Art
[0002] The existing temperature calibration method is based on the difference between the ambient temperature and the value obtained by the temperature sensor. The working performance of the temperature sensor is judged by comparing the difference between the ambient temperature and the temperature sensor.
[0003] However, the calibration of temperature sensors can only involve a small number of temperature sensors at a time, and the ambient temperature has great limitations as a reference. Summary of the invention
[0004] To solve the above problems, the present invention provides a temperature calibration method for a single bus temperature sensor in a first aspect, comprising:
[0005] Control the adiabatic bath liquid to a set temperature and immerse the temperature sensor into the bath liquid;
[0006] The single chip microcomputer establishes a communication connection with the temperature sensor based on the single bus sensor cluster module;
[0007] Executing an address reading program, a temperature reading program and a calibration program; acquiring an execution temperature of a temperature sensor based on the temperature reading program; acquiring a temperature calibration value based on the execution temperature of the temperature sensor and the temperature of the thermal insulation bath liquid by the calibration program;
[0008] The calibrated temperature value is written into the temperature calibration correction value storage space in the EEPROM until all temperature sensors have completed temperature calibration.
[0009] The temperature of the insulating bath liquid is adjustable, and multi-stage temperature calibration of the temperature sensor is achieved based on adjusting the temperature of the insulating bath liquid.
[0010] Among them, the single-bus sensor cluster module includes a primary module and a secondary module, the primary module is connected to the secondary module; the primary module is connected to the single-chip microcomputer, and the diode module is connected to the temperature sensor; the single-chip microcomputer establishes a communication connection with the temperature sensor based on the primary module and the secondary module.
[0011] The address of the temperature sensor is saved in an address matrix, and the address matrix is stored in an external storage device based on a USB interface.
[0012] The calibration procedure includes the following steps:
[0013] Adjust the temperature of the constant temperature bath, and the microcontroller sends a temperature reading instruction to the sensor;
[0014] The sensor performs temperature conversion and writes it into the chip temperature register; the microcontroller reads the temperature data in the register; if the temperature test within the required temperature range is not completed, the temperature of the constant temperature bath is still adjusted;
[0015] Establishing a bath temperature array and a measured temperature array, and the single chip microcomputer fits a temperature curve based on the bath temperature array and the measured temperature array;
[0016] The characteristic coefficients of the temperature curve are written into the user storage space of the EEPROM to complete the calibration.
[0017] Wherein, a measurement error is obtained based on the sensor execution temperature and the temperature of the constant temperature bath, and the output temperature value of the constant temperature bath is adjusted based on a comparison result between the measurement error and the allowable error.
[0018] A second aspect of the present invention provides a temperature calibration device for a single-bus temperature sensor, which can be applied to the temperature calibration method for a single-bus temperature sensor as described above, comprising:
[0019] A constant temperature bath and a constant temperature circulator; the constant temperature circulator is connected to the constant temperature bath, and the constant temperature bath is used to accommodate the insulating bath liquid delivered by the constant temperature circulator;
[0020] A single chip microcomputer connected to the constant temperature circulator for adjusting the temperature of the insulating bath liquid;
[0021] A button, the button is connected to the single chip microcomputer and is used to set the temperature value of the insulating bath liquid;
[0022] A single-bus sensor cluster module, one end of which is connected to the single-chip microcomputer, and the other end of which is connected to multiple sensors, and the single-bus sensor cluster module is used to establish a communication connection between the single-chip microcomputer and the multiple sensors;
[0023] A display screen is used to display the temperature value of the insulating bath liquid set by the button.
[0024] Among them, it also includes a liquid inlet, a liquid outlet and a USB interface; the liquid inlet is used to input the insulating bath liquid, and the liquid outlet is used to output the insulating bath liquid; the circulation of the insulating bath liquid is realized based on the liquid inlet and the liquid outlet; the USB interface is connected to an external storage device, and the USB interface is used to send the address matrix, temperature matrix and characteristic coefficients to the external storage device.
[0025] A third aspect of the present invention provides an electronic device, comprising: a memory and a processor coupled to each other, wherein the processor is used to execute program instructions stored in the memory to implement the temperature calibration method as described in any one of the above items.
[0026] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores program data, and the program data can be executed by a processor to implement the temperature calibration method as described in any one of the above items.
[0027] Beneficial effects of the present invention: Different from the prior art, the temperature calibration method of the present invention includes: controlling the adiabatic bath liquid to a set temperature, immersing the temperature sensor in the bath liquid; the single-chip microcomputer establishes a communication connection with the temperature sensor based on a single-bus sensor assembly module; executing an address reading program, a temperature reading program and a calibration program; obtaining the execution temperature of the temperature sensor based on the temperature reading program; the calibration program obtains the temperature calibration value based on the execution temperature of the temperature sensor and the temperature of the adiabatic bath liquid; and writing the calibration temperature value into the temperature calibration correction value storage space in the EEPROM until all temperature sensors have completed temperature calibration. The temperature calibration of multiple temperature sensors can be realized simultaneously through the single-bus temperature sensor, and the temperature of the adiabatic bath liquid can be adjusted, thereby improving the calibration efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 A schematic flow chart of an embodiment of a temperature calibration method for a single bus temperature sensor provided by the present invention;
[0029] Figure 2 A schematic diagram of the structure of an embodiment of a single bus sensor cluster module provided by the present invention;
[0030] Figure 3 A flowchart of an embodiment of an address reading program provided by the present invention;
[0031] Figure 4 A schematic diagram of a flow chart of an embodiment of a calibration procedure provided by the present invention;
[0032] Figure 5 A flow chart of another embodiment of the calibration procedure provided by the present invention;
[0033] Figure 6 A schematic diagram of the principle of an embodiment of a temperature calibration device for a single bus temperature sensor provided by the present invention;
[0034] Figure 7 A front schematic diagram of an embodiment of a temperature calibration device for a single-bus temperature sensor provided by the present invention;
[0035] Figure 8 for Figure 7 A schematic diagram of the back side of the temperature calibration device for the single bus temperature sensor;
[0036] Fig. 9 is a structural schematic diagram of an embodiment of a computer device provided by the present invention;
[0037] Fig.10 It is a structural schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0038] The following are specific embodiments of the present invention and the accompanying drawings to further describe the technical solution of the present invention, but the present invention is not limited to these embodiments.
[0039] See also Figure 1 As shown, Figure 1 A flow chart of an embodiment of a temperature calibration method for a single bus temperature sensor provided by the present invention includes the following steps:
[0040] Step S11: Control the adiabatic bath liquid to a set temperature and immerse the temperature sensor in the bath liquid; after the temperature sensor is connected to the single-bus sensor cluster module, immerse the sensor completely in the bath liquid to ensure that the sensors are in the same temperature environment; when the sensor temperature stabilizes near the set temperature, indicating that the sensor and the bath liquid have reached a state of equilibrium, execute step S12.
[0041] Multiple sensors can be immersed in the bath for calibration at the same time, which improves the efficiency of calibration and is suitable for calibration of large quantities of temperature sensors; the insulating bath liquid can use insulating heat-conducting liquids such as silicone oil, electronic fluorinated liquid, etc., to avoid short circuits in the temperature sensor during the immersion process.
[0042] Step S12: The single-chip microcomputer establishes a communication connection with the temperature sensor based on the single-bus sensor cluster module; one end of the single-bus sensor cluster module is connected to the single-chip microcomputer, and the other end of the single-bus sensor cluster module is connected to the temperature sensor; for example, the digital signal pin (such as the GPIO pin) of the single-bus sensor cluster module is connected to the common pin COM of the single-bus sensor cluster module, and each channel of the single-bus sensor cluster module is respectively connected to the DQ pin of each temperature sensor to establish a communication connection between the single-chip microcomputer and the temperature sensor.
[0043] Through the single-bus sensor cluster module, the microcontroller can select multiple sensor channels in sequence to achieve batch processing of multiple sensors, greatly improving the calibration efficiency.
[0044] Step S13: Execute the address reading program, the temperature reading program and the calibration program; obtain the execution temperature of the temperature sensor based on the temperature reading program; the calibration program obtains the temperature calibration value based on the execution temperature of the temperature sensor and the temperature of the adiabatic bath liquid; each temperature sensor corresponds to a unique address, and the single-chip microcomputer sends an addressing command through a single bus to request the temperature sensor to return its unique address; calculate the calibration value based on the execution temperature of the temperature sensor and the bath liquid temperature. For example, the calibration value can be obtained by linear calibration or polynomial fitting. It should be clear that the execution temperature of the temperature sensor is the temperature value after the sensor and the bath liquid reach thermal equilibrium.
[0045] Automatically read the unique address of the sensor, reduce manual intervention and improve efficiency. The temperature reading program automatically reads the current temperature data of the sensor to ensure the real-time and accuracy of the data. The calibration program automatically calculates the calibration value and writes it to the sensor's EEPROM to achieve batch calibration and improve work efficiency.
[0046] Step S14: Write the calibration temperature value into the temperature calibration correction value storage space in the EEPROM. The EEPROM is a non-volatile memory that can retain the calibration value even after power failure, ensuring that the sensor remains in the calibrated state when it is used next time.
[0047] The operation stops until all temperature sensors have completed temperature calibration. The counting function can be realized by setting a counter. For example, each time a calibration temperature value is written into the EEPROM, the calibrated sensor counter is increased by 1 to determine whether the calibrated sensor count value is equal to the total number of sensors. If the judgment result is yes, it means that all sensors have been calibrated and the calibration stops. If the judgment result is no, it means that there are still uncalibrated temperature sensors, and the above steps of selecting channels, reading addresses, reading temperatures, obtaining calibration values, writing calibration values and updating status are repeated until all sensors have completed calibration.
[0048] In summary, the temperature calibration method of this embodiment includes: controlling the adiabatic bath liquid to a set temperature, immersing the temperature sensor in the bath liquid; the single-chip microcomputer establishes a communication connection with the temperature sensor based on the single-bus sensor cluster module; executing the address reading program, the temperature reading program and the calibration program; obtaining the execution temperature of the temperature sensor based on the temperature reading program; the calibration program obtains the temperature calibration value based on the execution temperature of the temperature sensor and the temperature of the adiabatic bath liquid; and writing the calibration temperature value into the temperature calibration correction value storage space in the EEPROM until all temperature sensors have completed the temperature calibration. The temperature calibration of multiple temperature sensors can be realized simultaneously through the single-bus temperature sensor, and the temperature of the adiabatic bath liquid can be adjusted to improve the calibration efficiency.
[0049] In one embodiment, the temperature of the insulating bath liquid is adjustable, and a multi-stage temperature calibration of the temperature sensor is achieved based on adjusting the temperature of the insulating bath liquid. The calibration temperature range and step size are set, for example, 0°C to 100°C, and calibration is performed every 10°C; the initial calibration temperature is set to 0°C, and the bath liquid is heated or cooled until the bath liquid temperature reaches the set initial temperature, and the temperature calibration is performed after the temperature sensor and the bath liquid achieve thermal equilibrium; after all temperature sensors are calibrated, the bath liquid temperature is adjusted to 10°C and the above process is repeated, and the subsequent temperature calibration link is not repeated here.
[0050] By adjusting the bath temperature, calibration can be performed over a wide temperature range to ensure the accuracy and reliability of the sensor under different temperature conditions. Multi-point calibration can better fit the temperature response curve of the sensor.
[0051] In one embodiment, the single bus sensor cluster module includes a primary module and a secondary module, such as Figure 2 As shown, Figure 2 This is a schematic structural diagram of an embodiment of a single bus sensor aggregation module provided by the present invention.
[0052] The primary module is connected to the secondary module; the primary module is connected to the single-chip microcomputer, and the secondary module is connected to the temperature sensor; that is, the digital signal pin of the single-chip microcomputer is connected to the common pin COM of the primary module; the output pin of the primary module is connected to the input pin of the secondary module to realize the connection between the primary module and the secondary module. Each channel of the secondary module is connected to the DQ pin of each temperature sensor; the single-chip microcomputer establishes a communication connection with the temperature sensor based on the primary module and the secondary module.
[0053] The design of the single-bus sensor cluster module, including the primary module and the secondary module, not only expands the number of channels and reduces the pin occupation of the microcontroller, but also improves the communication efficiency and system reliability. It is suitable for calibration and management scenarios that require a large number of sensors.
[0054] The following describes the working principle of the single bus sensor cluster module of this embodiment:
[0055] The primary module includes a multiplexing chip, which includes COM, INH1, A1, B1 and C1 interfaces; the COM interface is connected to the single-chip microcomputer, and the single-chip microcomputer controls whether the multiplexing chip controls the working state of the secondary module through the COM interface.
[0056] Specifically, INH1 includes a high potential and a low potential. If INH1 is a low potential, the multiplexing chip is controlled to receive data from the secondary module for temperature calibration; if INH1 is a high potential, the multiplexing chip is controlled not to receive data from the secondary module and not to perform temperature calibration, for example, the low potential is 0 and the high potential is 1.
[0057] The multiplexing chip also includes 8 interfaces, CH0, CH1...CH7, which are respectively connected to the common terminals of the 8 chips in the secondary module, CH0 is connected to COM1, CH1 is connected to COM2...CH7 is connected to COM8; the multi-level multiplexing chip controls the high and low levels of CH0, CH1...CH7 through the potential of the A1, B1 and C1 interfaces, and then controls the data received from one of the 8 chips in the secondary module. A1, B1 and C1 all include high and low levels, 1 is high level, and 0 is low level, as shown in the following table:
[0058] INH1 A1 B1 C1 interface 0 0 0 0 CH0 0 0 0 1 CH1 0 0 1 0 CH2 0 0 1 1 CH3 0 1 0 0 CH4 0 1 0 1 CH5 0 1 1 0 CH6 0 1 1 1 CH7 1 X X X X
[0059] When A1, B1 and C1 are all low voltage, that is, 0, the CH0 interface receives data from the COM1 chip; at this time, the data from the other 7 chips are not received; when A1, B1 and C1 are all high voltage, that is, 1, the CH7 interface receives data from the COM8 chip; at this time, the data from the other 7 chips are not received.
[0060] Each chip in the secondary module includes INH, A2, B2 and C2 interfaces. The INH interface is usually low, that is, the 8 chips in the diode module always obtain the data of the temperature sensor. One chip is connected to 8 temperature sensors. The selection of the temperature sensor is controlled by the A2, B2 and C2 interfaces. The principle of the diode module obtaining the data of the temperature sensor is the same as that of the primary module obtaining the data of the chip in the secondary module, which will not be repeated here.
[0061] In this embodiment, the primary module includes a multiplexing chip, and the secondary module includes 8 chips, one chip is connected to 8 temperature sensors; through single bus control, temperature calibration of 8×8=64 temperature sensors can be performed; through the nested design of the primary module and the secondary module, the number of connectable temperature sensors can be significantly increased.
[0062] It should be clarified that the single-bus sensor cluster module of this embodiment only includes a primary module and a secondary module, and the single-chip microcomputer can control 64 temperature sensors; in other embodiments, the single-bus sensor cluster module may also include a tertiary module, and the single-chip microcomputer can control 512 temperature sensors; the chip of this embodiment controls the selection of the lower-level module through 3 pins, and in other embodiments, the chip can control the selection of the lower-level module through 2 or 4 pins, and there is no limitation on this.
[0063] The single-bus sensor cluster module of this embodiment includes a primary module and a secondary module, which not only expands the number of channels and reduces the pin occupation of the single-chip microcomputer, but also improves the communication efficiency and system reliability.
[0064] In one embodiment, if Figure 3 As shown, Figure 3A flowchart of an embodiment of an address reading program provided by the present invention.
[0065] The address of the temperature sensor is saved in the address matrix. Saving the address of the temperature sensor in the address matrix can manage and process the addresses of multiple sensors at one time, improving work efficiency. The address matrix is stored in an external storage device based on the USB interface. After saving the address matrix in the external storage device, it can be convenient to share data with other devices or systems for further data analysis and processing. The external storage device (such as a USB flash drive) is a non-volatile memory that can retain data even after power failure, ensuring long-term data preservation.
[0066] The following describes in detail Figure 3 The working process of the provided address reading program:
[0067] Determine whether temperature calibration is required. Specifically, if INH1 is at a low potential, it is determined that temperature calibration is required. If INH1 is at a high potential, it is determined that temperature calibration is not required.
[0068] If temperature calibration is required, the adiabatic bath liquid is controlled to be stable to the set temperature, the sensor is completely immersed in the bath liquid and left to stand for a period of time, the program controls the multiplexing module to connect the DQ pin of the i-th sensor with the communication pin of the microcontroller, executes the address reading program, saves the address of the i-th sensor to the corresponding position in the address matrix, executes the temperature reading program and the calibration program, writes the calibration value into the temperature calibration correction value storage space in the sensor's built-in EEPROM, and determines whether all address reading and temperature calibration are completed. If so, the address matrix is stored in the external storage device to end. If not, the microcontroller is changed to connect to the i+1-th sensor through program control, and the above operations are repeated until all address readings are completed.
[0069] If temperature calibration is not required, the program controls the multiplexing module to connect the DQ pin of the i-th sensor to the communication pin of the microcontroller, executes the address reading program, saves the address of the i-th sensor to the corresponding position in the address matrix, and determines whether all address readings are completed. If so, the address matrix is stored in the external storage device to end. If not, the program controls the microcontroller to connect to the i+1-th sensor, and repeats the above operations until all address readings are completed.
[0070] In one embodiment, if Figure 4 As shown, Figure 4 This is a flow chart of an embodiment of a calibration procedure provided by the present invention. The calibration procedure includes the following steps:
[0071] S131: Adjust the temperature T of the constant temperature bath set.i , the MCU sends a temperature reading instruction to the sensor;
[0072] S132: The sensor performs temperature conversion and writes it into the chip temperature register; the microcontroller reads the temperature data T in the register c.i ; If the temperature test within the required temperature range is not completed, the temperature of the constant temperature bath is still adjusted;
[0073] S133: Create bath temperature array T set =[T set.1 ,T set.2 ·····T set.n ] and the measured temperature array [T c.1 ,T c.2 ·····T c.n ], the microcontroller is based on the bath temperature array T set and the measured temperature array T c Fit the temperature curve; the microcontroller uses the fitting algorithm to establish T set and T c Functional relationship between: T set =f(T c )
[0074] S134: Write the characteristic coefficient of the temperature curve into the user storage space of the EEPROM, the characteristic coefficient is T set =f(T c ), such as T set =aT c +b, the characteristic coefficients are a and b, and the calibration is completed.
[0075] In one embodiment, if Figure 5 As shown, Figure 5 A flowchart of another embodiment of the calibration procedure provided by the present invention.
[0076] The measurement error is obtained based on the sensor execution temperature and the temperature of the constant temperature bath. The output constant temperature bath temperature value is adjusted based on the comparison result between the measurement error and the allowable error. If the measurement error is greater than the allowable error, the output constant temperature bath temperature is the sensor execution temperature; if the measurement error is less than the allowable error, the constant temperature bath temperature is output normally.
[0077] The present invention also provides a temperature calibration device for a single bus temperature sensor, which can be applied to the temperature calibration method for a single bus temperature sensor of any of the above embodiments, such as Figure 6 As shown, Figure 6 A schematic diagram of a temperature calibration device for a single bus temperature sensor according to an embodiment of the present invention includes:
[0078] Constant temperature bath and constant temperature circulator; the constant temperature circulator is connected to the constant temperature bath, and the constant temperature bath is used to accommodate the insulating bath liquid delivered by the constant temperature circulator; the constant temperature bath is used to maintain the stability of the internal temperature, and the constant temperature circulator can accurately control and maintain the bath liquid temperature, and ensure that the bath liquid temperature is within the set range by heating or cooling the bath liquid.
[0079] The single chip microcomputer is connected with the constant temperature circulator to adjust the temperature of the insulating bath liquid; the single chip microcomputer adjusts the temperature of the insulating bath liquid by controlling the heating or cooling function of the constant temperature circulator according to the temperature value set by the user.
[0080] The button is connected to the single-chip microcomputer and is used to set the temperature value of the insulating bath liquid; when the user presses the button to input the target temperature, the single-chip microcomputer reads the temperature value input by the button and sends it to the constant temperature circulator.
[0081] A single-bus sensor cluster module, one end of the single-bus sensor cluster module is connected to the single-chip microcomputer, and the other end of the single-bus sensor cluster module is connected to multiple sensors. The single-bus sensor cluster module is used to establish a communication connection between the single-chip microcomputer and multiple sensors; sensor 1, sensor 2 and sensor n represent the first temperature sensor, the second temperature sensor and the nth temperature sensor connected to the single-bus sensor cluster module.
[0082] The display screen is used to display the temperature value of the adiabatic bath liquid set by the buttons; the display screen is connected to the single-chip microcomputer through an interface and is used to display the current temperature setting value and the actual temperature of the bath liquid.
[0083] Through the coordinated work of the single-chip microcomputer and the constant temperature circulator, the temperature of the bath liquid can be accurately controlled; through the buttons and display screen, the user can easily set and view the temperature value, providing users with a better user experience.
[0084] In one embodiment, see Figure 7 , Figure 8 As shown, Figure 7 A front schematic diagram of an embodiment of a temperature calibration device for a single-bus temperature sensor provided by the present invention; Figure 8 for Figure 7 The back side schematic diagram of the temperature calibration device of the single-bus temperature sensor in the figure, the temperature calibration device of the single-bus temperature sensor also includes a liquid inlet, a liquid outlet and a USB interface.
[0085] The liquid inlet is used to input the adiabatic bath liquid, and the liquid outlet is used to output the adiabatic bath liquid; the circulation of the adiabatic bath liquid is realized based on the liquid inlet and the liquid outlet; the constant temperature circulator is connected to the constant temperature bath through the liquid inlet and the liquid outlet to form a closed-loop system. The constant temperature circulator sends the heated or cooled bath liquid into the constant temperature bath through the liquid inlet, and then sends the bath liquid back to the constant temperature circulator through the liquid outlet to realize the circulation of the bath liquid. The USB interface is connected to the external storage device, and the USB interface is used to send the address matrix, temperature matrix and characteristic coefficients to the external storage device. The external storage device is connected to the single-chip microcomputer through the USB interface; the single-chip microcomputer opens a file through the USB interface to store the address matrix, temperature matrix and characteristic coefficients. The data in the address matrix, the data of the bath temperature array and the measured temperature array and the characteristic coefficients of the fitting curve are written into the file; after the data is saved to the external storage device, it can be easily shared with other devices or systems for further data analysis and processing.
[0086] For the above embodiment, the present invention provides a computer device, see Fig. 9 , Fig. 9 1 is a schematic diagram of a computer device according to an embodiment of the present invention. The computer device includes a memory and a processor, wherein the memory and the processor are coupled to each other, the memory stores program data, and the processor is used to execute the program data to implement the steps of any embodiment of the above-mentioned temperature calibration method.
[0087] In this embodiment, the processor may also be referred to as a CPU (Central Processing Unit). The processor may be an integrated circuit chip having signal processing capabilities. The processor may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0088] The method of the above embodiment can be implemented in the form of a computer program, so the present application proposes a computer readable storage medium, see Fig.10 , Fig.10 1 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention. The computer-readable storage medium stores program data that can be run by a processor, and the program data can be executed by the processor to implement the steps of any embodiment of the temperature calibration method described above.
[0089] The computer-readable storage medium in this embodiment may be a medium that can store program data, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or may be a server that stores the program data. The server may send the stored program data to other devices for execution, or may execute the stored program data by itself.
[0090] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A temperature calibration method for a single bus temperature sensor, characterized in that: include: Control the adiabatic bath liquid to a set temperature and immerse the temperature sensor into the bath liquid; The single chip microcomputer establishes a communication connection with the temperature sensor based on the single bus sensor cluster module; Executing an address reading program, a temperature reading program and a calibration program; acquiring an execution temperature of a temperature sensor based on the temperature reading program; acquiring a temperature calibration value based on the execution temperature of the temperature sensor and the temperature of the thermal insulation bath liquid by the calibration program; The calibrated temperature value is written into the temperature calibration correction value storage space in the EEPROM until all temperature sensors have completed temperature calibration.
2. The temperature calibration method according to claim 1, characterized in that: The temperature of the insulating bath liquid is adjustable, and multi-level temperature calibration of the temperature sensor is achieved based on adjusting the temperature of the insulating bath liquid.
3. The temperature calibration method according to claim 2, characterized in that: The single bus sensor cluster module includes a primary module and a secondary module, the primary module is connected to the secondary module; the primary module is connected to a single chip microcomputer, and the diode module is connected to the temperature sensor; the single chip microcomputer establishes a communication connection with the temperature sensor based on the primary module and the secondary module.
4. The temperature calibration method according to claim 3, characterized in that: The address of the temperature sensor is saved in an address matrix, and the address matrix is stored in an external storage device based on a USB interface.
5. The temperature calibration method according to claim 4, characterized in that: The calibration procedure includes the following steps: Adjust the temperature of the constant temperature bath, and the microcontroller sends a temperature reading instruction to the sensor; The sensor performs temperature conversion and writes it into the chip temperature register; the microcontroller reads the temperature data in the register; if the temperature test within the required temperature range is not completed, the temperature of the constant temperature bath is still adjusted; Establishing a bath temperature array and a measured temperature array, and the single chip microcomputer fits a temperature curve based on the bath temperature array and the measured temperature array; The characteristic coefficients of the temperature curve are written into the user storage space of the EEPROM to complete the calibration.
6. The temperature calibration method according to claim 5, characterized in that: A measurement error is obtained based on the sensor execution temperature and the temperature of the constant temperature bath, and an output constant temperature bath temperature value is adjusted based on a comparison result between the measurement error and an allowable error.
7. A temperature calibration device for a single bus temperature sensor, which can be applied to the temperature calibration method for a single bus temperature sensor as claimed in any one of claims 1 to 6, characterized in that: include: Constant temperature baths and constant temperature circulators; The constant temperature circulator is connected to the constant temperature bath, and the constant temperature bath is used to accommodate the insulating bath liquid delivered by the constant temperature circulator; A single chip microcomputer connected to the constant temperature circulator for adjusting the temperature of the insulating bath liquid; A button, the button is connected to the single chip microcomputer and is used to set the temperature value of the insulating bath liquid; A single-bus sensor cluster module, one end of which is connected to the single-chip microcomputer, and the other end of which is connected to multiple sensors, and the single-bus sensor cluster module is used to establish a communication connection between the single-chip microcomputer and the multiple sensors; A display screen is used to display the temperature value of the insulating bath liquid set by the button.
8. The temperature calibration device according to claim 7, characterized in that: It also includes a liquid inlet, a liquid outlet and a USB interface; the liquid inlet is used to input the insulating bath liquid, and the liquid outlet is used to output the insulating bath liquid; the circulation of the insulating bath liquid is achieved based on the liquid inlet and the liquid outlet; the USB interface is connected to an external storage device, and the USB interface is used to send the address matrix, temperature matrix and characteristic coefficients to the external storage device.
9. An electronic device, characterized in that: The electronic device comprises: a memory and a processor coupled to each other, wherein the processor is used to execute program instructions stored in the memory to implement the temperature calibration method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program data, and the program data can be executed by a processor to implement the temperature calibration method according to any one of claims 1 to 6.