Temperature and humidity data acquisition method, device, equipment and storage medium
1. A temperature and humidity data acquisition method is characterized by comprising the following steps:
acquiring a monitoring result, and acquiring temperature and humidity data to be processed according to the monitoring result;
preprocessing the temperature and humidity data to be processed to generate processed temperature and humidity data;
analyzing the processed temperature and humidity data to generate temperature and humidity data to be displayed;
integrating the temperature and humidity data to be displayed according to a preset report template to generate temperature and humidity report data, wherein the temperature and humidity report data at least comprise a temperature and humidity curve graph with time mark points and thermodynamic temperature values.
2. The method for acquiring temperature and humidity data according to claim 1, wherein the acquiring of the monitoring result and the acquiring of the temperature and humidity data to be processed according to the monitoring result comprises:
reading a monitoring result, and judging whether the monitoring result is an alarm result;
and if the monitoring result is not the alarm result, automatically acquiring the temperature and humidity data to be processed.
3. The method according to claim 1, wherein the preprocessing is performed on the temperature and humidity data to be processed, and the generating of the processed temperature and humidity data includes:
carrying out data cleaning on the temperature and humidity data to be processed to generate cleaned temperature and humidity data;
and performing data restoration on the cleaned temperature and humidity data to generate processed temperature and humidity data.
4. The method according to claim 1, wherein the analyzing the processed temperature and humidity data to generate temperature and humidity data to be displayed includes:
performing secondary processing on the processed temperature and humidity data to generate a target data frame result;
and analyzing the target data frame result to generate temperature and humidity data to be displayed.
5. The method according to claim 4, wherein the performing of the secondary processing on the processed temperature and humidity data to generate the target data frame result comprises:
reading an instruction head, a data address and a data length from the processed temperature and humidity data;
splicing the command header, the data address and the data length to generate spliced temperature and humidity data;
adding preset check data in the spliced temperature and humidity data to generate an initial data frame result;
calculating the processed temperature and humidity data to generate verification data to be verified;
comparing the check data to be checked with the preset check data;
when the check data to be checked is matched with the preset check data, judging whether the data length is equal to the preset data length;
and if the data length is equal to the preset data length, determining the initial data frame result as a target data frame result.
6. The method according to claim 4, wherein the analyzing the target data frame result to generate the temperature and humidity data to be displayed includes:
reading flash point temperature and humidity data, temperature and humidity precision data and minimum temperature and humidity data from the target data frame result;
and calculating the flash point temperature and humidity data, the temperature and humidity precision data and the minimum temperature and humidity data according to a preset temperature and humidity formula to generate temperature and humidity data to be displayed.
7. The method for acquiring temperature and humidity data according to claim 1, wherein the temperature and humidity data to be displayed are integrated according to a preset report template to generate temperature and humidity report data, and the temperature and humidity report data at least comprise a temperature and humidity graph with time mark points and thermodynamic temperature values comprise:
reading an initial reading time and a corresponding termination reading time corresponding to an acquisition instruction, wherein the acquisition instruction is used for indicating to acquire to-be-processed temperature and humidity data;
generating a starting reading time mark point and an ending reading time mark point based on the starting reading time and the ending reading time;
and generating temperature and humidity report data according to a preset report template, the temperature and humidity data to be displayed, the initial reading time mark point and the final reading time mark point, wherein the temperature and humidity report data at least comprises a temperature and humidity curve graph with the time mark points and a thermodynamic temperature value.
8. The utility model provides a temperature and humidity data's collection system which characterized in that, temperature and humidity data's collection system includes:
the acquisition module is used for acquiring a monitoring result and acquiring temperature and humidity data to be processed according to the monitoring result;
the preprocessing module is used for preprocessing the temperature and humidity data to be processed to generate processed temperature and humidity data;
the analysis module is used for analyzing the processed temperature and humidity data to generate temperature and humidity data to be displayed;
and the integration module is used for integrating the temperature and humidity data to be displayed according to a preset report template to generate temperature and humidity report data, and the temperature and humidity report data at least comprises a temperature and humidity curve graph with time mark points and thermodynamic temperature values.
9. The utility model provides a humiture data's collection equipment, its characterized in that, humiture data's collection equipment includes: a memory and at least one processor, the memory having instructions stored therein;
the at least one processor calls the instructions in the memory to cause the temperature and humidity data acquisition device to execute the temperature and humidity data acquisition method according to any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon instructions, wherein the instructions, when executed by a processor, implement the method for acquiring temperature and humidity data according to any one of claims 1 to 7.
Background
The humiture refers to the temperature and humidity of the environment, can represent the environmental conditions of product production or storage, and is commonly used for representing the humiture of vegetable greenhouses, storage rooms, clean rooms, museums, laboratories, transportation vehicles and other places.
At present, a temperature and humidity acquisition system or a temperature and humidity acquisition instrument is mainly adopted for temperature and humidity data measurement and acquisition, but the conventional temperature and humidity acquisition method can only acquire temperature and humidity data according to a test period set in advance, and often acquires a lot of useless temperature and humidity data, so that the temperature and humidity data required by a user cannot be accurately acquired.
Disclosure of Invention
The invention provides a temperature and humidity data acquisition method, a temperature and humidity data acquisition device, temperature and humidity data acquisition equipment and a storage medium, which are used for improving the accuracy and flexibility of temperature and humidity data required by a user and displaying the temperature and humidity data to the user in different time periods.
The invention provides a temperature and humidity data acquisition method in a first aspect, which comprises the following steps: acquiring a monitoring result, and acquiring temperature and humidity data to be processed according to the monitoring result; preprocessing the temperature and humidity data to be processed to generate processed temperature and humidity data; analyzing the processed temperature and humidity data to generate temperature and humidity data to be displayed; integrating the temperature and humidity data to be displayed according to a preset report template to generate temperature and humidity report data, wherein the temperature and humidity report data at least comprise a temperature and humidity curve graph with time mark points and thermodynamic temperature values.
Optionally, in a first implementation manner of the first aspect of the present invention, the obtaining a monitoring result, and according to the monitoring result, obtaining to-be-processed temperature and humidity data includes: reading a monitoring result, and judging whether the monitoring result is an alarm result; and if the monitoring result is not the alarm result, automatically acquiring the temperature and humidity data to be processed.
Optionally, in a second implementation manner of the first aspect of the present invention, the preprocessing the to-be-processed temperature and humidity data, and generating the processed temperature and humidity data includes: carrying out data cleaning on the temperature and humidity data to be processed to generate cleaned temperature and humidity data; and performing data restoration on the cleaned temperature and humidity data to generate processed temperature and humidity data.
Optionally, in a third implementation manner of the first aspect of the present invention, the analyzing the processed temperature and humidity data, and generating the temperature and humidity data to be displayed includes: performing secondary processing on the processed temperature and humidity data to generate a target data frame result; and analyzing the target data frame result to generate temperature and humidity data to be displayed.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the performing secondary processing on the processed temperature and humidity data, and generating a target data frame result includes: reading an instruction head, a data address and a data length from the processed temperature and humidity data; splicing the command header, the data address and the data length to generate spliced temperature and humidity data; adding preset check data in the spliced temperature and humidity data to generate an initial data frame result; calculating the processed temperature and humidity data to generate verification data to be verified; comparing the check data to be checked with the preset check data; when the check data to be checked is matched with the preset check data, judging whether the data length is equal to the preset data length; and if the data length is equal to the preset data length, determining the initial data frame result as a target data frame result.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the analyzing the target data frame result, and generating the temperature and humidity data to be displayed includes: reading flash point temperature and humidity data, temperature and humidity precision data and minimum temperature and humidity data from the target data frame result; and calculating the flash point temperature and humidity data, the temperature and humidity precision data and the minimum temperature and humidity data according to a preset temperature and humidity formula to generate temperature and humidity data to be displayed.
Optionally, in a sixth implementation manner of the first aspect of the present invention, the integrating, according to a preset report template, the temperature and humidity data to be displayed to generate temperature and humidity report data, where the temperature and humidity report data at least includes a temperature and humidity graph with time mark points and a thermodynamic temperature value includes: reading an initial reading time and a corresponding termination reading time corresponding to an acquisition instruction, wherein the acquisition instruction is used for indicating to acquire to-be-processed temperature and humidity data; generating a starting reading time mark point and an ending reading time mark point based on the starting reading time and the ending reading time; and generating temperature and humidity report data according to a preset report template, the temperature and humidity data to be displayed, the initial reading time mark point and the final reading time mark point, wherein the temperature and humidity report data at least comprises a temperature and humidity curve graph with the time mark points and a thermodynamic temperature value.
The second aspect of the present invention provides a temperature and humidity data acquisition apparatus, including: the acquisition module is used for acquiring a monitoring result and acquiring temperature and humidity data to be processed according to the monitoring result; the preprocessing module is used for preprocessing the temperature and humidity data to be processed to generate processed temperature and humidity data; the analysis module is used for analyzing the processed temperature and humidity data to generate temperature and humidity data to be displayed; and the integration module is used for integrating the temperature and humidity data to be displayed according to a preset report template to generate temperature and humidity report data, and the temperature and humidity report data at least comprises a temperature and humidity curve graph with time mark points and thermodynamic temperature values.
Optionally, in a first implementation manner of the second aspect of the present invention, the obtaining module may be further specifically configured to: reading a monitoring result, and judging whether the monitoring result is an alarm result; and if the monitoring result is not the alarm result, automatically acquiring the temperature and humidity data to be processed.
Optionally, in a second implementation manner of the second aspect of the present invention, the preprocessing module may be further specifically configured to: carrying out data cleaning on the temperature and humidity data to be processed to generate cleaned temperature and humidity data; and performing data restoration on the cleaned temperature and humidity data to generate processed temperature and humidity data.
Optionally, in a third implementation manner of the second aspect of the present invention, the parsing module includes: the secondary processing unit is used for carrying out secondary processing on the processed temperature and humidity data to generate a target data frame result; and the analysis unit is used for analyzing the target data frame result to generate temperature and humidity data to be displayed.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the secondary processing unit may further be specifically configured to: reading an instruction head, a data address and a data length from the processed temperature and humidity data; splicing the command header, the data address and the data length to generate spliced temperature and humidity data; adding preset check data in the spliced temperature and humidity data to generate an initial data frame result; calculating the processed temperature and humidity data to generate verification data to be verified; comparing the check data to be checked with the preset check data; when the check data to be checked is matched with the preset check data, judging whether the data length is equal to the preset data length; and if the data length is equal to the preset data length, determining the initial data frame result as a target data frame result.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the parsing unit may be further specifically configured to: reading flash point temperature and humidity data, temperature and humidity precision data and minimum temperature and humidity data from the target data frame result; and calculating the flash point temperature and humidity data, the temperature and humidity precision data and the minimum temperature and humidity data according to a preset temperature and humidity formula to generate temperature and humidity data to be displayed.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the integration module includes: reading an initial reading time and a corresponding termination reading time corresponding to an acquisition instruction, wherein the acquisition instruction is used for indicating to acquire to-be-processed temperature and humidity data; generating a starting reading time mark point and an ending reading time mark point based on the starting reading time and the ending reading time; and generating temperature and humidity report data according to a preset report template, the temperature and humidity data to be displayed, the initial reading time mark point and the final reading time mark point, wherein the temperature and humidity report data at least comprises a temperature and humidity curve graph with the time mark points and a thermodynamic temperature value.
The third aspect of the present invention provides a temperature and humidity data acquisition device, including: a memory and at least one processor, the memory having instructions stored therein; the at least one processor calls the instruction in the memory to enable the temperature and humidity data acquisition equipment to execute the temperature and humidity data acquisition method.
A fourth aspect of the present invention provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to execute the above-mentioned temperature and humidity data acquisition method.
According to the technical scheme provided by the invention, a monitoring result is obtained, and temperature and humidity data to be processed are obtained according to the monitoring result; preprocessing the temperature and humidity data to be processed to generate processed temperature and humidity data; analyzing the processed temperature and humidity data to generate temperature and humidity data to be displayed; integrating the temperature and humidity data to be displayed according to a preset report template to generate temperature and humidity report data, wherein the temperature and humidity report data at least comprise a temperature and humidity curve graph with time mark points and thermodynamic temperature values. In the embodiment of the invention, a monitoring result of a recorder is obtained, temperature and humidity data to be processed are obtained according to the monitoring result, the temperature and humidity data to be processed are processed, analyzed and integrated, and temperature and humidity report data at least comprising a temperature and humidity curve graph with time mark points and thermodynamic temperature values are generated; the temperature and humidity data are collected not only according to the collection period, but also according to the monitoring result, the problem of collecting useless temperature and humidity data is solved, the accuracy and flexibility of collecting the temperature and humidity data required by a user are improved, temperature and humidity report data with time mark points are generated, and the temperature and humidity data can be displayed to the user in different time periods.
Drawings
Fig. 1 is a schematic diagram of an embodiment of a method for acquiring temperature and humidity data according to an embodiment of the present invention;
fig. 2 is a schematic diagram of another embodiment of a method for acquiring temperature and humidity data according to an embodiment of the present invention;
fig. 3 is a schematic view of an embodiment of a temperature and humidity data acquisition device in an embodiment of the present invention;
fig. 4 is a schematic view of another embodiment of the temperature and humidity data acquisition device in the embodiment of the present invention;
fig. 5 is a schematic diagram of an embodiment of a temperature and humidity data acquisition device in an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method, a device, equipment and a storage medium for acquiring temperature and humidity data, which are used for improving the accuracy and flexibility of acquiring the temperature and humidity data required by a user and displaying the temperature and humidity data to the user in different time periods.
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 convenience of understanding, a specific flow of an embodiment of the present invention is described below, and referring to fig. 1, an embodiment of a method for acquiring temperature and humidity data in an embodiment of the present invention includes:
101. acquiring a monitoring result, and acquiring temperature and humidity data to be processed according to the monitoring result;
and the server acquires a monitoring result and acquires the temperature and humidity data to be processed according to the monitoring result.
In this embodiment, the server first obtains the monitoring result, and when the monitoring result meets the obtaining condition, the server obtains the temperature and humidity data to be processed. The temperature and humidity data to be processed can be read from the temperature and humidity recorder through the USB channel, the NFC channel and the Bluetooth channel. The method comprises the steps that the modes of acquiring to-be-processed temperature and humidity data through an NFC channel and a Bluetooth are approximately consistent, a server sends an acquisition instruction used for indicating acquisition of the to-be-processed temperature and humidity data to a recorder according to a monitoring result, the server transmits the acquisition instruction to the temperature and humidity recorder through the NFC channel or the Bluetooth channel, the to-be-processed temperature and humidity data are sent to the server after the temperature and humidity recorder receives the acquisition instruction, and the server acquires the to-be-processed temperature and humidity data. The data structure of the to-be-processed temperature and humidity data acquired through the NFC channel and the Bluetooth channel is similar, but the temperature and humidity recorder for transmitting data through the NFC channel is simple, only the functions of recording data and storing data are needed, the temperature and humidity recorder for transmitting data through the Bluetooth channel is complex, the functions of recording data and storing data are needed, and the function of exporting reports is needed.
It can be understood that the execution main body of the invention may be a temperature and humidity data acquisition device, and may also be a terminal or a server, which is not limited herein. The embodiment of the present invention is described by taking a server as an execution subject.
102. Preprocessing temperature and humidity data to be processed to generate processed temperature and humidity data;
after acquiring the temperature and humidity data to be processed, the server also needs to preprocess the temperature and humidity data to be processed, so as to generate processed temperature and humidity data.
Because the temperature and humidity data to be processed includes a large amount of repeated data, blank data and missing data, after the temperature and humidity data to be processed is obtained by the server, the temperature and humidity data to be processed is firstly preprocessed, for example, the temperature and humidity data to be processed is cleaned, the repeated data or the blank data is filtered, the temperature and humidity data to be processed can be repaired, the missing data in which abnormality occurs is repaired, and the server obtains the processed temperature and humidity data after the preprocessing.
It should be noted that, if data in the temperature and humidity data to be processed cannot be repaired, the state is maintained, and no other processing is required.
103. Analyzing the processed temperature and humidity data to generate temperature and humidity data to be displayed;
after the server generates the processed temperature and humidity data, the server also needs to analyze the processed temperature and humidity data to generate the temperature and humidity data to be displayed.
The server imports the processed temperature and humidity data into a guide area, and then analyzes the processed temperature and humidity data, wherein the temperature and humidity data in the scheme comprises temperature data and humidity data, and the server analyzes the temperature data based on the temperature data in the processed temperature and humidity data and a corresponding preset formula to generate temperature data to be displayed in the temperature and humidity data to be displayed; and the server analyzes the humidity data based on the humidity data in the processed temperature and humidity data and a corresponding preset formula to generate the humidity data to be displayed in the temperature and humidity data to be displayed.
It should be noted that the accuracy of the temperature data to be displayed in the temperature and humidity data to be displayed is 0.1%, and the accuracy of the humidity data to be displayed in the temperature and humidity data to be displayed is 1 Rh%. For example, the humiture data to be displayed in the carriage of the transportation vehicle centimetre are [27.1 ℃, 65 Rh% ], [27.4 ℃, 65 Rh% ], … …, [27.8 ℃, 66 Rh% ].
104. Integrating temperature and humidity data to be displayed according to a preset report template to generate temperature and humidity report data, wherein the temperature and humidity report data at least comprise a temperature and humidity curve graph with time mark points and thermodynamic temperature values.
And the server integrates the temperature and humidity data to be displayed according to a preset report template to generate temperature and humidity report data at least comprising a temperature and humidity curve graph with time mark points and thermodynamic temperature values.
After generating the temperature and humidity data to be displayed, the server integrates the temperature and humidity data to be displayed according to a preset report target to generate temperature and humidity report data, where the temperature and humidity report data in this embodiment at least includes a temperature and humidity graph with time mark points and a thermodynamic temperature value, where the number of the time mark points in the temperature and humidity graph with time mark points may be 1 or multiple. In addition, the temperature and humidity report data may further include alarm information, where the alarm information includes alarm type, number of alarms, first alarm time, alarm duration and alarm state, and in this embodiment, the alarm may be understood as an alarm that is issued when the temperature is too high, the temperature is too low, the humidity is too high, or the humidity is too low during transportation. The temperature and humidity report data can also comprise a marking event, wherein the time marking point belongs to the marking event, and the temperature and the humidity of the marking point are also the marking event. The temperature and humidity curve chart with the time mark points comprises a temperature curve, a humidity curve, the time mark points, an upper temperature limit, a lower temperature limit, an upper humidity limit and a lower humidity limit. The temperature and humidity report data with the time mark points can show the temperature and humidity data to a user in different time periods.
In the embodiment of the invention, a monitoring result of a recorder is obtained, temperature and humidity data to be processed are obtained according to the monitoring result, the temperature and humidity data to be processed are processed, analyzed and integrated, and temperature and humidity report data at least comprising a temperature and humidity curve graph with time mark points and thermodynamic temperature values are generated; the temperature and humidity data are collected not only according to the collection period, but also according to the monitoring result, the problem of collecting useless temperature and humidity data is solved, the accuracy and flexibility of collecting the temperature and humidity data required by a user are improved, temperature and humidity report data with time mark points are generated, and the temperature and humidity data can be displayed to the user in different time periods.
Referring to fig. 2, another embodiment of the method for acquiring temperature and humidity data according to the embodiment of the present invention includes:
201. acquiring a monitoring result, and acquiring temperature and humidity data to be processed according to the monitoring result;
and the server acquires a monitoring result and acquires the temperature and humidity data to be processed according to the monitoring result.
In this embodiment, the server first obtains the monitoring result, and when the monitoring result meets the obtaining condition, the server obtains the temperature and humidity data to be processed. The temperature and humidity data to be processed can be read from the temperature and humidity recorder through the USB channel, the NFC channel and the Bluetooth channel. The method comprises the steps that the modes of acquiring to-be-processed temperature and humidity data through an NFC channel and a Bluetooth are approximately consistent, a server sends an acquisition instruction used for indicating acquisition of the to-be-processed temperature and humidity data to a recorder according to a monitoring result, the server transmits the acquisition instruction to the temperature and humidity recorder through the NFC channel or the Bluetooth channel, the to-be-processed temperature and humidity data are sent to the server after the temperature and humidity recorder receives the acquisition instruction, and the server acquires the to-be-processed temperature and humidity data. The data structure of the to-be-processed temperature and humidity data acquired through the NFC channel and the Bluetooth channel is similar, but the temperature and humidity recorder for transmitting data through the NFC channel is simple, only the functions of recording data and storing data are needed, the temperature and humidity recorder for transmitting data through the Bluetooth channel is complex, the functions of recording data and storing data are needed, and the function of exporting reports is needed.
Specifically, the server reads the monitoring result and judges whether the monitoring result is an alarm result; and if the monitoring result is not the alarm result, the server automatically acquires the temperature and humidity data to be processed.
The server scans the temperature and humidity recorder to obtain a monitoring result, wherein the monitoring result indicates the working state of the temperature and humidity recorder. When the working state of the temperature and humidity recorder is the red light on, the monitoring result obtained by the server is an alarm result, the environment needing to acquire temperature and humidity data is not a healthy temperature and humidity environment, and the temperature and humidity data at the moment are not read. When the working state of the temperature and humidity recorder is the turning-on blue-green light, the monitoring result obtained by the server is not an alarm result, the environment needing to obtain temperature and humidity data is a healthy temperature and humidity environment, the temperature and humidity data are automatically obtained, and the temperature and humidity data to be processed are obtained by the server. And judging whether to acquire the temperature and humidity environment to be processed according to the monitoring result, wherein useful temperature and humidity data can be adopted only, so that some useless temperature and humidity data are abandoned.
202. Preprocessing temperature and humidity data to be processed to generate processed temperature and humidity data;
after acquiring the temperature and humidity data to be processed, the server also needs to preprocess the temperature and humidity data to be processed, so as to generate processed temperature and humidity data.
Because the temperature and humidity data to be processed includes a large amount of repeated data, blank data and missing data, after the temperature and humidity data to be processed is obtained by the server, the temperature and humidity data to be processed is firstly preprocessed, for example, the temperature and humidity data to be processed is cleaned, the repeated data or the blank data is filtered, the temperature and humidity data to be processed can be repaired, the missing data in which abnormality occurs is repaired, and the server obtains the processed temperature and humidity data after the preprocessing.
It should be noted that, if data in the temperature and humidity data to be processed cannot be repaired, the state is maintained, and processing is not required.
Specifically, the server performs data cleaning on temperature and humidity data to be processed to generate cleaned temperature and humidity data; and the server performs data restoration on the cleaned temperature and humidity data to generate processed temperature and humidity data.
After obtaining the temperature and humidity data to be processed, the server needs to perform preprocessing on the temperature and humidity data to be processed, wherein the preprocessing mainly comprises data cleaning and data restoration. The server cleans the temperature and humidity data to be processed, firstly filters repeated data or blank data, then filters the data with a format which does not conform to a preset data format, wherein the data format can comprise contents such as time, date, numerical value and the like, and filters the data which does not match with the data format, thereby obtaining the cleaned temperature and humidity data. In order to ensure the continuity of the temperature and humidity data after cleaning, the server needs to repair the temperature and humidity data after cleaning. If the embodiment is applied to a scene of fruit transportation, the server first determines an error point corresponding to error data in cleaned temperature and humidity data, then calculates based on two points before and after the error point to generate an average air thermodynamic temperature, and then replaces the data of the error point with the average air thermodynamic temperature to generate processed temperature and humidity data.
203. Performing secondary processing on the processed temperature and humidity data to generate a target data frame result;
and the server performs secondary processing on the processed temperature and humidity data to generate a target data frame result.
Specifically, the server reads an instruction header, a data address and a data length from the processed temperature and humidity data; splicing the instruction head, the data address and the data length by the server to generate spliced temperature and humidity data; the server adds preset check data in the spliced temperature and humidity data to generate an initial data frame result; the server calculates the processed temperature and humidity data to generate check data to be checked; the server compares the check data to be checked with preset check data; when the check data to be checked is matched with the preset check data, the server judges whether the data length is equal to the preset data length; and if the data length is equal to the preset data length, the server determines the initial data frame result as a target data frame result.
After the server reads data from the temperature and humidity recorder, boxing processing and unpacking processing are required to be performed on the data, wherein the boxing processing process includes the steps of reading an instruction header, a data address and a data length from the processed temperature and humidity data, splicing the instruction header, the data address and the data length by the server to generate spliced temperature and humidity data, and then adding the check data into the processed temperature and humidity data to generate an initial data frame result. After the boxing process is finished, the server unpacks the initial data frame result, firstly, the temperature and humidity data after the processing is read and calculated to generate check data to be checked, the server compares the check data to be checked with preset check data, when the check data to be checked is matched with the preset check data, the server judges whether the data length is equal to the preset data length or not, and if the data length is equal to the preset data length, the server judges that the initial data frame result is the target data frame result.
204. Analyzing the target data frame result to generate temperature and humidity data to be displayed;
and analyzing the target data frame result by the server to generate temperature and humidity data to be displayed.
Specifically, the server reads flash point temperature and humidity data, temperature and humidity precision data and minimum temperature and humidity data from a target data frame result; and the server calculates the flash point temperature and humidity data, the temperature and humidity precision data and the minimum temperature and humidity data according to a preset temperature and humidity formula to generate temperature and humidity data to be displayed.
And the server reads the flash point temperature and humidity data, the temperature and humidity precision data and the minimum temperature and humidity data from the target data frame result, and then calculates based on the flash point temperature and humidity data, the temperature and humidity precision data and the minimum temperature and humidity data according to a preset temperature and humidity formula to generate temperature and humidity data to be displayed. Wherein the preset humidity formula is as follows: h ═ HFlash×HAccuracy+HMinWherein H isFlashAs flash point humidity data, HAccuracyFor the humidity accuracy data, H is the humidity data to be displayed in the humiture data to be displayed, HMinFor minimum humidity data, H in this exampleMinIs 0, suppose HFlashIs 10000, HAccuracyCalculated as 1 Rh%, H ═ 100 Rh%. The preset temperature formula is T ═ TFlash×TAccuracy+TMinWherein, TFlashAs flash point temperature data, TAccuracyFor temperature accuracy data, T is temperature data to be displayed in temperature and humidity data to be displayed, TMinFor minimum temperature data, T in this exampleMinIs 0, assume TFlashIs 2610, TAccuracyAt 0.1 ℃, T ═ 26.1 ℃ was calculated.
205. Integrating temperature and humidity data to be displayed according to a preset report template to generate temperature and humidity report data, wherein the temperature and humidity report data at least comprise a temperature and humidity curve graph with time mark points and thermodynamic temperature values.
And the server integrates the temperature and humidity data to be displayed according to a preset report template to generate temperature and humidity report data at least comprising a temperature and humidity curve graph with time mark points and thermodynamic temperature values.
After generating the temperature and humidity data to be displayed, the server integrates the temperature and humidity data to be displayed according to a preset report target to generate temperature and humidity report data, where the temperature and humidity report data in this embodiment at least includes a temperature and humidity graph with time mark points and a thermodynamic temperature value, where the number of the time mark points in the temperature and humidity graph with time mark points may be 1 or multiple. In addition, the temperature and humidity report data may further include alarm information, where the alarm information includes alarm type, number of alarms, first alarm time, alarm duration and alarm state, and in this embodiment, the alarm may be understood as an alarm that is issued when the temperature is too high, the temperature is too low, the humidity is too high, or the humidity is too low during transportation. The temperature and humidity report data can also comprise a marking event, wherein the time marking point belongs to the marking event, and the temperature and the humidity of the marking point are also the marking event. The temperature and humidity curve chart with the time mark points comprises a temperature curve, a humidity curve, the time mark points, an upper temperature limit, a lower temperature limit, an upper humidity limit and a lower humidity limit. The temperature and humidity report data with the time mark points can show the temperature and humidity data to a user in different time periods.
Specifically, the server reads an initial reading time and a corresponding termination reading time corresponding to the acquisition instruction, wherein the acquisition instruction is used for indicating to acquire to-be-processed temperature and humidity data; the server generates a starting reading time mark point and an ending reading time mark point based on the starting reading time and the ending reading time; the server generates temperature and humidity report data according to a preset report template, temperature and humidity data to be displayed, a starting reading time mark point and an ending reading time mark point, wherein the temperature and humidity report data at least comprise a temperature and humidity curve graph with the time mark points and a thermodynamic temperature value.
The method comprises the steps that a server reads an initial reading time corresponding to an acquisition instruction for acquiring temperature and humidity data to be processed and a corresponding end reading time, then generates a reading time mark point based on the initial reading time, generates an end reading time mark point based on the end reading time, then the server configures the initial reading time mark point and the end reading time mark point into a preset temperature and humidity curve graph according to a preset report template, generates a temperature and humidity curve graph with the time mark points, and then generates temperature and humidity report data comprising thermodynamic temperature values by combining the temperature and humidity data to be displayed.
In the embodiment of the invention, a monitoring result of a recorder is obtained, temperature and humidity data to be processed are obtained according to the monitoring result, the temperature and humidity data to be processed are processed, analyzed and integrated, and temperature and humidity report data at least comprising a temperature and humidity curve graph with time mark points and thermodynamic temperature values are generated; the temperature and humidity data are collected not only according to the collection period, but also according to the monitoring result, the problem of collecting useless temperature and humidity data is solved, the accuracy and flexibility of collecting the temperature and humidity data required by a user are improved, temperature and humidity report data with time mark points are generated, and the temperature and humidity data can be displayed to the user in different time periods.
In the above description of the method for acquiring temperature and humidity data in the embodiment of the present invention, referring to fig. 3, an embodiment of the apparatus for acquiring temperature and humidity data in the embodiment of the present invention includes:
the acquisition module 301 is configured to acquire a monitoring result and acquire temperature and humidity data to be processed according to the monitoring result;
the preprocessing module 302 is configured to preprocess the temperature and humidity data to be processed, and generate processed temperature and humidity data;
the analysis module 303 is configured to analyze the processed temperature and humidity data to generate temperature and humidity data to be displayed;
the integration module 304 is configured to integrate temperature and humidity data to be displayed according to a preset report template to generate temperature and humidity report data, where the temperature and humidity report data at least includes a temperature and humidity graph with time mark points and a thermodynamic temperature value.
In the embodiment of the invention, a monitoring result of a recorder is obtained, temperature and humidity data to be processed are obtained according to the monitoring result, the temperature and humidity data to be processed are processed, analyzed and integrated, and temperature and humidity report data at least comprising a temperature and humidity curve graph with time mark points and thermodynamic temperature values are generated; the temperature and humidity data are collected not only according to the collection period, but also according to the monitoring result, the problem of collecting useless temperature and humidity data is solved, the accuracy and flexibility of collecting the temperature and humidity data required by a user are improved, temperature and humidity report data with time mark points are generated, and the temperature and humidity data can be displayed to the user in different time periods.
Referring to fig. 4, another embodiment of the device for acquiring temperature and humidity data according to the embodiment of the present invention includes:
the acquisition module 301 is configured to acquire a monitoring result and acquire temperature and humidity data to be processed according to the monitoring result;
the preprocessing module 302 is configured to preprocess the temperature and humidity data to be processed, and generate processed temperature and humidity data;
the analysis module 303 is configured to analyze the processed temperature and humidity data to generate temperature and humidity data to be displayed;
the integration module 304 is configured to integrate temperature and humidity data to be displayed according to a preset report template to generate temperature and humidity report data, where the temperature and humidity report data at least includes a temperature and humidity graph with time mark points and a thermodynamic temperature value.
Optionally, the obtaining module 301 may be further specifically configured to:
reading a monitoring result, and judging whether the monitoring result is an alarm result;
and if the monitoring result is not the alarm result, automatically acquiring the temperature and humidity data to be processed.
Optionally, the preprocessing module 302 may be further specifically configured to:
carrying out data cleaning on temperature and humidity data to be processed to generate cleaned temperature and humidity data;
and performing data restoration on the cleaned temperature and humidity data to generate processed temperature and humidity data.
Optionally, the parsing module 303 includes:
a secondary processing unit 3031, configured to perform secondary processing on the processed temperature and humidity data to generate a target data frame result;
and an analyzing unit 3032, configured to analyze the target data frame result to generate temperature and humidity data to be displayed.
Optionally, the secondary processing unit 3031 may be further specifically configured to:
reading an instruction head, a data address and a data length from the processed temperature and humidity data;
splicing the command head, the data address and the data length to generate spliced temperature and humidity data;
adding preset check data in the spliced temperature and humidity data to generate an initial data frame result;
calculating the processed temperature and humidity data to generate check data to be checked;
comparing the check data to be checked with preset check data;
when the check data to be checked is matched with the preset check data, judging whether the data length is equal to the preset data length;
and if the data length is equal to the preset data length, determining the initial data frame result as a target data frame result.
Optionally, the parsing unit 3032 may be further specifically configured to:
reading flash point temperature and humidity data, temperature and humidity precision data and minimum temperature and humidity data from a target data frame result;
and calculating the flash point temperature and humidity data, the temperature and humidity precision data and the minimum temperature and humidity data according to a preset temperature and humidity formula to generate temperature and humidity data to be displayed.
Optionally, the integrating module 304 includes:
reading an initial reading time corresponding to the acquisition instruction and a corresponding termination reading time, wherein the acquisition instruction is used for indicating to acquire to-be-processed temperature and humidity data;
generating a starting reading time mark point and an ending reading time mark point based on the starting reading time and the ending reading time;
and generating temperature and humidity report data according to a preset report template, temperature and humidity data to be displayed, a starting reading time mark point and an ending reading time mark point, wherein the temperature and humidity report data at least comprise a temperature and humidity curve graph with the time mark points and a thermodynamic temperature value.
In the embodiment of the invention, a monitoring result of a recorder is obtained, temperature and humidity data to be processed are obtained according to the monitoring result, the temperature and humidity data to be processed are processed, analyzed and integrated, and temperature and humidity report data at least comprising a temperature and humidity curve graph with time mark points and thermodynamic temperature values are generated; the temperature and humidity data are collected not only according to the collection period, but also according to the monitoring result, the problem of collecting useless temperature and humidity data is solved, the accuracy and flexibility of collecting the temperature and humidity data required by a user are improved, temperature and humidity report data with time mark points are generated, and the temperature and humidity data can be displayed to the user in different time periods.
The temperature and humidity data acquisition device in the embodiment of the present invention is described in detail in terms of the modular functional entity in fig. 3 and 4, and the temperature and humidity data acquisition device in the embodiment of the present invention is described in detail in terms of hardware processing.
Fig. 5 is a schematic structural diagram of a temperature and humidity data acquisition device according to an embodiment of the present invention, where the temperature and humidity data acquisition device 500 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) storing an application program 533 or data 532. Memory 520 and storage media 530 may be, among other things, transient or persistent storage. The program stored in the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations in the temperature and humidity data acquisition device 500. Further, the processor 510 may be configured to communicate with the storage medium 530, and execute a series of instruction operations in the storage medium 530 on the temperature and humidity data acquisition device 500.
The temperature and humidity data collection device 500 may further include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input/output interfaces 560, and/or one or more operating systems 531, such as Windows server, Mac OS X, Unix, Linux, FreeBSD, and the like. Those skilled in the art will appreciate that the structure of the temperature and humidity data acquisition device shown in fig. 5 does not constitute a limitation of the temperature and humidity data acquisition device, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
The invention further provides a temperature and humidity data acquisition device, the computer device includes a memory and a processor, the memory stores computer readable instructions, and when the computer readable instructions are executed by the processor, the processor executes the steps of the temperature and humidity data acquisition method in the embodiments.
The invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, or a volatile computer-readable storage medium, where instructions are stored, and when the instructions are run on a computer, the instructions cause the computer to execute the steps of the method for acquiring the temperature and humidity data.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, 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.