Temperature probe data processing method and related device

By retaining and storing data when the temperature probe data meets preset conditions and adopting a cache management strategy, the problem of insufficient storage space caused by the accumulation of wireless temperature probe data is solved, and efficient data storage and accurate reflection of temperature change trends are achieved.

WO2025138882A1PCT designated stage expired Publication Date: 2025-07-03SHENZHEN CHENBEI TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/112006
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-29
Filing Date
2024-08-14
Publication Date
2025-07-03

AI Technical Summary

Technical Problem

When collecting data, due to limited storage space, excessive data accumulation is caused by insufficient storage space of the microcontroller.

Method used

Only when the temperature probe data of adjacent timestamps meets the preset conditions (such as the internal temperature change is greater than the first preset value or the ambient temperature change is greater than the second preset value), the temperature probe data of the latter time stamp is retained and stored, and the data is managed using a cache strategy, including deletion policies and data copying, ensuring the effective utilization of the storage space.

Benefits of technology

It effectively reduces the storage needs of temperature probe data, avoids the problem of insufficient storage space of microcontrollers, and ensures accurate reflection of temperature change trends and data integrity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024112006_03072025_PF_FP_ABST
    Figure CN2024112006_03072025_PF_FP_ABST
Patent Text Reader

Abstract

A temperature probe data processing method and a related device, which are used for reducing the space occupied by temperature probe data. The method comprises: acquiring temperature probe data, wherein the temperature probe data is internal temperature data of an object under test, which internal temperature data is sampled according to a preset time sequence, and / or external ambient temperature data of said object, which external ambient temperature data is sampled according to the preset time sequence, each piece of internal temperature data carrying a timestamp, and each piece of external ambient temperature data carrying a timestamp; and when temperature probe data of adjacent timestamps meets a preset condition, retaining temperature probe data of the latter timestamp, and storing the temperature probe data of the latter timestamp in a first cache, wherein the preset condition includes: a change in the internal temperature of said object that is represented by the temperature probe data of the adjacent timestamps being greater than a first preset value, and / or a change in the ambient temperature of said object that is represented by the temperature probe data of the adjacent timestamps being greater than a second preset value.
Need to check novelty before this filing date? Find Prior Art

Description

A method for processing temperature probe data and related equipment

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on December 29, 2023, with application number 202311866788X and application name “A method for processing temperature probe data and related equipment”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the technical field of single-chip microcomputer data processing, and in particular to a method for processing temperature probe data and related equipment. Background Art

[0003] As a device for detecting temperature, a wireless temperature probe generally collects temperature data of the object to be measured, and then communicates with a mobile phone APP through the probe to transmit the data of the temperature probe to the mobile phone.

[0004] When the temperature probe collects data, in order to ensure the real-time nature of the data, it generally collects at least one data point per second. However, the temperature probe is small in size, and its microcontroller storage space is generally only a few kilobytes to tens of kilobytes. As the detection time increases, the data will become more and more, resulting in insufficient storage space in the microcontroller.

[0005] Summary of the Invention

[0006] An embodiment of the present application provides a method for processing temperature probe data and related equipment, which is used to save the detection data of the latter timestamp in adjacent timestamps only when the internal temperature change of the object to be measured collected by the temperature probe at adjacent timestamps is greater than a first preset value, or the ambient temperature change of the object to be measured collected by the temperature probe at adjacent timestamps is greater than a second preset value, thereby reducing the data collected by the temperature probe and reducing the space occupied by the temperature probe data.

[0007] A first aspect of an embodiment of the present application provides a data processing method for a temperature probe, comprising:

[0008] Acquire temperature probe data, wherein the temperature probe data is internal temperature data of the object to be measured sampled according to a preset time sequence, and each internal temperature data carries a timestamp, and / or external environment temperature data of the object to be measured sampled according to the preset time sequence, and each external environment temperature data carries a timestamp;

[0009] When the temperature probe data of adjacent timestamps meets the preset conditions, the temperature probe data of the latter timestamp is retained and the temperature probe data of the latter timestamp is stored in the first cache, wherein the preset conditions include: the internal temperature change of the object to be measured represented by the temperature probe data of the adjacent timestamps is greater than the first preset value, and / or the ambient temperature change of the object to be measured represented by the temperature probe data of the adjacent timestamps is greater than the second preset value.

[0010] Optionally, if the temperature probe data of adjacent timestamps does not meet the preset condition, the method further includes:

[0011] Determining whether the object to be measured is in a temperature rising trend based on existing temperature probe data;

[0012] If yes, then obtaining the temperature probe data of the later timestamp among the adjacent timestamps;

[0013] Determining whether the temperature probe data at the subsequent timestamp is greater than a maximum value of the existing temperature probe data;

[0014] If so, the maximum temperature probe data is replaced by the temperature probe data of the next time stamp.

[0015] Optionally, the method further includes:

[0016] Determine whether the acquired temperature probe data is the first temperature probe data in the cache;

[0017] If so, the first temperature probe data is copied, and the copied first temperature probe data is used as the temperature probe data with a timestamp adjacent to the first temperature probe data.

[0018] Optionally, the method further includes:

[0019] When the temperature monitoring of the object to be measured is completed, if the first cache only includes temperature probe data with two time stamps, the time stamp corresponding to the temperature probe data with the later time stamp of the two time stamps is updated to the current time.

[0020] Optionally, when the amount of data from the temperature probe is greater than the storage space of the first cache, the method further includes:

[0021] Delete part of the temperature probe data in the first cache according to a preset deletion strategy, wherein the preset deletion strategy includes at least one of deleting one temperature probe data every N temperature probe data, the temperature probe data to be deleted is smaller than the maximum value of the temperature probe data, and the temperature probe data to be deleted is not the temperature probe data with the last timestamp, and N≥1.

[0022] Optionally, the method further includes:

[0023] saving the temperature probe data not deleted in the first cache to the second cache;

[0024] The temperature probe data acquired later is stored in the second cache.

[0025] Optionally, when the temperature probe data is obtained, the method further includes:

[0026] Determining whether the timestamp in the acquired temperature probe data satisfies the preset time sequence;

[0027] If not, the acquired temperature probe data is discarded.

[0028] A second aspect of an embodiment of the present application provides a data processing device for a temperature probe, comprising:

[0029] an acquisition unit, configured to acquire temperature probe data, wherein the temperature probe data is internal temperature data of the object to be measured sampled according to a preset time sequence, and each internal temperature data carries a timestamp, and / or external environment temperature data of the object to be measured sampled according to the preset time sequence, and each external environment temperature data carries a timestamp;

[0030] A storage unit is used to retain the temperature probe data of a later timestamp when the temperature probe data of adjacent timestamps meets a preset condition, and store the temperature probe data of the later timestamp in a first cache, wherein the preset condition includes: the internal temperature change of the object to be measured represented by the temperature probe data of the adjacent timestamps is greater than a first preset value, and / or the ambient temperature change of the object to be measured represented by the temperature probe data of the adjacent timestamps is greater than a second preset value.

[0031] Preferably, the device further comprises:

[0032] The judgment unit is configured to determine if the temperature probe data of the adjacent time stamps does not meet the preset condition.

[0033] Determining whether the object to be measured is in a temperature rising trend based on existing temperature probe data;

[0034] The acquisition unit is further configured to acquire temperature probe data of a later time stamp among the adjacent time stamps when the object to be measured is in a temperature rising trend;

[0035] The judging unit is further configured to judge whether the temperature probe data at the subsequent timestamp is greater than a maximum value of the existing temperature probe data;

[0036] The storage unit is further configured to replace the maximum temperature probe data with the temperature probe data at the next time stamp when the temperature probe data at the next time stamp is greater than the maximum value of the existing temperature probe data.

[0037] Preferably, the judging unit is further configured to:

[0038] Determine whether the acquired temperature probe data is the first temperature probe data in the cache;

[0039] The device further comprises:

[0040] The copying unit is configured to copy the first temperature probe data and use the copied first temperature probe data as the temperature probe data with a timestamp adjacent to the first temperature probe data.

[0041] The updating unit is configured to update the timestamp corresponding to the later of the two timestamps to the current moment when the temperature monitoring of the object to be measured is completed and if the first cache only includes temperature probe data with two timestamps.

[0042] A deletion unit is used to delete part of the temperature probe data in the first cache according to a preset deletion strategy when the amount of temperature probe data is greater than the storage space of the first cache, wherein the preset deletion strategy includes at least one of deleting one temperature probe data every N temperature probe data, the temperature probe data to be deleted is less than the maximum value of the temperature probe data, and the temperature probe data to be deleted is not the temperature probe data with the last timestamp, and N≥1.

[0043] Storage unit, also used for:

[0044] saving the temperature probe data not deleted in the first cache to the second cache;

[0045] The temperature probe data acquired later is stored in the second cache.

[0046] Preferably, the judging unit is further configured to:

[0047] Determining whether the timestamp in the acquired temperature probe data satisfies the preset time sequence;

[0048] The device further comprises:

[0049] The discarding unit is configured to discard the acquired temperature probe data when the acquired temperature probe data does not satisfy a preset time sequence.

[0050] A third aspect of an embodiment of the present application provides a computer device, comprising a processor, wherein the processor is configured to implement the temperature probe data processing method provided in the first aspect of the embodiment of the present application when executing a computer program stored in a memory.

[0051] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is used to implement the temperature probe data processing method provided in the first aspect of the embodiment of the present application.

[0052] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0053] In an embodiment of the present application, temperature probe data is obtained, wherein the temperature probe data is internal temperature data of the object to be measured sampled according to a preset time series, and / or, the external ambient temperature of the object to be measured sampled according to the preset time series, and each temperature data carries a timestamp; when the temperature probe data of adjacent timestamps meets a preset condition, the temperature probe data of the latter timestamp is retained, and the temperature probe data of the latter timestamp is stored in a first cache, wherein the preset condition includes: the internal temperature change of the object to be measured represented by the temperature probe data of the adjacent timestamps is greater than a first preset value, and / or, the ambient temperature change of the object to be measured represented by the temperature probe data of the adjacent timestamps is greater than a second preset value.

[0054] That is, in the embodiment of the present application, only when the internal temperature change of the object to be measured collected by adjacent timestamps is greater than a first preset value, and / or when the external ambient temperature change of the object to be measured collected by adjacent timestamps is greater than a second preset value, the temperature data of the latter timestamp in the adjacent timestamps is stored, thereby reducing the temperature data collected by the temperature probe and avoiding the problem of insufficient storage space of the microcontroller due to too much temperature probe data. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] FIG1 is a schematic diagram of an embodiment of a method for processing temperature probe data in an embodiment of the present application;

[0056] FIG2 is a schematic diagram of another embodiment of a method for processing temperature probe data in an embodiment of the present application;

[0057] FIG3 is a schematic diagram of another embodiment of a method for processing temperature probe data in an embodiment of the present application;

[0058] FIG4 is a schematic diagram of another embodiment of a method for processing temperature probe data in an embodiment of the present application;

[0059] FIG5 is a schematic diagram of an embodiment of a device for processing temperature probe data in an embodiment of the present application. DETAILED DESCRIPTION

[0060] An embodiment of the present application provides a method for processing temperature probe data and related equipment, which is used to save the detection data of the latter timestamp in adjacent timestamps only when the internal temperature change of the object to be measured collected by the temperature probe at adjacent timestamps is greater than a first preset value, or the ambient temperature change of the object to be measured collected by the temperature probe at adjacent timestamps is greater than a second preset value, thereby reducing the data collected by the temperature probe and reducing the space occupied by the temperature probe data.

[0061] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.

[0062] The terms "first," "second," "third," "fourth," and the like in the specification and claims of this application and in the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having," and any variations thereof, are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such process, method, product, or apparatus.

[0063] For ease of understanding, the following describes a method for processing temperature probe data in an embodiment of the present application. Referring to FIG1 , an embodiment of a method for processing temperature probe data in an embodiment of the present application includes:

[0064] 101. Acquire temperature probe data, wherein the temperature probe data is internal temperature data of the object to be measured sampled according to a preset time sequence, and each internal temperature data carries a timestamp, and / or external environment temperature data of the object to be measured sampled according to the preset time sequence, and each external environment temperature data carries a timestamp;

[0065] In actual practice, the temperature probe is generally partially inserted into the object to be measured to measure the temperature inside the object to be measured, and partially remains outside the object to be measured to measure the ambient temperature of the object to be measured.

[0066] For example, when the object to be measured is food, part of the probe is generally inserted into the food to measure the internal temperature of the food, while part of the probe remains outside the food to measure the ambient temperature of the food, that is, the external temperature of the food.

[0067] As a method of collecting data using a temperature probe, in order to ensure that the temperature data collected by the temperature probe can reflect the real-time change process of the internal temperature of the object to be measured, the temperature probe generally collects the internal temperature data of the object to be measured according to a preset time series when working, or collects the ambient temperature data of the object to be measured according to a preset time series. The preset time series can be set according to actual conditions, such as the time series is to collect temperature data once every 1 second, or once every 2 seconds. That is, there is no specific restriction on the time interval of the preset time series in the embodiment of the present application.

[0068] When the temperature probe collects data, it generally collects and stores the temperature data in a preset format. For example, each collected temperature data carries a timestamp to indicate the time when the temperature was collected.

[0069] 102. When the temperature probe data of adjacent timestamps meets a preset condition, the temperature probe data of the subsequent timestamp is retained and the temperature probe data of the subsequent timestamp is stored in a first cache, wherein the preset condition includes: the internal temperature change of the object to be measured represented by the temperature probe data of the adjacent timestamps is greater than a first preset value, and / or, the ambient temperature change of the object to be measured represented by the temperature probe data of the adjacent timestamps is greater than a second preset value.

[0070] Specifically, in order to avoid the problem of insufficient storage space inside the single-chip microcomputer due to the collection of a large amount of temperature data due to the time interval between adjacent timestamps being too close, the present application retains the temperature probe data of the latter timestamp in the adjacent timestamps only when the temperature probe data of the adjacent timestamps meets the preset conditions, and stores the temperature probe data of the latter timestamp in the first cache of the single-chip microcomputer, wherein the preset conditions include: the internal temperature change of the object to be measured represented by the temperature probe data of the adjacent timestamps is greater than the first preset value, and / or the external environment temperature change of the object to be measured represented by the temperature probe data of the adjacent timestamps is greater than the second preset value.

[0071] For example, when the temperature data collected by the temperature probe is obtained, the temperature probe data of the latter timestamp in the adjacent timestamps will be retained only when the internal temperature change of the object to be measured collected at adjacent timestamps is greater than 1°C, and / or the external environment temperature change of the object to be measured collected at adjacent timestamps is greater than 5°C, thereby avoiding the problem of insufficient storage space of the microcontroller due to too much collected temperature probe data.

[0072] Furthermore, in order to avoid temperature data errors, when the embodiment of the present application obtains temperature probe data, it is also necessary to determine whether the timestamp in the temperature probe data meets the preset time sequence. If the collected temperature probe data does not meet the preset time sequence, the obtained temperature probe data is discarded.

[0073] For example, if it is assumed that the temperature probe collects temperature data every 1 second, and the last timestamp is the temperature data collected at the 5th second, if the currently acquired temperature probe data is the temperature data collected at the 4th second, then the current temperature data is determined to be invalid data or erroneous data, and the temperature data is discarded.

[0074] Specifically, the type of temperature probe data in step 101 and the preset condition in step 102 correspond to each other. For example, when the temperature probe data is the internal temperature data of the object to be measured sampled according to a preset time series, the preset condition is that the change in the internal temperature of the object to be measured represented by the temperature probe data of adjacent timestamps is greater than a first preset value, and when the temperature probe data is the external ambient temperature data of the object to be measured sampled according to the preset time series, the preset condition is that the change in the ambient temperature of the object to be measured represented by the temperature probe data of adjacent timestamps is greater than a second preset value, and when the temperature probe data includes the external ambient temperature data of the object to be measured sampled according to the preset time series, the preset condition is that the change in the ambient temperature of the object to be measured represented by the temperature probe data of adjacent timestamps is greater than a second preset value. When the internal temperature data of the object to be measured and the external environmental temperature data of the object to be measured sampled according to the preset time series are used, the preset condition may be that the internal temperature change of the object to be measured represented by the temperature probe data of adjacent time stamps is greater than a first preset value, or, the environmental temperature change of the object to be measured represented by the temperature probe data of adjacent time stamps is greater than a second preset value, or, the internal temperature change of the object to be measured represented by the temperature probe data of adjacent time stamps is greater than the first preset value, and at the same time, the environmental temperature change of the object to be measured represented by the temperature probe data of adjacent time stamps is greater than the second preset value. In actual situations, it can be determined according to the circumstances, and no specific restrictions are made here.

[0075] In an embodiment of the present application, temperature probe data is obtained, wherein the temperature probe data is internal temperature data of the object to be measured sampled according to a preset time series, and / or, the external ambient temperature of the object to be measured sampled according to the preset time series, and each temperature data carries a timestamp; when the temperature probe data of adjacent timestamps meets a preset condition, the temperature probe data of the latter timestamp is retained, and the temperature probe data of the latter timestamp is stored in a first cache, wherein the preset condition includes: the internal temperature change of the object to be measured represented by the temperature probe data of the adjacent timestamps is greater than a first preset value, and / or, the ambient temperature change of the object to be measured represented by the temperature probe data of the adjacent timestamps is greater than a second preset value.

[0076] That is, in the embodiment of the present application, only when the internal temperature change of the object to be measured collected by adjacent timestamps is greater than a first preset value, and / or when the external ambient temperature change of the object to be measured collected by adjacent timestamps is greater than a second preset value, the temperature data of the latter timestamp in the adjacent timestamps is stored, thereby reducing the temperature data collected by the temperature probe and avoiding the problem of insufficient storage space of the microcontroller due to too much temperature probe data.

[0077] Based on the embodiment described in FIG1 , if the temperature inside the object to be measured changes too slowly, such that the temperature data of adjacent time stamps cannot satisfy that the temperature change inside the object to be measured is greater than a first preset value, and / or the temperature data of adjacent time stamps cannot satisfy that the ambient temperature change of the object to be measured is greater than a second preset value, then the temperature probe cannot collect valid temperature change data. In this embodiment of the present application, when the number of temperature probes is obtained, the following steps may also be performed. Please refer to FIG2 , which is another embodiment of the temperature probe data processing method:

[0078] 201. Acquire temperature probe data, wherein the temperature probe data is internal temperature data of the object to be measured sampled according to a preset time sequence, and / or external ambient temperature of the object to be measured sampled according to the preset time sequence, and each temperature data carries a timestamp;

[0079] The description of step 201 is similar to that of step 101 and will not be repeated here.

[0080] 202. If the number of temperature probes at adjacent timestamps does not meet the preset condition, determine whether the object to be measured is in a temperature rising trend based on the existing temperature probe data. If so, execute step 203.

[0081] If the temperature inside and / or outside the object to be measured changes slowly, so that the temperature data of adjacent timestamps do not meet the preset conditions, it is determined whether the object to be measured is in a temperature rising trend based on the existing temperature probe data.

[0082] Specifically, when determining whether the object to be measured is in a temperature rising trend, it can be determined whether the collected temperature probe data increases gradually or increases in a spiral manner, as long as the temperature of the object to be measured is in a temperature rising state.

[0083] 203. Obtain temperature probe data of a later timestamp among the adjacent timestamps;

[0084] If it is determined that the object to be measured is in a temperature rising trend, the temperature probe data of the next time stamp among the adjacent time stamps is obtained, and step 204 is performed on the temperature probe data of the next time stamp obtained.

[0085] 204. Determine whether the temperature probe data of the subsequent timestamp is greater than the maximum value of the existing temperature probe data. If so, execute step 205.

[0086] Determine whether the temperature probe data at the time after the adjacent timestamps is greater than the maximum value of the existing temperature probe data. If so, execute step 205.

[0087] 205. Replace the maximum temperature probe data with the temperature probe data of the next timestamp.

[0088] If the temperature probe data obtained at the next time of the adjacent timestamp is greater than the maximum value of the existing temperature probe data, the maximum temperature probe data is replaced with the temperature probe data of the next timestamp, so that the collected temperature probe data retains the highest temperature value of the object to be measured.

[0089] For easier understanding, the following example illustrates:

[0090] Assume that the existing temperature probe data is: 1s-12°C (representing that the temperature data collected in the first second is 12°C), 5s-12.4°C, 6s-12.5°C, 8s-12.6°C, and assume that the temperature data collected at the 9th second is 12.61°C, that is, the temperature data change of adjacent time stamps does not meet the preset condition (assuming the preset condition is that the temperature change of adjacent time stamps is greater than 1°C), then the 8th-12.6°C is replaced with the 9th-12.61°C, so that the highest temperature of the object to be measured can be reflected without increasing the amount of data.

[0091] In the embodiment of the present application, even if the temperature change of the object to be measured is too slow, so that the temperature change of the object to be measured does not meet the preset conditions, a temperature value reflecting the internal temperature change of the object to be measured can still be collected, thereby realizing the measurement of the temperature change trend of the object to be measured.

[0092] Based on the embodiment described in FIG1 , assuming that an error occurs in the object to be measured in FIG1 , resulting in the temperature inside the object to be measured being unable to change, in order to reflect the temperature change trend of the object to be measured, the embodiment of the present application may further perform the following steps. Referring to FIG3 , another embodiment of the method for processing temperature probe data in the embodiment of the present application includes:

[0093] 301. Determine whether the acquired temperature probe data is the first temperature probe data in the cache. If so, execute step 302.

[0094] In order to avoid errors in the object to be measured, which may cause the temperature inside the object to be measured to be unable to change, in order to reflect the temperature change trend inside the object to be measured, the embodiment of the present application determines whether the temperature probe data is the first temperature probe data when the temperature probe data is obtained. Specifically, when determining the first temperature probe data, it can be determined based on the timestamp of the temperature probe data, or it can be determined whether the temperature probe data is stored in the first cache. If the temperature probe data is not stored in the first cache, it indicates that the temperature probe data is the first temperature probe data. Otherwise, it indicates that the temperature probe data is not the first temperature probe data.

[0095] 302 : Copy the first temperature probe data, and use the copied first temperature probe data as temperature probe data with a timestamp adjacent to the first temperature probe data.

[0096] If the temperature probe data is the first temperature probe data, in order to avoid internal errors in the object to be measured, the embodiment of the present application can also obtain the temperature change trend of the object to be measured. The embodiment of the present application copies the first temperature probe data and uses the copied first temperature probe data as the temperature probe data with an adjacent timestamp to the first temperature probe data.

[0097] 303. When the temperature monitoring of the object to be measured is finished, if the first cache only includes temperature probe data with two time stamps, then the timestamp corresponding to the temperature probe data with the later time stamp of the two timestamps is updated to the current time.

[0098] When the temperature monitoring of the object to be measured is completed, if the first cache only includes temperature probe data with two time stamps, it indicates that there is a high possibility that the object to be measured has an error, resulting in the temperature inside the object to be measured not changing. The embodiment of the present application updates the timestamp corresponding to the temperature probe data of the latter of the two timestamps to the current moment, so that the temperature change of the object to be measured can be reflected according to the change in time.

[0099] In an embodiment of the present application, the first temperature probe data is copied twice, and the copied first temperature probe data is used as the temperature probe data with an adjacent timestamp to the first temperature probe data. When there are only two temperature probe data in the first cache, the timestamp corresponding to the temperature probe data with the latter timestamp is updated to the current moment, thereby avoiding the normal measurement of the internal temperature trend of the object to be measured when an error occurs in the object to be measured.

[0100] Based on the embodiment described in FIG1 , if the storage space of the first cache is full due to the collected temperature probe data, the embodiment of the present application will delete part of the temperature probe data in the first cache according to a preset deletion policy, thereby achieving full utilization of the cache in the single-chip microcomputer while retaining the temperature trend of the object to be measured. Referring to FIG4 , another embodiment of the method for processing temperature probe data in the embodiment of the present application includes:

[0101] 401. Delete part of the temperature probe data in the first cache according to a preset deletion strategy, wherein the preset deletion strategy includes at least one of deleting one temperature probe data every N temperature probe data, the temperature probe data to be deleted is smaller than the maximum value of the temperature probe data, and the temperature probe data to be deleted is not the temperature probe data with the last timestamp, wherein N≥1.

[0102] When the temperature probe data storage in the first cache of the microcontroller overflows, an embodiment of the present application will adopt a preset deletion strategy to delete part of the temperature probe data in the first cache, wherein the preset deletion strategy includes deleting one temperature probe data every N temperature probe data, the temperature probe data to be deleted is smaller than the maximum value of the temperature probe data, and the temperature probe data to be deleted is not the temperature probe data with the last timestamp.

[0103] Specifically, assuming that the data before deletion is Table 1, and the data after deletion is Table 2:

[0104] The deletion strategy of the temperature probe data in Table 1 is: delete one data every two data, and the deleted data is not the temperature probe data with the latest timestamp.

[0105] 402. Save the temperature probe data not deleted in the first cache to the second cache;

[0106] It should be noted that when the single-chip microcomputer stores data, it executes the storage in sequence, so after deleting the data, a blank area will be left. Therefore, after deleting the temperature probe data in Table 1 (that is, the first cache), the embodiment of the present application stores the temperature probe data in Table 1 in Table 2 (that is, the second cache), and automatically stores the temperature probe data obtained later in the second cache to prevent data storage errors.

[0107] 403. Store the temperature probe data obtained later in the second cache.

[0108] In order to prevent the storage address of the temperature probe data obtained later from being wrong, the embodiment of the present application also stores the temperature probe data obtained later in the second cache, thereby ensuring the integrity and accuracy of the temperature probe data.

[0109] In an embodiment of the present application, in order to avoid wasting space in the blank area of ​​the first cache after deleting part of the temperature probe data from the first cache, the embodiment of the present application sets a first cache and a second cache, and stores the temperature probe data that has not been deleted in the first cache in the second cache, and also stores the temperature probe data obtained later in the second cache, thereby avoiding the waste of storage space in the cache on the one hand, and ensuring the integrity and accuracy of the temperature probe data.

[0110] The data processing method of the temperature probe in the embodiment of the present application is described in detail above. Next, the data processing device of the temperature probe in the embodiment of the present application is described in detail. Please refer to Figure 5. An embodiment of the data processing device of the temperature probe in the embodiment of the present application includes:

[0111] An acquisition unit 501 is configured to acquire temperature probe data, wherein the temperature probe data is internal temperature data of the object to be measured sampled according to a preset time sequence, each internal temperature data having a timestamp, and / or external ambient temperature data of the object to be measured sampled according to the preset time sequence, each external ambient temperature data having a timestamp;

[0112] The storage unit 502 is used to retain the temperature probe data of the subsequent timestamp when the temperature probe data of adjacent timestamps meets a preset condition, and store the temperature probe data of the subsequent timestamp in a first cache, wherein the preset condition includes: the internal temperature change of the object to be measured represented by the temperature probe data of the adjacent timestamps is greater than a first preset value, and / or the ambient temperature change of the object to be measured represented by the temperature probe data of the adjacent timestamps is greater than a second preset value.

[0113] Preferably, the device further comprises:

[0114] The judgment unit 503, if the temperature probe data of the adjacent time stamps does not meet the preset condition,

[0115] Determining whether the object to be measured is in a temperature rising trend based on existing temperature probe data;

[0116] The acquisition unit 501 is further configured to acquire the temperature probe data of the latter time stamp among the adjacent time stamps when the object to be measured is in a temperature rising trend;

[0117] The judging unit 503 is further configured to judge whether the temperature probe data at the subsequent timestamp is greater than the maximum value of the existing temperature probe data;

[0118] The storage unit 502 is further configured to replace the maximum temperature probe data with the temperature probe data at the next time stamp when the temperature probe data at the next time stamp is greater than the maximum value of the existing temperature probe data.

[0119] Preferably, the judging unit 503 is further configured to:

[0120] Determine whether the acquired temperature probe data is the first temperature probe data in the cache;

[0121] The device further comprises:

[0122] The copying unit 504 is configured to copy the first temperature probe data and use the copied first temperature probe data as the temperature probe data with a timestamp adjacent to the first temperature probe data.

[0123] The updating unit 505 is configured to update the timestamp corresponding to the later of the two timestamps to the current time when the temperature monitoring of the object to be measured is finished and if the first cache only includes temperature probe data with two timestamps.

[0124] The deletion unit 506 is used to delete part of the temperature probe data in the first cache according to a preset deletion strategy when the amount of temperature probe data is greater than the storage space of the first cache, wherein the preset deletion strategy includes at least one of deleting one temperature probe data every N temperature probe data, the temperature probe data to be deleted is less than the maximum value of the temperature probe data, and the temperature probe data to be deleted is not the temperature probe data with the last timestamp, and N≥1.

[0125] The storage unit 502 is further configured to:

[0126] saving the temperature probe data not deleted in the first cache to the second cache;

[0127] The temperature probe data acquired later is stored in the second cache.

[0128] Preferably, the judging unit 503 is further configured to:

[0129] Determining whether the timestamp in the acquired temperature probe data satisfies the preset time sequence;

[0130] The device further comprises:

[0131] The discarding unit 507 is configured to discard the acquired temperature probe data when the acquired temperature probe data does not satisfy a preset time sequence.

[0132] In an embodiment of the present application, temperature probe data is acquired by an acquisition unit 501, wherein the temperature probe data is internal temperature data of the object to be measured sampled according to a preset time series, and each internal temperature data carries a timestamp, and / or, external environment temperature data of the object to be measured sampled according to the preset time series, and each external environment temperature data carries a timestamp; when the temperature probe data of adjacent timestamps meets a preset condition, the temperature probe data of the latter timestamp is retained by the storage unit 502, and the temperature probe data of the latter timestamp is stored in a first cache, wherein the preset condition includes: the internal temperature change of the object to be measured represented by the temperature probe data of the adjacent timestamps is greater than a first preset value, and / or, the ambient temperature change of the object to be measured represented by the temperature probe data of the adjacent timestamps is greater than a second preset value.

[0133] That is, in the embodiment of the present application, only when the internal temperature change of the object to be measured collected by adjacent timestamps is greater than a first preset value, and / or when the external ambient temperature change of the object to be measured collected by adjacent timestamps is greater than a second preset value, the temperature data of the latter timestamp in the adjacent timestamps is stored, thereby reducing the temperature data collected by the temperature probe and avoiding the problem of insufficient storage space of the microcontroller due to too much temperature probe data.

[0134] The above describes the data processing device of the temperature probe in the embodiment of the present application from the perspective of modular functional entities. The following describes the computer device in the embodiment of the present application from the perspective of hardware processing:

[0135] The computer device is used to implement the function of a data processing device of a temperature probe. In one embodiment of the present application, the computer device includes:

[0136] processor and memory;

[0137] The memory is used to store computer programs, and when the processor is used to execute the computer programs stored in the memory, the steps shown in Figures 1 to 4 can be implemented.

[0138] It can be understood that when the processor in the computer device described above executes the computer program, it can also realize the functions of the various units in the corresponding device embodiments described above, which will not be repeated here. Exemplarily, the computer program can be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor to complete this application. The one or more modules / units can be a series of computer program instruction segments that can perform specific functions, and the instruction segments are used to describe the execution process of the computer program in the data processing device of the temperature probe. For example, the computer program can be divided into the various units in the data processing device of the temperature probe described above, and each unit can realize the specific functions described in the data processing device of the corresponding temperature probe described above.

[0139] The computer device may be a computing device such as a desktop computer, laptop, PDA, or cloud server. The computer device may include, but is not limited to, a processor and memory. Those skilled in the art will appreciate that a processor and memory are merely examples of computer devices and do not constitute a limitation of the computer device. The computer device may include more or fewer components, or a combination of certain components, or different components. For example, the computer device may also include input and output devices, network access devices, buses, and the like.

[0140] The processor may be a central processing unit (CPU), other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the computer device, connecting various parts of the entire computer device using various interfaces and lines.

[0141] The memory can be used to store the computer programs and / or modules, and the processor implements various functions of the computer device by running or executing the computer programs and / or modules stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the terminal, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage device.

[0142] The present application also provides a computer-readable storage medium, which is used to implement the function of a data processing device of a temperature probe, and stores a computer program thereon. When the computer program is executed by a processor, the processor can be used to execute the steps shown in Figures 1 to 4.

[0143] It is understandable that if the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a corresponding computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned corresponding embodiment methods, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device that can carry the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practices in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practices, computer-readable media do not include electrical carrier signals and telecommunication signals.

[0144] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0145] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0146] 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 these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0147] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0148] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A data processing method for a temperature probe, characterized in that, Including: Obtaining temperature probe data, where the temperature probe data is the internal temperature data of the object to be measured sampled according to a preset time series, and each internal temperature data carries a timestamp, and / or the external environmental temperature data of the object to be measured sampled according to the preset time series, and each external environmental temperature data carries a timestamp; When the temperature probe data with adjacent timestamps meets the preset conditions, the temperature probe data with the later timestamp is retained and stored in the first cache, where the preset conditions include: the change in the internal temperature of the object to be measured represented by the temperature probe data with adjacent timestamps is greater than a first preset value, and / or the change in the environmental temperature of the object to be measured represented by the temperature probe data with adjacent timestamps is greater than a second preset value.

2. The method according to claim 1, characterized in that When the temperature probe data with adjacent timestamps does not meet the preset conditions, the method further includes: Judging whether the object to be measured is in an increasing temperature trend based on the existing temperature probe data; If so, obtaining the temperature probe data with the later timestamp among the adjacent timestamps; Judging whether the temperature probe data with the later timestamp is greater than the maximum value in the existing temperature probe data; If so, replacing the maximum temperature probe data with the temperature probe data with the later timestamp.

3. The method according to claim 1, characterized in that, The method further includes: Judging whether the obtained temperature probe data is the first temperature probe data in the cache; If so, copying the first temperature probe data, and using the copied first temperature probe data as the temperature probe data with a timestamp adjacent to the first temperature probe data.

4. The method according to claim 3, characterized in that, The method further includes: When ending the temperature monitoring of the object to be measured, if the first cache only includes temperature probe data with two timestamps, updating the timestamp corresponding to the temperature probe data with the later timestamp among the two timestamps to the current moment.

5. The method according to claim 1, wherein When the data volume of the temperature probe is greater than the storage space of the first cache, the method further includes: Deleting some temperature probe data in the first cache according to a preset deletion strategy, where the preset deletion strategy includes deleting one temperature detection data every N temperature probe data, the temperature probe data to be deleted is less than the maximum value in the temperature probe data, and the temperature probe data to be deleted is not the temperature detection data with the last timestamp, where N≥1. The method further includes:

6. The method according to claim 5, wherein Saving the undeleted temperature probe data in the first cache to a second cache; And storing the subsequently obtained temperature probe data in the second cache. When obtaining the temperature probe data, the method further includes:

7. The method according to claim 1, characterized in that, Judging whether the timestamp in the obtained temperature probe data meets the preset time series; If not, discarding the obtained temperature probe data. Including:

8. A data processing device for a temperature probe, characterized in that, ​ An acquisition unit for acquiring temperature probe data, where the temperature probe data is internal temperature data of a to-be-detected object sampled according to a preset time series, and each internal temperature data carries a timestamp, and / or external environmental temperature data of the to-be-detected object sampled according to the preset time series, and each external environmental temperature data carries a timestamp; A storage unit for retaining the temperature probe data of the later timestamp and storing the temperature probe data of the later timestamp in a first cache when the temperature probe data of adjacent timestamps meets a preset condition, where the preset condition includes: the change in the internal temperature of the to-be-detected object represented by the temperature probe data of the adjacent timestamps is greater than a first preset value, and / or the change in the environmental temperature of the to-be-detected object represented by the temperature probe data of the adjacent timestamps is greater than a second preset value.

9. A computer device, comprising a processor, characterized in that, When the processor executes a computer program stored in a memory, it is used to implement the data processing method of the temperature probe as described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it is used to implement the data processing method of the temperature probe as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Temperature probe data processing method and related equipment

    CN120232554A

  • Accidental interruption monitoring method and device, electronic equipment and computer storage medium

    CN113108950A

  • Data storage method and device, terminal equipment and storage medium

    CN113779426A

  • Temperature control method of oven and oven

    CN114010072A

  • Homing prompting method and device of wireless temperature measuring probe, electronic equipment and medium

    CN114354002A