A compensation data storage and lookup method and system based on emissivity index

By adopting a two-level storage structure based on emissivity index and a dynamic storage method, the problem of compensating data storage and retrieval in embedded infrared temperature measurement devices under multiple emissivity conditions is solved, realizing efficient and reliable temperature compensation and real-time temperature measurement, and adapting to the accuracy requirements of different materials.

CN123048821APending Publication Date: 2026-11-06SHENZHEN RAYSEES TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611201300.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-10
Publication Date
2026-11-06

AI Technical Summary

Technical Problem

Existing embedded infrared temperature measurement equipment suffers from low data storage efficiency, slow search speed, insufficient calibration format compatibility, and poor reliability of on-site updates under multiple emissivity conditions, making it difficult to meet the accuracy requirements of different materials and real-time temperature measurement requirements.

Method used

A two-level storage structure based on emissivity indexing is adopted, including a first index storage area and a second compensation data storage area. Emissivity identification information and compensation data type information are recorded through fixed-length index entries. Combined with variable-length storage method and distance compensation model or sampling point data type, fast positioning and dynamic storage of compensation data are achieved, and an update mechanism for data image generation, full page erasure and verification recovery is constructed.

Benefits of technology

It improves the multi-material compatibility, compensation data lookup efficiency, storage space utilization and field upgrade reliability of embedded infrared temperature measurement equipment, reduces computational complexity and hardware cost, and ensures high-precision temperature measurement and real-time response of the equipment under multiple emissivity conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123048821A_ABST
    Figure CN123048821A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of data storage and search, and discloses a compensation data storage and search method and system based on emissivity indexes, which comprises the following modules: a compensation data acquisition module; an emissivity index module; a compensation data storage module configured to store corresponding compensation data in a second compensation data storage area in a variable-length storage mode according to compensation requirements corresponding to each emissivity; a compensation data search module configured to acquire a target emissivity corresponding to current measurement, match a corresponding index item in a first index storage area according to the target emissivity, and acquire corresponding compensation data according to address offset information in the index item; and a compensation calculation module. The application realizes adaptive temperature compensation under the condition of multiple materials and multiple emissivities, and improves the adaptation capability of an infrared temperature measurement device to different measurement objects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data storage and retrieval technology, and more specifically, to a compensated data storage and retrieval method and system based on emissivity indexing. Background Technology

[0002] With the widespread application of infrared temperature measurement technology in various fields, embedded infrared temperature measurement devices based on single-pixel infrared detectors are widely used for on-site temperature detection due to their simple structure, low cost, and low power consumption. However, in single-pixel infrared temperature measurement, the emissivity of the target material, the measurement distance, and environmental factors can affect the infrared radiation response, leading to deviations in the detected temperature. Therefore, distance compensation data calibration is required to improve the accuracy of temperature measurement.

[0003] Existing embedded infrared temperature measurement devices typically store distance compensation parameters corresponding to different emissivity in non-volatile memory. During measurement, the compensation data is retrieved according to the set emissivity to correct the temperature. The common storage method is a single-level lookup table structure, which establishes a fixed arrangement of data tables according to parameters and obtains the compensation parameters by traversing them.

[0004] As application scenarios expand, infrared temperature measurement equipment needs to be adapted to various materials with different emissivity characteristics, and the corresponding distance compensation models have different levels of complexity. A single format of calibration data storage method is difficult to meet the accuracy requirements of different materials at the same time.

[0005] In addition, existing embedded devices have limited storage capacity and computing resources, and traditional fixed-partition storage space has low utilization: reserving large capacity areas will result in wasted storage space, and using small capacity storage cannot meet the calibration requirements of complex materials; at the same time, with the increase in emissivity types, traditional flat table lookup requires traversing a large amount of data, resulting in low lookup efficiency and difficulty in meeting the real-time temperature measurement requirements of low-computing-power embedded devices.

[0006] On the other hand, the existing calibration data is upgraded in the field by writing to Flash in stages. If a power outage or communication failure occurs during the update process, incomplete data may occur, causing the equipment to read incorrect parameters, resulting in abnormal temperature measurement or even failure to work properly.

[0007] Therefore, it is necessary to design a compensation data storage and retrieval method and system based on emissivity index to solve the problems existing in the current technology. Summary of the Invention

[0008] In view of this, the present invention proposes a compensation data storage and retrieval method and system based on emissivity index, which aims to solve the problems of low data storage efficiency, slow retrieval speed, insufficient calibration format compatibility and poor reliability of field updates in existing embedded infrared temperature measurement equipment.

[0009] In one aspect, the present invention proposes a compensated data storage and retrieval system based on emissivity indexing, comprising: The compensation data acquisition module is configured to acquire multiple emissivity compensation data corresponding to the embedded infrared temperature measurement device and establish a two-level storage structure in the non-volatile memory; wherein, the two-level storage structure includes a first index storage area and a second compensation data storage area; The emissivity index module is configured to establish multiple fixed-length index entries corresponding to different emissivity in the first index storage area; wherein each fixed-length index includes emissivity identification information, compensation data type information, second compensation data storage area address offset information, and effective data quantity information; The compensation data storage module is configured to store the corresponding compensation data in the second compensation data storage area using a variable-length storage method according to the compensation requirements corresponding to each emissivity; wherein, the compensation data is configured as distance compensation model parameter data or distance-correction amount data according to the compensation data type information; The compensation data lookup module is configured to obtain the target emissivity corresponding to the current measurement, match the corresponding index entry in the first index storage area according to the target emissivity, and obtain the corresponding compensation data according to the address offset information in the index entry. The compensation calculation module is configured to call the corresponding data processing method to calculate the temperature correction amount based on the compensation data type information, and to compensate the infrared measurement results based on the temperature correction amount.

[0010] Furthermore, the emissivity identifier information in the first index storage area is generated using an integer scaling method, including: Obtain the target emissivity value, multiply the target emissivity value by a preset scaling factor to convert it into unsigned integer data, and store the unsigned integer data as the identification information of the corresponding emissivity.

[0011] Furthermore, when the compensation data type information corresponds to the range compensation model data type, the second compensation data storage area stores the range compensation model parameters corresponding to the target emissivity, and the range compensation model parameters include the first coefficient, the second coefficient, and the third coefficient in the secondary range compensation model; The temperature correction is calculated based on the current measurement distance and distance compensation model parameters, using the following formula: ΔT=Ka×d 2 +Kb×d+Kc; Where ΔT represents the temperature correction calculated based on the measured distance; d represents the current measured distance; Ka represents the first coefficient in the quadratic distance compensation model; Kb represents the second coefficient in the quadratic distance compensation model; and Kc represents the third coefficient in the quadratic distance compensation model.

[0012] Furthermore, when the compensation data type information corresponds to the sampling point data type, the second compensation data storage area stores multiple distance-correction key-value pairs arranged in ascending order of distance values; Based on the current measurement distance, a corresponding distance interval is determined from the plurality of distance-correction key value pairs, and interpolation calculation is performed based on adjacent key value pairs within the distance interval to obtain the temperature correction amount.

[0013] Furthermore, based on the current measurement distance, a binary search method is used in the distance-correction key-value pair to determine the interval in which the current measurement distance is located, and the corresponding temperature correction is calculated based on linear interpolation.

[0014] Furthermore, the compensation data writing process includes: Based on the compensation data to be written, a data image containing a first index storage area and a second compensation data storage area is constructed in the random access memory; Perform a full page erase on the target non-volatile memory region; The data image is written to the corresponding storage area according to the preset data alignment rules; The validity of the compensation data after it has been written is determined based on the verification information.

[0015] Furthermore, when an anomaly occurs during the writing of compensation data, the abnormal data page is identified based on the verification information in the first index storage area, and the preset valid compensation parameters are invoked.

[0016] Furthermore, during the operation of the infrared temperature measurement equipment, the compensation data address information and compensation data type information corresponding to the current effective emissivity are cached in the running storage area; When a change in the emissivity setting is detected, the index entries in the first index storage area are rematched according to the changed target emissivity, and the compensation data address information in the cache is updated.

[0017] Furthermore, when a change in the emissivity setting is detected, the process of re-matching the index entries in the first index storage area based on the changed target emissivity includes: Obtain the changed target emissivity and convert the target emissivity into corresponding emissivity identification information; Based on the emissivity identification information, the corresponding fixed-length index entry is searched in the first index storage area, and the compensation data type information and the second compensation data storage area address offset information in the fixed-length index entry are read. The location of the compensation data storage corresponding to the emissivity is located based on the address offset information of the second compensation data storage area, and the compensation data address information and compensation data type information in the running storage area are updated to complete the rapid switching of the compensation parameters corresponding to the emissivity.

[0018] Compared with the prior art, the beneficial effects of the present invention are as follows: This application establishes a two-level compensation data storage architecture based on emissivity index, indexes and stores compensation data corresponding to different emissivity separately, enabling the device to quickly match the corresponding compensation parameters according to the target emissivity, realizing adaptive temperature compensation under multiple material and multiple emissivity conditions, and improving the adaptability of infrared temperature measurement equipment to different measurement objects.

[0019] This application sets up a first index storage area and a second compensation data storage area in a non-volatile memory, and uses fixed-length index entries to record emissivity identification information, compensation data type information, and compensation data address offset information. This transforms the traditional full table traversal of compensation data lookup into fast index-based location, reducing the computational complexity of the lookup process and improving the real-time temperature measurement response capability of low-computing-power embedded devices.

[0020] This application adopts a variable-length storage method in the second compensation data storage area, which dynamically allocates storage space according to the calibration requirements corresponding to different emissivity, so that compensation data with different calibration densities can be stored according to actual needs, thereby improving the utilization rate of Flash storage space and reducing the storage waste caused by fixed partitions.

[0021] This application enables the same storage architecture to be compatible with parameter data based on the quadratic distance compensation model and compensation data based on discrete sampling points by configuring the distance compensation model data type and the distance-correction data type, thereby meeting the differentiated calibration requirements of different materials under different emissivity conditions and improving the compensation accuracy and calibration flexibility.

[0022] This application improves the reliability of the Flash data writing process by constructing a compensation data update mechanism based on data image generation, full page erasure, alignment writing, and verification recovery. This reduces the risk of data failure due to abnormal power outages during field upgrades and ensures the stability of the embedded infrared temperature measurement equipment during operation.

[0023] In summary, this application achieves improvements in the multi-emissivity adaptation capability, compensation data lookup efficiency, storage space utilization, calibration compatibility, and field upgrade reliability of embedded single-pixel infrared temperature measurement devices without increasing hardware costs.

[0024] In another aspect, the present invention also proposes a method for compensating data storage and retrieval based on emissivity indexing, comprising the following steps: Acquire multiple emissivity compensation data corresponding to the embedded infrared temperature measurement device, and establish a two-level storage structure in non-volatile memory; The emissivity index module is configured to create multiple fixed-length index entries in the first index storage area corresponding to different emissivity; Based on the compensation requirements corresponding to each emissivity, the corresponding compensation data is stored in the second compensation data storage area using a variable-length storage method. Obtain the target emissivity corresponding to the current measurement, match the corresponding index entry in the first index storage area according to the target emissivity, and obtain the corresponding compensation data according to the address offset information in the index entry; The temperature correction amount is calculated by calling the corresponding data processing method based on the compensation data type information, and the infrared measurement results are compensated based on the temperature correction amount.

[0025] It is understandable that the above-mentioned compensation data storage and retrieval method and system based on emissivity index have the same beneficial effects, and will not be elaborated further here. Attached Figure Description

[0026] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0027] Figure 1 This is a structural block diagram of a compensation data storage and retrieval system based on emissivity index provided in an embodiment of the present invention; Figure 2 A flowchart illustrating a compensation data storage and retrieval method based on emissivity indexing provided in an embodiment of the present invention; Figure 3 This is a layout diagram of a two-level data structure within a Flash page, provided in an embodiment of the present invention. Detailed Implementation

[0028] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0029] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0030] See Figure 1 , Figure 3In some embodiments of this application, this embodiment provides a compensation data storage and retrieval system based on emissivity indexing, including: The compensation data acquisition module is configured to acquire multiple emissivity compensation data corresponding to the embedded infrared temperature measurement device and establish a two-level storage structure in the non-volatile memory; wherein, the two-level storage structure includes a first index storage area and a second compensation data storage area; The emissivity index module is configured to create multiple fixed-length index entries in the first index storage area corresponding to different emissivity; each fixed-length index includes emissivity identification information, compensation data type information, address offset information of the second compensation data storage area, and valid data quantity information. The compensation data storage module is configured to store the corresponding compensation data in the second compensation data storage area using a variable-length storage method according to the compensation requirements corresponding to each emissivity; wherein, the compensation data is configured as distance compensation model parameter data or distance-correction amount data according to the compensation data type information. The compensation data lookup module is configured to obtain the target emissivity corresponding to the current measurement, match the corresponding index entry in the first index storage area according to the target emissivity, and obtain the corresponding compensation data according to the address offset information in the index entry. The compensation calculation module is configured to call the corresponding data processing method to calculate the temperature correction amount based on the compensation data type information, and to compensate the infrared measurement results based on the temperature correction amount.

[0031] Understandably, the compensation data acquisition module establishes a two-level storage structure in non-volatile memory, which can be Flash memory, to retain calibration data even after the device is powered off. The two-level storage structure includes a first index storage area and a second compensation data storage area. The first index storage area stores index information corresponding to compensation data at different emissivity rates, essentially acting as a quick location directory for the compensation data; the second compensation data storage area stores the actual compensation data content. By storing the index information separately from the compensation data, the device does not need to traverse all the compensation data during operation; it only needs to locate the target compensation data position through the first index storage area, thus improving the efficiency of compensation data retrieval.

[0032] It is understandable that a fixed-length index entry refers to a data record unit with a fixed storage length, and each fixed-length index entry corresponds to compensation data under a certain emissivity condition.

[0033] In this embodiment, each fixed-length index item includes: (1) Emissivity identification information; The emissivity identifier is used to uniquely represent the emissivity corresponding to the current index item.

[0034] Since embedded devices have limited storage resources, in order to avoid wasting space by directly storing the emissivity using floating-point data, this embodiment can use an integer scaling method to generate the emissivity identification information.

[0035] For example, the emissivity ε is multiplied by a preset scaling factor of 10000 and then converted into unsigned integer data for storage, so that the emissivity accuracy reaches 0.0001.

[0036] (2) Compensation data type information; The compensation data type information is used to represent the data format of the corresponding compensation data in the second compensation data storage area.

[0037] In this embodiment, the compensation data types include at least: Distance compensation model data type; Distance-correction data type.

[0038] Among them, the distance compensation model data type indicates that the second compensation data storage area stores the model parameters required to calculate the compensation amount based on the mathematical model; the distance-correction data type indicates that the second compensation data storage area stores the data on the correspondence between multiple distances and temperature correction amounts.

[0039] (3) Address offset information of the second compensation data storage area; Address offset information is used to indicate the storage location of the corresponding compensation data in the second compensation data storage area.

[0040] By reading this address offset information, the corresponding emissivity compensation data can be quickly located without traversing the second compensation data storage area.

[0041] (4) Quantity of valid data; The valid data quantity information is used to indicate the number of data items included in the current compensation data.

[0042] For example, when the compensation data type is a distance-compensated model data type, the number of valid data can represent the number of model parameters; when the compensation data type is a distance-correction data type, the number of valid data can represent the number of distance-correction key-value pairs.

[0043] Specifically, the emissivity identifier information in the first index storage area is generated using an integer scaling method, including: Obtain the target emissivity value, multiply the target emissivity value by a preset scaling factor, convert it into unsigned integer data, and store the unsigned integer data as the identification information of the corresponding emissivity.

[0044] It is understood that the target emissivity value is obtained, multiplied by a preset scaling factor, and the result is converted into unsigned integer data and stored in the first index storage area as the identification information of the corresponding emissivity.

[0045] Specifically, the preset scaling factor is used to improve the storage precision of the emissivity identifier by converting the decimal form of the emissivity to an integer form, thus avoiding the space occupation caused by floating-point data storage. For example, multiplying the target emissivity value ε by 10000 yields the corresponding unsigned integer data: E = ε × 10000; Where E represents emissivity identification information and ε represents the target emissivity value.

[0046] By using the above method, fixed-length storage of emissivity identification information can be achieved, reducing the amount of data matching calculations in embedded devices and improving the efficiency of emissivity index lookup.

[0047] Specifically, when the compensation data type information corresponds to the range compensation model data type, the second compensation data storage area stores the range compensation model parameters corresponding to the target emissivity. The range compensation model parameters include the first coefficient, the second coefficient, and the third coefficient in the secondary range compensation model. The temperature correction is calculated based on the current measurement distance and distance compensation model parameters using the following formula: ΔT=Ka×d 2 +Kb×d+Kc; Where ΔT represents the temperature correction calculated based on the measured distance; d represents the current measured distance; Ka represents the first coefficient in the quadratic distance compensation model; Kb represents the second coefficient in the quadratic distance compensation model; and Kc represents the third coefficient in the quadratic distance compensation model.

[0048] It is understandable that when the compensation data type information corresponds to the distance compensation model data type, the distance compensation model data type is used to represent the data form that uses a mathematical model to correct the temperature deviation caused by the measurement distance.

[0049] In actual infrared thermometry, the change in distance between the target object and the temperature measuring device can affect the reception of infrared radiation energy, causing a certain deviation in the measurement results. Therefore, by calibrating materials with different emissivity, a correspondence between the measurement distance and the temperature correction can be established.

[0050] In this embodiment, the distance compensation model is represented in quadratic polynomial form, and its model relationship is as follows: ΔT=Ka×d 2 +Kb×d+Kc; Among them, the first coefficient Ka is the coefficient of the quadratic term, which is used to characterize the influence of the squared term of the measured distance on the temperature correction. The second coefficient, Kb, is the coefficient of the first term, used to characterize the influence of the first term of the measured distance on the temperature correction. The third coefficient, Kc, is a constant term coefficient used to characterize the basic correction offset in the distance compensation model.

[0051] The first coefficient Ka, the second coefficient Kb, and the third coefficient Kc can be obtained by collecting temperature deviation data at different measurement distances and fitting the data based on calibration data.

[0052] It is understandable that by storing compensation data in the form of distance compensation model parameters, temperature correction under different distance conditions can be achieved by only saving the corresponding parameters of the model. Compared with storing a large amount of discrete compensation data, it can reduce the storage space occupied and is suitable for the small-capacity storage environment of embedded infrared temperature measurement equipment.

[0053] Specifically, when the compensation data type information corresponds to the sampling point data type, the second compensation data storage area stores multiple distance-correction key-value pairs arranged in ascending order of distance value; Based on the current measured distance, the corresponding distance interval is determined from multiple distance-correction key value pairs, and the temperature correction amount is obtained by interpolation calculation based on adjacent key value pairs within the distance interval.

[0054] Specifically, based on the current measurement distance, a binary search method is used in the distance-correction key-value pair to determine the interval in which the current measurement distance is located, and the corresponding temperature correction is calculated based on linear interpolation.

[0055] It is understandable that when the compensation data type information corresponds to the sampling point data type, this data type is used to represent the data form that describes the correspondence between the measurement distance and the temperature correction amount through discrete calibration data.

[0056] Specifically, due to the complex emissivity characteristics of some materials, the effect of changes in measurement distance on temperature measurement results exhibits nonlinear characteristics, which are difficult to accurately describe using a simple model. Therefore, multiple distance sampling points can be used for calibration to obtain the corresponding temperature correction amount under different distance conditions.

[0057] The distance-correction key-value pair consists of a distance value and a corresponding temperature correction value. The distance value represents the distance between the measurement location and the target object, and the temperature correction value represents the compensation amount used to adjust the infrared measurement result under the corresponding distance conditions. Multiple distance-correction key-value pairs are stored in sorted order by distance value for easy and quick retrieval later.

[0058] When performing compensation calculations, a binary search is used in the sorted distance-correction key-value pairs based on the current measurement distance to determine the adjacent sampling intervals corresponding to the current measurement distance. Then, based on the temperature corrections corresponding to the adjacent sampling points within the interval, the temperature correction for the current measurement distance is obtained by interpolation.

[0059] By adopting a distance-correction key-value pair storage method, and combining it with binary search and interpolation calculation methods, the computational load in the compensation data search process can be reduced while adapting to the distance compensation characteristics of complex materials, thereby improving the compensation efficiency and measurement accuracy of embedded infrared temperature measurement equipment in low computing power environments.

[0060] Specifically, the compensation data writing process includes: Based on the compensation data to be written, a data image containing a first index storage area and a second compensation data storage area is constructed in the random access memory; Perform a full page erase on the target non-volatile memory region; According to the preset data alignment rules, the data image is written to the corresponding storage area; The validity of the compensation data after it has been written is determined based on the verification information.

[0061] It is understood that the compensation data writing process is used to securely update the compensation data in the Flash memory. During the compensation data update, a complete data image is first constructed in the MCU's random access memory (RAM) based on the emittance compensation data to be written. This image includes index data corresponding to the first index storage area and compensation data corresponding to the second compensation data storage area, ensuring a complete correspondence between the index information and the compensation data before writing. Subsequently, a full-page erase operation is performed on the target Flash storage page, making the target storage area writable. By erasing the entire storage page at once, data inconsistency issues arising from phased updates of the index data and compensation data can be avoided. Further, the data image is written to the Flash storage area according to a preset data alignment rule. In this embodiment, the preset data alignment rule uses a 32-bit machine word alignment method, writing data sequentially from the beginning of the Flash page in the first index storage area and the second compensation data storage area to meet the data access requirements of the embedded processor. After writing is complete, the validity of the currently written data is checked based on the verification information stored in the first index storage area to determine whether the index data and compensation data are complete. When an abnormal power outage occurs during the writing process, invalid data pages can be identified through the verification information, and preset valid compensation parameters can be invoked to prevent incomplete data from participating in temperature compensation. This writing method achieves atomic updates of compensation data, improves the reliability of Flash data storage, and reduces the risk of abnormal temperature measurements due to power outages during on-site upgrades.

[0062] Specifically, when an anomaly occurs during the writing of compensation data, the abnormal data page is identified based on the verification information in the first index storage area, and the preset valid compensation parameters are invoked.

[0063] Understandably, when an anomaly occurs during the writing of compensation data, the abnormal data page is identified based on the verification information in the first index storage area, and the preset valid compensation parameters are invoked.

[0064] Specifically, during the compensation data update process, power outages or communication interruptions may cause the compensation data to be incompletely written to the non-volatile memory, rendering the currently stored compensation data unusable for temperature compensation. Therefore, verification information is set in the first index storage area to determine whether the currently written index data and compensation data are complete and valid.

[0065] When an error is detected in the write of compensation data, the verification information in the first index storage area is read, and the corresponding data page is determined to be a valid data page based on the verification result. If the verification result does not meet the preset valid conditions, the current data page is determined to be an abnormal data page.

[0066] The preset valid compensation parameters refer to pre-stored and validated temperature compensation data, used to replace abnormal data in temperature compensation calculations when current compensation data is unavailable. These preset valid compensation parameters can be default calibration parameters saved at the device's factory or compensation parameters from the last successful update and validation. The preset validity conditions refer to the criteria used to determine whether the compensation data storage status is valid. These conditions include at least matching verification information, complete index information, and valid compensation data address information. When the written compensation data meets the preset validity conditions, the current data page is determined to be valid; otherwise, the current data page is determined to be an abnormal data page.

[0067] After identifying the abnormal data page, the system calls the preset effective compensation parameters and corrects the infrared temperature measurement results based on the preset effective compensation parameters, thereby avoiding the impact of abnormal data writing on the accuracy of temperature measurement.

[0068] The above methods enable effective recovery of compensation data under abnormal conditions, improve the reliability of the Flash data update process and the operational stability of the embedded infrared temperature measurement device.

[0069] Specifically, during the operation of the infrared temperature measurement equipment, the compensation data address information and compensation data type information corresponding to the current effective emissivity are cached in the running storage area; When a change in the emissivity setting is detected, the index entries in the first index storage area are rematched according to the changed target emissivity, and the compensation data address information in the cache is updated.

[0070] Understandably, during the operation of the infrared temperature measurement device, the compensation data address information and compensation data type information corresponding to the current effective emissivity are cached in the running storage area; when a change in the emissivity setting value is detected, the index entries in the first index storage area are rematched according to the changed target emissivity, and the compensation data address information in the cache is updated.

[0071] Specifically, the runtime storage area can be the RAM area in an embedded infrared temperature measurement device, used to temporarily store compensation data index information that is frequently accessed during the current temperature measurement process. Since the infrared temperature measurement process requires calling the corresponding compensation parameters according to the current emissivity, if the non-volatile memory is accessed again and the complete compensation data is searched for each measurement, it will increase the data access time and reduce the temperature measurement response speed.

[0072] Therefore, in this embodiment, during device operation, the compensation data address information and compensation data type information corresponding to the current effective emissivity are loaded into the operating storage area. The compensation data address information indicates the storage location of the corresponding compensation data in the second compensation data storage area; the compensation data type information indicates whether the current compensation data uses a distance compensation model data type or a sampling point data type.

[0073] When the user adjusts the emissivity setting or a change in the target material is detected, the device acquires the changed target emissivity and re-matches the corresponding index entry in the first index storage area based on the target emissivity. After matching is complete, the device reads the compensation data address information and compensation data type information from the corresponding index entry and updates the cached content in the runtime storage area.

[0074] In this way, the device can switch between different emissivity compensation parameters without having to re-traverse the second compensation data storage area. It only needs to update the index information in the running storage area to quickly call up the corresponding compensation data, which improves the response speed and real-time performance of infrared temperature measurement devices in multi-emissivity scenarios.

[0075] Specifically, when a change in the emissivity setting is detected, the process of re-matching the index entries in the first index storage area based on the changed target emissivity includes: Obtain the changed target emissivity and convert the target emissivity into corresponding emissivity identification information; Based on the emissivity identifier information, the corresponding fixed-length index entry is located in the first index storage area, and the compensation data type information and the address offset information of the second compensation data storage area are read from the fixed-length index entry. The location of the compensation data storage corresponding to the emissivity is located based on the address offset information of the second compensation data storage area, and the compensation data address information and compensation data type information in the running storage area are updated to complete the rapid switching of the compensation parameters corresponding to the emissivity.

[0076] Understandably, when a change in the emissivity setting is detected, the index entries in the first index storage area are rematched according to the changed target emissivity in order to achieve rapid switching of the corresponding compensation parameters.

[0077] Specifically, when a user adjusts the emissivity setting value according to different measurement objects, the infrared thermometer acquires the changed target emissivity, performs an integer scaling conversion, and generates corresponding emissivity identification information. This emissivity identification information is used to establish a matching relationship with the index entries in the first index storage area.

[0078] Subsequently, based on the emissivity identification information, the corresponding fixed-length index entry is searched in the first index storage area. Since the first index storage area only stores the index information corresponding to each emissivity and does not contain complete compensation data, the compensation data corresponding to the target emissivity can be quickly located.

[0079] After matching the corresponding fixed-length index entry, the compensation data type information and the address offset information of the second compensation data storage area are read from the fixed-length index entry. The compensation data type information is used to determine whether the corresponding compensation data uses a distance compensation model data type or a sampling point data type; the address offset information of the second compensation data storage area is used to determine the storage location of the compensation data corresponding to the target emissivity in the second compensation data storage area.

[0080] Furthermore, the compensation data storage location corresponding to the emissivity is located based on the address offset information, and the obtained compensation data address information and compensation data type information are updated to the running storage area to replace the original cached compensation parameter index information.

[0081] By using the above method, when the emissivity setting value changes, it is only necessary to rematch the fixed-length index entries in the first index storage area and update the cache information, without having to traverse all the compensation data in the second compensation data storage area. This enables rapid switching of compensation parameters corresponding to different emissivity, improving the response speed and real-time performance of embedded infrared temperature measurement devices in multi-material temperature measurement scenarios.

[0082] See Figure 2 As shown in some embodiments of this application, this embodiment provides a method for compensating data storage and retrieval based on emissivity index, including the following steps: S100: Acquire multiple emissivity compensation data corresponding to the embedded infrared temperature measurement device and establish a two-level storage structure in the non-volatile memory; S200: Emissivity index module, configured to create multiple fixed-length index entries in the first index storage area corresponding to different emissivity; S300: Based on the compensation requirements corresponding to each emissivity, the corresponding compensation data is stored in the second compensation data storage area using a variable-length storage method. S400: Obtain the target emissivity corresponding to the current measurement, match the corresponding index entry in the first index storage area according to the target emissivity, and obtain the corresponding compensation data according to the address offset information in the index entry; S500: Calculates the temperature correction amount by calling the corresponding data processing method based on the compensation data type information, and compensates the infrared measurement results based on the temperature correction amount.

[0083] In the description of this invention, it should be understood that the terms "longitudinal", "lateral", "up", "down", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this invention, and are not intended to indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this invention.

[0084] The embodiments described above are merely preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Various modifications and improvements made by those skilled in the art to the technical solutions of the present invention without departing from the spirit of the present invention should fall within the protection scope defined by the claims of the present invention.

Claims

1. A compensation data storage and retrieval system based on emissivity indexing, characterized in that, include: The compensation data acquisition module is configured to acquire multiple emissivity compensation data corresponding to the embedded infrared temperature measurement device and establish a two-level storage structure in the non-volatile memory; wherein, the two-level storage structure includes a first index storage area and a second compensation data storage area; The emissivity index module is configured to establish multiple fixed-length index entries corresponding to different emissivity in the first index storage area; wherein each fixed-length index entry includes emissivity identification information, compensation data type information, second compensation data storage area address offset information, and effective data quantity information; The compensation data storage module is configured to store the corresponding compensation data in the second compensation data storage area using a variable-length storage method according to the compensation requirements corresponding to each emissivity; wherein, the compensation data is configured as distance compensation model parameter data or distance-correction amount data according to the compensation data type information; The compensation data lookup module is configured to obtain the target emissivity corresponding to the current measurement, match the corresponding index entry in the first index storage area according to the target emissivity, and obtain the corresponding compensation data according to the address offset information in the index entry. The compensation calculation module is configured to call the corresponding data processing method to calculate the temperature correction amount based on the compensation data type information, and to compensate the infrared measurement results based on the temperature correction amount.

2. The compensation data storage and retrieval system based on emissivity index according to claim 1, characterized in that, The emissivity identifier information in the first index storage area is generated using an integer scaling method, including: Obtain the target emissivity value, multiply the target emissivity value by a preset scaling factor to convert it into unsigned integer data, and store the unsigned integer data as the identification information of the corresponding emissivity.

3. The compensation data storage and retrieval system based on emissivity index according to claim 2, characterized in that, When the compensation data type information corresponds to the range compensation model data type, the second compensation data storage area stores the range compensation model parameters corresponding to the target emissivity. The range compensation model parameters include the first coefficient, the second coefficient, and the third coefficient in the secondary range compensation model. The temperature correction is calculated based on the current measurement distance and distance compensation model parameters, using the following formula: ΔT=Ka×d 2 +Kb×d+Kc; Where ΔT represents the temperature correction calculated based on the measured distance; d represents the current measured distance; Ka represents the first coefficient in the quadratic distance compensation model; Kb represents the second coefficient in the quadratic distance compensation model; and Kc represents the third coefficient in the quadratic distance compensation model.

4. The compensation data storage and retrieval system based on emissivity index according to claim 3, characterized in that, When the compensation data type information corresponds to the sampling point data type, the second compensation data storage area stores multiple distance-correction key-value pairs arranged in ascending order of distance value; Based on the current measurement distance, a corresponding distance interval is determined from the plurality of distance-correction key value pairs, and interpolation calculation is performed based on adjacent key value pairs within the distance interval to obtain the temperature correction amount.

5. The compensation data storage and retrieval system based on emissivity index according to claim 4, characterized in that, Based on the current measurement distance, a binary search method is used in the distance-correction key-value pair to determine the interval in which the current measurement distance is located, and the corresponding temperature correction is calculated based on linear interpolation.

6. The compensation data storage and retrieval system based on emissivity index according to claim 5, characterized in that, The compensation data writing process includes: Based on the compensation data to be written, a data image containing a first index storage area and a second compensation data storage area is constructed in the random access memory; Perform a full page erase on the target non-volatile memory region; The data image is written to the corresponding storage area according to the preset data alignment rules; The validity of the compensation data after it has been written is determined based on the verification information.

7. The compensation data storage and retrieval system based on emissivity index according to claim 6, characterized in that, When an anomaly occurs during the writing of compensation data, the abnormal data page is identified based on the verification information in the first index storage area, and the preset valid compensation parameters are invoked.

8. The compensation data storage and retrieval system based on emissivity index according to claim 7, characterized in that, During the operation of the infrared temperature measurement equipment, the compensation data address information and compensation data type information corresponding to the current effective emissivity are cached in the running storage area; When a change in the emissivity setting is detected, the index entries in the first index storage area are rematched according to the changed target emissivity, and the compensation data address information in the cache is updated.

9. The compensation data storage and retrieval system based on emissivity index according to claim 8, characterized in that, When a change in the emissivity setting is detected, the process of re-matching the index entries in the first index storage area based on the changed target emissivity includes: Obtain the changed target emissivity and convert the target emissivity into corresponding emissivity identification information; Based on the emissivity identification information, the corresponding fixed-length index entry is searched in the first index storage area, and the compensation data type information and the second compensation data storage area address offset information in the fixed-length index entry are read. The location of the compensation data storage corresponding to the emissivity is located based on the address offset information of the second compensation data storage area, and the compensation data address information and compensation data type information in the running storage area are updated to complete the rapid switching of the compensation parameters corresponding to the emissivity.

10. A method for compensating data storage and retrieval based on emissivity index, applied to the compensating data storage and retrieval system based on emissivity index as described in any one of claims 1-9, characterized in that, include: Acquire multiple emissivity compensation data corresponding to the embedded infrared temperature measurement device, and establish a two-level storage structure in non-volatile memory; The emissivity index module is configured to create multiple fixed-length index entries in the first index storage area corresponding to different emissivity; Based on the compensation requirements corresponding to each emissivity, the corresponding compensation data is stored in the second compensation data storage area using a variable-length storage method. Obtain the target emissivity corresponding to the current measurement, match the corresponding index entry in the first index storage area according to the target emissivity, and obtain the corresponding compensation data according to the address offset information in the index entry; The temperature correction amount is calculated by calling the corresponding data processing method based on the compensation data type information, and the infrared measurement results are compensated based on the temperature correction amount.