Temperature measurement method, cloud server and temperature measurement instrument

文档序号:1182929 发布日期:2020-09-22 浏览:5次 中文

阅读说明:本技术 温度测量方法、云端服务器及温度测量仪 (Temperature measurement method, cloud server and temperature measurement instrument ) 是由 蔡颖君 乔磊 于 2020-07-13 设计创作,主要内容包括:本申请实施例提供了一种温度测量方法、云端服务器及温度测量仪,涉及测温技术领域,用于提高温度测量的准确度。方法主要包括:获取温度测量仪发送的M个测量温度和与所述M个测量温度对应的测量起始时间To和测量结束时间Te;确定所述云端服务器的数据库中与所述测量起始时间To和所述测量结束时间Te对应时间段的K条温度记录;每条所述温度记录中包含多个历史测量温度;判断所述K是否大于等于预设的记录阈值;若所述K大于等于预设的记录阈值,则根据所述M个测量温度和所述K条温度记录确定校零温度;将所述校零温度发送给所述温度测量仪,以使得所述温度测量仪根据计算实际测量温度和所述校零温度之和得到显示温度。(The embodiment of the application provides a temperature measurement method, a cloud server and a temperature measurement instrument, relates to the technical field of temperature measurement, and is used for improving the accuracy of temperature measurement. The method mainly comprises the following steps: acquiring M measured temperatures sent by a temperature measuring instrument and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures; determining K temperature records of a time period corresponding To the measurement starting time To and the measurement ending time Te in a database of the cloud server; each temperature record comprises a plurality of historical measured temperatures; judging whether the K is greater than or equal to a preset recording threshold value; if the K is larger than or equal to a preset recording threshold value, determining a zero calibration temperature according to the M measured temperatures and the K temperature records; and sending the zero calibration temperature to the temperature measuring instrument so that the temperature measuring instrument obtains a display temperature according to the sum of the calculated actual measured temperature and the zero calibration temperature.)

1. A temperature measurement method is applied to a cloud server, and is characterized by comprising the following steps:

acquiring M measured temperatures sent by a temperature measuring instrument and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures;

determining K temperature records of a time period corresponding To the measurement starting time To and the measurement ending time Te in a database of the cloud server; each temperature record comprises a plurality of historical measured temperatures;

judging whether the K is greater than or equal to a preset recording threshold value;

if the K is larger than or equal to a preset recording threshold value, determining a zero calibration temperature according to the M measured temperatures and the K temperature records;

and sending the zero calibration temperature to the temperature measuring instrument so that the temperature measuring instrument obtains a display temperature according to the sum of the calculated actual measured temperature and the zero calibration temperature.

2. The temperature measurement method according To claim 1, wherein the acquiring of the M measured temperatures and the measurement start time To and the measurement end time Te corresponding To the M measured temperatures sent by the temperature measurement instrument comprises:

when the temperature measuring instrument determines that the number of the stored measured temperatures is larger than a first preset value, receiving M measured temperatures sent by the temperature measuring instrument, and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures; or

When the temperature measuring instrument determines that the number of the stored measured temperatures is larger than a second preset value and the measured density is smaller than a preset density threshold value, receiving M measured temperatures sent by the temperature measuring instrument, and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures; the first preset value is greater than the second preset value.

3. The temperature measurement method according to claim 1, wherein after determining whether K is equal to or greater than a preset recording threshold, the method further comprises:

and if the K is smaller than the preset recording threshold value, setting the zero calibration temperature to be 0.

4. The temperature measurement method of claim 1 or 3, wherein determining a zeroing temperature from the M measured temperatures and the K temperature records comprises:

if it is determinedSetting the zeroing temperature to 0;

wherein, A is the mean value of the M measured temperatures, Aj is the mean value of the j-th record measured temperature in the K temperature records, sigma is the variance of Aj, and theta is a threshold value determined according to the value of sigma.

5. The temperature measurement method of claim 4, wherein the determination is madeThe method further comprises the following steps:

in determining

Figure FDA0002581493760000023

In determiningWhen is in use, the

Figure FDA0002581493760000026

6. The method of measuring temperature of claim 4, further comprising:

if it is determinedAnd if the deviation value is larger than the preset deviation value, sending prompt information to the temperature measuring instrument to prompt the temperature measuring instrument to need to be calibrated again.

7. A method for measuring temperature, the method being applied to a temperature measuring instrument, the method comprising:

sending M measured temperatures, and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures To a cloud server; enabling the cloud server To obtain K temperature records of a time period corresponding To the measurement starting time To and the measurement ending time Te, and determining zero calibration temperature according To the M measurement temperatures and the K temperature records;

receiving the zeroing temperature sent by the cloud server;

and obtaining the display temperature according to the sum of the calculated actual measurement temperature and the zero calibration temperature.

8. The temperature measurement method according To claim 7, wherein sending M measured temperatures and measurement start times To and measurement end times Te corresponding To the M measured temperatures To a cloud server comprises:

determining whether the number of the stored measured temperatures is greater than a first preset value;

if the number of the stored measured temperatures is larger than a first preset value, sending M measured temperatures, and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures To a cloud server;

if the number of the stored measured temperatures is smaller than or equal to a first preset value, judging whether the number of the stored measured temperatures is larger than a second preset value or not and whether the measured density is smaller than a preset density threshold or not;

if the number of the stored measured temperatures is larger than a second preset value and the measured density is smaller than a preset density threshold value, sending M measured temperatures, and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures To a cloud server;

if the number of the stored measured temperatures is determined to be smaller than or equal to a second preset value and the measured density is determined to be larger than or equal to a preset density threshold value, storing the newly measured temperatures and the corresponding measured time;

and if the number of the stored measured temperatures is determined to be less than or equal to the second preset value and the measured density is less than the preset density threshold value, emptying the stored measured temperatures and the corresponding measured time.

9. A cloud server, the cloud server comprising:

the acquisition module is used for acquiring M measured temperatures sent by the temperature measuring instrument and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures;

the determining module is used for determining K temperature records of a time period corresponding To the measurement starting time To and the measurement ending time Te in a database of the cloud server; each temperature record comprises a plurality of historical measured temperatures;

the judging module is used for judging whether the K is greater than or equal to a preset recording threshold value;

the calculation module is used for determining the zero calibration temperature according to the M measured temperatures and the K temperature records if the K is greater than or equal to a preset recording threshold value;

and the sending module is used for sending the zero calibration temperature to the temperature measuring instrument so that the temperature measuring instrument can obtain the display temperature according to the sum of the calculated actual measured temperature and the zero calibration temperature.

10. A temperature measuring instrument, characterized in that the temperature measuring instrument comprises:

the device comprises an embedded processor, a communication module, a zero calibration temperature register, a display, a temperature detection unit and a temperature storage unit, wherein the embedded processor is in communication connection with other devices;

the communication module is used for sending M measured temperatures, and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures To the cloud server; enabling the cloud server To obtain K temperature records of a time period corresponding To the measurement starting time To and the measurement ending time Te, and determining zero calibration temperature according To the M measurement temperatures and the K temperature records;

the communication module is further configured to receive the zeroing temperature sent by the cloud server;

the embedded processor is used for obtaining a display temperature according to the sum of the calculated actual measured temperature and the zero calibration temperature;

the display is used for outputting the display temperature.

Technical Field

The embodiment of the application relates to the technical field of temperature measurement, in particular to a temperature measurement method, a cloud server and a temperature measurement instrument.

Background

Temperature measuring instruments are widely used during epidemic situations, and they can be applied at high frequency in a short time to generate a large amount of data. Such as an indoor space of an office building, the frequency of use of the indoor temperature measuring device is very high during the peak hours of work, and hundreds of temperatures need to be measured within one or two hours.

However, the temperature measured by the temperature measuring instrument itself is liable to cause an error. The cause of the error is several. For example, the effect of ambient temperature; for another example, the operation is not standard and scientific; like some operators are far away from the forehead during operation, and some operators are close to the forehead during operation, the measured temperature has an error under the condition; for another example, the system is repeatedly used for a long time, resulting in rapid aging of the internal sensing device.

Disclosure of Invention

The embodiment of the application provides a temperature measurement method, a cloud server and a temperature measurement instrument, which are used for improving the accuracy of temperature measurement.

The embodiment of the invention provides a temperature measuring method, which is applied to a cloud server and comprises the following steps:

acquiring M measured temperatures sent by a temperature measuring instrument and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures;

determining K temperature records of a time period corresponding To the measurement starting time To and the measurement ending time Te in a database of the cloud server; each temperature record comprises a plurality of historical measured temperatures;

judging whether the K is greater than or equal to a preset recording threshold value;

if the K is larger than or equal to a preset recording threshold value, determining a zero calibration temperature according to the M measured temperatures and the K temperature records;

and sending the zero calibration temperature to the temperature measuring instrument so that the temperature measuring instrument obtains a display temperature according to the sum of the calculated actual measured temperature and the zero calibration temperature.

The embodiment of the invention provides another temperature measuring method, which is applied to a temperature measuring instrument and comprises the following steps:

sending M measured temperatures, and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures To a cloud server; enabling the cloud server To obtain K temperature records of a time period corresponding To the measurement starting time To and the measurement ending time Te, and determining zero calibration temperature according To the M measurement temperatures and the K temperature records;

receiving the zeroing temperature sent by the cloud server;

and obtaining the display temperature according to the sum of the calculated actual measurement temperature and the zero calibration temperature.

An embodiment of the present invention provides a cloud server, where the cloud server includes:

the acquisition module is used for acquiring M measured temperatures sent by the temperature measuring instrument and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures;

the determining module is used for determining K temperature records of a time period corresponding To the measurement starting time To and the measurement ending time Te in a database of the cloud server; each temperature record comprises a plurality of historical measured temperatures;

the judging module is used for judging whether the K is greater than or equal to a preset recording threshold value;

the calculation module is used for determining the zero calibration temperature according to the M measured temperatures and the K temperature records if the K is greater than or equal to a preset recording threshold value;

and the sending module is used for sending the zero calibration temperature to the temperature measuring instrument so that the temperature measuring instrument can obtain the display temperature according to the sum of the calculated actual measured temperature and the zero calibration temperature.

An embodiment of the present invention provides a temperature measuring instrument, including:

the device comprises an embedded processor, a communication module, a zero calibration temperature register, a display, a temperature detection unit and a temperature storage unit, wherein the embedded processor is in communication connection with other devices;

the communication module is used for sending M measured temperatures, and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures To the cloud server; enabling the cloud server To obtain K temperature records of a time period corresponding To the measurement starting time To and the measurement ending time Te, and determining zero calibration temperature according To the M measurement temperatures and the K temperature records;

the communication module is further configured to receive the zeroing temperature sent by the cloud server;

the embedded processor is used for obtaining a display temperature according to the sum of the calculated actual measured temperature and the zero calibration temperature;

the display is used for outputting the display temperature.

The invention provides a temperature measuring method, a cloud server and a temperature measuring instrument, wherein M measuring temperatures sent by the temperature measuring instrument and measuring starting time To and measuring ending time Te corresponding To the M measuring temperatures are obtained; then K temperature records of a time period corresponding To the measurement starting time To and the measurement ending time Te in a database of the cloud server are determined; judging whether K is greater than or equal to a preset recording threshold value; if K is larger than or equal to a preset recording threshold value, determining the zero calibration temperature according to the M measured temperatures and the K temperature records; and sending the zero calibration temperature to the temperature measuring instrument so that the temperature measuring instrument obtains the display temperature according to the sum of the calculated actual measured temperature and the zero calibration temperature. The method and the device have the advantages that after the measured temperature in the latest period of time sent by the temperature measuring instrument is obtained, the temperature record corresponding to the period of time in the database is determined, then the zero calibration temperature is determined according to the measured temperature sent by the temperature measuring instrument and the obtained temperature record, and then the temperature measured by the temperature measuring instrument is calibrated through the zero calibration temperature, so that the problems of inaccurate measured temperature caused by non-standard operation and environmental factors in the prior art are solved, and the accuracy of temperature measurement can be improved through the method and the device.

Drawings

FIG. 1 is a block diagram of a temperature measurement system provided in one embodiment of the present application;

FIG. 2 is a flow chart of a temperature measurement method provided in one embodiment of the present application;

FIG. 3 is a flow chart of another method of temperature measurement provided by one embodiment of the present application;

fig. 4 is a block diagram of a cloud server according to an embodiment of the present disclosure;

fig. 5 is a schematic diagram of a computer device according to an embodiment of the present application.

Detailed Description

In order to better understand the technical solutions described above, the technical solutions of the embodiments of the present application are described in detail below with reference to the drawings and the specific embodiments, and it should be understood that the specific features of the embodiments and the embodiments of the present application are detailed descriptions of the technical solutions of the embodiments of the present application, and are not limitations of the technical solutions of the present application, and the technical features of the embodiments and the embodiments of the present application may be combined with each other without conflict.

At present, the temperature measured by the temperature measuring instrument is easy to generate errors. The cause of the error is several. For example, the effect of ambient temperature; for another example, the operation is not standard and scientific; like some operators are far away from the forehead during operation, and some operators are close to the forehead during operation, the measured temperature has an error under the condition; for another example, the system is repeatedly used for a long time, resulting in rapid aging of the internal sensing device.

In order to solve the problems, the invention provides a temperature measuring method, a cloud server and a temperature measuring instrument, wherein after the measured temperature in the latest period of time sent by the temperature measuring instrument is obtained, the temperature record corresponding to the period of time in a database is determined, then the zeroing temperature is determined according to the measured temperature sent by the temperature measuring instrument and the obtained temperature record, and then the temperature measured by the temperature measuring instrument is corrected through the zeroing temperature, so that the problems of inaccurate measured temperature caused by non-standard operation and environmental factors in the prior art are solved, and the accuracy of temperature measurement can be improved through the temperature measuring instrument.

The following embodiments can be applied to the temperature measuring system shown in fig. 1, where the system shown in fig. 1 includes a cloud server 10, and at least one temperature measuring instrument 20 communicatively connected to the cloud server 10.

The cloud server 10 is configured to receive the measured temperatures sent by each temperature measurement apparatus 20 in different time periods, determine a zeroing temperature according to the measured temperatures and the temperature records of the database corresponding to the time periods, and send the zeroing temperature to the temperature measurement apparatus 20, so that the temperature measurement apparatus 20 displays the sum of the actual measured temperature and the zeroing temperature on the temperature measurement apparatus 20 after the temperature obtained by subsequent measurement is calculated.

It should be noted that, each time the temperature measurement instrument 20 obtains a sufficient number of measurement temperatures, the measurement temperatures are sent to the cloud server 10, then the cloud server 10 calculates the zeroing temperature based on the received measurement temperatures, and then sends the zeroing temperature to the temperature measurement instrument 20, so that the temperature measurement instrument 20 corrects the subsequent measurement temperatures, until the temperature measurement instrument 20 sends the measurement temperatures to the cloud server 10 again, the cloud server 10 calculates the zeroing temperature again and sends the zeroing temperature to the temperature measurement instrument 20, that is, the zeroing temperature in the present invention is updated according to the measurement temperature sent by the temperature measurement instrument 20 each time, and then sends the updated measurement temperature to the temperature measurement instrument 20, so that the measurement temperature is corrected according to the latest zeroing temperature after the temperature measurement instrument 20 measures the temperature each time, thereby ensuring the accuracy of the temperature measurement.

In the embodiment of the present invention, the temperature measuring apparatus 20 includes an embedded processor, a communication module, a zero calibration temperature register, a display, a temperature detecting unit, and a temperature storing unit; the embedded processor is communicatively coupled to other devices.

The communication module is used for interacting data with the cloud server 10. The data uploaded to the cloud server 10 is the measured temperature stored in the temperature storage unit. Data downloaded from the cloud server 10, including the zeroing temperature.

The zeroing temperature register is used for storing the zeroing temperature downloaded from the cloud server 10.

The temperature storage unit is used for storing the temperature detected by the temperature detection unit. The storage format is (measured temperature, time stamp) pair. The temperature storage unit can use a flash memory, and the temperature detection unit can use an infrared temperature measurement technology.

The embedded processor is used for calculating and obtaining the display temperature according to the temperature (namely the body temperature of the tested person) detected by the detection unit in real time and the zero calibration temperature stored in the zero calibration temperature register. The temperature is shown as measured temperature + zero corrected temperature. The display is used for displaying the display temperature obtained by calculation to a user in real time.

The invention provides a temperature measuring system.A cloud server acquires M measured temperatures sent by a temperature measuring instrument, and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures; then K temperature records of a time period corresponding To the measurement starting time To and the measurement ending time Te in a database of the cloud server are determined; judging whether K is greater than or equal to a preset recording threshold value; if K is larger than or equal to a preset recording threshold value, determining the zero calibration temperature according to the M measured temperatures and the K temperature records; and sending the zero calibration temperature to the temperature measuring instrument so that the temperature measuring instrument obtains the display temperature according to the sum of the calculated actual measured temperature and the zero calibration temperature. The method and the device have the advantages that after the measured temperature in the latest period of time sent by the temperature measuring instrument is obtained, the temperature record corresponding to the period of time in the database is determined, then the zero calibration temperature is determined according to the measured temperature sent by the temperature measuring instrument and the obtained temperature record, and then the temperature measured by the temperature measuring instrument is calibrated through the zero calibration temperature, so that the problems of inaccurate measured temperature caused by non-standard operation and environmental factors in the prior art are solved, and the accuracy of temperature measurement is improved through the method and the device.

Referring to fig. 2, a temperature measurement method according to a first embodiment of the present invention is shown, which can be applied to a cloud server in the temperature measurement system. Wherein, the temperature measuring system can realize the method through hardware and/or software, and the method specifically comprises steps S01-S04.

S01, obtaining M measured temperatures sent by the temperature measuring instrument and the measurement starting time To and the measurement ending time Te corresponding To the M measured temperatures.

The format of data transmitted to the server by the temperature measuring instrument is as follows: thermometer ID, To, Te, M, (T1, T2. Wherein T1-TM are M specific stored measured temperatures, the measurement start time To is the time when the temperature measuring instrument measures the first measured temperature of the M measured temperatures, and the measurement end time Te is the time when the temperature measuring instrument measures the last measured temperature of the M measured temperatures. That is, the present embodiment acquires M measurement temperatures measured by the temperature measuring instrument over the time period To-Te.

It should be noted that, before uploading the data to the cloud server, the temperature measurement instrument may perform data cleaning and calibration on the measured temperature. For example, a temperature measurement of 45 degrees celsius clearly exceeds the highest possible human temperature, and thus the data is rejected as contributing data. Conventional data cleaning and proofreading methods can be applied to the present invention, and the embodiments of the present invention are not described herein again.

In an embodiment of the present invention, the acquiring M measured temperatures sent by the temperature measuring instrument and the measurement start time To and the measurement end time Te corresponding To the M measured temperatures includes:

1. when the temperature measuring instrument determines that the number of the stored measured temperatures is larger than a first preset value, receiving M measured temperatures sent by the temperature measuring instrument, and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures; or

The first preset value and the second preset value are preset temperature sample number thresholds, the first preset value is greater than the second preset value, and the sizes of the first preset value and the second preset value may be specifically set according to actual requirements.

Specifically, the temperature storage unit of the temperature measuring instrument further stores the earliest temperature measuring time, i.e., the earliest timestamp To of the stored (measured temperature, timestamp) pairs. The execution of the embedded computer program by the embedded processor has achieved the following steps:

s100, acquiring a measured temperature Tnew detected by the temperature detection unit in real time and a timestamp Ts of the detected temperature.

S200, the number m of (measured temperature, time stamp) pairs stored in the temperature storage unit is acquired.

S300, if M +1> is the first preset value D1, the temperature measuring instrument sends M (M +1) measured temperatures, and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures To the cloud server.

2. And when the temperature measuring instrument determines that the number of the stored measured temperatures is larger than a second preset value and the measured density is smaller than a preset density threshold value, receiving M measured temperatures sent by the temperature measuring instrument, and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures.

In the embodiment of the present invention, if m +1< > is equal To the first preset value D1, it is necessary To continuously determine whether m +1 is greater than the second preset value D2, and determine whether (m +1)/(Ts-To) is less than p; if it is determined that M +1> the second preset value D2 and (M +1)/(Ts-To) < p, the temperature measurement instrument sends M (M +1) measurement temperatures and measurement start times To and measurement end times Te corresponding To the M measurement temperatures To the cloud server. Wherein p is a preset temperature sample density threshold, which can be specifically set according to actual requirements.

If m +1< ═ D2 and (m +1)/(Ts-To) > p are determined, it is indicated that the storage unit has stored more sample samples and has passed through the sampling dense region, i.e., the sampling density starts To become sparse. At this point (Tnew, Ts) needs to be stored in the temperature storage unit until the number of stored (measured temperature, time stamp) meets the transmission requirements.

In one embodiment provided by the present invention, if m +1< ═ D2, and (m +1)/(Ts-To) < p, the embedded processor clears the pair of (measured temperature, timestamp) in the temperature storage unit. In this case, the data is discarded without any significance, because the sample size is not sufficient and the sample density is too high for the sampling period.

It should be noted that after the temperature measurement instrument uploads M measured temperatures, and the measurement start time To and the measurement end time Te corresponding To the M measured temperatures To the cloud server, the uploaded data in the temperature measurement needs To be deleted, so as To reduce the storage space caused by the temperature data.

And S02, determining K temperature records of the time period corresponding To the measurement starting time To and the measurement ending time Te in the database of the cloud server.

The database of the cloud server stores temperature records sent by the temperature measuring instrument, and each temperature record comprises a plurality of historical measuring temperatures. The format of each temperature record is: a thermometer ID, To, Te, M, (T1, T2.. said., TM), where T1-TM are the specific M stored measured temperatures. The cloud server stores the received data, so that loss of original data is avoided, and then the cloud server executes a computer program to realize the following steps:

s10, acquiring time period [ So, Se ] according To and Te. Specifically, To and Te are time stamps, the time stamps are with dates, and the corresponding time periods are obtained by removing the dates, so that the time periods are structures without dates, namely hour, minute and second.

S20, obtaining K temperature records from the database of the cloud server in the data stored in the cloud database, and enabling [ S0,Se]∩[Si0,Sie]Not equal to Null, the value of i is 1. Sio and Sie are the time periods for the earliest and latest timestamp acquisition in the ith record of the K temperature records.

It should be noted that, since the body temperature changes with different times every day, for example, the body temperature in the morning is higher than that in the afternoon, the embodiment of the present invention needs To determine K temperature records corresponding To the measurement start time To and the measurement end time Te, that is, in S0,Se]∩[Si0,Sie]When not equal To Null, it indicates that K temperature records of the time period corresponding To the measurement start time To and the measurement end time Te can be recorded from the database of the cloud server.

And S03, judging whether the K is more than or equal to a preset recording threshold value.

Wherein, the preset recording threshold value can be set according to the actual requirement, and when K is greater than or equal to the preset recording threshold value, the step S04 is skipped to continue to be executed; when K is smaller than a preset recording threshold, it is indicated that temperature records stored in a database summary of the cloud server are insufficient To determine the zeroing temperature, and at this time, the measurement start time To and the measurement end time Te corresponding To the M measurement temperatures received from the temperature measurement instrument need To be stored in the database, and the zeroing temperature is set To 0.

And S04, if the K is larger than or equal to a preset recording threshold value, determining the zero calibration temperature according to the M measured temperatures and the K temperature records.

In an embodiment of the present invention, determining the zeroing temperature according to the M measured temperatures and the K temperature records includes:

if it is determinedSetting the zeroing temperature to 0;

where a is a mean value of the M measured temperatures, Aj is a mean value of measured temperatures recorded in the jth record of the K temperature records, σ is a variance of Aj, and θ is a threshold determined according to a value of σ, and is, for example, 1. It should be noted that, in the case where the value of K is relatively large, the value of Aj should follow a normal distribution, so if a is relatively close to the average value of Aj, it indicates that a does not need to be corrected, that is, the thermometer does not need to be corrected, so the relatively zero temperature is set to 0.

In one embodiment provided by the present invention, if the determination is madeThe method further comprises the following steps:

in determining

Figure BDA0002581493770000093

When the temperature of the water is higher than the set temperature,

Figure BDA0002581493770000094

in determining

Figure BDA0002581493770000095

When the temperature of the water is higher than the set temperature,

in another embodiment provided by the present invention, the determination

Figure BDA0002581493770000097

Whether the deviation value is larger than the preset deviation value or not. The preset offset value may be set according to an actual requirement, for example, the offset value is set to 3 degrees or 5 degrees, and the embodiment of the present invention is not limited specifically. In the embodiment of the invention, if the determination is made

Figure BDA0002581493770000098

If the deviation value is larger than the preset deviation value, it is indicated that the temperature average value corresponding to the current time period of the temperature measuring instrument and the temperature average value corresponding to the historical time period have larger deviation, and at this moment, the problem that the temperature measuring instrument has a fault may occur, so that prompt information needs to be sent to the temperature measuring instrument to prompt the temperature measuring instrument to be calibrated again.

And S05, sending the zero calibration temperature to the temperature measuring instrument, so that the temperature measuring instrument obtains a display temperature according to the sum of the calculated actual measured temperature and the zero calibration temperature.

In the embodiment of the invention, after the zero calibration temperature is sent to the temperature measuring instrument, the temperature measuring instrument obtains the display temperature according to the sum of the calculated actual measured temperature and the zero calibration temperature, and then the display of the temperature measuring instrument displays the display temperature obtained by calculation in real time for a user.

The invention provides a temperature measuring method, which comprises the steps of determining a temperature record corresponding to a time period in a database after obtaining a measured temperature sent by a temperature measuring instrument within the latest time period, then determining a zero calibration temperature according to the measured temperature sent by the temperature measuring instrument and the obtained temperature record, and then calibrating the temperature measured by the temperature measuring instrument through the zero calibration temperature, so that the problems of inaccurate measured temperature caused by non-standard operation and environmental factors in the prior art are solved, and the accuracy of temperature measurement can be improved through the temperature measuring method.

Referring to fig. 3, a temperature measuring method according to a first embodiment of the present invention is shown, which can be applied to a temperature measuring instrument in the temperature measuring system. Wherein, the temperature measuring system can realize the method through hardware and/or software, and the method specifically comprises steps S10-S30.

S10, sending M measured temperatures, and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures To the cloud server; and the cloud server acquires K temperature records of a time period corresponding To the measurement starting time To and the measurement ending time Te, and determines the zero calibration temperature according To the M measurement temperatures and the K temperature records.

The format of data transmitted to the server by the temperature measuring instrument is as follows: thermometer ID, To, Te, M, (T1, T2. Wherein T1-TM are M specific stored measured temperatures, the measurement start time To is the time when the temperature measuring instrument measures the first measured temperature of the M measured temperatures, and the measurement end time Te is the time when the temperature measuring instrument measures the last measured temperature of the M measured temperatures. That is, the present embodiment acquires M measurement temperatures measured by the temperature measuring instrument over the time period To-Te.

It should be noted that, in the embodiment of the present invention, the determination of K temperature records by the cloud server, and the determination of the zero calibration temperatures by the M measured temperatures and the K temperature records are the same as the determination in fig. 2, and no further description is given here in the embodiment of the present invention.

For the embodiment of the present invention, sending M measured temperatures, and the measurement start time To and the measurement end time Te corresponding To the M measured temperatures To the cloud server includes:

s11, determining whether the stored measured temperature number is greater than a first preset value.

And S21, if the number of the stored measured temperatures is larger than a first preset value, sending M measured temperatures, and the measurement starting time To and the measurement ending time Te corresponding To the M measured temperatures To the cloud server.

S22, if the number of the stored measured temperatures is less than or equal to the first preset value, it is determined whether the number of the stored measured temperatures is greater than the second preset value and the measured density is less than the preset density threshold.

Step S21 is a parallel step of step S21. The first preset value and the second preset value are preset temperature sample quantity thresholds, the first preset value is greater than the second preset value, and the magnitudes of the first preset value and the second preset value may be specifically set according to actual requirements.

And S221, if the number of the stored measured temperatures is larger than a second preset value and the measured density is smaller than a preset density threshold value, sending M measured temperatures, and the measurement starting time To and the measurement ending time Te corresponding To the M measured temperatures To the cloud server.

S222, if the number of the stored measured temperatures is determined to be smaller than or equal to the second preset value and the measured density is determined to be larger than or equal to the preset density threshold value, storing the newly measured temperatures and the corresponding measuring time.

And S223, if the number of the stored measured temperatures is determined to be less than or equal to the second preset value and the measured density is less than the preset density threshold value, emptying the stored measured temperatures and the corresponding measured time.

It should be noted that steps S11 to S223 in this embodiment are the same as those in step S01 in fig. 1, and the embodiment of the present invention is not repeated herein.

And S20, receiving the zeroing temperature sent by the cloud server.

And S30, obtaining the display temperature according to the sum of the calculated actual measurement temperature and the zero calibration temperature.

The invention provides a temperature measuring method, which comprises the steps of determining a temperature record corresponding to a time period in a database after obtaining a measured temperature sent by a temperature measuring instrument within the latest time period, then determining a zero calibration temperature according to the measured temperature sent by the temperature measuring instrument and the obtained temperature record, and then calibrating the temperature measured by the temperature measuring instrument through the zero calibration temperature, so that the problems of inaccurate measured temperature caused by non-standard operation and environmental factors in the prior art are solved, and the accuracy of temperature measurement can be improved through the temperature measuring method.

It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.

In an embodiment, a cloud server is provided, and the cloud server corresponds to the temperature measurement methods in the embodiments one to one. As shown in fig. 4, the functional modules of the cloud server are described in detail as follows:

an obtaining module 10, configured To obtain M measured temperatures sent by a temperature measuring instrument, and a measurement start time To and a measurement end time Te corresponding To the M measured temperatures;

a determining module 20, configured To determine K temperature records of a time period corresponding To the measurement start time To and the measurement end time Te in a database of the cloud server; each temperature record comprises a plurality of historical measured temperatures;

a judging module 30, configured to judge whether K is greater than or equal to a preset recording threshold;

a calculating module 40, configured to determine a zeroing temperature according to the M measured temperatures and the K temperature records if K is greater than or equal to a preset recording threshold;

a sending module 50, configured to send the zeroing temperature to the temperature measuring instrument, so that the temperature measuring instrument obtains a display temperature according to a sum of the calculated actual measured temperature and the zeroing temperature.

Further, the obtaining module 10 includes:

when the temperature measuring instrument determines that the number of the stored measured temperatures is larger than a first preset value, receiving M measured temperatures sent by the temperature measuring instrument, and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures; or

When the temperature measuring instrument determines that the number of the stored measured temperatures is larger than a second preset value and the measured density is smaller than a preset density threshold value, receiving M measured temperatures sent by the temperature measuring instrument, and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures; the first preset value is greater than the second preset value.

Further, the calculating module 40 is further configured to set the zeroing temperature to 0 if it is determined that K is smaller than the preset recording threshold.

Specifically, the calculating module 40 includes:

if it is determined

Figure BDA0002581493770000131

Setting the zeroing temperature to 0;

wherein, A is the mean value of the M measured temperatures, Aj is the mean value of the j-th record measured temperature in the K temperature records, sigma is the variance of Aj, and theta is a threshold value determined according to the value of sigma.

Further, if it is determined

Figure BDA0002581493770000132

The method further comprises the following steps:

in determiningWhen the temperature of the water is higher than the set temperature,

in determiningWhen the temperature of the water is higher than the set temperature,

Figure BDA0002581493770000136

further, the sending module 50 is further configured to determine whether to determine

Figure BDA0002581493770000137

And if the deviation value is larger than the preset deviation value, sending prompt information to the temperature measuring instrument to prompt the temperature measuring instrument to need to be calibrated again.

In one embodiment, a temperature measuring instrument is provided, and the temperature measuring instruments correspond to the temperature measuring methods in the embodiments one to one. The functional modules of the temperature measuring instrument are explained in detail as follows:

the device comprises an embedded processor, a communication module, a zero calibration temperature register, a display, a temperature detection unit and a temperature storage unit, wherein the embedded processor is in communication connection with other devices;

the communication module is used for sending M measured temperatures, and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures To the cloud server; enabling the cloud server To obtain K temperature records of a time period corresponding To the measurement starting time To and the measurement ending time Te, and determining zero calibration temperature according To the M measurement temperatures and the K temperature records;

the communication module is further configured to receive the zeroing temperature sent by the cloud server;

the embedded processor is used for obtaining a display temperature according to the sum of the calculated actual measured temperature and the zero calibration temperature;

the display is used for outputting the display temperature.

Further, the embedded processor is further configured to:

determining whether the number of the stored measured temperatures is greater than a first preset value;

if the number of the stored measured temperatures is larger than a first preset value, sending M measured temperatures, and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures To a cloud server;

if the number of the stored measured temperatures is smaller than or equal to a first preset value, judging whether the number of the stored measured temperatures is larger than a second preset value or not and whether the measured density is smaller than a preset density threshold or not;

if the number of the stored measured temperatures is larger than a second preset value and the measured density is smaller than a preset density threshold value, sending M measured temperatures, and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures To a cloud server;

if the number of the stored measured temperatures is determined to be smaller than or equal to a second preset value and the measured density is determined to be larger than or equal to a preset density threshold value, storing the newly measured temperatures and the corresponding measured time;

and if the number of the stored measured temperatures is determined to be less than or equal to the second preset value and the measured density is less than the preset density threshold value, emptying the stored measured temperatures and the corresponding measured time.

For specific limitations of the cloud server and the temperature measurement apparatus, reference may be made to the above limitations of the temperature measurement method, which is not described herein again. The various modules in the above-described apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a temperature measurement method.

In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:

acquiring M measured temperatures sent by a temperature measuring instrument and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures;

determining K temperature records of a time period corresponding To the measurement starting time To and the measurement ending time Te in a database of the cloud server; each temperature record comprises a plurality of historical measured temperatures;

judging whether the K is greater than or equal to a preset recording threshold value;

if the K is larger than or equal to a preset recording threshold value, determining a zero calibration temperature according to the M measured temperatures and the K temperature records;

and sending the zero calibration temperature to the temperature measuring instrument so that the temperature measuring instrument obtains a display temperature according to the sum of the calculated actual measured temperature and the zero calibration temperature.

In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:

acquiring M measured temperatures sent by a temperature measuring instrument and measurement starting time To and measurement ending time Te corresponding To the M measured temperatures;

determining K temperature records of a time period corresponding To the measurement starting time To and the measurement ending time Te in a database of the cloud server; each temperature record comprises a plurality of historical measured temperatures;

judging whether the K is greater than or equal to a preset recording threshold value;

if the K is larger than or equal to a preset recording threshold value, determining a zero calibration temperature according to the M measured temperatures and the K temperature records;

and sending the zero calibration temperature to the temperature measuring instrument so that the temperature measuring instrument obtains a display temperature according to the sum of the calculated actual measured temperature and the zero calibration temperature.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.

The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; 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; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种红外测温仪

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!