Disclosure of Invention
The application provides a thermometer fault detection method and device, which can be used for solving the problem that faults of thermometers cannot be found in time in the prior art.
In a first aspect, the present application provides a method for detecting a fault of a thermometer, where the thermometer includes a main measurement module and an auxiliary measurement module, the main measurement module measures a main measurement temperature in a current environment at a first time interval, the auxiliary measurement module measures an auxiliary measurement temperature in the current environment at a second time interval, and the second time interval is greater than or less than the first time interval; the method comprises the following steps:
judging whether a first main temperature measured by the main measurement module at the current moment exceeds a preset temperature range, and if the first main temperature exceeds the preset temperature range, acquiring a first auxiliary temperature measured by the auxiliary measurement module at the moment closest to the current moment;
and judging whether the difference ratio between the first main temperature and the first auxiliary temperature is greater than a preset threshold, if so, sending a thermometer abnormity alarm signal, wherein the thermometer abnormity alarm information is used for indicating maintenance personnel to overhaul the thermometer.
With reference to the first aspect, in an implementation manner of the first aspect, after determining that a difference ratio between the first main temperature and the first auxiliary temperature is greater than a preset threshold, before instructing the early warning module to issue a temperature table abnormality alarm, the method further includes:
acquiring a plurality of historical main temperature measurements within a preset time period before the current time;
and judging whether the difference ratio of the temperature average values corresponding to the plurality of historical main temperature measurements to the first auxiliary temperature measurement is greater than the preset threshold value, and if so, sending an alarm signal of thermometer abnormity.
With reference to the first aspect, in an implementation manner of the first aspect, after determining whether a difference ratio between a temperature average value corresponding to the multiple historical main temperature measurements and the first auxiliary temperature measurement is greater than the preset threshold, before instructing the early warning module to issue a temperature table exception alarm, the method further includes:
adjusting the time interval of the auxiliary temperature measurement measured by the auxiliary measurement module to the first time interval;
acquiring a plurality of second auxiliary temperature measured by the auxiliary measurement module at the first time interval;
acquiring a plurality of second main temperature measurements measured by the main measurement module at the first time interval;
and if the difference ratios between the plurality of second main temperature measurements and the second auxiliary temperature measurements respectively corresponding to the plurality of second main temperature measurements are greater than a preset threshold value, sending out an alarm signal of thermometer abnormity.
With reference to the first aspect, in an implementation manner of the first aspect, the method further includes:
and if the difference ratio of the first main temperature measurement and the first auxiliary temperature measurement is less than or equal to a preset threshold value, sending a signal for adjusting the laboratory temperature, wherein the signal for adjusting the laboratory temperature is used for indicating the laboratory temperature to be adjusted by the laboratory staff.
With reference to the first aspect, in an implementation manner of the first aspect, the temperature table further includes an early warning module;
the alarm signal for the thermometer abnormity comprises:
and indicating the early warning module to send out a thermometer abnormity warning signal.
In a second aspect, the present application provides a fault detection device for a thermometer, where the thermometer includes a main measurement module and an auxiliary measurement module, the main measurement module measures a main temperature measurement in a current environment at a first time interval, the auxiliary measurement module measures an auxiliary temperature measurement in the current environment at a second time interval, and the second time interval is greater than or less than the first time interval; the device comprises:
the first judging unit is used for judging whether a first main temperature measured by the main measuring module at the current moment exceeds a preset temperature range or not, and if the first main temperature measured by the main measuring module at the current moment exceeds the preset temperature range, acquiring a first auxiliary temperature measured by the auxiliary measuring module at the moment closest to the current moment;
and the second judging unit is used for judging whether the difference ratio between the first main temperature and the first auxiliary temperature is greater than a preset threshold value or not, and if the difference ratio between the first main temperature and the first auxiliary temperature is greater than the preset threshold value, sending an abnormal thermometer alarm signal.
With reference to the second aspect, in an implementation manner of the second aspect, the apparatus further includes an obtaining unit;
after the second judging module determines that the ratio of the difference between the first main temperature and the first auxiliary temperature is greater than a preset threshold, and before the early warning module is instructed to send out a thermometer abnormal alarm, the obtaining unit is further configured to:
acquiring a plurality of historical main temperature measurements within a preset time period before the current time;
the second judging unit is further configured to judge whether a difference ratio between the temperature average value corresponding to the plurality of historical main temperature measurements and the first auxiliary temperature is greater than a preset threshold, and if the difference ratio between the temperature average value corresponding to the plurality of historical main temperature measurements and the first auxiliary temperature is greater than the preset threshold, send an alarm signal indicating an abnormal thermometer.
With reference to the second aspect, in an implementation manner of the second aspect, the apparatus further includes an adjusting unit;
after the second judging module determines that the difference ratio between the temperature average value corresponding to the plurality of historical main temperature measurements and the first auxiliary temperature measurement is greater than the preset threshold, and before the early warning module is instructed to send out a thermometer abnormity alarm, the adjusting unit is further configured to:
adjusting the time interval of the auxiliary temperature measurement measured by the auxiliary measurement module to the first time interval;
the acquiring unit is further configured to acquire a plurality of second auxiliary temperatures measured by the auxiliary measuring module at the first time interval; acquiring a plurality of second main temperature measurements measured by the main measurement module at the first time interval;
the second judging unit is further configured to send out a thermometer abnormality alarm signal if the difference ratios between the plurality of second main temperature measurements and the second auxiliary temperature measurements corresponding to the plurality of second main temperature measurements are greater than a preset threshold value.
With reference to the second aspect, in an implementation manner of the second aspect, the second determining unit is further configured to:
and if the difference ratio of the main temperature measurement to the auxiliary temperature measurement is less than or equal to a preset threshold value, sending a signal for adjusting the temperature of the laboratory.
With reference to the second aspect, in an implementation manner of the second aspect, the thermometer further includes an early warning unit;
the second judging unit is specifically configured to:
and indicating the early warning unit to send out a thermometer abnormity warning signal.
The application adds the auxiliary testing module on the basis of reserving the original structure to the maximum extent. And if the main temperature measurement acquired by the main measurement module is possibly abnormal, judging by using the auxiliary temperature measurement acquired by the auxiliary measurement module. And only when the difference ratio of the auxiliary temperature measurement and the main temperature measurement is larger than a preset threshold value, judging that the thermometer is abnormal. The judgment method has simple logic and avoids the possibility of erroneous judgment to the maximum extent.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The accuracy of the temperature meter is particularly important in the experimental environment, given that power experiments need to follow strict environmental conditions. Once the thermometer fails, the thermometer needs to be found as soon as possible, and the thermometer failure needs to be eliminated in time.
The thermometer provided by the embodiment of the application comprises a main measuring module and an auxiliary measuring module, wherein the main measuring module measures the main measuring temperature under the current environment at a first time interval, the auxiliary measuring module measures the auxiliary measuring temperature under the current environment at a second time interval, and the second time interval is greater than or less than the first time interval.
Fig. 1 is a flowchart illustrating a fault detection method for a thermometer according to an embodiment of the present application. As shown in the figure, the method specifically comprises the following steps:
step 101, judging whether a first main temperature measured by a main measurement module at the current moment exceeds a preset temperature range, and if the first main temperature measured by the main measurement module at the current moment exceeds the preset temperature range, acquiring a first auxiliary temperature measured by an auxiliary measurement module at the moment closest to the current moment.
Under a normal working state, the main measurement module measures a first main temperature under the current environment at a first time interval, and the auxiliary measurement module measures a first auxiliary temperature under the current environment at a second time interval. The first time interval is the general time interval for the thermometer to acquire the temperature.
And judging whether the first main temperature measured by the main measuring module at the current moment exceeds a preset temperature range or not every time the main temperature is obtained. The preset temperature range may be a range in which the standard temperature differs by plus or minus 1 ℃. For example, if the standard temperature is 26 degrees, the preset temperature range may be 25 to 27 degrees, and if the main temperature measurement is less than 25 degrees or greater than 27 degrees, it indicates that the main temperature measurement exceeds the preset temperature range, and at this time, it needs to determine whether the thermometer fails by means of the auxiliary measurement module.
Because the second time interval is not consistent with the first time interval, a first auxiliary temperature measured by the auxiliary measurement module at the time closest to the current time needs to be obtained, and the laboratory temperature of the reaction of the auxiliary temperature at the time is theoretically the closest to the first main temperature obtained by the main measurement module.
And 102, judging whether the difference ratio between the first main temperature and the first auxiliary temperature is greater than a preset threshold value or not, and if so, sending an alarm signal of thermometer abnormity.
In the embodiment of the application, the thermometer can further comprise an early warning module. The early warning module can be used for sending out thermometer anomaly alarm signals, namely, if the difference value proportion between the first main temperature measurement and the first auxiliary temperature measurement is larger than a preset threshold value, the early warning module can be instructed to send out thermometer anomaly alarm signals. Wherein, thermometer anomaly alarm information is used for instructing maintenance personal to overhaul the thermometer.
The difference ratio between the first main temperature and the first auxiliary temperature is determined in the following way:
in the formula (1), p1Is the difference ratio between the first main temperature and the first auxiliary temperature, TzIs the first main temperature measurement, TfIs the first auxiliary temperature.
Conversely, if the difference ratio of the main temperature measurement and the auxiliary temperature measurement is less than or equal to a preset threshold value, a signal for adjusting the temperature of the laboratory is sent out. Wherein the signal to adjust the laboratory temperature is used to instruct the laboratory worker to adjust the laboratory temperature.
In order to ensure the accuracy of thermometer fault detection, after determining that the difference ratio between the first main temperature measurement and the first auxiliary temperature measurement is greater than a preset threshold, before indicating the early warning module to send out a thermometer abnormal alarm, the embodiment of the application can further adopt the following method for further detection:
the method comprises the steps of obtaining a plurality of historical main temperature measurements in a preset time period before the current time, judging whether the difference ratio of the temperature average value corresponding to the plurality of historical main temperature measurements to the first auxiliary temperature measurement is larger than a preset threshold value, and if the difference ratio of the temperature average value corresponding to the plurality of historical main temperature measurements to the first auxiliary temperature measurement is larger than the preset threshold value, sending a thermometer abnormity alarm signal.
Specifically, in the embodiment of the application, the historical main temperature measurement in the preset time period is stored by using the database. And deleting a main temperature measurement farthest from the current moment from the database every time when a main temperature measurement is newly recorded, so that the upper limit of the number of the preset historical main temperature measurements in the database is fixed. According to all the historical main temperature measurements in the database and the number of the historical main temperature measurements, the temperature average value corresponding to the multiple historical main temperature measurements can be determined.
The difference ratio of the temperature average value corresponding to the plurality of historical main temperature measurements to the first auxiliary temperature measurement is determined in the following manner:
in the formula (2), p2Is the difference ratio of the temperature average value corresponding to a plurality of historical main temperature measurements to the first auxiliary temperature measurement, TaIs a temperature average value, T, corresponding to a plurality of historical main temperature measurementsfIs the first auxiliary temperature.
Conversely, if the difference ratio of the temperature average value corresponding to the plurality of historical main temperature measurements to the first auxiliary temperature measurement is less than or equal to the preset threshold value, a signal for adjusting the laboratory temperature is sent.
In order to further improve the accuracy of thermometer fault detection, after determining that the difference ratio between the temperature average value corresponding to a plurality of historical main temperature measurements and the first auxiliary temperature measurement is greater than a preset threshold, before indicating the early warning module to send out a thermometer abnormity alarm, the embodiment of the application can further adopt the following method for further detection:
adjusting the time interval of the auxiliary temperature measured by the auxiliary measuring module to be a first time interval; acquiring a plurality of second auxiliary temperature measured by the auxiliary measurement module at a first time interval; and acquiring a plurality of second main temperature measurements measured by the main measurement module at a first time interval. And if the difference value proportions of the plurality of second main temperature measurements and the second auxiliary temperature measurements corresponding to the plurality of second main temperature measurements are all larger than a preset threshold value, sending out an abnormal thermometer alarm signal.
Specifically, after two determinations are made, the failure of the thermometer cannot be eliminated, and the thermometer is likely to have a failure. At this time, the time interval of the auxiliary measurement module measuring the auxiliary temperature needs to be adjusted to the first time interval (i.e. the time interval of the main measurement module measuring the main temperature). And within the preset times, respectively obtaining a second main temperature measured by the main measurement module and a second auxiliary temperature measured by the auxiliary measurement module.
And when the two modules finish the measurement, judging whether the difference ratio between the plurality of second main temperature measurements and the plurality of corresponding second auxiliary temperature measurements is greater than a preset threshold value, and if the difference ratio between the plurality of second main temperature measurements and the second auxiliary temperature measurements respectively corresponding to the plurality of second main temperature measurements is greater than the preset threshold value, sending out a thermometer abnormity alarm signal.
The difference ratio between any one second main temperature and a second auxiliary temperature corresponding to the second main temperature is determined in the following way:
in the formula (3), p3Is the difference ratio between any one second main temperature and a second auxiliary temperature corresponding to the second main temperature, Tz2Is the second main temperature measurement, Tf2For a second auxiliary temperature corresponding to a second main temperatureAnd measuring the temperature.
It should be noted that the corresponding relationship between the second main temperature and the second auxiliary temperature is determined by using time, that is, the second auxiliary temperature measured by the auxiliary measurement module at the time closest to the second main temperature measurement time is obtained, and the second auxiliary temperature at this time is in a corresponding relationship with the second main temperature.
Although the time interval between the second auxiliary temperature and the second main temperature is consistent, the initial temperature measuring time of the second auxiliary temperature and the initial temperature measuring time of the second main temperature may be different, so that the corresponding relationship between the second auxiliary temperature and the second main temperature can be discussed in two cases.
Case (1)
As shown in table 1, the second auxiliary temperature and the second main temperature are an example of the temperature measuring time, and the initial test time of the second auxiliary temperature and the second main temperature is the same time. The first time temperature measuring time of the second auxiliary temperature is 1:00, the first time temperature measuring time of the second main temperature is 1:00, and the auxiliary temperature measuring module and the main temperature measuring module measure the temperature at the same moment, so that the second auxiliary temperature and the corresponding second main temperature are the temperatures measured at the same moment. In the first table, the second main temperature measured at the moment 1:00 corresponds to the second auxiliary temperature measured at the moment 1: 00. Specifically, reference may be made to the contents shown in table 1, which are not described in detail here.
Table 1: example of temperature measurement moments of second auxiliary temperature measurement and second main temperature measurement
| |
Time of first temperature measurement
|
Time of second temperature measurement
|
Time of third temperature measurement
|
Fourth time of temperature measurement
|
| Second auxiliary temperature
|
1:00
|
1:30
|
2:00
|
2:30
|
| Second main temperature measurement
|
1:00
|
1:30
|
2:00
|
2:30 |
Case (2)
The second auxiliary temperature and the second main temperature are different from each other in the initial test time. The first time temperature measuring time of the second auxiliary temperature is 1:00, the first time temperature measuring time of the second main temperature is 1:05, and the auxiliary temperature measuring module and the main temperature measuring module do not measure the temperature at the same time, so that the second auxiliary temperature and the corresponding second main temperature are the closest temperature to the temperature measuring time. In the first table, the second main temperature measured at the moment 1:05 corresponds to the second auxiliary temperature at the moment 1: 00. Specifically, reference may be made to the contents shown in table 1, which are not described in detail here.
Table 2: another example of a temperature measurement time of a second auxiliary temperature and a second main temperature
| |
Time of first temperature measurement
|
Time of second temperature measurement
|
Time of third temperature measurement
|
Fourth time of temperature measurement
|
| Second auxiliary temperature
|
1:00
|
1:30
|
2:00
|
2:30
|
| Second main temperature measurement
|
1:05
|
1:35
|
2:05
|
2:35 |
It should be further noted that within the preset times, as long as any one time is provided, the ratio of the difference between the second main temperature measurement and the second auxiliary temperature measurement corresponding to the second main temperature measurement is less than or equal to the preset threshold, a signal for adjusting the laboratory temperature is sent.
The embodiment of the application adds the auxiliary testing module on the basis of reserving the original structure to the maximum extent. And if the main temperature measurement acquired by the main measurement module is possibly abnormal, judging by using the auxiliary temperature measurement acquired by the auxiliary measurement module. And only when the difference ratio of the auxiliary temperature measurement and the main temperature measurement is larger than a preset threshold value, judging that the thermometer is abnormal. The judgment method has simple logic and avoids the possibility of erroneous judgment to the maximum extent.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 2 schematically illustrates a structural diagram of a fault detection device of a thermometer provided by an embodiment of the present application. As shown in fig. 2, the apparatus has a function of implementing the fault detection method for a thermometer, and the function may be implemented by hardware, or may be implemented by hardware executing corresponding software. The apparatus may include: a first judging unit 201, a second judging unit 202, an obtaining unit 203, an adjusting unit 204 and an early warning unit 205.
In a second aspect, the present application provides a fault detection device for a thermometer, where the thermometer includes a main measurement module and an auxiliary measurement module, the main measurement module measures a main temperature measurement in a current environment at a first time interval, the auxiliary measurement module measures an auxiliary temperature measurement in the current environment at a second time interval, and the second time interval is greater than or less than the first time interval; the device comprises:
a first judging unit 201, configured to judge whether a first main temperature measured by the main measurement module at the current time exceeds a preset temperature range, and if the first main temperature measured by the main measurement module at the current time exceeds the preset temperature range, obtain a first auxiliary temperature measured by the auxiliary measurement module at a time closest to the current time;
the second judging unit 202 is configured to judge whether a difference ratio between the first main temperature and the first auxiliary temperature is greater than a preset threshold, and send an alarm signal indicating an thermometer abnormality if the difference ratio between the first main temperature and the first auxiliary temperature is greater than the preset threshold.
Optionally, the apparatus further comprises an obtaining unit 203;
after the second determining module determines that the ratio of the difference between the first main temperature and the first auxiliary temperature is greater than the preset threshold, before the early warning module is instructed to send out a thermometer abnormal alarm, the obtaining unit 203 is further configured to:
acquiring a plurality of historical main temperature measurements within a preset time period before the current time;
the second determining unit 202 is further configured to determine whether a difference ratio between the temperature average value corresponding to the multiple historical main temperature measurements and the first auxiliary temperature is greater than a preset threshold, and if the difference ratio between the temperature average value corresponding to the multiple historical main temperature measurements and the first auxiliary temperature is greater than the preset threshold, send an alarm signal indicating an abnormal thermometer.
Optionally, the apparatus further comprises an adjusting unit 204;
after the second determining module determines that the difference ratio between the temperature average value corresponding to the plurality of historical main temperature measurements and the first auxiliary temperature measurement is greater than the preset threshold, before the early warning module is instructed to send out an abnormal alarm of the thermometer, the adjusting unit 204 is further configured to:
adjusting the time interval of the auxiliary temperature measured by the auxiliary measuring module to be a first time interval;
the obtaining unit 203 is further configured to obtain a plurality of second auxiliary temperatures measured by the auxiliary measurement module at the first time interval; acquiring a plurality of second main temperature measurements measured by the main measurement module at a first time interval;
the second determining unit 202 is further configured to send a thermometer abnormal alarm signal if the difference ratios between the plurality of second main temperature measurements and the second auxiliary temperature measurements corresponding to the plurality of second main temperature measurements are all greater than a preset threshold.
Optionally, the second determining unit 202 is further configured to:
and if the difference ratio of the main temperature measurement to the auxiliary temperature measurement is less than or equal to a preset threshold value, sending a signal for adjusting the temperature of the laboratory.
Optionally, the thermometer further includes an early warning unit 205;
the second determining unit 202 is specifically configured to:
instructs the early warning unit 205 to issue a thermometer abnormality warning signal.
The application adds the auxiliary testing module on the basis of reserving the original structure to the maximum extent. And if the main temperature measurement acquired by the main measurement module is possibly abnormal, judging by using the auxiliary temperature measurement acquired by the auxiliary measurement module. And only when the difference ratio of the auxiliary temperature measurement and the main temperature measurement is larger than a preset threshold value, judging that the thermometer is abnormal. The judgment method has simple logic and avoids the possibility of erroneous judgment to the maximum extent.
The invention is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.