Temperature measurement method, device, equipment, medium and product

By recording the time points of passive tag state transitions and repeatedly measuring the duration of passive tags, the problem of decreased accuracy in passive IoT temperature measurement is solved, achieving more accurate temperature measurement.

CN121765582APending Publication Date: 2026-03-31CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-22
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

In passive IoT temperature measurement technology, the accuracy of temperature measurement decreases due to the influence of the environment and hardware conditions of the passive tag, resulting in inaccurate measurements.

Method used

By acquiring the inventory instructions of the passive tag, recording the time point of the passive tag state transition, repeatedly executing the measurement steps to determine multiple duration measurement values, determining the duration of the passive tag based on the multiple duration measurement values, and determining the temperature measurement value through a preset mapping relationship.

Benefits of technology

This reduces random errors introduced by a single measurement and improves the accuracy of temperature measurements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121765582A_ABST
    Figure CN121765582A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of Internet of Things, and provides a temperature measurement method, device and equipment, a medium and a product. The method comprises the following steps: acquiring an inventory instruction corresponding to a passive tag in a target session, wherein the inventory instruction is used for controlling the passive tag to be set from a first state to a second state; performing inventory on the passive tag according to the inventory instruction, and recording a first time point when the passive tag in a first state is inventory; after the passive tag is controlled by the inventory instruction to be set from the first state to the second state, the passive tag is subjected to inventory according to the inventory instruction, and a second time point is recorded when the passive tag in the first state is subjected to inventory; determining a duration measurement value according to the first time point and the second time point; the steps are repeatedly performed to determine a plurality of duration measurements, determine a duration of the passive tag based on the plurality of duration measurements, and determine a temperature measurement based on the duration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Internet of Things (IoT) technology, and in particular to a temperature measurement method, apparatus, device, medium, and product. Background Technology

[0002] Passive IoT-based temperature measurement technology achieves non-contact temperature monitoring of target objects by attaching passive tags that do not require power. However, the accuracy of temperature measurement may decrease due to factors such as the environment in which the passive tag is located and the hardware conditions of the tag. Therefore, improving the accuracy of passive IoT-based temperature measurement has become an urgent technical problem to be solved. Summary of the Invention

[0003] This application provides a temperature measurement method, apparatus, device, medium, and product to address the technical problem of improving the accuracy of temperature measurement based on passive IoT.

[0004] In a first aspect, embodiments of this application provide a temperature measurement method, including: Obtain the disk storage instruction corresponding to the passive tag in the target session. The disk storage instruction is used to control the passive tag to be changed from the first state to the second state. The passive tags are inventoried according to the inventory instructions, and the first time point is recorded when a passive tag in the first state is inventoried. After the passive tag is changed from the first state to the second state under the control of the inventory instruction, the passive tag is inventoried according to the inventory instruction, and the second time point is recorded when the passive tag in the first state is inventoried. The duration measurement value is determined based on the first and second time points; Repeat the above steps to determine multiple duration measurements, determine the duration of the passive tag based on the multiple duration measurements, and determine the temperature measurement based on the duration.

[0005] In conjunction with the first aspect, in some possible implementations, obtaining the disk storage instruction corresponding to the passive tag in the target session includes: Get the Query command corresponding to the passive tag in the target session. The Query command is used to instruct the passive tag in the first state to be stored in the target session. The Query command also contains control bits to control the passive tag to be changed from the first state to the second state. The Query command is identified as the disk storage instruction corresponding to the passive tag in the target session.

[0006] Combining the first aspect and the above implementation methods, in some possible implementation methods, the duration measurement value is determined based on the first time point and the second time point, including: Determine the time difference between the second time point and the first time point; The time difference is determined as the duration measurement.

[0007] Combining the first aspect and the above implementation methods, in some possible implementation methods, the duration of the passive tag is determined based on multiple duration measurements, including: The duration of the passive tag is determined based on the minimum of multiple duration measurements.

[0008] In combination with the first aspect and the above implementation methods, some possible implementation methods, after determining the duration of the passive tag based on the minimum value among multiple duration measurements, also include: A reference value is determined based on multiple duration measurements; The error assessment value is determined based on the minimum value among the reference value and multiple duration measurements; Among them, the error evaluation value is used to characterize the reading environment when storing passive tags.

[0009] Combining the first aspect and the above implementation methods, in some possible implementation methods, a reference value is determined based on multiple duration measurements, including: Multiple duration measurements are sorted to obtain an ordered sequence of measurements; The reference value is determined based on the middle value of the ordered sequence of measurements.

[0010] Combining the first aspect and the above implementation methods, in some possible implementation methods, a reference value is determined based on multiple duration measurements, including: The arithmetic mean of multiple duration measurements is calculated to obtain the average value. The average value is determined as the reference value.

[0011] Combining the first aspect and the above implementation methods, in some possible implementation methods, a reference value is determined based on multiple duration measurements, including: Outlier detection is performed on multiple duration measurements to remove measurements that meet preset outlier conditions, resulting in a filtered set of measurements. The reference value is determined based on the set of measurements after screening.

[0012] Combining the first aspect and the above implementation methods, in some possible implementation methods, the error assessment value is determined based on the minimum value among a reference value and multiple duration measurements, including: Determine the difference between the reference value and the minimum of multiple duration measurements; The difference is determined as the error assessment value.

[0013] Combining the first aspect and the above implementation methods, in some possible implementation methods, the temperature measurement value is determined based on the duration, including: The temperature measurement value is determined by querying or calculating based on the duration and a preset mapping relationship. The mapping relationship is determined based on the temperature sensing characteristics of passive tags.

[0014] Combining the first aspect and the above implementation methods, in some possible implementation methods, the target session is session 1 that conforms to the passive RFID protocol definition that supports multiple sessions and A / B state inventory flags. The first state is state A, and the second state is state B. State A and state B are the two logical states of the inventory flags defined by the passive RFID protocol.

[0015] Secondly, embodiments of this application provide a temperature measuring device, comprising: The acquisition module is used to acquire the disk storage instruction corresponding to the passive tag in the target session. The disk storage instruction is used to control the passive tag to be changed from the first state to the second state. The first inventory module is used to inventory passive tags according to the inventory instructions, and record the first time point when an active tag in the first state is inventoryed. The second inventory module is used to inventory the passive tag according to the inventory instruction after the passive tag is changed from the first state to the second state under the control of the inventory instruction, and to record the second time point when the passive tag in the first state is inventoryed. The first determining module is used to determine the duration measurement value based on the first time point and the second time point; The second determining module is used to repeatedly perform the above steps to determine multiple duration measurements, determine the duration of the passive tag based on the multiple duration measurements, and determine the temperature measurement based on the duration.

[0016] Thirdly, embodiments of this application provide an electronic device, including a processor and a memory storing a computer program, wherein the processor executes the program to implement the steps of the temperature measurement method of the first aspect.

[0017] Fourthly, embodiments of this application provide a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the temperature measurement method of the first aspect.

[0018] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the steps of the temperature measurement method of the first aspect.

[0019] The temperature measurement method, apparatus, device, medium, and product provided in this application first obtain an inventory instruction corresponding to a passive tag in a target session. The inventory instruction controls the passive tag to change from a first state to a second state. The passive tag is then inventoryed according to the inventory instruction, and a first time point is recorded when an active tag in the first state is inventoryed. After the passive tag changes from the first state to the second state under the control of the inventory instruction, the passive tag is again inventoryed according to the inventory instruction, and a second time point is recorded when an active tag in the first state is inventoryed. A duration measurement value is determined based on the first and second time points. The above steps are repeated to determine multiple duration measurement values, the duration of the passive tag is determined based on the multiple duration measurement values, and a temperature measurement value is determined based on the duration. By repeatedly executing the measurement steps to obtain multiple duration measurement values, the random error introduced by a single measurement can be reduced when determining the duration of the passive tag based on multiple duration measurement values, thereby improving the accuracy of the final temperature measurement value determined based on the duration. Attached Figure Description

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

[0021] Figure 1 This is a schematic flowchart of the temperature measurement method provided in the embodiments of this application; Figure 2 This application provides an embodiment of a schematic diagram illustrating the change of inventory results over time corresponding to the duration measurement process of passive tags; Figure 3 This is a schematic diagram of the structure of the temperature measuring device provided in the embodiments of this application; Figure 4 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0022] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0023] Temperature measurement technology based on passive IoT enables non-contact temperature monitoring of the target object by attaching a passive tag that does not require power to the target object.

[0024] Among related technologies, there are solutions that measure temperature by integrating a temperature sensor into a passive tag. However, the analog-to-digital conversion module in the temperature sensor increases the activation power of the passive tag, resulting in a significantly shorter reading distance for the passive tag with integrated temperature sensor under the same conditions compared to a regular passive tag, thus increasing the difficulty of overall system deployment. Other related technologies estimate temperature by analyzing the backscattered signal characteristics of the passive tag. However, because the signal from a passive tag is weak and easily disturbed by changes in surrounding multipath channels, the signal characteristics are unstable, and the measurement accuracy and stability cannot be guaranteed in practical scenarios.

[0025] To address the shortcomings of the aforementioned technical solutions, this application proposes a method for obtaining temperature measurement values ​​using the duration of a passive tag. However, the accuracy of obtaining the duration may decrease due to factors such as the complex and variable reading environment of the passive tag and differences in the hardware conditions of the passive tag itself. A decrease in the accuracy of the duration directly leads to inaccurate temperature measurement values ​​determined based on that duration.

[0026] Therefore, improving the accuracy of passive tag duration acquisition, and thus improving the accuracy of temperature measurement, has become an urgent technical problem to be solved.

[0027] To address the aforementioned issues, the solution provided in this application primarily includes: firstly, obtaining the inventory instruction corresponding to the passive tag in the target session, the inventory instruction being used to control the passive tag to change from a first state to a second state; inventorying the passive tag according to the inventory instruction, and recording a first time point when inventorying a passive tag in the first state; after the passive tag is controlled by the inventory instruction to change from the first state to the second state, inventorying the passive tag according to the inventory instruction, and recording a second time point when inventorying a passive tag in the first state; determining a duration measurement value based on the first and second time points; repeating the above steps to determine multiple duration measurement values, determining the duration of the passive tag based on the multiple duration measurement values, and determining a temperature measurement value based on the duration. Through this solution, by repeatedly executing the measurement steps to obtain multiple duration measurement values, the random error introduced by a single measurement can be reduced when determining the duration of the passive tag based on multiple duration measurement values, thereby improving the accuracy of the final temperature measurement value determined based on the duration.

[0028] Explanation of some terms used in the embodiments of this application: Electronic Product Code (EPC): A code used to uniquely identify passive labels.

[0029] Received Signal Strength (RSS): An indicator representing the strength of the received signal.

[0030] Period of State Transition (PST): A measurement representing the duration of a passive tag state transition.

[0031] Query Command: A command used to instruct the storage of passive tags in the first state in the target session.

[0032] The temperature measurement method provided in the embodiments of this application will be described in detail below.

[0033] Please see Figure 1 , Figure 1 This is a schematic flowchart illustrating a temperature measurement method provided in an embodiment of this application. Figure 1 As shown, the method in this application embodiment may include the following steps S101-S105.

[0034] S101, obtain the disk storage instruction corresponding to the passive tag in the target session. The disk storage instruction is used to control the passive tag to be changed from the first state to the second state.

[0035] Specifically, the execution entity involved in this embodiment can be an electronic device, such as a reader / writer. The reader / writer and the passive tag are two different entities within the IoT temperature measurement architecture. A reader / writer refers to an electronic device used to communicate with a passive tag, capable of transmitting signals and receiving responses; a passive tag refers to an electronic tag that requires no internal power supply and obtains energy through external signals, used for temperature sensing. Besides readers / writers, the execution entity involved in this embodiment may also be other types of devices.

[0036] First, it is necessary to obtain the inventory command corresponding to the passive tag in the target session. The inventory command is used to control the passive tag to change from the first state to the second state. Here, the target session refers to a certain session defined in the passive RFID protocol, which is used to manage the state transition of the tag; the passive tag in the target session refers to the tag entity that is in a specific state in the specified session; the inventory command corresponding to the passive tag refers to the command sent by the reader / writer, which is used to query the tag and control its state change.

[0037] The function of the inventory instruction can be described as controlling the tag state transition to initiate duration measurement. The first state refers to the initial logical state of the tag inventory flag; the second state refers to the logical state after the tag inventory flag transition.

[0038] Regarding this step, in some possible implementations, the disk storage command corresponding to the passive tag in the target session can be obtained through a standard protocol. In other possible implementations, the disk storage command corresponding to the passive tag in the target session can be obtained based on a custom protocol.

[0039] S102, according to the inventory instruction, the passive tags are inventoried, and the first time point is recorded when the passive tag in the first state is inventoried.

[0040] Specifically, the passive tags need to be inventoried according to the inventory instructions, and the first time point is recorded when a passive tag in the first state is inventoried. Here, inventory refers to the process of the reader querying the tag and obtaining its response information; the first time point refers to the moment when the reader successfully inventories a passive tag in the first state.

[0041] Regarding this step, in some possible implementations, a relevant timing component can be used to record the first time point. In other possible implementations, the first time point can be recorded based on the system clock.

[0042] S103, after the passive tag is changed from the first state to the second state under the control of the inventory instruction, the passive tag is inventoried according to the inventory instruction, and the second time point is recorded when the passive tag in the first state is inventoried.

[0043] Specifically, the passive tag is controlled by disk storage instructions, which will change it from the first state to the second state, and then automatically return to the first state after a period of time.

[0044] Accordingly, after the passive tag is changed from the first state to the second state under the control of the disk storage command, the passive tag needs to be disk stored according to the disk storage command, and a second time point needs to be recorded when the passive tag in the first state is disk stored. The second time point refers to the moment when the reader successfully disks the passive tag in the first state again.

[0045] Regarding this step, in some possible implementations, the passive tags can be continuously inventoried according to inventory instructions until the second time point is successfully recorded. In other possible implementations, the passive tags can be inventoried periodically according to inventory instructions to record the second time point.

[0046] S104, determine the duration measurement value based on the first time point and the second time point.

[0047] Specifically, the duration measurement needs to be determined based on the first and second time points. The duration measurement refers to the time difference between the second and first time points.

[0048] Regarding this step, in some possible implementations, mathematical operations can be performed on the first and second time points to determine the duration measurement. In other possible implementations, the difference between the second and first time points can be directly calculated as the duration measurement.

[0049] S105, repeat the above steps to determine multiple duration measurements, determine the duration of the passive tag based on the multiple duration measurements, and determine the temperature measurement based on the duration.

[0050] Specifically, repeating the above steps means executing S101 to S104 multiple times to obtain multiple duration measurements.

[0051] The above steps need to be repeated to determine multiple duration measurements, and then the duration of the passive tag is determined based on these measurements. The duration of the passive tag refers to the final value determined based on the multiple duration measurements, used to characterize its temperature properties.

[0052] For example, the steps are repeated n times to obtain multiple duration measurements, and then the duration of the passive tag is determined based on these values. Here, n is a positive integer greater than 1.

[0053] Regarding the step of determining the duration of a passive tag based on multiple duration measurements, some possible implementations involve statistically processing the multiple duration measurements to determine the duration of the passive tag. Other possible implementations involve selecting a specific value from the multiple duration measurements as the duration of the passive tag.

[0054] Furthermore, the temperature measurement value is determined based on the duration. The temperature measurement value refers to the temperature value determined based on the duration through a preset mapping relationship.

[0055] Regarding this step, in some possible implementations, relevant conversion processing can be performed based on the duration and a preset mapping relationship to determine the temperature measurement value. In other possible implementations, a query can be performed based on the duration and a preset mapping relationship to determine the temperature measurement value.

[0056] In this embodiment, firstly, the inventory instruction corresponding to the passive tag in the target session is obtained. The inventory instruction is used to control the passive tag to change from a first state to a second state. The passive tag is then inventoryed according to the inventory instruction, and a first time point is recorded when an active passive tag in the first state is inventoryed. After the passive tag is changed from the first state to the second state under the control of the inventory instruction, the passive tag is inventoryed again according to the inventory instruction, and a second time point is recorded when an active passive tag in the first state is inventoryed. Based on the first and second time points, a duration measurement value is determined. The above steps are repeated to determine multiple duration measurement values, the duration of the passive tag is determined based on the multiple duration measurement values, and a temperature measurement value is determined based on the duration. By repeatedly executing the measurement steps to obtain multiple duration measurement values, the random error introduced by a single measurement can be reduced when determining the duration of the passive tag based on multiple duration measurement values, thereby improving the accuracy of the final temperature measurement value determined based on the duration.

[0057] In one embodiment, the step "obtaining the disk storage instruction corresponding to the passive tag in the target session" can be further refined and may include the following steps: Get the Query command corresponding to the passive tag in the target session. The Query command is used to instruct the passive tag in the first state to be stored in the target session. The Query command also contains control bits to control the passive tag to be changed from the first state to the second state. The Query command is identified as the disk storage instruction corresponding to the passive tag in the target session.

[0058] Specifically, the first step is to obtain the query command corresponding to the source-free tag in the target session.

[0059] The Query command instructs the inventory of passive tags in the first state within a target session. It also includes control bits to change the passive tags from the first state to the second state. Specifically, the Query command is an inventory instruction conforming to the passive RFID protocol specification. By specifying target session parameters and state parameters, it enables selective querying of passive tags in the first state within a specific session, while the built-in control bits control the state transitions of the passive tags.

[0060] Regarding this step, in some possible implementations, the Query command corresponding to the passive tag in the target session can be obtained through the protocol parsing module. The protocol parsing module is used to parse the instruction format that conforms to the passive RFID protocol and use the parsed Query command as the disk storage instruction corresponding to the passive tag in the target session.

[0061] Next, the Query command needs to be identified as the disk storage instruction corresponding to the passive tag in the target session.

[0062] Regarding this step, in some possible implementations, the Query command can be encapsulated into a standard disk entry instruction format, and the encapsulated Query command can be identified as the disk entry instruction corresponding to the passive tag in the target session. The standard disk entry instruction format includes a session identifier field for identifying the target session and a status identifier field for identifying the first state.

[0063] In this embodiment, by acquiring a Query command containing target session parameters and state control bits, and identifying it as a disk storage instruction, the selection and state control of passive tags in the first state within a specific session are achieved. Since the control bits in the Query command can control the passive tag to change from the first state to the second state, each disk storage operation triggers a state transition process, providing a basis for subsequently measuring the duration by recording the time interval between state transitions.

[0064] In one embodiment, the step of "determining the duration measurement based on the first time point and the second time point" can be further refined and may include the following steps: Determine the time difference between the second time point and the first time point; The time difference is determined as the duration measurement.

[0065] Specifically, the first step is to determine the time difference between the second time point and the first time point. This time difference refers to the time interval between the second and first time points, which characterizes the time required for the passive tag to automatically return from the second state to the first state.

[0066] Regarding this step, in some possible implementations, the time difference between the second time point and the first time point can be calculated by the timing module, and the calculated time difference can be used as the time difference between the second time point and the first time point.

[0067] Next, the time difference will be determined as the duration measurement.

[0068] Regarding this step, in some possible implementations, the time difference can be used directly as the duration measurement, or the time difference can be calibrated to obtain the duration measurement.

[0069] In this embodiment, by calculating the time difference between the second time point and the first time point and determining it as the duration measurement value, the time required for the passive tag to automatically return from the second state to the first state is quantified. This duration measurement value directly reflects the circuit characteristics of the passive tag at a specific temperature, providing a data basis for subsequently determining the temperature measurement value based on the duration measurement value. Since the calculation of the time difference value is based on a clearly defined successful disk read time, the impact of read failures caused by environmental interference on the duration measurement value is avoided, thereby improving the accuracy of the duration measurement value.

[0070] In one embodiment, the step of "determining the duration of the passive tag based on multiple duration measurements" can be further refined and may include the following steps: The duration of the passive tag is determined based on the minimum of multiple duration measurements.

[0071] Specifically, considering that a single duration measurement may deviate from the actual duration due to environmental interference or random errors, taking multiple measurements and selecting the minimum value can reduce the impact of such errors on the results. The duration of the passive tag can be determined based on the minimum value among multiple duration measurements. The minimum value among multiple duration measurements refers to the duration measurement with the smallest value obtained from multiple measurements.

[0072] Regarding this step, in some possible implementations, multiple duration measurements can be compared to find the duration measurement with the smallest value, and this smallest duration measurement can be taken as the minimum value among the multiple duration measurements, and then the minimum value among the multiple duration measurements can be determined as the duration of the passive tag.

[0073] In this embodiment, by selecting the minimum value from multiple duration measurements as the duration of the passive tag, the impact of random errors introduced by a single measurement on the final result is reduced, making the determined duration closer to the actual duration of the passive tag at the current temperature, thereby providing more accurate basic data for subsequent determination of temperature measurements based on duration.

[0074] In one embodiment, after the above step of "determining the duration of the passive tag based on the minimum value among multiple duration measurements", the following steps may also be included: A reference value is determined based on multiple duration measurements; The error assessment value is determined based on the minimum value among the reference value and multiple duration measurements; Among them, the error evaluation value is used to characterize the reading environment when storing passive tags.

[0075] Specifically, considering that the single duration measurement value may deviate from the actual duration due to reading environmental interference or random errors, and that the impact of such errors can be quantified by taking multiple measurements and calculating reference values, this embodiment introduces an error assessment mechanism based on the difference between the reference value and the minimum value.

[0076] First, a reference value needs to be determined based on multiple duration measurements. The reference value refers to a statistic used to characterize the central tendency of the multiple duration measurements; it can be used to represent the typical level of the results from multiple measurements.

[0077] Regarding this step, in some possible implementations, multiple duration measurements can be sorted to obtain an ordered sequence of measurements; the middle value of the ordered sequence can then be determined as a reference value.

[0078] Next, the error assessment value is determined based on the reference value and the minimum value among multiple duration measurements. The error assessment value characterizes the reading environment conditions when passive tags are stored. Specifically, a larger error assessment value indicates stronger interference in the reading environment and lower reliability of the measurement results.

[0079] Regarding this step, in some possible implementations, the difference between the reference value and the minimum of multiple duration measurements can be determined; this difference is then used as the error assessment value.

[0080] In some cases, the duration of the passive tag can be corrected based on the error assessment value to obtain the corrected duration.

[0081] Specifically, the minimum value can be adjusted for compensation based on the comparison between the error assessment value and the preset threshold; if the error assessment value exceeds the preset threshold, the minimum value is corrected based on the preset compensation coefficient.

[0082] In this embodiment, a reference value is determined based on multiple duration measurements, and the difference between the reference value and the minimum value among the multiple duration measurements is calculated as the error assessment value. This achieves a quantitative characterization of the reading environment conditions when storing passive tags. Since the error assessment value directly reflects the dispersion of multiple measurement results, a larger value indicates more significant measurement fluctuations caused by environmental interference, thus providing a basis for assessing the reliability of the minimum value as the duration. This error assessment mechanism based on statistical differences improves the robustness of temperature measurement without increasing hardware costs, while also providing a data foundation for possible subsequent error compensation.

[0083] In one embodiment, the step of "determining a reference value based on multiple duration measurements" can be further refined and may include the following steps: Multiple duration measurements are sorted to obtain an ordered sequence of measurements; The reference value is determined based on the middle value of the ordered sequence of measurements.

[0084] Specifically, considering that sorting can reflect the distribution of multiple duration measurements, thereby facilitating the selection of values ​​that can represent the central tendency, this embodiment proposes a scheme to determine reference values ​​based on the middle position value after sorting.

[0085] First, the multiple duration measurements need to be sorted to obtain an ordered sequence of measurements. Sorting refers to rearranging the duration measurements according to their numerical values; an ordered sequence refers to the sequence formed by arranging the duration measurements in ascending or descending order after sorting.

[0086] Regarding this step, in some possible implementations, the quicksort algorithm can be used to sort multiple duration measurements, and the sorted sequence can be used as an ordered sequence of measurements.

[0087] Next, a reference value is determined based on the middle value of the ordered sequence of measurements.

[0088] Regarding this step, in some possible implementations, the duration measurement value corresponding to the middle position of the ordered sequence of measurements can be determined; the duration measurement value corresponding to the middle position can then be used as a reference value.

[0089] In this embodiment, by sorting multiple duration measurements and selecting the middle value of the ordered sequence as a reference value, a benchmark is provided for evaluating measurement error. Since the middle value is not affected by a single extreme measurement, it can reflect the overall level of multiple measurement results, thereby improving the reliability of the error assessment value.

[0090] In one embodiment, the step of "determining a reference value based on multiple duration measurements" can be further refined and may include the following steps: The arithmetic mean of multiple duration measurements is calculated to obtain the average value. The average value is determined as the reference value.

[0091] Specifically, considering that the arithmetic mean calculation can integrate information from multiple duration measurements to reflect its overall level, this embodiment proposes a scheme to determine the reference value by calculating the average of multiple duration measurements.

[0092] First, an arithmetic mean needs to be calculated for the multiple duration measurements to obtain the average value. The arithmetic mean calculation refers to the process of adding the multiple duration measurements together and then dividing by the number of measurements. The average value is the value obtained by the arithmetic mean, which represents the central tendency of the multiple duration measurements.

[0093] Regarding this step, in some possible implementations, all multiple duration measurements can be summed to obtain a total value; the total value can then be divided by the number of multiple duration measurements to obtain an average value.

[0094] Next, the average value needs to be determined as the reference value.

[0095] Regarding this step, in some possible implementations, the calculated average value can be directly used as the reference value.

[0096] In this embodiment, by calculating the arithmetic mean of multiple duration measurements and determining the average value as a reference value, a benchmark based on all measurement data is provided for error assessment. Since the average value contains information from all measurements, it reflects the overall impact of the reading environment on the measurement results, thus making the subsequently determined error assessment value statistically significant.

[0097] In one embodiment, the step of "determining a reference value based on multiple duration measurements" can be further refined and may include the following steps: Outlier detection is performed on multiple duration measurements to remove measurements that meet preset outlier conditions, resulting in a filtered set of measurements. The reference value is determined based on the set of measurements after screening.

[0098] Specifically, considering that there may be extreme data among multiple duration measurements due to instantaneous strong interference or abnormal conditions, and that these data may affect the representativeness of the reference values, this embodiment proposes a scheme to remove outliers before analyzing the data and then determine the reference values ​​based on the remaining data.

[0099] First, outlier detection needs to be performed on multiple duration measurements to remove measurements that meet preset outlier criteria, resulting in a filtered set of measurements. Outlier detection refers to the process of identifying measurements that deviate from the main data distribution among multiple duration measurements. Preset outlier criteria refer to pre-defined rules or standards used to determine whether a measurement is an outlier; for example, it could be expressed as the difference between the measurement and the arithmetic mean or median exceeding a preset standard deviation. The filtered set of measurements refers to the set of remaining measurements after removing those that meet the preset outlier criteria from the multiple duration measurements.

[0100] Regarding this step, in some possible implementations, the mean and standard deviation of multiple duration measurements can be calculated; the absolute value of the difference between any duration measurement and the mean can be compared with three times the standard deviation; if the absolute value of the difference is greater than three times the standard deviation, the duration measurement is determined as a measurement that meets the preset outlier condition and is removed; the remaining duration measurements after removal are used as a set of filtered measurements.

[0101] Next, reference values ​​need to be determined based on the filtered set of measurements.

[0102] Regarding this step, in some possible implementations, the arithmetic mean of all the measurements in the filtered measurement set can be calculated, and the resulting average value can be determined as the reference value.

[0103] In this embodiment, outlier detection is used to remove extreme measurements that may interfere with the analysis results, making the data used to determine the reference values ​​more reliable. Since the data in the filtered set of measurements better reflects the true distribution of duration under normal reading conditions, the reference values ​​determined based on this set are more representative, thereby improving the accuracy of subsequent error assessment.

[0104] In one embodiment, the step of "determining the error assessment value based on the minimum value among the reference value and multiple duration measurements" can be further refined and may include the following steps: Determine the difference between the reference value and the minimum of multiple duration measurements; The difference is determined as the error assessment value.

[0105] Specifically, considering that a single duration measurement may deviate from the actual duration due to environmental interference or random errors, the impact of such errors can be quantified by taking multiple measurements and calculating the difference between the reference value and the minimum value. Therefore, it is first necessary to determine the difference between the reference value and the minimum value among multiple duration measurements. This difference refers to the numerical variation between the reference value and the minimum value among multiple duration measurements, and is used to characterize the dispersion of the multiple measurement results.

[0106] Regarding this step, in some possible implementations, the absolute difference between the reference value and the minimum of the multiple duration measurements can be calculated, and this absolute difference can be used as the difference between the reference value and the minimum of the multiple duration measurements.

[0107] Next, the difference needs to be determined as the error assessment value. The error assessment value is a quantitative indicator used to characterize the reading environment when storing passive tags. Specifically, a larger error assessment value indicates stronger interference in the reading environment and lower reliability of the measurement results.

[0108] Regarding this step, in some possible implementations, the difference can be directly used as the error evaluation value, or the difference can be normalized to obtain the error evaluation value.

[0109] In this embodiment, the difference between a reference value and the minimum value among multiple duration measurements is calculated and determined as the error assessment value, thus achieving a quantitative characterization of the reading environment conditions when storing passive tags. Since the error assessment value directly reflects the dispersion of multiple measurement results, a larger value indicates more significant measurement fluctuations caused by environmental interference, thereby providing a basis for assessing the reliability of the minimum value as the duration. This error assessment mechanism based on statistical differences improves the robustness of temperature measurement without increasing hardware costs, while also providing a data foundation for possible subsequent error compensation.

[0110] In one embodiment, the step of "determining the temperature measurement value based on the duration" can be further refined and may include the following steps: The temperature measurement value is determined by querying or calculating based on the duration and a preset mapping relationship. The mapping relationship is determined based on the temperature sensing characteristics of passive tags.

[0111] Specifically, the mapping relationship involved in this embodiment refers to a rule or model used to characterize the correspondence between duration and temperature measurement value, which can be represented as a time-temperature lookup table or as a mathematical function based on physical properties.

[0112] To convert the duration into a temperature measurement, it is necessary to query or calculate based on the duration and a preset mapping relationship to determine the temperature measurement.

[0113] Regarding this step, some possible implementations include a lookup table method, using the duration as an index to retrieve the corresponding temperature measurement value from a preset mapping relationship. Other possible implementations involve a function calculation method, where the duration is used as an input parameter and substituted into a mathematical function within the preset mapping relationship to calculate the corresponding temperature measurement value.

[0114] It should be noted that the mapping relationship is determined based on the temperature sensing characteristics of the passive tag. Specifically, the temperature sensing characteristics of the passive tag refer to the law of the thermistor resistance changing with temperature and the correlation between capacitor discharge time and resistance. This process can be represented by establishing a quantitative relationship between duration and temperature measurement value through experimental calibration or theoretical derivation.

[0115] In this embodiment, a preset mapping relationship is used to convert duration into a temperature measurement value. Since this mapping relationship is determined based on the temperature sensing characteristics of the passive tag, and the duration is dominated by the physical characteristics of the thermistor, environmental interference with the signal characteristics is avoided. This conversion process directly utilizes the duration, requiring no additional sensors or complex signal analysis, thus maintaining the low-power characteristics of the passive tag while ensuring accuracy.

[0116] In one embodiment, the target session is session 1, which conforms to the passive RFID protocol definition that supports multiple sessions and A / B state inventory flags. The first state is state A, and the second state is state B. State A and state B are two logical states of the inventory flags defined by the passive RFID protocol.

[0117] Specifically, the passive RFID protocol supporting multiple sessions and A / B status inventory flags involved in this embodiment refers to an RFID communication protocol that supports passive tag multi-session management and inventory flag status transitions, such as ISO / IEC18000-6C, EPCglobalGen2, ISO / IEC18000-7, etc.

[0118] Taking the ISO / IEC 18000-6C protocol as an example, the target session is Session 1, the first state is state A, and the second state is state B. State A and state B are the two logical states of the disk flag bit defined by the passive RFID protocol.

[0119] In accordance with the scheme of this application, in Session 1, after the storage flag bit of the tag changes from state A to state B, it will automatically return to state A after a certain duration. This duration is related to temperature and can be used for temperature measurement.

[0120] In this embodiment, the ambient temperature is calculated by measuring the duration of the disk storage flag bit after it transitions from state A to state B and then back to state A, using the session 1, state A, and state B defined by the passive radio frequency identification protocol.

[0121] In one embodiment, to facilitate understanding of the present application's content regarding temperature measurement using the state duration of the inventory flag bit in the passive RFID protocol, a specific description of temperature measurement based on the inventory flag bit characteristics corresponding to each session under the passive RFID protocol is provided.

[0122] Specifically, the passive RFID protocol involved in this embodiment supports multi-session management of passive tags and state transition of inventory flag bits. This protocol specifies that the passive tag has four inventory flag bits corresponding to each session, including S0 inventory flag bit, S1 inventory flag bit, S2 inventory flag bit, and S3 inventory flag bit. Each inventory flag bit has two logical states. When the reader / writer performs inventory on the tag, it can specify the target session and the state of the inventory flag bit corresponding to that session, and can also specify whether to flip the state of the inventory flag bit after inventory is completed. When the inventory flag bit is in one of the logical states, the inventory flag bits corresponding to different sessions will automatically flip back to another logical state under different conditions. The delay time required for the automatic flip from the current logical state to another logical state is the duration, which is affected by temperature. Based on this characteristic, temperature measurement can be achieved. Please refer to Table 1 below: Table 1 - Illustration of the setting time and required duration of the inventory flag bit Inventory flag Set time Required duration S0 inventory flag Neither the initial nor the final value will exceed 2 milliseconds. When the tag is powered on: infinite length; when the tag is not powered on: none. S1 inventory flag Neither the initial nor the final value will exceed 2 milliseconds. When the tag is powered on: Nominal temperature range: 500 milliseconds < duration < 5 seconds; Extended temperature range: Not specified; When the tag is not powered on: Nominal temperature range: 500 milliseconds < duration < 5 seconds; Extended temperature range: Not specified; S2 inventory flag Neither the initial nor the final value will exceed 2 milliseconds. When the tag is powered on: Infinite duration; When the tag is not powered on: Nominal temperature range: 2 seconds < duration; Extended temperature range: Not specified; S3 inventory flag Neither the initial nor the final value will exceed 2 milliseconds. When the tag is powered on: Infinite duration; When the tag is not powered on: Nominal temperature range: 2 seconds < duration; Extended temperature range: Not specified; In this embodiment, by obtaining the characteristics of the setting time and duration of each disk storage flag bit recorded in Table 1 above, and combining the passive RFID protocol's provisions on the state transition of each session disk storage flag bit, the duration of the target disk storage flag bit automatically flipping back to another logical state from the current logical state is measured. Based on the correlation between this duration and temperature, the ambient temperature of the disk storage flag bit can be determined. Among them, the S0 disk storage flag bit, S1 disk storage flag bit, S2 disk storage flag bit, and S3 disk storage flag bit are the specific types of disk storage flag bits corresponding to the four sessions of the passive tag. Their setting time is not affected by the initial state value or the final state value, and the duration has different characteristics under different power-on states and different temperature ranges, providing diverse implementation paths for temperature measurement.

[0123] In one embodiment, to facilitate understanding of the comparative experimental description of the measurement method of the storage flag bit duration based on the passive RFID protocol in this application, a comparative experimental description of the measurement method of the storage flag bit duration using different methods under the same temperature conditions and different reading environment conditions for the same passive tag is provided.

[0124] Specifically, the experimental object in this embodiment is the same passive tag, and the experimental environment is set to the same temperature conditions. Different test scenarios are constructed by adjusting the reading environment conditions to compare and analyze the reliability of different duration measurement methods. During the experiment, reading-related parameters and duration data obtained by different measurement methods are recorded. The reading-related parameters include reading duration, reader power, electronic product code (EPC) of the passive tag, measurement rounds, and average value of received signal strength (RSS_mean). The duration measurement methods include minimum value measurement method and average value measurement method, and the corresponding measurement results are recorded as PST_min and PST_mean, respectively. PST_min represents the minimum value of multiple duration measurement results under the same test scenario, and PST_mean represents the average value of multiple duration measurement results under the same test scenario. The measurement rounds are set sequentially from 1 to 5, and as the number of rounds increases, the reading environment conditions gradually worsen. The worsening reading environment conditions will lead to a decrease in the average value of received signal strength (RSS_mean). Please refer to Table 2 below. Table 2 records the specific experimental data. The reading time is set to 1 minute, the reader power is set to 10 dBm, and the Electronic Goods Certificate (EPC) of the passive tag used in the experiment is E28011B0A502006D6D1E90C7. It covers the average value (RSS_mean), PST_min, and PST_mean data of the received signal strength corresponding to each of rounds 1 to 5. The Electronic Goods Certificate (EPC) is the unique identifier of the passive tag, which is used to ensure the uniqueness and consistency of the experimental objects in this embodiment. The reading time of 1 minute and the reader power of 10 dBm are the fixed reading parameters set for this experiment. The gradient settings of rounds 1 to 5 are used to simulate the changes in different reading environment conditions.

[0125] Table 2 - Experimental Data Table

[0126] In this embodiment, based on the experimental data in Table 2, it can be seen that as the number of measurement rounds increases from 1 to 5, the reading environment conditions gradually worsen, and the average value of the received signal strength (RSS_mean) shows a gradual decreasing trend, while the corresponding PST_mean shows a gradual increasing trend. The reason for the gradual increase in PST_mean is that the reading environment conditions worsen, leading to an increased probability of the reader failing to read the passive tag, which in turn causes deviations in the average value of multiple measurements. Although PST_min fluctuates slightly in different rounds of the experiment, it maintains good consistency overall. The above experimental results show that in the process of measuring the duration of the storage flag bit based on the passive RFID protocol, the minimum value measurement method corresponding to PST_min has higher reliability and stability than the average value measurement method corresponding to PST_mean, and is a better duration measurement scheme. The duration data obtained by using this minimum value measurement method can more accurately establish a correlation with temperature, thereby improving the accuracy of temperature measurement based on duration.

[0127] In one embodiment, for easier understanding of the present application's content regarding the measurement of the duration of a passive tag and the temperature measurement method based thereon, please refer to [link to relevant documentation]. Figure 2 , Figure 2 This is a schematic diagram showing the change of inventory results over time corresponding to the duration measurement process of the passive tag provided in this application embodiment.

[0128] Specifically, Figure 2 The horizontal axis represents time. Solid vertical arrows indicate successful inventory entries, while hollow vertical arrows indicate failed entries. The solid vertical arrow corresponding to "Previous Inventory" indicates that the reader successfully inventoried the passive tag in the first state according to the inventory instruction. At this time, the passive tag is controlled by the control bit of the inventory instruction and is set from the first state to the second state. During the "Actual Duration" after "Previous Inventory," the passive tag is in the second state. The reader attempts to inventory the passive tag multiple times according to the inventory instruction, corresponding to the hollow vertical arrow, but all attempts fail. When the "Actual Duration" ends, the passive tag returns from the second state to the first state. However, due to factors such as the reader not reading it in time or interference from the working environment, the reader does not immediately succeed in inventorying when the "Actual Duration" ends. Instead, it succeeds again within the "Random Range of Measurement Values" after the "Actual Duration," corresponding to the solid vertical arrow within the "Random Range of Measurement Values."

[0129] In this embodiment, the reader records a first time point when the "previous inventory" is successful, and records a second time point when the inventory is successful within the "random range of measurement values". The time difference between the second time point and the first time point is determined, and this time difference is used as the duration measurement value. By repeatedly executing the above inventory and time recording steps based on the inventory instruction, multiple duration measurement values ​​can be obtained. The duration of the passive tag can be determined based on the minimum value among the multiple duration measurement values, and the error between the minimum value and the "actual duration" decreases as the number of measurements increases. At the same time, the average value is obtained by performing an arithmetic average on the multiple duration measurement values. This average value is used as a reference value, and the difference between the reference value and the minimum value is determined. This difference can be used as an error evaluation value to characterize the reading environment when the passive tag is inventoryed. The worse the reading environment, the larger the error evaluation value.

[0130] The following will combine Figure 3 The temperature measuring device 800 provided in this application embodiment will be described in detail. The temperature measuring device 800 and the temperature measuring method described above can be referred to and correspond to each other. Specifically, the temperature measuring device 800 may include an acquisition module 810, a first storage module 820, a second storage module 830, a first determination module 840, and a second determination module 850, as detailed below: The acquisition module 810 is used to acquire the disk storage instruction corresponding to the passive tag in the target session. The disk storage instruction is used to control the passive tag to be changed from the first state to the second state. The first inventory module 820 is used to inventory passive tags according to the inventory instruction, and record the first time point when an active tag in the first state is inventoryed. The second inventory module 830 is used to inventory the passive tag according to the inventory instruction after the passive tag is changed from the first state to the second state under the control of the inventory instruction, and to record the second time point when the passive tag in the first state is inventoryed. The first determining module 840 is used to determine the duration measurement value based on the first time point and the second time point; The second determining module 850 is used to repeatedly perform the above steps to determine multiple duration measurements, determine the duration of the passive tag based on the multiple duration measurements, and determine the temperature measurement based on the duration.

[0131] Optionally, in some embodiments, the acquisition module 810 can be used to: Get the Query command corresponding to the passive tag in the target session. The Query command is used to instruct the passive tag in the first state to be stored in the target session. The Query command also contains control bits to control the passive tag to be changed from the first state to the second state. The Query command is identified as the disk storage instruction corresponding to the passive tag in the target session.

[0132] Optionally, in some embodiments, the first determining module 840 may be used to: Determine the time difference between the second time point and the first time point; The time difference is determined as the duration measurement.

[0133] Optionally, in some embodiments, the second determining module 850 may be used to: The duration of the passive tag is determined based on the minimum of multiple duration measurements.

[0134] Optionally, in some embodiments, the temperature measuring device 800 can also be used for: A reference value is determined based on multiple duration measurements; The error assessment value is determined based on the minimum value among the reference value and multiple duration measurements; Among them, the error evaluation value is used to characterize the reading environment when storing passive tags.

[0135] Optionally, in some embodiments, the temperature measuring device 800 can be used for: Multiple duration measurements are sorted to obtain an ordered sequence of measurements; The reference value is determined based on the middle value of the ordered sequence of measurements.

[0136] Optionally, in some embodiments, the temperature measuring device 800 can be used for: The arithmetic mean of multiple duration measurements is calculated to obtain the average value. The average value is determined as the reference value.

[0137] Optionally, in some embodiments, the temperature measuring device 800 can be used for: Outlier detection is performed on multiple duration measurements to remove measurements that meet preset outlier conditions, resulting in a filtered set of measurements. The reference value is determined based on the set of measurements after screening.

[0138] Optionally, in some embodiments, the temperature measuring device 800 can be used for: Determine the difference between the reference value and the minimum of multiple duration measurements; The difference is determined as the error assessment value.

[0139] Optionally, in some embodiments, the second determining module 850 may be used to: The temperature measurement value is determined by querying or calculating based on the duration and a preset mapping relationship. The mapping relationship is determined based on the temperature sensing characteristics of passive tags.

[0140] Optionally, in some embodiments, the target session is session 1 that conforms to the passive RFID protocol definition that supports multiple sessions and A / B state inventory flags, with the first state being state A and the second state being state B. State A and state B are two logical states of the inventory flags defined by the passive RFID protocol.

[0141] The effects achievable in this embodiment can be found in the relevant embodiments of the temperature measurement method described above, and will not be repeated here.

[0142] Figure 4 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 4 As shown, the electronic device may include: a processor 1301, a communication interface 1302, a memory 1303, and a communication bus 1304, wherein the processor 1301, the communication interface 1302, and the memory 1303 communicate with each other via the communication bus 1304. The processor 1301 can call a computer program stored in the memory 1303 to execute the steps of a temperature measurement method, such as including: Obtain the disk storage instruction corresponding to the passive tag in the target session. The disk storage instruction is used to control the passive tag to be changed from the first state to the second state. The passive tags are inventoried according to the inventory instructions, and the first time point is recorded when a passive tag in the first state is inventoried. After the passive tag is changed from the first state to the second state under the control of the inventory instruction, the passive tag is inventoried according to the inventory instruction, and the second time point is recorded when the passive tag in the first state is inventoried. The duration measurement value is determined based on the first and second time points; Repeat the above steps to determine multiple duration measurements, determine the duration of the passive tag based on the multiple duration measurements, and determine the temperature measurement based on the duration.

[0143] Furthermore, when the logical instructions in the aforementioned memory can be implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0144] On the other hand, this application also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can perform the steps of the temperature measurement method provided in the above embodiments, such as including: Obtain the disk storage instruction corresponding to the passive tag in the target session. The disk storage instruction is used to control the passive tag to be changed from the first state to the second state. The passive tags are inventoried according to the inventory instructions, and the first time point is recorded when a passive tag in the first state is inventoried. After the passive tag is changed from the first state to the second state under the control of the inventory instruction, the passive tag is inventoried according to the inventory instruction, and the second time point is recorded when the passive tag in the first state is inventoried. The duration measurement value is determined based on the first and second time points; Repeat the above steps to determine multiple duration measurements, determine the duration of the passive tag based on the multiple duration measurements, and determine the temperature measurement based on the duration.

[0145] On the other hand, embodiments of this application also provide a non-transitory computer-readable storage medium storing a computer program. The computer program is used to cause a processor to execute the steps of the methods provided in the above embodiments, including, for example: Obtain the disk storage instruction corresponding to the passive tag in the target session. The disk storage instruction is used to control the passive tag to be changed from the first state to the second state. The passive tags are inventoried according to the inventory instructions, and the first time point is recorded when a passive tag in the first state is inventoried. After the passive tag is changed from the first state to the second state under the control of the inventory instruction, the passive tag is inventoried according to the inventory instruction, and the second time point is recorded when the passive tag in the first state is inventoried. The duration measurement value is determined based on the first and second time points; Repeat the above steps to determine multiple duration measurements, determine the duration of the passive tag based on the multiple duration measurements, and determine the temperature measurement based on the duration.

[0146] Non-transitory computer-readable storage media can be any available medium or data storage device that can be accessed by a processor, including but not limited to magnetic storage (e.g., floppy disks, hard disks, magnetic tapes, magneto-optical disks (MOs), etc.), optical storage (e.g., CDs, DVDs, BDs, HVDs, etc.), and semiconductor storage (e.g., ROMs, EPROMs, EEPROMs, non-volatile memory (NAND flash), solid-state drives (SSDs)).

[0147] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0148] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or some parts of embodiments.

[0149] All actions involving the acquisition of signal information or data in this application were carried out in compliance with the relevant data protection laws and policies of the country where the application is located, and with the authorization granted by the owner of the relevant device. Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A temperature measurement method, characterized in that, include: Obtain the disk storage instruction corresponding to the passive tag in the target session. The disk storage instruction is used to control the passive tag to be set from a first state to a second state. The passive tags are inventoried according to the inventory instruction, and a first time point is recorded when the passive tag in the first state is inventoried. After the passive tag is set from the first state to the second state under the control of the inventory instruction, the passive tag is inventoried according to the inventory instruction, and a second time point is recorded when the passive tag in the first state is inventoried. The duration measurement value is determined based on the first time point and the second time point; Repeat the above steps to determine multiple duration measurements, determine the duration of the passive tag based on the multiple duration measurements, and determine a temperature measurement based on the duration.

2. The method according to claim 1, characterized in that, The step of obtaining the disk storage instruction corresponding to the passive tag in the target session includes: Obtain the Query command corresponding to the passive tag in the target session. The Query command is used to instruct the passive tag in the first state to be stored in the target session, and the Query command includes a control bit for controlling the passive tag to be set from the first state to the second state. The Query command is identified as the disk storage instruction corresponding to the passive tag in the target session.

3. The method according to claim 1, characterized in that, The step of determining the duration measurement value based on the first time point and the second time point includes: Determine the time difference between the second time point and the first time point; The time difference is determined as a duration measurement.

4. The method according to claim 1, characterized in that, Determining the duration of the passive tag based on the plurality of duration measurements includes: The duration of the passive tag is determined based on the minimum value among the plurality of duration measurements.

5. The method according to claim 1, characterized in that, After determining the duration of the passive tag based on the minimum value among the plurality of duration measurements, the method further includes: A reference value is determined based on the multiple duration measurements; An error assessment value is determined based on the minimum value among the reference value and the plurality of duration measurements; The error evaluation value is used to characterize the reading environment when storing the passive tag.

6. The method according to claim 5, characterized in that, The step of determining the reference value based on the plurality of duration measurements includes: The multiple duration measurements are sorted to obtain an ordered sequence of measurements; A reference value is determined based on the middle value of the ordered sequence of measurements.

7. The method according to claim 5, characterized in that, The step of determining the reference value based on the plurality of duration measurements includes: The arithmetic mean of the multiple duration measurements is calculated to obtain the average value. The average value is determined as a reference value.

8. The method according to claim 5, characterized in that, The step of determining the reference value based on the plurality of duration measurements includes: Outlier detection is performed on the multiple duration measurements to remove measurements that meet preset outlier conditions, resulting in a filtered set of measurements. The reference value is determined based on the set of filtered measurements.

9. The method according to claim 5, characterized in that, The step of determining the error assessment value based on the minimum value among the reference value and the plurality of duration measurements includes: Determine the difference between the reference value and the minimum value among the plurality of duration measurements; The difference is determined as the error assessment value.

10. The method according to claim 1, characterized in that, Determining the temperature measurement value based on the duration includes: The temperature measurement value is determined by querying or calculating based on the duration and a preset mapping relationship; The mapping relationship is determined based on the temperature sensing characteristics of the passive tag.

11. The method according to any one of claims 1 to 10, characterized in that, The target session is session 1, which conforms to the passive RFID protocol definition that supports multiple sessions and A / B state inventory flags. The first state is state A, and the second state is state B. State A and state B are two logical states of the inventory flag defined by the passive RFID protocol.

12. A temperature measuring device, characterized in that, include: The acquisition module is used to acquire the disk storage instruction corresponding to the passive tag in the target session. The disk storage instruction is used to control the passive tag to be set from a first state to a second state. The first inventory module is used to inventory the passive tags according to the inventory instruction, and record a first time point when the passive tag in the first state is inventoryed. The second inventory module is used to inventory the passive tag according to the inventory instruction after the passive tag is set from the first state to the second state under the control of the inventory instruction, and to record a second time point when the passive tag in the first state is inventoryed. The first determining module is used to determine the duration measurement value based on the first time point and the second time point; The second determining module is used to repeatedly perform the above steps to determine multiple duration measurements, determine the duration of the passive tag based on the multiple duration measurements, and determine a temperature measurement based on the duration.

13. An electronic device comprising a processor and a memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the temperature measurement method according to any one of claims 1 to 11.

14. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the temperature measurement method according to any one of claims 1 to 11.

15. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the temperature measurement method according to any one of claims 1 to 11.