CN112964286A - Data marking method, temperature and humidity recorder and storage medium - Google Patents

Data marking method, temperature and humidity recorder and storage medium Download PDF

Info

Publication number
CN112964286A
CN112964286A CN202110141895.0A CN202110141895A CN112964286A CN 112964286 A CN112964286 A CN 112964286A CN 202110141895 A CN202110141895 A CN 202110141895A CN 112964286 A CN112964286 A CN 112964286A
Authority
CN
China
Prior art keywords
data
time
real
marking
temperature
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110141895.0A
Other languages
Chinese (zh)
Other versions
CN112964286B (en
Inventor
王�华
黄金旭
邱海矶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Megain Technology Co ltd
Original Assignee
Zhuhai Megain Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Megain Technology Co ltd filed Critical Zhuhai Megain Technology Co ltd
Priority to CN202110141895.0A priority Critical patent/CN112964286B/en
Publication of CN112964286A publication Critical patent/CN112964286A/en
Application granted granted Critical
Publication of CN112964286B publication Critical patent/CN112964286B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D9/00Recording measured values
    • G01D9/28Producing one or more recordings, each recording being of the values of two or more different variables
    • G01D9/285Producing one or more recordings, each recording being of the values of two or more different variables producing additional marks (e.g. reference lines time marks)

Abstract

The invention relates to the technical field of detection, and discloses a data marking method, a temperature and humidity recorder and a storage medium, wherein the method comprises the following steps: reading real-time data acquired by a temperature and humidity sensor, preprocessing the real-time data, storing the preprocessed real-time data in a storage unit, detecting whether a marking trigger signal for triggering a temperature and humidity recorder to mark data is received, if the signal is received, constructing a marking area, selecting a time node from preset data acquisition time nodes, reading the real-time data corresponding to the time node from the storage unit, and obtaining data to be marked; and then storing the data to be marked into the marking area to obtain marked data. The technical scheme of the method realizes the marking of the real-time data by the temperature and humidity recorder, facilitates the subsequent retrieval and checking of the real-time data of a certain specific time node, reduces the workload of data retrieval, and can visually check the real-time data.

Description

Data marking method, temperature and humidity recorder and storage medium
Technical Field
The invention relates to the technical field of detection, in particular to a data marking method, a temperature and humidity recorder and a storage medium.
Background
Along with the rapid development in the field of logistics cold chain transportation, the effect of the temperature and humidity data recorder in the field of logistics transportation is gradually remarkable, the temperature and humidity data recorder can record temperature and humidity data of articles in the whole transportation process and store the temperature and humidity data in the storage module in the temperature and humidity data recorder, and a user can read the temperature and humidity data stored in the temperature and humidity data recorder through mobile communication equipment.
At present, a temperature and humidity recorder records temperature and humidity data collected in each sampling time, and a user finally acquires all the temperature and humidity data, so that the temperature and humidity data at a certain specific time node cannot be intuitively acquired from the temperature and humidity recorder.
However, in some fields, a user requires to be able to mark temperature and humidity data in the temperature and humidity recorder, and the subsequent temperature and humidity data of a certain specific time node can be conveniently and directly acquired, so that the workload of data retrieval is reduced.
Disclosure of Invention
The invention mainly aims to solve the technical problem that temperature and humidity data cannot be visually checked because a moderate temperature and humidity recorder does not mark and record the temperature and humidity data in the prior art.
The invention provides a data marking method, which is applied to a temperature and humidity recorder, wherein the temperature and humidity recorder comprises a storage unit and at least one temperature and humidity sensor, and the data marking method comprises the following steps:
reading real-time data acquired by the at least one temperature and humidity sensor, preprocessing the real-time data according to a preset data storage format, and storing the preprocessed real-time data in the storage unit;
detecting whether a marker trigger signal is received;
if so, constructing a marking area;
selecting at least one time node from preset data acquisition time nodes, and reading real-time data corresponding to the at least one time node from the storage unit to obtain a data set to be marked;
and storing the data set to be marked into the marking area for marking to obtain marked data.
Optionally, in a first implementation manner of the first aspect of the present invention, the mark trigger signal includes a first trigger signal sent by an external device and/or a second trigger signal generated inside the temperature and humidity recorder.
Optionally, in a second implementation manner of the first aspect of the present invention, the storing the real-time data into the storage unit after preprocessing the real-time data according to a preset data storage format includes:
cleaning the real-time data to obtain cleaned real-time data;
sequencing the cleaned real-time data according to the sequence of acquisition time to obtain a data sequence, copying the real-time data in the data sequence to a corresponding storage grid in a storage unit according to a preset time axis in the storage unit for storage, wherein the preset time axis is used for representing data acquisition time nodes corresponding to at least one temperature and humidity sensor when acquiring the real-time data, the time axis is divided into N data acquisition time nodes, and N is a positive integer.
Optionally, in a third implementation manner of the first aspect of the present invention, the constructing a mark region includes:
judging whether the mark trigger signal belongs to the first trigger signal;
if so, constructing a first marker tag according to a preset time axis in the storage unit;
and creating a first data storage area based on the first marking label, and associating the first data storage area with the first marking label to obtain a marking area.
Optionally, in a fourth implementation manner of the first aspect of the present invention, if the marking trigger signal belongs to the first trigger signal, the selecting the at least one time node from preset data acquisition time nodes, and reading real-time data corresponding to the at least one time node from the storage unit to obtain a data set to be marked includes:
selecting at least one time node from the N data acquisition time nodes;
and searching the data acquisition time node corresponding to the at least one time node from the storage grid of the storage unit, and extracting corresponding real-time data based on the data acquisition time node to obtain a data set to be marked.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the constructing a mark region further includes:
if the marking trigger signal is judged not to belong to the first trigger signal, determining the marking trigger signal as the second trigger signal;
carrying out anomaly detection on the acquired real-time data to obtain anomalous data;
extracting position data and/or time data in the abnormal data;
and generating a second tag label according to the position data and/or the time data, creating a second data storage area based on the second tag label, and associating the second data storage area with the second tag label to obtain a tag area.
Optionally, in a sixth implementation manner of the first aspect of the present invention, if the marking trigger signal is the second trigger signal, the selecting the at least one time node from preset data acquisition time nodes, and reading real-time data corresponding to the at least one time node from the storage unit to obtain a data set to be marked includes:
selecting at least one time node from the N data acquisition time nodes;
comparing the at least one time node with the time data in the abnormal data, and screening the abnormal time node in the at least one time node according to the comparison result;
and searching the data acquisition time node corresponding to the abnormal time node from the storage grid of the storage unit, and extracting corresponding real-time data based on the data acquisition time node to obtain a data set to be marked.
A second aspect of the present invention provides a temperature and humidity recorder, including:
the preprocessing module is used for reading real-time data acquired by the at least one temperature and humidity sensor, preprocessing the real-time data according to a preset data storage format and storing the preprocessed real-time data into the storage unit, wherein the real-time data comprises temperature and humidity data, position data and time data;
the detection module is used for detecting whether a mark trigger signal is received or not;
the reading module is used for selecting at least one time node from preset data acquisition time nodes when a trigger signal is received, and reading real-time data corresponding to the at least one time node from the storage unit to obtain a data set to be marked;
and the marking module is used for storing the data set to be marked into the marking area for marking to obtain marked data.
Optionally, in a first implementation manner of the second aspect of the present invention, the mark trigger signal includes a first trigger signal sent by an external device and/or a second trigger signal generated inside the temperature and humidity recorder.
Optionally, in a second implementation manner of the second aspect of the present invention, the preprocessing module includes a reading unit and a preprocessing unit, and the reading unit is specifically configured to: reading real-time data acquired by the at least one temperature and humidity sensor; the preprocessing unit is specifically configured to:
cleaning the real-time data to obtain cleaned real-time data;
sequencing the cleaned real-time data according to the sequence of acquisition time to obtain a data sequence, copying the real-time data in the data sequence to a corresponding storage grid in a storage unit according to a preset time axis in the storage unit for storage, wherein the preset time axis is used for representing data acquisition time nodes corresponding to at least one temperature and humidity sensor when acquiring the real-time data, the time axis is divided into N data acquisition time nodes, the N data acquisition time nodes are in one-to-one correspondence with the cleaned real-time data in the N data acquisition time nodes, and N is a positive integer.
Optionally, in a third implementation manner of the second aspect of the present invention, the building module is specifically configured to:
judging whether the mark trigger signal belongs to the first trigger signal;
if so, constructing a first marker tag according to a preset time axis in the storage unit;
and creating a first data storage area based on the first marking label, and associating the first data storage area with the first marking label to obtain a marking area.
Optionally, in a fourth implementation manner of the second aspect of the present invention, when the mark trigger signal belongs to the first trigger signal, the reading module is specifically configured to:
selecting at least one time node from the N data acquisition time nodes;
and searching the data acquisition time node corresponding to the at least one time node from the storage grid of the storage unit, and extracting corresponding real-time data based on the data acquisition time node to obtain a data set to be marked.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the building module is specifically configured to:
if the marking trigger signal is judged not to belong to the first trigger signal, determining the marking trigger signal as the second trigger signal;
carrying out anomaly detection on the acquired real-time data to obtain anomalous data;
extracting position data and/or time data in the abnormal data;
and generating a second tag label according to the position data and/or the time data, creating a second data storage area based on the second tag label, and associating the second data storage area with the second tag label to obtain a tag area.
Optionally, in a sixth implementation manner of the second aspect of the present invention, if the flag trigger signal is the second trigger signal, the reading module is specifically configured to:
selecting at least one time node from the N data acquisition time nodes;
comparing the at least one time node with the time data in the abnormal data, and screening the abnormal time node in the at least one time node according to the comparison result;
and searching the data acquisition time node corresponding to the abnormal time node from the storage grid of the storage unit, and extracting corresponding real-time data based on the data acquisition time node to obtain a data set to be marked.
A third aspect of the present invention provides a temperature and humidity recorder, including: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor invokes the instructions in the memory to cause the humiture recorder device to perform the steps of the data tagging method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon instructions which, when run on a computer, cause the computer to perform the steps of the data marking method described above.
In the technical scheme provided by the invention, real-time data acquired by a temperature and humidity sensor is read, preprocessed and stored in a storage unit, whether a marking trigger signal for triggering a temperature and humidity recorder to mark data is received or not is detected, if the signal is received, a marking area is constructed, a time node is selected from preset data acquisition time nodes, and real-time data corresponding to the time node is read from the storage unit to obtain data to be marked; and then storing the data to be marked into the marking area to obtain marked data. The technical scheme provided by the invention realizes the marking of the real-time data by the temperature and humidity recorder, facilitates the subsequent retrieval and checking of the real-time data of a certain specific time node, reduces the workload of data retrieval, and can visually check the real-time data.
Drawings
FIG. 1 is a schematic diagram of a first embodiment of a data marking method according to an embodiment of the present invention;
FIG. 2 is a diagram of a second embodiment of a data marking method according to an embodiment of the present invention;
FIG. 3 is a diagram of a third embodiment of a data marking method according to an embodiment of the present invention;
FIG. 4 is a diagram of a fourth embodiment of a data marking method according to an embodiment of the present invention;
fig. 5 is a schematic view of an embodiment of a temperature and humidity recorder in an embodiment of the present invention;
fig. 6 is a schematic view of another embodiment of the humiture recorder in the embodiment of the present invention;
fig. 7 is a schematic diagram of another embodiment of the humiture recorder in the embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a data marking method, a device, equipment and a storage medium, wherein real-time data acquired by a temperature and humidity sensor are read, preprocessed and stored in a storage unit, whether a marking trigger signal for triggering a temperature and humidity recorder to mark data is received or not is detected, if the signal is received, a marking area is constructed, a time node is selected from preset data acquisition time nodes, and real-time data corresponding to the time node is read from the storage unit to obtain data to be marked; and then storing the data to be marked into the marking area to obtain marked data. The embodiment of the invention realizes the marking of the real-time data by the temperature and humidity recorder, facilitates the subsequent retrieval and checking of the real-time data of a certain specific time node, reduces the workload of data retrieval, and simultaneously facilitates the visual checking of the real-time data.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For the sake of understanding, the following describes specific contents of an embodiment of the present invention, and referring to fig. 1, a first embodiment of a data tagging method according to an embodiment of the present invention includes:
101, reading real-time data acquired by at least one temperature and humidity sensor, preprocessing the real-time data according to a preset data storage format, and storing the preprocessed real-time data in a storage unit;
the implementation device of the technical scheme provided by this embodiment takes a temperature and humidity recorder as an example, where the temperature and humidity recorder includes a storage unit and at least one temperature and humidity sensor. Real-time data of an external environment are acquired in real time through a temperature and humidity sensor on a temperature and humidity recorder, the real-time data are acquired according to the acquisition frequency of the temperature and humidity recorder in the acquisition process, the acquisition frequency of the temperature and humidity recorder corresponds to different data acquisition time nodes, namely the temperature and humidity recorder acquires the real-time data according to the different data acquisition time nodes, the acquired real-time data are preprocessed according to a data storage format preset in the temperature and humidity recorder, the preprocessed real-time data are sequenced according to the sequence of acquisition time to obtain a data sequence, and the real-time data in the data sequence are copied to a storage grid corresponding to a storage unit according to a time axis preset in the storage unit for storage, wherein the acquired real-time data comprise temperature and humidity values, And position data, time data and the like, wherein the real-time data is preprocessed, namely the real-time data is cleaned, redundant data is removed, and the cleaned real-time data is obtained.
In this embodiment, the real-time data is copied to a storage grid corresponding to the storage unit for storage according to a time axis preset in the storage unit, where the time axis is used to indicate a data acquisition time node corresponding to the time when the real-time data is acquired by the at least one temperature and humidity sensor, and further, the time axis is set in advance according to the original acquisition frequency of the temperature and humidity recorder and is not configured according to the data acquisition time node corresponding to the acquired real-time data, where the time axis includes all data acquisition time nodes in the acquisition process of the real-time data performed by the temperature and humidity recorder, specifically, all data acquisition time nodes in the whole working process from the start of the temperature and humidity recorder to the shutdown of the temperature and humidity recorder. And when the real-time data are acquired, filling the real-time data into a storage grid of the storage unit according to the sequence of the acquisition time of the real-time data for storage. In addition, the data acquisition time nodes corresponding to all the stored real-time data are not necessarily all the data acquisition time nodes, and because it may happen that a certain data acquisition time node does not acquire the real-time data or the acquired real-time data is washed away in the preprocessing process, etc., the data acquisition time node does not have corresponding real-time data.
Furthermore, the real-time data is stored according to the sequence of the data acquisition time nodes divided by the time axis, which is equivalent to the data being sequentially stored in the storage grids corresponding to the storage unit according to the sequence of the acquisition time, wherein the construction process of the storage grids is to divide a plurality of sub-units in the storage unit, and one sub-unit is a storage grid and is used for storing the data. Specifically, the time axis is divided into N data acquisition time nodes, the data acquisition time nodes when the temperature and humidity sensor acquires real-time data correspond to the data acquisition time nodes divided on the time axis one by one, and M cleaned real-time data can be obtained after the acquired real-time data are cleaned. According to the corresponding relation between the data acquisition time nodes divided on the time axis and the data acquisition time nodes when the temperature and humidity sensor acquires real-time data, copying M pieces of cleaned real-time data into a storage grid corresponding to a storage unit for storage according to the positions of the data acquisition time nodes corresponding to the M pieces of cleaned real-time data on the time axis, wherein the number of the real-time data is at most N, namely M is not more than N, and M, N is a positive integer. One real-time data stored in the storage grid is the ith real-time data in the cleaned M real-time data obtained by the temperature and humidity recorder in the data acquisition process through the temperature and humidity sensor, M and i are positive integers, and i is less than or equal to M; and when i is 1, the data acquisition time node corresponding to the real-time data is a time node for starting the temperature and humidity sensor to acquire the real-time data by the temperature and humidity recorder.
Specifically, the storage grid is equivalent to a corresponding storage area when the storage unit stores real-time data, the storage area and the real-time data have a one-to-one correspondence relationship, different storage addresses are allocated to the storage area, each real-time data occupies 4 bytes of memory space in the storage unit, and when the real-time data are collected each time, the temperature and humidity recorder can write the real-time data with the size of 4 bytes into the storage grid of the storage unit in sequence. For example, the address of the storage grid for storing the real-time data is set to be 0x0000, the real-time data acquired for the first time is stored in the area with the address of 0x0000, the real-time data acquired for the second time is stored in the area with the address of 0x0004, the data acquired for the third time is stored in the area with the address of 0x0008, and the storage sequence of the real-time data is sequentially stored in the storage grid of the storage unit according to the acquisition time of the temperature and humidity recorder, that is, the real-time data is sequentially stored according to the sequence of the acquisition of the real-time data.
102, detecting whether a mark trigger signal is received;
when the temperature and humidity recorder receives a marking trigger signal for triggering the temperature and humidity recorder to mark data, the temperature and humidity recorder triggers a data marking step, and the collected real-time data is marked to generate marked data. Specifically, when the real-time data stored in the temperature and humidity recorder needs to be marked, the temperature and humidity recorder receives a mark trigger signal generated inside external equipment and/or the temperature and humidity recorder, and the mark trigger signal is used for triggering the temperature and humidity recorder to mark the real-time data.
Specifically, the marking trigger signal comprises a first trigger signal sent by external equipment and/or a second trigger signal generated inside the temperature and humidity recorder; the first trigger signal at least comprises one of a mark trigger signal generated when the temperature and humidity recorder is inserted into a USB interface of external equipment and a wireless communication signal generated when the temperature and humidity recorder receives an access request of the external equipment in a wireless communication mode; the second trigger signal at least comprises one of a key signal and a temperature and humidity sensor signal.
In this embodiment, the detection sequence of the first trigger signal and the second trigger signal is not limited, that is, the trigger signals generated inside the external device and the humiture recorder do not have a priority relationship, and the detection sequence of the first trigger signal sent by the external device and the second trigger signal generated inside the humiture recorder may be sequential or parallel, that is, the humiture recorder may detect the first trigger signal sent by the external device first and then detect the second trigger signal generated inside the humiture recorder, or may detect the second trigger signal generated inside the humiture recorder first and then detect the first trigger signal sent by the external device, or may detect the first trigger signal sent by the humiture recorder and the second trigger signal generated inside the humiture recorder simultaneously, and then corresponding processing is carried out according to the detection result.
103, if a marking trigger signal is received, constructing a marking area;
when the temperature and humidity recorder is detected to receive the trigger signal, a marking area is built in the storage unit, and data placed in the marking area are marked.
The construction process of the mark area may be set to construct a first mark tag according to a preset time axis in the storage unit, then create a first data storage area according to the obtained first mark tag, and after associating the first data storage area with the first mark tag, integrate all the first data storage areas into one mark storage area, which is denoted as a first mark area. Specifically, N data acquisition time nodes divided in the time axis are respectively used as corresponding N time identification information, and then N first tag labels having the time identification information are generated. Creating a first data storage area according to the generated N first label tags, creating the first data storage areas one by one according to the number of the first label tags in the process, generating the N first label tags when N data acquisition time nodes exist, creating the N first data storage areas, correspondingly associating the generated N first data storage areas with the N first label tags, namely creating mapping between the first label tags and the first data storage areas, namely marking the first data storage areas by using the first label tags to obtain marked first data storage areas, and then combining all the marked first data storage areas into one label storage area to obtain the first label area.
The construction process of the mark area can also be set to be that after the mark trigger signal is received, the acquired real-time data is subjected to abnormal detection, abnormal data in the real-time data is extracted, position data and/or time data in the abnormal data are extracted, a second mark label is generated according to the position data and/or the time data, a second data storage area is created according to the generated second mark label, and after the second data storage area is associated with the second mark label, all the second data storage areas are integrated into one mark storage area which is marked as a second mark area. In the process, the abnormality detection is to detect whether the temperature and humidity value in the acquired real-time data exceeds a preset temperature and humidity threshold or reaches a preset temperature and humidity threshold of a temperature and humidity recorder, that is, whether the temperature and humidity value is not less than the temperature and humidity threshold, if the temperature and humidity value is not less than the temperature and humidity threshold, the temperature and humidity value is used as an abnormal value, and the real-time data corresponding to the abnormal value is used as abnormal data. Extracting position data and/or time data in the abnormal data, correspondingly generating position identification information and/or time identification information, correspondingly generating a second marking label according to the position identification information and/or the time identification information, then generating a second data storage area according to the second marking label, associating the second marking label with the second data storage area, namely marking the second data storage area by using the second marking label to obtain a marked second data storage area, and then integrating all the marked second data storage areas into one marking storage area to obtain a second marking area.
104, selecting at least one time node from preset data acquisition time nodes, and reading real-time data corresponding to the selected at least one time node from a storage unit to obtain a data set to be marked;
in this embodiment, when the first mark area is constructed, the generation mode of the data to be marked may be set to be that when it is detected that the temperature and humidity recorder receives the mark trigger signal, at least one time node is selected from data acquisition time nodes preset by the temperature and humidity recorder, where the preset data acquisition time node refers to a different data acquisition time node corresponding to the acquisition frequency of the temperature and humidity recorder itself, and then real-time data corresponding to the selected time node is read from the storage unit and is used as the data to be marked, and then the obtained data to be marked is collected to obtain a data set to be marked and is stored in the storage unit.
Specifically, the selection of the time nodes may be set to select at least one time node from the time nodes having completed the data acquisition work as a specific time node according to preset data acquisition time nodes and actual requirements.
In addition, when the temperature and humidity recorder receives the mark trigger signal, the temperature and humidity recorder can also acquire real-time data at the moment, and therefore the preset data acquisition time node also comprises the moment when the temperature and humidity recorder receives the mark trigger signal.
Specifically, at least one time node is selected from N data acquisition time nodes in a time axis, and after the time node is selected, real-time data corresponding to the time node is read from a storage unit and is collected as data to be marked into a data set to be marked. Because N data acquisition time nodes in the time axis correspond to the real-time data acquired in the N data acquisition time nodes one by one, when the a-th time node in the N data acquisition time nodes is selected, the real-time data read from the storage unit and corresponding to the a-th time node is the a-th real-time data stored in the storage grid, wherein the a-th time node is represented as any one time node in the N data acquisition time nodes, a is not more than N, and a is a positive integer.
When the constructed marking region is the second marking region, because the second marking region is created according to abnormal data, the corresponding data set to be marked is generated by selecting at least one time node from N data acquisition time nodes in a time axis and comparing the selected at least one time node with time data of abnormal data, so as to screen the abnormal time node in the selected time node, wherein the abnormal time node is the time node corresponding to the time data in the abnormal data, and the time data in the abnormal data is a time node, therefore, in the process of comparing the selected at least one time node with the time data of the abnormal data, when the selected time node has a time node matched with the time data in the abnormal data, namely, the comparison result is consistent, and if the time nodes are abnormal time nodes and are screened out, the time nodes matched with the time data in the abnormal data are not compared from the selected time nodes in the comparison process, namely the comparison result is inconsistent, the time nodes are not selected from at least one selected time node, and the screening processing of the abnormal time nodes is not carried out. And when the comparison result is consistent and the abnormal time node is screened out, finding the data acquisition time node corresponding to the abnormal time node in the time axis of the storage unit, then extracting corresponding real-time data in a storage grid in the storage unit according to the data acquisition time node, and collecting the extracted real-time data to obtain a data set to be marked.
And 105, storing the data set to be marked into a marking area for marking to obtain marked data.
And reading the data set to be marked in the storage unit, and storing the data set to be marked in a marking area of the temperature and humidity recorder to realize marking of the data set to be marked.
Specifically, according to the time data and/or the position data of each data to be marked in the data set to be marked, the time identification information and/or the position identification information associated with the marking area are matched, the data set to be marked is correspondingly stored in the data storage area of the marking area, namely, the data storage area in the marking area and the data to be marked are in one-to-one correspondence, and as each data storage area in the marking area corresponds to different marking labels, the data to be marked is stored in the corresponding data storage area, and then the marking of the data to be marked is realized.
In this embodiment, the real-time data corresponding to the selected time node is mainly marked, and not all the real-time data are marked, so that the workload of data marking is reduced. When the real-time data of the selected time node is marked to generate the marked data, the marked data are stored in the marked area of the storage unit, and when a user needs to check the real-time data of the selected time node, the marked data are extracted from the corresponding storage address of the marked area and displayed.
In addition, when the temperature and humidity recorder does not receive the marking trigger signal, the steps are continuously executed from the first step (step 101), that is, the steps of "reading the real-time data collected by at least one temperature and humidity sensor, preprocessing the real-time data according to a preset data storage format and then storing the real-time data in the storage unit" are circularly executed.
In the embodiment of the invention, a marking area is created by detecting a marking trigger signal, at least one time node is selected from preset data acquisition time nodes, real-time data corresponding to the time node is read, data to be marked are generated and stored in the marking area, and then the data to be marked are marked to generate marking data. The scheme of this embodiment has realized marking the real-time data that humiture record appearance was gathered at specific time node, has made things convenient for follow-up humiture data that can look over specific time node directly perceivedly.
Referring to fig. 2, a second embodiment of a data tagging method according to the embodiment of the present invention includes:
reading real-time data acquired by at least one temperature and humidity sensor in real time, preprocessing the real-time data according to a preset data storage format, and storing the preprocessed real-time data in a storage unit;
the implementation device of the technical scheme provided by this embodiment takes a temperature and humidity recorder as an example, where the temperature and humidity recorder includes a storage unit and at least one temperature and humidity sensor. Real-time data of an external environment are acquired in real time through a temperature and humidity sensor on a temperature and humidity recorder, the real-time data are acquired according to the acquisition frequency of the temperature and humidity recorder in the acquisition process, the acquisition frequency of the temperature and humidity recorder corresponds to different data acquisition time nodes, namely the temperature and humidity recorder acquires the real-time data according to the different data acquisition time nodes, the acquired real-time data are preprocessed according to a data storage format preset in the temperature and humidity recorder, the preprocessed real-time data are sequenced according to the sequence of acquisition time to obtain a data sequence, and the real-time data in the data sequence are copied to a storage grid corresponding to a storage unit according to a time axis preset in the storage unit for storage, wherein the acquired real-time data comprise temperature and humidity values, And position data, time data and the like, wherein the real-time data is preprocessed, namely the real-time data is cleaned, redundant data is removed, and the cleaned real-time data is obtained.
In this embodiment, the real-time data is copied to a storage grid corresponding to the storage unit for storage according to a time axis preset in the storage unit, where the time axis is used to indicate a data acquisition time node corresponding to the time when the real-time data is acquired by the at least one temperature and humidity sensor, and further, the time axis is set in advance according to the original acquisition frequency of the temperature and humidity recorder and is not configured according to the data acquisition time node corresponding to the acquired real-time data, where the time axis includes all data acquisition time nodes in the acquisition process of the real-time data performed by the temperature and humidity recorder, specifically, all data acquisition time nodes in the whole working process from the start of the temperature and humidity recorder to the shutdown of the temperature and humidity recorder. And when the real-time data are acquired, filling the real-time data into a storage grid of the storage unit according to the sequence of the acquisition time of the real-time data for storage.
Furthermore, the real-time data is stored according to the sequence of the data acquisition time nodes divided by the time axis, which is equivalent to the data being sequentially stored in the storage grids corresponding to the storage unit according to the sequence of the acquisition time, wherein the construction process of the storage grids is to divide a plurality of sub-units in the storage unit, and one sub-unit is a storage grid and is used for storing the data. Specifically, the time axis is divided into N data acquisition time nodes, the data acquisition time nodes when the temperature and humidity sensor acquires the real-time data correspond to the data acquisition time nodes divided on the time axis, and after the acquired real-time data are cleaned, M cleaned real-time data can be obtained. According to the corresponding relation between the data acquisition time nodes divided on the time axis and the data acquisition time nodes when the temperature and humidity sensor acquires real-time data, copying M pieces of cleaned real-time data into a storage grid corresponding to a storage unit for storage according to the positions of the data acquisition time nodes corresponding to the M pieces of cleaned real-time data on the time axis, wherein the number of the real-time data is at most N, namely M is not more than N, and M, N is a positive integer. One real-time data stored in the storage grid is the ith real-time data in the cleaned M real-time data obtained by the temperature and humidity recorder in the data acquisition process through the temperature and humidity sensor, M and i are positive integers, and i is less than or equal to M; and when i is 1, the data acquisition time node corresponding to the real-time data is a time node for starting the temperature and humidity sensor to acquire the real-time data by the temperature and humidity recorder.
202, detecting whether a first trigger signal sent by external equipment is received;
in the scheme of the invention, the detection sequence of the first trigger signal and the second trigger signal can be selected and set, so that the mark trigger signal can be detected in time, and the temperature and humidity recorder is triggered to mark data. In this embodiment, a detection sequence is set for detecting the first trigger signal sent by the external device by the humiture recorder, and then detecting the second trigger signal generated inside the humiture recorder.
In this embodiment, whether the humiture recorder receives a mark trigger signal sent by an external device is detected, and the mark trigger signal sent by the external device is used as a first trigger signal, where the first trigger signal sent by the external device at least includes one of a mark trigger signal generated when the humiture recorder is inserted into a USB interface of the external device and a wireless communication signal generated when the humiture recorder receives a request for access from the external device in a wireless communication manner. In addition, the external device includes devices such as NFC, bluetooth, and ZigBee, and the wireless communication signal generated when the external device requests access in a wireless communication mode includes signals such as an NFC signal, a bluetooth signal, and a ZigBee signal.
Specifically, the external device can send a first trigger signal to the temperature and humidity recorder through the USB interface. Because the USB female end of external equipment (humiture record appearance is the male end) is 5V voltage output, can supply power for the humiture record appearance, when the generated mark trigger signal of USB interface is detected to the USB female end of humiture record appearance access external equipment, the humiture record appearance can carry out the step of data mark. And when the temperature and humidity recorder receives a wireless communication signal generated when the external equipment requests to access in a wireless communication mode, the temperature and humidity recorder also executes the step of data marking. In addition, in the solution of the present invention, the detection order of the two trigger signals sent by the external device is not limited, that is, the detection order of the two trigger signals may be parallel or sequential.
203, if receiving a first trigger signal, creating a first mark area;
in the scheme of the invention, the relation between the mark trigger signal and the mark area creating process can be selected and set so as to obtain the mark area meeting the requirement.
In this embodiment, after receiving the first trigger signal, the marking region creating process is configured to construct a first marking tag according to a preset time axis in the storage unit, then create a first data storage region according to the obtained first marking tag, and after associating the first data storage region with the first marking tag, integrate all the first data storage regions into one marking storage region, which is recorded as the first marking region. Specifically, N data acquisition time nodes divided in the time axis are respectively used as corresponding N time identification information, and then N first marker tags with time identifications are generated. Creating a first data storage area according to the generated N first label tags, creating the first data storage areas one by one according to the number of the first label tags in the process, generating the N first label tags when N data acquisition time nodes exist, creating the N first data storage areas, correspondingly associating the generated N first data storage areas with the N first label tags, namely creating mapping between the first label tags and the first data storage areas, namely marking the first data storage areas by using the first label tags to obtain marked first data storage areas, and then combining all the marked first data storage areas into one label storage area to obtain the first label area.
204, selecting at least one time node from the N data acquisition time nodes;
205, finding out a data acquisition time node corresponding to the selected at least one time node from the time axis of the storage unit, and extracting corresponding real-time data based on the data acquisition time node to obtain a data set to be marked;
in this embodiment, the generation mode of the data to be marked may be selected and set to be that when it is detected that the temperature and humidity recorder receives the mark trigger signal, at least one time node is selected from data acquisition time nodes preset by the temperature and humidity recorder, real-time data corresponding to the selected time node is read from a storage grid of the storage unit and is used as the data to be marked, and then the obtained data to be marked are collected to obtain a data set to be marked, and the data set to be marked is stored in the storage unit.
In this embodiment, the selection of the time nodes may be set to select at least one time node as a specific time node from the time nodes in which the data acquisition work is completed according to preset data acquisition time nodes and actual requirements, where the preset data acquisition time nodes refer to different data acquisition time nodes corresponding to the acquisition frequency of the humiture recorder itself.
In addition, when the temperature and humidity recorder receives the mark trigger signal, the temperature and humidity recorder can also acquire real-time data at the moment, and therefore the preset data acquisition time node also comprises the moment when the temperature and humidity recorder receives the mark trigger signal.
Specifically, at least one time node is selected from N data acquisition time nodes in a time axis, and after the time node is selected, real-time data corresponding to the time node is read from a storage grid of a storage unit and is collected as data to be marked into a data set to be marked. Because N data acquisition time nodes in the time axis correspond to the real-time data acquired in the N data acquisition time nodes one by one, when the a-th time node in the N data acquisition time nodes is selected, the real-time data read from the storage unit and corresponding to the a-th time node is the a-th real-time data stored in the storage grid, wherein the a-th time node is represented as any one time node in the N data acquisition time nodes, a is not more than N, and a is a positive integer.
206, storing the data set to be marked into a first marking area for marking to obtain marking data;
and reading the data set to be marked in the storage unit, and storing the data set to be marked into a first marking area of the temperature and humidity recorder to realize marking of the data set to be marked.
Specifically, according to the time data of each data to be marked in the data set to be marked, matching is performed with the time identification information in the first marking tag associated with the first marking area, and the data set to be marked is correspondingly stored in the first data storage area of the first marking area, namely, the first data storage area in the first marking area and the data to be marked are in a one-to-one correspondence relationship.
207, if the first trigger signal is not received, detecting whether a second trigger signal sent by the inside of the temperature and humidity recorder is received;
208, if a second trigger signal sent by the inside of the temperature and humidity recorder is detected to be received, a second mark area is constructed;
if the temperature and humidity recorder is not detected to have received the first trigger signal sent by the external equipment, whether the temperature and humidity recorder receives a mark trigger signal generated inside the temperature and humidity recorder is detected, and the signal is used as a second trigger signal, wherein the second trigger signal at least comprises one of a key signal and a temperature and humidity sensor signal.
In this embodiment, the explanation is made by setting a second mark area to be constructed when a second trigger signal generated inside the temperature and humidity recorder is received.
And after receiving a second trigger signal, performing anomaly detection on the acquired real-time data, extracting anomalous data in the real-time data, then extracting position data and/or time data in the anomalous data, generating a second label according to the position data and/or the time data, then creating a second data storage area according to the generated second label, associating the second data storage area with the second label, and then integrating all the second data storage areas into one label storage area which is marked as a second label area. In the process, the abnormality detection is to detect whether the temperature and humidity value in the acquired real-time data exceeds a preset temperature and humidity threshold or reaches a preset temperature and humidity threshold of a temperature and humidity recorder, that is, whether the temperature and humidity value is not less than the temperature and humidity threshold, if the temperature and humidity value is not less than the temperature and humidity threshold, the temperature and humidity value is used as an abnormal value, and the real-time data corresponding to the abnormal value is used as abnormal data. Extracting position data and/or time data in the abnormal data, correspondingly generating position identification information and/or time identification information, correspondingly generating a second marking label according to the position identification information and/or the time identification information, then generating a second data storage area according to the second marking label, associating the second marking label with the second data storage area, namely marking the second data storage area by using the second marking label to obtain a marked second data storage area, and then integrating all the marked second data storage areas into one marking storage area to obtain a second marking area.
209, selecting at least one time node from the N data acquisition time nodes;
210, comparing the selected at least one time node with the time data in the abnormal data, and screening the abnormal time node in the selected at least one time node according to the comparison result;
211, searching a data acquisition time node corresponding to the abnormal time node from a time axis of the storage unit, and extracting corresponding real-time data based on the data acquisition time node to obtain a data set to be marked;
in this embodiment, a relationship between the second trigger signal and the second mark region creation process is set, and after receiving the second trigger signal, the created mark region is created according to the abnormal data, so in this process, the generated second mark region only stores the abnormal data to be marked, and when receiving the second trigger signal, the generation process of the data set to be marked is defined as selecting at least one time node from N data acquisition time nodes in the time axis of the storage unit, and comparing the selected at least one time node with the time data of the abnormal data, so as to screen the abnormal time node in the selected time node, where the abnormal time node is the time node corresponding to the time data in the abnormal data, and the time data in the abnormal data is a time node, therefore, in the process of comparing the selected at least one time node with the time data of the abnormal data, when the selected time node has a time node matched with the time data in the abnormal data, that is, the comparison result is consistent, it indicates that the matched time node is the abnormal time node and is screened out, and when the time node matched with the time data in the abnormal data is not compared from the selected time node in the comparison process, that is, the comparison result is inconsistent, it indicates that the abnormal time node is not included in the selected at least one time node, and the screening processing of the abnormal time node is not performed. And when the comparison result is consistent and the abnormal time node is screened out, finding the data acquisition time node corresponding to the abnormal time node in the storage grid of the storage unit, then extracting corresponding real-time data in the storage grid of the storage unit according to the data acquisition time node, and collecting the extracted real-time data to obtain a data set to be marked.
And 212, storing the data set to be marked into a second marking area for marking to obtain marking data.
And reading the data set to be marked in the storage unit, and storing the data set to be marked in a second marking area of the temperature and humidity recorder to realize marking of the data set to be marked.
Specifically, according to the time data and/or the position data of each data to be marked in the data set to be marked, the time identification information and/or the position identification information in the second marking tag associated with the second marking area are matched, the data to be marked are correspondingly stored in the second data storage area of the second marking area, that is, the second data storage area in the second marking area and the data to be marked in the data set to be marked are in a one-to-one correspondence relationship, and as each second data storage area corresponds to a different second marking tag, the data to be marked are correspondingly stored in the corresponding second data storage area in the second marking area, and then the data to be marked are marked.
In addition, when the temperature and humidity recorder does not receive the second trigger signal, the corresponding steps are continuously executed from the first step (step 201), that is, the steps in the above embodiment of the data marking method are circularly executed from the step of "reading the real-time data collected by at least one temperature and humidity sensor, preprocessing the real-time data according to the preset data storage format, and then storing the real-time data in the storage unit".
In the embodiment of the invention, in the detection process of the first trigger signal which is sent by the external equipment and used for triggering the temperature and humidity recorder to carry out data marking, if the first trigger signal is not detected, the second trigger signal generated in the temperature and humidity recorder is detected, and when the second trigger signal is detected, the corresponding data marking step is executed to obtain the marked data. The embodiment of the invention realizes the detection of various trigger signals, can execute the step of data marking according to the detected various trigger signals, and improves the flexibility and the efficiency of data marking.
Referring to fig. 3, a third embodiment of a data tagging method according to the embodiment of the present invention includes:
301, reading real-time data acquired by at least one temperature and humidity sensor in real time, preprocessing the real-time data according to a preset data storage format, and storing the preprocessed real-time data in a storage unit;
the implementation device of the technical scheme provided by this embodiment takes a temperature and humidity recorder as an example, where the temperature and humidity recorder includes a storage unit and at least one temperature and humidity sensor. Real-time data of an external environment are acquired in real time through a temperature and humidity sensor on a temperature and humidity recorder, the real-time data are acquired according to the acquisition frequency of the temperature and humidity recorder in the acquisition process, the acquisition frequency of the temperature and humidity recorder corresponds to different data acquisition time nodes, namely the temperature and humidity recorder acquires the real-time data according to the different data acquisition time nodes, the acquired real-time data are preprocessed according to a data storage format preset in the temperature and humidity recorder, the preprocessed real-time data are sequenced according to the sequence of acquisition time to obtain a data sequence, and the real-time data in the data sequence are copied to a storage grid corresponding to a storage unit according to a time axis preset in the storage unit for storage, wherein the acquired real-time data comprise temperature and humidity values, And position data, time data and the like, wherein the real-time data is preprocessed, namely the real-time data is cleaned, redundant data is removed, and the cleaned real-time data is obtained.
In this embodiment, the real-time data is copied to a corresponding storage grid in the storage unit for storage according to a time axis preset in the storage unit, where the time axis is used to indicate a data acquisition time node corresponding to when the at least one temperature and humidity sensor acquires the real-time data, and further, the time axis is set in advance according to an original acquisition frequency of the temperature and humidity recorder and is not configured according to the data acquisition time node corresponding to the acquired real-time data, where the time axis includes all data acquisition time nodes in an acquisition process of the temperature and humidity recorder for real-time data, specifically, all data acquisition time nodes in a whole working process from a start of the temperature and humidity recorder to a shutdown of the temperature and humidity recorder. And when the real-time data are acquired, filling the real-time data into a storage grid of the storage unit according to the sequence of the acquisition time of the real-time data for storage.
Furthermore, the real-time data is stored according to the sequence of the data acquisition time nodes divided by the time axis, which is equivalent to the data being sequentially stored in the storage grids corresponding to the storage unit according to the sequence of the acquisition time, wherein the construction process of the storage grids is to divide a plurality of sub-units in the storage unit, and one sub-unit is a storage grid and is used for storing the data. Specifically, the time axis is divided into N data acquisition time nodes, the data acquisition time nodes when the temperature and humidity sensor acquires the real-time data correspond to the data acquisition time nodes divided on the time axis, and after the acquired real-time data are cleaned, M cleaned real-time data can be obtained. According to the corresponding relation between the data acquisition time nodes divided on the time axis and the data acquisition time nodes when the temperature and humidity sensor acquires real-time data, copying M pieces of cleaned real-time data into a storage grid corresponding to a storage unit for storage according to the positions of the data acquisition time nodes corresponding to the M pieces of cleaned real-time data on the time axis, wherein the number of the real-time data is at most N, namely M is not more than N, and M, N is a positive integer. One real-time data stored in the storage grid is the ith real-time data in the cleaned M real-time data obtained by the temperature and humidity recorder in the data acquisition process through the temperature and humidity sensor, M and i are positive integers, and i is less than or equal to M; and when i is 1, the data acquisition time node corresponding to the real-time data is a time node for starting the temperature and humidity sensor to acquire the real-time data by the temperature and humidity recorder.
302, detecting whether a flag trigger signal is received;
when the temperature and humidity recorder receives a marking trigger signal for triggering the temperature and humidity recorder to execute a data marking step, the temperature and humidity recorder triggers a data marking operation, marks the acquired real-time data and generates marked data. Specifically, when the real-time data stored in the temperature and humidity recorder needs to be marked, the temperature and humidity recorder receives a mark trigger signal generated inside external equipment and/or the temperature and humidity recorder, and the mark trigger signal is used for triggering the temperature and humidity recorder to mark the real-time data.
Specifically, the marking trigger signal comprises a first trigger signal sent by external equipment and/or a second trigger signal generated inside the temperature and humidity recorder; the first trigger signal at least comprises one of a mark trigger signal generated when the temperature and humidity recorder is inserted into a USB interface of external equipment and a wireless communication signal generated when the temperature and humidity recorder receives an access request of the external equipment in a wireless communication mode; the second trigger signal at least comprises one of a key signal and a temperature and humidity sensor signal.
303, if a marking trigger signal is received, judging the type of the marking trigger signal;
in the scheme of the invention, the relation between the marking trigger signal and the marking area creating process can be selected and set to obtain the marking area meeting the requirement, and the data marking mode is limited according to the obtained marking area.
In this embodiment, the process of setting the mark region is to determine the type of the mark trigger signal first, and construct the mark region according to the determination result.
The marking trigger signal comprises a first trigger signal sent by external equipment and/or a second trigger signal generated inside the temperature and humidity recorder; the first trigger signal at least comprises one of a mark trigger signal generated when the temperature and humidity recorder is inserted into a USB interface of external equipment and a wireless communication signal generated when the temperature and humidity recorder receives an access request of the external equipment in a wireless communication mode; the second trigger signal at least comprises one of a key signal and a temperature and humidity sensor signal. The type of the mark trigger signal is judged, namely whether the mark trigger signal is a trigger signal sent by external equipment or a trigger signal generated in the temperature and humidity recorder is judged.
304, if the marking trigger signal is a first trigger signal sent by an external device, creating a first marking area;
in the scheme of the invention, the relationship between the type of the mark trigger signal and the mark area creating process can be selected and set, so that the mark area meeting the requirements can be created in a proper mode.
In this embodiment, when the mark trigger signal is a first trigger signal sent by an external device, the marking region is constructed according to a preset time axis in a storage unit, then a first data storage region is created according to the obtained first mark tag, and after the first data storage region is associated with the first mark tag, all the first data storage regions are integrated into one mark storage region, which is recorded as the first marking region. Specifically, N data acquisition time nodes divided in the time axis are respectively used as corresponding N time identification information, and then N first marker tags with time identifications are generated. Creating a first data storage area according to the generated N first label tags, creating the first data storage areas one by one according to the number of the first label tags in the process, generating the N first label tags when N data acquisition time nodes exist, creating the N first data storage areas, correspondingly associating the generated N first data storage areas with the N first label tags, namely creating mapping between the first label tags and the first data storage areas, namely marking the first data storage areas by using the first label tags to obtain marked first data storage areas, and then combining all the marked first data storage areas into one label storage area to obtain the first label area.
305, selecting at least one time node from the N data acquisition time nodes;
306, finding out a data acquisition time node corresponding to the selected at least one time node from the time axis of the storage unit, and extracting corresponding real-time data based on the data acquisition time node to obtain a data set to be marked;
307, storing the data set to be marked into a marking area for marking to obtain marking data;
308, if the marking trigger signal is a second trigger signal sent by the inside of the temperature and humidity recorder, constructing a second marking area;
in this embodiment, the explanation is made by setting that when the temperature and humidity recorder receives a second trigger signal generated inside the temperature and humidity recorder, a second mark area is constructed.
And after receiving a second trigger signal, performing anomaly detection on the acquired real-time data, extracting anomalous data in the real-time data, then extracting position data and/or time data in the anomalous data, generating a second label according to the position data and/or the time data, then creating a second data storage area according to the generated second label, associating the second data storage area with the second label, and then integrating all the second data storage areas into one label storage area which is marked as a second label area. In the process, the abnormality detection is to detect whether the temperature and humidity value in the acquired real-time data exceeds a preset temperature and humidity threshold or reaches a preset temperature and humidity threshold of a temperature and humidity recorder, that is, whether the temperature and humidity value is not less than the temperature and humidity threshold, if the temperature and humidity value is not less than the temperature and humidity threshold, the temperature and humidity value is used as an abnormal value, and the real-time data corresponding to the abnormal value is used as abnormal data. Extracting position data and/or time data in the abnormal data, correspondingly generating position identification information and/or time identification information, correspondingly generating a second marking label according to the position identification information and/or the time identification information, then generating a second data storage area according to the second marking label, associating the second marking label with the second data storage area, namely marking the second data storage area by using the second marking label to obtain a marked second data storage area, and then integrating all the marked second data storage areas into one marking storage area to obtain a second marking area.
309, selecting at least one time node from the N data acquisition time nodes;
310, comparing the selected at least one time node with the time data in the abnormal data, and screening the abnormal time node in the selected at least one time node according to the comparison result;
311, searching a data acquisition time node corresponding to the abnormal time node from the time axis of the storage unit, and extracting corresponding real-time data based on the data acquisition time node to obtain a data set to be marked;
and 312, storing at least one data set to be marked in the second marking area for marking to obtain marking data.
In this embodiment, when the temperature and humidity recorder does not receive the mark trigger signal, the corresponding steps are continuously executed from the first step (step 301), that is, the steps in the above-mentioned data marking method embodiment are circularly executed from the step of "reading the real-time data collected by at least one temperature and humidity sensor, preprocessing the real-time data according to the preset data storage format, and then storing the real-time data in the storage unit".
In the embodiment of the present invention, the steps 305, 309, 312 are the same as the steps 204, 206, 209, 212 in the second embodiment of the data marking method, and are not described herein again.
In the embodiment of the invention, in the process of detecting the mark trigger signal, the type of the mark trigger signal is judged firstly, namely the temperature and humidity recorder can detect the mark trigger signal sent by external equipment and the temperature and humidity recorder simultaneously, and the step of performing data marking can be performed according to the detected mark trigger signal, so that the flexibility of data marking of the temperature and humidity recorder is realized, a user can conveniently perform data marking operation on the temperature and humidity recorder in various modes, and the efficiency of data marking is improved.
Referring to fig. 4, a fourth embodiment of the data tagging method according to the embodiment of the present invention includes:
401, reading real-time data acquired by at least one temperature and humidity sensor in real time, preprocessing the real-time data according to a preset data storage format, and storing the preprocessed real-time data in a storage unit;
402, detecting whether a mark trigger signal is received;
403, if a marking trigger signal is received, constructing a marking area;
404, selecting at least one time node from preset data acquisition time nodes, and reading real-time data corresponding to the selected at least one time node from a storage unit to obtain a data set to be marked;
405, storing a data set to be marked into a marking area to obtain preliminary marking data;
after the data to be marked is stored in the corresponding marking area, the data stored in the marking area can be marked for the second time. However, in the construction process of the marking area, the corresponding marking label is already generated to mark the marking area, so that when the data to be marked is stored in the marking area of the temperature and humidity recorder, the preliminary marking of the data to be marked is already realized, and the preliminary marking data is generated.
And 406, marking the primary marking data for the second time to obtain marking data.
In the marking area, the process of marking the preliminary marking data again mainly includes sequentially marking the temperature and humidity value, the position data and the time data in the preliminary marking data to generate marking data, and numbering the marking data to be marked as marking data 1, marking data 2, marking data 3 and the like, that is, the temperature and humidity value after marking can be set as marking data 1, the position data after marking can be set as marking data 2, and the time data after marking is set as marking data 3. When extracting the tag data, the required specific data can be accurately extracted according to the number, for example, when the temperature and humidity value corresponding to the selected time node needs to be extracted, the tag data 1 is directly extracted.
In the secondary marking process, the data is marked in a mode of acquiring time data in the primary marking data, the time data is used as time identification information, then the primary marking data is marked by utilizing the time identification information, namely, the time identification information is added to the primary marking data, when the real-time data corresponding to the selected time node needs to be extracted, the generated corresponding marking data is searched and extracted according to the mark of the time identification information, and the marking data generated by the marking mode is the time marking data; the index can also be generated aiming at the preliminary marking data, and the data is extracted according to the index, wherein the marking data generated in the mode is index marking data, and the index is specifically an address index stored in the marking area by the preliminary marking data; the time identification information may be added to the generated index, that is, the generated index is marked again, and then the data may be extracted according to the marked index.
In this embodiment, the real-time data corresponding to the selected time node is mainly marked, and not all the real-time data are marked, so that the workload of data marking is reduced. When the real-time data of the selected time node is marked to generate the marked data, the marked data are stored in the marked area of the storage unit, and when a user needs to check the real-time data of the selected time node, the marked data are extracted from the corresponding storage address of the marked area and displayed.
In addition, when the temperature and humidity recorder does not receive the marking trigger signal, corresponding steps are continuously executed from the first step (step 401), namely, the steps of reading the real-time data acquired by at least one temperature and humidity sensor, preprocessing the real-time data according to a preset data storage format and storing the real-time data into the storage unit are circularly executed.
In the embodiment of the present invention, the steps 401-404 are the same as the steps 101-104 in the first embodiment of the data marking method, and are not repeated herein
In the embodiment of the invention, the data to be marked is stored in the established marking area and is marked for the second time to generate the marking data, so that the real-time data of the selected specific time node is accurately marked, the subsequent retrieval and extraction of the marking data are facilitated, the time cost is saved, and the workload of data retrieval is reduced.
With reference to fig. 5, the data marking method in the embodiment of the present invention is described above, and a temperature and humidity recorder in the embodiment of the present invention is described below, where an embodiment of the temperature and humidity recorder in the embodiment of the present invention includes:
the preprocessing module 501 is configured to read real-time data acquired by the at least one temperature and humidity sensor, preprocess the real-time data according to a preset data storage format, and store the preprocessed real-time data in the storage unit;
a detection module 502, configured to detect whether a flag trigger signal is received;
a constructing module 503, configured to construct a mark region when the mark trigger signal is received;
a reading module 504, configured to select at least one time node from preset data acquisition time nodes, and read real-time data corresponding to the at least one time node from the storage unit to obtain a data set to be marked;
and a marking module 505, configured to store the data set to be marked in the marking area, so as to obtain marked data.
According to the embodiment of the invention, the temperature and humidity recorder executes the steps of the data marking method, so that the temperature and humidity recorder can trigger the step of executing data marking through the detected marking trigger signal, thereby obtaining the marking data and improving the efficiency and flexibility of data marking.
Referring to fig. 6, another embodiment of the humiture recorder in the embodiment of the present invention includes:
the preprocessing module 501 is configured to read real-time data acquired by the at least one temperature and humidity sensor, preprocess the real-time data according to a preset data storage format, and store the preprocessed real-time data in the storage unit;
a detection module 502, configured to detect whether a flag trigger signal is received;
a constructing module 503, configured to construct a mark region when the mark trigger signal is received;
a reading module 504, configured to select at least one time node from preset data acquisition time nodes, and read real-time data corresponding to the at least one time node from the storage unit to obtain a data set to be marked;
and a marking module 505, configured to store the data set to be marked in the marking area, so as to obtain marked data.
Optionally, the mark trigger signal includes a first trigger signal sent by an external device and/or a second trigger signal generated inside the temperature and humidity recorder.
Optionally, the preprocessing module 501 includes a reading unit 5011 and a preprocessing unit 5012, where the reading unit 5011 is specifically configured to: reading real-time data acquired by the at least one temperature and humidity sensor; the pretreatment unit 5012 is specifically used to:
cleaning the real-time data to obtain cleaned real-time data;
sequencing the cleaned real-time data according to the sequence of acquisition time to obtain a data sequence, copying the real-time data in the data sequence to a corresponding storage grid in a storage unit according to a preset time axis in the storage unit for storage, wherein the preset time axis is used for representing data acquisition time nodes corresponding to at least one temperature and humidity sensor when acquiring the real-time data, the time axis is divided into N data acquisition time nodes, and N is a positive integer.
Optionally, the building module 503 is specifically configured to:
judging whether the mark trigger signal belongs to the first trigger signal;
if so, constructing a first marker tag according to a preset time axis in the storage unit;
and creating a first data storage area based on the first marking label, and associating the first data storage area with the first marking label to obtain a marking area.
Optionally, if the mark trigger signal belongs to the first trigger signal, the reading module 504 is specifically configured to:
selecting at least one time node from the N data acquisition time nodes;
and searching the data acquisition time node corresponding to the at least one time node from the time axis of the storage unit, and extracting corresponding real-time data based on the data acquisition time node to obtain a data set to be marked.
Optionally, the building module 503 is further specifically configured to:
if the marking trigger signal is judged not to belong to the first trigger signal, determining the marking trigger signal as the second trigger signal
Carrying out anomaly detection on the acquired real-time data to obtain anomalous data;
extracting position data and/or time data in the abnormal data;
and generating a second tag label according to the position data and/or the time data, creating a second data storage area based on the second tag label, and associating the second data storage area with the second tag label to obtain a tag area.
Optionally, if the mark trigger signal is the second trigger signal, the reading module 504 is further specifically configured to:
selecting at least one time node from the N data acquisition time nodes;
comparing the at least one time node with the time data in the abnormal data, and screening the abnormal time node in the at least one time node according to the comparison result;
and searching the data acquisition time node corresponding to the abnormal time node from the time axis of the storage unit, and extracting corresponding real-time data based on the data acquisition time node to obtain a data set to be marked.
In the embodiment of the invention, the temperature and humidity recorder can detect various mark trigger signals and display the mark data generated after the data marking step is executed, so that the real-time data of a specific time node can be conveniently checked, and the data retrieval efficiency is improved.
Referring to fig. 7, a detailed description will be given below of another embodiment of the humiture recording apparatus according to the embodiment of the present invention from the perspective of hardware processing.
Fig. 7 is a schematic structural diagram of a temperature and humidity recorder 700 according to an embodiment of the present invention, where the temperature and humidity recorder 700 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 710 (e.g., one or more processors) and a memory 720, and one or more storage media 730 (e.g., one or more mass storage devices) storing an application 733 or data 732. Memory 720 and storage medium 730 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 730 may include one or more modules (not shown), each of which may include a sequence of instructions for operating the humiture recorder 700. Further, the processor 710 may be configured to communicate with the storage medium 730 to execute a series of instruction operations in the storage medium 730 on the humiture recorder 700.
The humiture recorder 700 may also include one or more power supplies 740, one or more wired or wireless network interfaces 750, one or more input-output interfaces 760, and/or one or more operating systems 731, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. It will be understood by those skilled in the art that the configuration of the humiture recorder shown in fig. 7 does not constitute a limitation of the humiture recorder, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, and which may also be a volatile computer readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of the data marking method.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A data marking method is characterized by being applied to a temperature and humidity recorder, wherein the temperature and humidity recorder comprises a storage unit and at least one temperature and humidity sensor, and the data marking method comprises the following steps:
reading real-time data acquired by the at least one temperature and humidity sensor, preprocessing the real-time data according to a preset data storage format, and storing the preprocessed real-time data in the storage unit;
detecting whether a marker trigger signal is received;
if so, constructing a marking area;
selecting at least one time node from preset data acquisition time nodes, and reading real-time data corresponding to the at least one time node from the storage unit to obtain a data set to be marked;
and storing the data set to be marked into the marking area for marking to obtain marked data.
2. The data marking method according to claim 1, wherein the marking trigger signal comprises a first trigger signal sent by an external device and/or a second trigger signal generated inside the humiture recorder.
3. The data marking method according to claim 2, wherein the pre-processing the real-time data according to a preset data storage format and then storing the pre-processed real-time data in the storage unit comprises:
cleaning the real-time data to obtain cleaned real-time data;
sequencing the cleaned real-time data according to the sequence of acquisition time to obtain a data sequence, copying the real-time data in the data sequence to a corresponding storage grid in a storage unit according to a preset time axis in the storage unit for storage, wherein the preset time axis is used for representing data acquisition time nodes corresponding to at least one temperature and humidity sensor when acquiring the real-time data, the time axis is divided into N data acquisition time nodes, and N is a positive integer.
4. The data marking method according to claim 3, wherein the constructing a marking area comprises:
judging whether the mark trigger signal belongs to the first trigger signal;
if so, constructing a first marker tag according to a preset time axis in the storage unit;
and creating a first data storage area based on the first marking label, and associating the first data storage area with the first marking label to obtain a marking area.
5. The data tagging method according to claim 4, wherein if the tagging trigger signal belongs to the first trigger signal, the selecting the at least one time node from preset data acquisition time nodes, and reading real-time data corresponding to the at least one time node from the storage unit to obtain a data set to be tagged comprises:
selecting at least one time node from the N data acquisition time nodes;
and searching the data acquisition time node corresponding to the at least one time node from the storage grid of the storage unit, and extracting corresponding real-time data based on the data acquisition time node to obtain a data set to be marked.
6. The data marking method of claim 4, wherein the constructing a marking region further comprises:
if the marking trigger signal is judged not to belong to the first trigger signal, determining the marking trigger signal as the second trigger signal;
carrying out anomaly detection on the acquired real-time data to obtain anomalous data;
extracting position data and/or time data in the abnormal data;
and generating a second tag label according to the position data and/or the time data, creating a second data storage area based on the second tag label, and associating the second data storage area with the second tag label to obtain a tag area.
7. The data tagging method of claim 6, wherein if the tagging trigger signal is the second trigger signal, the selecting the at least one time node from preset data acquisition time nodes, and reading real-time data corresponding to the at least one time node from the storage unit to obtain a to-be-tagged data set comprises:
selecting at least one time node from the N data acquisition time nodes;
comparing the at least one time node with the time data in the abnormal data, and screening out the abnormal time node in the at least one time node according to the comparison result;
and searching the data acquisition time node corresponding to the abnormal time node from the storage grid of the storage unit, and extracting corresponding real-time data based on the data acquisition time node to obtain a data set to be marked.
8. The utility model provides a humiture record appearance, its characterized in that, humiture record appearance includes:
the preprocessing module is used for reading the real-time data acquired by the at least one temperature and humidity sensor, preprocessing the real-time data according to a preset data storage format and storing the preprocessed real-time data into the storage unit;
the detection module is used for detecting whether a mark trigger signal is received or not;
the construction module is used for constructing a marking area when a marking trigger signal is received;
the reading module is used for selecting at least one time node from preset data acquisition time nodes and reading real-time data corresponding to the at least one time node from the storage unit to obtain a data set to be marked;
and the marking module is used for storing the data set to be marked into the marking area to obtain marked data.
9. The utility model provides a humiture record appearance, its characterized in that, humiture record appearance includes:
a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line;
the at least one processor invoking the instructions in the memory to cause the humiture recorder to perform the steps of the data tagging method of any one of claims 1-7.
10. A computer readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of the data tagging method according to any one of claims 1-7.
CN202110141895.0A 2021-02-02 2021-02-02 Data marking method, temperature and humidity recorder and storage medium Active CN112964286B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110141895.0A CN112964286B (en) 2021-02-02 2021-02-02 Data marking method, temperature and humidity recorder and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110141895.0A CN112964286B (en) 2021-02-02 2021-02-02 Data marking method, temperature and humidity recorder and storage medium

Publications (2)

Publication Number Publication Date
CN112964286A true CN112964286A (en) 2021-06-15
CN112964286B CN112964286B (en) 2023-10-31

Family

ID=76273276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110141895.0A Active CN112964286B (en) 2021-02-02 2021-02-02 Data marking method, temperature and humidity recorder and storage medium

Country Status (1)

Country Link
CN (1) CN112964286B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113643239A (en) * 2021-07-15 2021-11-12 上海交通大学 Abnormity detection method, device and medium based on memory mechanism

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130103657A1 (en) * 2010-05-14 2013-04-25 Hitachi, Ltd. Time-series data management device, system, method, and program
CN106845883A (en) * 2015-12-04 2017-06-13 陈芒 Cold Chain Logistics real-time monitoring system
CN107423411A (en) * 2017-07-28 2017-12-01 郑州云海信息技术有限公司 Journal displaying method and apparatus
CN110324698A (en) * 2018-03-28 2019-10-11 努比亚技术有限公司 A kind of video recording method, terminal and computer readable storage medium
CN111413259A (en) * 2020-04-14 2020-07-14 河南省商丘生态环境监测中心 Real-time monitoring and tracing method for air exhaust gas
CN112084147A (en) * 2020-09-10 2020-12-15 珠海美佳音科技有限公司 Data storage method, data acquisition recorder and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130103657A1 (en) * 2010-05-14 2013-04-25 Hitachi, Ltd. Time-series data management device, system, method, and program
CN106845883A (en) * 2015-12-04 2017-06-13 陈芒 Cold Chain Logistics real-time monitoring system
CN107423411A (en) * 2017-07-28 2017-12-01 郑州云海信息技术有限公司 Journal displaying method and apparatus
CN110324698A (en) * 2018-03-28 2019-10-11 努比亚技术有限公司 A kind of video recording method, terminal and computer readable storage medium
CN111413259A (en) * 2020-04-14 2020-07-14 河南省商丘生态环境监测中心 Real-time monitoring and tracing method for air exhaust gas
CN112084147A (en) * 2020-09-10 2020-12-15 珠海美佳音科技有限公司 Data storage method, data acquisition recorder and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113643239A (en) * 2021-07-15 2021-11-12 上海交通大学 Abnormity detection method, device and medium based on memory mechanism
CN113643239B (en) * 2021-07-15 2023-10-27 上海交通大学 Abnormality detection method, device and medium based on memory mechanism

Also Published As

Publication number Publication date
CN112964286B (en) 2023-10-31

Similar Documents

Publication Publication Date Title
KR101536410B1 (en) Apparatus and method for managing of data in energy management system
US10275618B2 (en) Finding sensor data in an RFID network
CN107066246B (en) Software development method and device
CN109656973B (en) Target object association analysis method and device
CN108388640B (en) Data conversion method and device and data processing system
US20080027578A1 (en) Parts production management system and parts production management method
CN105224326A (en) A kind of incremental deploying method of system code and device
CN109408383B (en) Java memory leak analysis method and device
US20200073738A1 (en) Error incident fingerprinting with unique static identifiers
CN112817814A (en) Abnormity monitoring method, system, storage medium and electronic device
CN111782635A (en) Data processing method and apparatus, storage medium, and electronic apparatus
CN112964286A (en) Data marking method, temperature and humidity recorder and storage medium
CN104182348B (en) Software test method and device
CN103020225A (en) CPU (Central Processing Unit) model identifying method and hardware detection system
CN104298671A (en) Data statistics analysis method and device
CN103593429A (en) Commodity template failure detection method and device
CN108255888B (en) Data processing method and system
CN104965865A (en) Quick inspection method of nuclear power plant DCS electronic alarm card
CN112992298B (en) Abnormity identification method, test tube associated personnel determination method and related equipment
CN104268277A (en) Data reading method and device for database
CN109635688B (en) Method and system for managing books on bookshelf based on image recognition
CN105227333B (en) The method and apparatus of network element device data maintenance
CN109450966B (en) Equipment positioning method and device, computer equipment and storage medium
CN112181969A (en) Second-hand book edition recognition device based on NLP and image recognition
CN108132971B (en) Analysis method and device for database fragment files

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant