Pollutant detection method, device, equipment and program product of thermopile sensor
By juxtaposing exposed and protected sensors in a thermopile sensor, comparing signal differences and ratios, and combining time information, the real-time and accuracy issues of contaminant detection in the optical window of the thermopile sensor are resolved, enabling automated contaminant identification and cleaning.
Patent Information
- Application Number
- CN202511424612.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-29
- Publication Date
- 2026-01-20
AI Technical Summary
The optical window of a thermopile sensor is prone to accumulating contaminants such as dust and oil during long-term use, which can lead to negative deviations in measurement results. Existing maintenance methods are inefficient and make it difficult to achieve real-time monitoring.
In the test environment, the main thermopile sensor and the reference thermopile sensor are placed side by side. The optical window of the main thermopile sensor is exposed to the test environment, while the optical window of the reference thermopile sensor is covered by a protective cover. By comparing the difference and ratio of the output signals of the two, it is determined whether the optical window of the main thermopile sensor is covered by contaminants, and an accurate judgment is made based on the signal difference and time information.
It enables real-time and accurate detection of contaminants on the optical window of the thermopile sensor, and can automatically identify the degree of contamination and perform cleaning treatment, thereby improving the efficiency and accuracy of detection.
Smart Images

Figure CN121364210A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of sensor maintenance, and particularly relates to a contamination detection method and device for thermoelectric sensor, electronic equipment and computer program product. BACKGROUND
[0002] The thermoelectric sensor has the advantages of non-contact and low cost, and is widely used in the field of temperature measurement. However, the optical window of the thermoelectric sensor is easy to adsorb dust, oil stains and other contaminants in long-term use, and these contaminants will attenuate the incident infrared radiation signal, resulting in a negative deviation of the measurement result of the thermoelectric sensor, that is, the measured value will be continuously lower than the true value. Therefore, how to accurately detect whether the optical window of the thermoelectric sensor is covered by the contaminants in real time has become a technical problem that needs to be considered by the person skilled in the art. SUMMARY
[0003] Therefore, the embodiments of the present application provide a contamination detection method and device for thermoelectric sensor, electronic equipment and computer program product, which can accurately detect whether the optical window of the thermoelectric sensor is covered by the contaminants in real time.
[0004] The first aspect of the embodiments of the present application provides a contamination detection method for thermoelectric sensor, comprising: obtaining a first signal output by a main thermoelectric sensor and a second signal output by a reference thermoelectric sensor; wherein the optical window of the main thermoelectric sensor is exposed to a test environment, the optical window of the reference thermoelectric sensor is covered by a protective cover, the protective cover has high thermal conductivity and environmental sealing property, and the main thermoelectric sensor and the reference thermoelectric sensor are juxtaposed in the test environment; determining whether the optical window of the main thermoelectric sensor is covered by the contaminants according to the comparison result of the first signal and the second signal.
[0005] The technical scheme of the embodiment of the present application juxtaposes a main thermoelectric pile sensor and a reference thermoelectric pile sensor in a test environment. The optical window of the main thermoelectric pile sensor is exposed to the test environment, so the optical window of the main thermoelectric pile sensor can adsorb contaminants, and the main thermoelectric pile sensor detects the ambient temperature, and the output first signal of the main thermoelectric pile sensor is mainly determined by the ambient temperature. The optical window of the reference thermoelectric pile sensor is covered by a protective cover with high thermal conductivity and environmental sealing, so the optical window of the reference thermoelectric pile sensor will not adsorb contaminants, and the protective cover temperature detected by the reference thermoelectric pile sensor is extremely close to the ambient temperature, that is, the output second signal of the reference thermoelectric pile sensor is also determined by the ambient temperature. It can be seen that, under the same ambient temperature, the first signal and the second signal should have a high correlation characteristic. Based on the above characteristic, after obtaining the first signal output by the main thermoelectric pile sensor and the second signal output by the reference thermoelectric pile sensor, whether the optical window of the main thermoelectric pile sensor is covered by contaminants can be determined according to the comparison result of the first signal and the second signal. For example, the second signal can be regarded as a true ambient temperature signal without attenuation. If the difference between the first signal and the second signal is too large, it can be determined that the first signal has a large degree of attenuation, and such a situation is usually caused by the adsorption of contaminants on the optical window of the main thermoelectric pile sensor. Therefore, whether the optical window of the main thermoelectric pile sensor is covered by contaminants can be accurately detected in real time.
[0006] In an implementation manner of the embodiment of the present application, according to the comparison result of the first signal and the second signal, whether the optical window of the main thermoelectric pile sensor is covered by contaminants is determined, comprising: calculating a signal difference value and / or a signal ratio value of the first signal and the second signal; if the difference between the signal difference value and a pre-stored reference difference value exceeds a first threshold value, and / or the difference between the signal ratio value and a pre-stored reference ratio value exceeds a second threshold value, it is determined that the optical window of the main thermoelectric pile sensor is covered by contaminants; wherein the reference difference value is the difference between the output signals of the main thermoelectric pile sensor and the reference thermoelectric pile sensor when the optical window of the main thermoelectric pile sensor is not covered by contaminants; and the reference ratio value is the ratio of the output signals of the main thermoelectric pile sensor and the reference thermoelectric pile sensor when the optical window of the main thermoelectric pile sensor is not covered by contaminants.
[0007] In an implementation manner of the embodiment of the present application, the reference difference value and the reference ratio value are determined by: identifying a current temperature measurement object of the main thermoelectric pile sensor; The target difference value corresponding to the current temperature measuring object is obtained as a reference difference value, and the target ratio value corresponding to the current temperature measuring object is obtained as a reference ratio value; wherein the target difference value is the difference between the output signals of the main thermoelectric sensor and the reference thermoelectric sensor when the optical window of the main thermoelectric sensor is not covered by the contaminant and the main thermoelectric sensor measures the temperature of the current temperature measuring object; and the target ratio value is the ratio of the output signals of the main thermoelectric sensor and the reference thermoelectric sensor when the optical window of the main thermoelectric sensor is not covered by the contaminant and the main thermoelectric sensor measures the temperature of the current temperature measuring object.
[0008] In an implementation manner of the embodiment of the present application, if the difference between the signal difference value and the pre-stored reference difference value exceeds the first threshold value, and / or the difference between the signal ratio value and the pre-stored reference ratio value exceeds the second threshold value, it is determined that the optical window of the main thermoelectric sensor is covered by the contaminant, comprising: If the difference between the signal difference value and the pre-stored reference difference value exceeds the first threshold value, and / or the difference between the signal ratio value and the pre-stored reference ratio value exceeds the second threshold value, the target temperature of the current temperature measuring object detected by the high-precision temperature sensor is obtained; If the fluctuation amplitude of the target temperature within the set time length is less than the third threshold value, it is determined that the optical window of the main thermoelectric sensor is covered by the contaminant.
[0009] In an implementation manner of the embodiment of the present application, if the difference between the signal difference value and the pre-stored reference difference value exceeds the first threshold value, and / or the difference between the signal ratio value and the pre-stored reference ratio value exceeds the second threshold value, it is determined that the optical window of the main thermoelectric sensor is covered by the contaminant, comprising: If the difference between the signal difference value and the pre-stored reference difference value exceeds the first threshold value, and / or the difference between the signal ratio value and the pre-stored reference ratio value exceeds the second threshold value, the last cleaning time of the optical window of the main thermoelectric sensor is obtained; If the difference between the last cleaning time and the current time exceeds the fourth threshold value, it is determined that the optical window of the main thermoelectric sensor is covered by the contaminant.
[0010] In an implementation manner of the embodiment of the present application, after determining whether the optical window of the main thermoelectric sensor is covered by the contaminant according to the comparison result of the first signal and the second signal, the method further comprises: If it is determined that the optical window of the main thermoelectric sensor is covered by the contaminant, the window cleaning device is controlled to perform cleaning processing on the optical window of the main thermoelectric sensor.
[0011] In an implementation manner of the embodiment of the present application, the control of the window cleaning device to perform cleaning processing on the optical window of the main thermoelectric sensor comprises: determine a severity of contamination of the optical window of the main thermopile sensor according to the comparison result of the first signal and the second signal; set a working parameter of the window cleaning device according to the severity; control the window cleaning device to perform a cleaning process on the optical window of the main thermopile sensor based on the working parameter.
[0012] A second aspect of the embodiments of the present application provides a contamination detection device of a thermopile sensor, comprising: a signal acquisition module, configured to acquire a first signal output by a main thermopile sensor and a second signal output by a reference thermopile sensor; wherein an optical window of the main thermopile sensor is exposed to a test environment, an optical window of the reference thermopile sensor is covered by a protective cover, the protective cover has high thermal conductivity and environmental sealing property, and the main thermopile sensor and the reference thermopile sensor are juxtaposed in the test environment; a contamination detection module, configured to determine whether the optical window of the main thermopile sensor is covered by a contaminant according to a comparison result of the first signal and the second signal.
[0013] A third aspect of the embodiments of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements the contamination detection method of the thermopile sensor provided in the first aspect of the embodiments of the present application when executing the computer program.
[0014] A fourth aspect of the embodiments of the present application provides a computer program product, which, when running on an electronic device, causes the electronic device to perform the contamination detection method of the thermopile sensor provided in the first aspect of the embodiments of the present application.
[0015] A fifth aspect of the embodiments of the present application provides a computer readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the contamination detection method of the thermopile sensor provided in the first aspect of the embodiments of the present application.
[0016] It can be understood that the beneficial effects of the above-mentioned second aspect to fifth aspect can be referred to the related description in the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0017] Figure 1 is a schematic diagram of a contamination detection system of a thermopile sensor provided by the embodiments of the present application; Figure 2 is a flowchart of a contamination detection method of a thermopile sensor provided by the embodiments of the present application; Figure 3is a kind of operation flow schematic diagram of the pollution detection method of thermoelectric sensor provided in the embodiment of the application in actual application scene; Figure 4 is a kind of structure schematic diagram of the pollution detection device of thermoelectric sensor provided in the embodiment of the application; Figure 5 is a kind of schematic diagram of electronic equipment provided in the embodiment of the application. DETAILED DESCRIPTION
[0018] In the following description, for the purpose of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application can be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail. Moreover, descriptions of well-known systems, devices, circuits, and methods are often simplified to remove clear understanding of the present application. In addition, in the description of the specification and the appended claims of the present application, the terms "first", "second", "third" and the like are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0019] At present, thermoelectric sensor has been widely used in temperature measurement and other fields, and the optical window of the thermoelectric sensor is easy to adsorb dust, oil stains and other pollutants in long-term use, which will cause large deviation of the measurement result. The conventional maintenance method is to wipe the optical window of the thermoelectric sensor regularly, but this maintenance method is inefficient, cannot realize real-time monitoring, and is difficult to operate for the thermoelectric sensor installed in high place or closed equipment.
[0020] In view of the above technical problems, the embodiment of the present application provides a kind of pollution detection method, device, electronic equipment and computer program product of thermoelectric sensor, can accurately detect whether the optical window of thermoelectric sensor is covered by pollutant in real time. For more specific technical implementation details of the embodiments of the present application, please refer to the various embodiments described below.
[0021] Please refer to Figure 1 , show a kind of pollution detection system of thermoelectric sensor provided in the embodiment of the application. Figure 1The system shown includes two thermoelectric sensors juxtaposed in the same test environment, namely a main thermoelectric sensor and a reference thermoelectric sensor. The optical window of the main thermoelectric sensor is exposed to the test environment, which means that the optical window of the main thermoelectric sensor can adsorb contaminants, and it mainly detects the ambient temperature. The optical window of the reference thermoelectric sensor is covered by a protective cover with high thermal conductivity and environmental sealing, which means that the optical window of the reference thermoelectric sensor will not adsorb contaminants, and the protective cover temperature detected by the reference thermoelectric sensor is extremely close to the ambient temperature. The temperature signals detected by the two thermoelectric sensors are transmitted to an electronic device, and the two temperature signals are compared and analyzed by the electronic device, and according to the comparison result of the signals, it is determined whether the optical window of the main thermoelectric sensor is covered by contaminants, thus realizing the detection of contaminants of the main thermoelectric sensor. Figure 1 The specific technical implementation details of the system are described in the following method embodiments.
[0022] It should be understood that the subject of execution of each method embodiment proposed in the present application can be various types of electronic devices, such as mobile phones, tablets, desktop computers, test devices, contaminant detection devices, augmented reality (AR) / virtual reality (VR) devices, notebook computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), large-screen televisions, etc. The specific type of electronic device is not limited in the embodiments of the present application.
[0023] Please refer to Figure 2 , a method for detecting contaminants of a thermoelectric sensor is provided, which includes: 201, obtaining a first signal output by a main thermoelectric sensor and a second signal output by a reference thermoelectric sensor; The technical scheme of the embodiment of the present application juxtaposes two thermoelectric pile sensors in the same test environment, which are a main thermoelectric pile sensor and a reference thermoelectric pile sensor. The main thermoelectric pile sensor is a main measurement channel, and its optical window is directly exposed to the test environment and is used to perform normal temperature measurement functions. The reference thermoelectric pile sensor is a reference channel, and its optical window is covered by a sealed protective cover. The protective cover has high thermal conductivity to the environmental temperature but has high sealing property to the dust and other pollutants in the environment. In actual operation, the protective cover can be made of metal, ceramic or other materials with good thermal conductivity. As can be seen, since the optical window of the main thermoelectric pile sensor is exposed to the test environment, the optical window can adsorb pollutants, and the detected is usually the environmental temperature, that is, the output is mainly the temperature signal of the test environment. Since the optical window of the reference thermoelectric pile sensor is covered by the protective cover, and the protective cover has high thermal conductivity and environmental sealing property, the optical window will not adsorb pollutants, and the detected protective cover temperature is extremely close to the environmental temperature, that is, the output is also the temperature signal of the test environment. Based on this, under the same environmental temperature, the output signals of the two thermoelectric pile sensors should have highly correlated characteristics.
[0024] The execution subject of the method embodiment can be Figure 1 The electronic device in the system shown in the figure, which establishes electrical connection with the two thermoelectric pile sensors, can synchronously collect and acquire the output signals of the two thermoelectric pile sensors. The temperature signal output by the main thermoelectric pile sensor is recorded as the first signal, which can be represented as V main . The temperature signal output by the reference thermoelectric pile sensor is recorded as the second signal, which can be represented as V ref .
[0025] 202. According to the comparison result of the first signal and the second signal, it is determined whether the optical window of the main thermoelectric pile sensor is covered by the pollutants.
[0026] After the electronic device acquires the first signal V main output by the main thermoelectric pile sensor and the second signal V ref output by the reference thermoelectric pile sensor, the first signal V main and the second signal V ref are compared and analyzed. According to the comparison result of the first signal V main and the second signal V ref , it can be determined whether the optical window of the main thermoelectric pile sensor is covered by the pollutants. In actual operation, the second signal V ref can be regarded as a true environmental temperature signal without attenuation. If the difference between the first signal V main and the second signal V ref is too large, it can be determined that the first signal V maina large degree of attenuation occurs, which is usually due to the optical window of the main thermopile sensor adsorbing contaminants, and it can be inferred that the optical window of the main thermopile sensor is covered by contaminants. Conversely, if the first signal V main is substantially the same as the second signal V ref , it can be determined that the first signal V main is substantially not attenuated, and it can be inferred that the optical window of the main thermopile sensor is not covered by contaminants.
[0027] In an implementation form of the embodiment, the determination of whether the optical window of the main thermopile sensor is covered by contaminants according to the comparison result of the first signal and the second signal comprises: (1) calculating a signal difference and / or a signal ratio of the first signal and the second signal; (2) if a difference between the signal difference and a pre-stored reference difference exceeds a first threshold value, and / or a difference between the signal ratio and a pre-stored reference ratio exceeds a second threshold value, it is determined that the optical window of the main thermopile sensor is covered by contaminants; wherein the reference difference is a difference between the output signals of the main thermopile sensor and the reference thermopile sensor when the optical window of the main thermopile sensor is not covered by contaminants; and the reference ratio is a ratio of the output signals of the main thermopile sensor and the reference thermopile sensor when the optical window of the main thermopile sensor is not covered by contaminants.
[0028] When the signals are compared, the signal difference and / or the signal ratio of the first signal and the second signal can be calculated first, wherein the signal difference can be denoted as ΔV = V main - V ref , and the signal ratio can be denoted as Ratio = V main / V ref . The electronic device pre-calculates and stores the reference difference and the reference ratio in a clean state, the reference difference is a difference between the output signals of the main thermopile sensor and the reference thermopile sensor when the optical window of the main thermopile sensor is not covered by contaminants, which can be denoted as V 基准 , and the reference ratio is a ratio of the output signals of the main thermopile sensor and the reference thermopile sensor when the optical window of the main thermopile sensor is not covered by contaminants, which can be denoted as Ratio 基准 . When the two thermopile sensors are in a clean state after being manufactured or installed, the electronic device records the output signals of the two thermopile sensors and calculates the reference values, for example, at an ambient temperature of 25°C, the output signals of the two thermopile sensors are extremely close, which can make the reference difference V 基准 = 0 and the reference ratio Ratio 基准 = 1. The calculated signal difference ΔV and the reference difference V 基准If the signal difference ΔV is compared with the reference difference V, then... 基准 The difference exceeds the first threshold, because V ref The size of V is not affected by the decay of pollutants, therefore it can be concluded that V main When systematic attenuation occurs, ΔV will decrease to a negative value; similarly, the calculated signal ratio Ratio can be compared with the reference ratio Ratio. 基准 Compare the signal ratio Ratio with the reference ratio Ratio. 基准 If the difference exceeds the second threshold, it can also be concluded that V main Systematic attenuation occurred, at which point Ratio was less than 1. In general, if the signal difference ΔV and / or the signal ratio Ratio are continuously detected to deviate from the reference value and exceed the set tolerance threshold, it can be determined that the optical window of the main thermopile sensor is covered by contaminants; while if the signal difference ΔV and the signal ratio Ratio are not detected to deviate from the reference value, it can be determined that the optical window of the main thermopile sensor is not covered by contaminants.
[0029] In one implementation of this application, the reference difference and the reference ratio are determined in the following way: (1) Identify the current temperature measurement object of the main thermopile sensor; (2) Obtain the target difference value corresponding to the current temperature measurement object as the reference difference value, and obtain the target ratio value corresponding to the current temperature measurement object as the reference ratio value; wherein, the target difference value is the difference between the output signals of the main thermopile sensor and the reference thermopile sensor when the optical window of the main thermopile sensor is not covered by contaminants and the main thermopile sensor measures the temperature of the current temperature measurement object; the target ratio value is the ratio between the output signals of the main thermopile sensor and the reference thermopile sensor when the optical window of the main thermopile sensor is not covered by contaminants and the main thermopile sensor measures the temperature of the current temperature measurement object.
[0030] The main thermopile sensor performs normal temperature measurement functions. Its measurement target can be various objects, such as ambient air, vehicle chassis, steam ovens, and chilled water cups. The main thermopile sensor measures the target temperature of the current measurement object. Because the current measurement object is within the test environment, the first signal V output by the main thermopile sensor is... main It is the composite value of the target temperature and the ambient temperature. As for the reference thermopile sensor, its output second signal V... ref It is only related to the ambient temperature. It can be seen that when the ambient temperature changes, the first signal V... main Second signal V refThe two signals will change synchronously (either increase or decrease simultaneously), because they both contain the same ambient temperature component, so the signal difference AV and / or the signal ratio Ratio of the two signals will remain relatively stable. Since the output signal of the main thermocouple sensor is affected by the temperature measuring object, it can be foreseen that different temperature measuring objects will correspond to different reference difference V 基准 and reference ratio Ratio 基准 . For example, if the temperature measuring object is ambient air (V main = V ref ), the reference difference V 基准 = 0, and the reference ratio Ratio 基准 = 1; if the temperature measuring object is a steam furnace (V main > V ref ), the reference difference V 基准 > 0, and the reference ratio Ratio 基准 > 1; if the temperature measuring object is a chilled water cup (V main < V ref ), the reference difference V 基准 < 0, and the reference ratio Ratio 基准 < 1. The electronic device can calculate and store the reference difference V 基准 and the reference ratio Ratio 基准 corresponding to various different temperature measuring objects respectively through pre-calibration. After identifying and determining the current temperature measuring object of the main thermocouple sensor, the electronic device obtains the reference difference V 基准 and the reference ratio Ratio 基准 corresponding to the current temperature measuring object, and then compares the signal difference AV and the signal ratio Ratio of the first signal and the second signal with the obtained reference difference V 基准 and the reference ratio Ratio 基准 , so that no matter what the current temperature measuring object of the main thermocouple sensor is, the appropriate clean state reference value can be obtained and the contamination coverage detection can be completed.
[0031] Under normal circumstances, the target temperature of the current temperature measuring object measured by the main thermocouple sensor is relatively stable, and it will not fluctuate greatly in a short time, so that it can be ensured that the deviation of the signal difference AV and the signal ratio Ratio is caused by the contamination coverage of the optical window of the main thermocouple sensor. However, in a small number of cases, the target temperature of the current temperature measuring object measured by the main thermocouple sensor can fluctuate greatly, which will also cause the signal difference AV and the signal ratio Ratio to deviate. At this time, it is impossible to judge whether the deviation of the signal difference AV and the signal ratio Ratio is caused by the contamination coverage of the optical window of the main thermocouple sensor or by the fluctuation of the target temperature, which will obviously affect the accuracy of the contamination detection.
[0032] In an implementation form of the embodiment of the application, if the difference between the signal difference value and the pre-stored reference difference value exceeds the first threshold value, and / or the difference between the signal ratio value and the pre-stored reference ratio value exceeds the second threshold value, it is determined that the optical window of the main thermoelectric sensor is covered by the contaminant, comprising: (1) if the difference between the signal difference value and the pre-stored reference difference value exceeds the first threshold value, and / or the difference between the signal ratio value and the pre-stored reference ratio value exceeds the second threshold value, the target temperature of the current temperature measuring object detected by the high-precision temperature sensor is acquired; (2) if the fluctuation amplitude of the target temperature within a set time length is less than a third threshold value, it is determined that the optical window of the main thermoelectric sensor is covered by the contaminant.
[0033] In order to distinguish whether the deviation of the signal difference value ΔV and the signal ratio value Ratio is caused by the optical window of the main thermoelectric sensor being covered by the contaminant or caused by the fluctuation of the target temperature, a high-precision temperature sensor can be arranged to detect the target temperature of the current temperature measuring object in real time. When it is found that the difference between the signal difference value ΔV and the reference difference value V 基准 exceeds the first threshold value, and / or the difference between the signal ratio value Ratio and the reference ratio value Ratio 基准 exceeds the second threshold value, it indicates that the signal difference value ΔV and / or the signal ratio value Ratio deviates greatly, at this time, the target temperature of the current temperature measuring object detected by the high-precision temperature sensor is acquired, and if the fluctuation amplitude of the target temperature within a set time length is less than a third threshold value, it indicates that the target temperature is relatively stable, so that it can be ensured that the deviation of the signal difference value ΔV and the signal ratio value Ratio is caused by the optical window of the main thermoelectric sensor being covered by the contaminant, and thus the optical window of the main thermoelectric sensor being covered by the contaminant can be accurately determined. If the fluctuation amplitude of the target temperature within a set time length exceeds the third threshold value, it indicates that the target temperature fluctuates greatly, at this time, it cannot be judged whether the deviation of the signal difference value ΔV and the signal ratio value Ratio is caused by the optical window of the main thermoelectric sensor being covered by the contaminant or caused by the fluctuation of the target temperature, and a preset prompt information can be output, for example, a prompt that the automatic contaminant identification fails, the optical window of the main thermoelectric sensor can be manually checked whether it is covered by the contaminant, etc. By such an arrangement, the accuracy of the contaminant detection of the thermoelectric sensor can be further improved.
[0034] In an implementation form of the embodiment of the application, if the difference between the signal difference value and the pre-stored reference difference value exceeds the first threshold value, and / or the difference between the signal ratio value and the pre-stored reference ratio value exceeds the second threshold value, it is determined that the optical window of the main thermoelectric sensor is covered by the contaminant, comprising: (1) If the difference between the signal difference value and the pre-stored reference difference value exceeds a first threshold value, and / or the difference between the signal ratio value and the pre-stored reference ratio value exceeds a second threshold value, the last cleaning time of the optical window of the main thermoelectric sensor is obtained; (2) If the difference between the last cleaning time and the current time exceeds a fourth threshold value, it is determined that the optical window of the main thermoelectric sensor is covered by contaminants.
[0035] In addition to introducing the fluctuation recognition of the target temperature, the accuracy of the contaminant detection of the thermoelectric sensor can also be improved by introducing the cleaning time of the main thermoelectric sensor for comprehensive judgment. Specifically, the electronic device can record the time information of each cleaning of the optical window of the main thermoelectric sensor. When it is found that the difference between the signal difference value ΔV and the reference difference value V 基准 exceeds the first threshold value, and / or the difference between the signal ratio value Ratio and the reference ratio value Ratio 基准 exceeds the second threshold value, it indicates that the signal difference value ΔV and / or the signal ratio value Ratio deviate greatly. At this time, the last cleaning time of the optical window of the main thermoelectric sensor is obtained. If the difference between the last cleaning time and the current time exceeds the fourth threshold value, it indicates that the optical window of the main thermoelectric sensor has not been cleaned for a long time, so the possibility of being covered by contaminants is great. At this time, it can be determined that the deviation of the signal difference value ΔV and the signal ratio value Ratio is caused by the optical window of the main thermoelectric sensor being covered by contaminants, and thus the optical window of the main thermoelectric sensor being covered by contaminants can be accurately determined. Conversely, if the difference between the last cleaning time and the current time does not exceed the fourth threshold value, it indicates that the optical window of the main thermoelectric sensor was cleaned not long ago, so the possibility of being covered by contaminants is not great. At this time, it cannot be judged whether the deviation of the signal difference value ΔV and the signal ratio value Ratio is caused by the optical window of the main thermoelectric sensor being covered by contaminants or other reasons such as sensor failure. A preset prompt information can be output, for example, prompting that the automatic recognition of contaminants fails, and the optical window of the main thermoelectric sensor can be manually checked whether it is covered by contaminants and whether the two thermoelectric sensors are faulty, etc. By such a setting, the accuracy of the contaminant detection of the thermoelectric sensor can also be further improved.
[0036] When the electronic device determines that the optical window of the main thermoelectric sensor is covered by contaminants, a diagnostic signal or a warning information indicating that the optical window of the main thermoelectric sensor is covered by contaminants can be generated, for reminding the user to clean the optical window of the main thermoelectric sensor.
[0037] In an implementation form of the embodiment of the application, after determining whether the optical window of the main thermopile sensor is covered by the contaminant according to the comparison result of the first signal and the second signal, the method further comprises: If it is determined that the optical window of the main thermopile sensor is covered by the contaminant, the window cleaning device is controlled to clean the optical window of the main thermopile sensor.
[0038] In addition to manually cleaning the optical window of the main thermopile sensor, the technical solution of the embodiment of the application can also be provided with a window cleaning device connected with the electronic device. When it is determined that the optical window of the main thermopile sensor is covered by the contaminant, the electronic device can send a control instruction to the window cleaning device, and the window cleaning device can automatically clean the optical window of the main thermopile sensor after receiving the control instruction. Specifically, the electronic device and the window cleaning device can establish a connection through Bluetooth or Wifi and the like. The window cleaning device is provided with a wiping part and a spraying part. After receiving the control instruction sent by the electronic device, the spraying part of the window cleaning device is opened, and the optical window of the main thermopile sensor is sprayed with detergent. Thereafter, the wiping part of the window cleaning device performs reciprocating wiping action on the optical window of the main thermopile sensor under the action of the motor. The spraying action and the wiping action can be repeatedly executed for multiple times in order to obtain a better optical window cleaning effect. Through the linkage control of the electronic device and the window cleaning device, automatic and efficient cleaning of the optical window of the main thermopile sensor can be realized.
[0039] In an implementation form of the embodiment of the application, the control of the window cleaning device to clean the optical window of the main thermopile sensor comprises: (1) determining the severity of the contamination of the optical window of the main thermopile sensor according to the comparison result of the first signal and the second signal; (2) setting the working parameters of the window cleaning device according to the severity; (3) controlling the window cleaning device to clean the optical window of the main thermopile sensor based on the working parameters.
[0040] During the process of controlling the window cleaning device to clean the optical window of the main thermopile sensor, the electronic device can determine the severity of the contamination of the optical window of the main thermopile sensor according to the comparison result of the first signal V main and the second signal V ref . Generally, if the first signal V main is greater than the second signal V refThe greater the deviation, the higher the severity of the contamination covering the optical window of the main thermopile sensor. The electronic device can preset a plurality of different severity levels, each corresponding to different window cleaning device working parameters. For example, severity level "high" corresponds to working parameters "spray 30 ml of detergent, wipe 30 times", severity level "medium" corresponds to working parameters "spray 20 ml of detergent, wipe 20 times", severity level "low" corresponds to working parameters "spray 10 ml of detergent, wipe 10 times", and so on. After determining the severity of the contamination covering the optical window of the main thermopile sensor, the working parameters of the window cleaning device are set according to the severity, and the window cleaning device is controlled to clean the optical window of the main thermopile sensor based on the working parameters. For example, if the severity level is determined to be "high", the window cleaning device is controlled to spray 30 ml of detergent on the optical window of the main thermopile sensor and perform a wiping action 30 times, and so on. By setting in this way, the working parameters of the window cleaning device can be reasonably set according to the severity of the contamination covering the optical window of the main thermopile sensor, thereby improving the rationality and effectiveness of the cleaning action performed on the optical window of the main thermopile sensor.
[0041] The technical solution of the embodiment of the present application juxtaposes the main thermopile sensor and the reference thermopile sensor in the test environment. The optical window of the main thermopile sensor is exposed to the test environment, so the optical window of the main thermopile sensor can adsorb contaminants, and the main thermopile sensor detects the ambient temperature, and the first signal output by the main thermopile sensor is mainly determined by the ambient temperature. The optical window of the reference thermopile sensor is covered by a protective cover with high thermal conductivity and environmental sealing, so the optical window of the reference thermopile sensor will not adsorb contaminants, and the protective cover temperature detected by the reference thermopile sensor is extremely close to the ambient temperature, that is, the second signal output by the reference thermopile sensor is also determined by the ambient temperature. It can be seen that under the same ambient temperature, the first signal and the second signal should have highly correlated characteristics. Based on the above characteristics, after obtaining the first signal output by the main thermopile sensor and the second signal output by the reference thermopile sensor, whether the optical window of the main thermopile sensor is covered by contaminants can be determined according to the comparison result of the first signal and the second signal.
[0042] As an example, Figure 3 is a schematic diagram of an operation process of the contamination detection method of the thermopile sensor provided by the embodiment of the present application in an actual application scenario. Please refer to Figure 3, the test environment includes the target to be tested and ambient air containing dust particles, the main thermoelectric sensor and the reference thermoelectric sensor are placed in the test environment, the main thermoelectric sensor serves as a measurement channel, and the optical window thereof has accumulated dust; the reference thermoelectric sensor serves as a reference channel, and the optical window thereof is covered by a sealed protective cover having high thermal conductivity and dustproof properties. Since the infrared radiation information is attenuated when passing through the dust-covered optical window, the main thermoelectric sensor receives the attenuated infrared signal, and the output signal V main of the main thermoelectric sensor is attenuated. As for the reference thermoelectric sensor, since the protective cover conducts pure ambient temperature, the output signal V ref of the reference thermoelectric sensor is not attenuated. The signal processing and control unit provided by the electronic device calculates the signal difference value ΔV = V main -V ref , and compares ΔV with the reference difference value V 基准 . Since V main is attenuated and V ref is not attenuated, the deviation between ΔV and V 基准 is large, at which time it is determined that the optical window of the main thermoelectric sensor has been covered by dust, and the communication interface / alarm unit outputs the corresponding diagnostic result to the user or the upper system, so as to remind the user to clean the optical window of the main thermoelectric sensor in time.
[0043] In summary, the embodiment of the present application uses a protected reference thermoelectric sensor and an exposed main thermoelectric sensor to output characteristics that should have a high correlation under the same ambient temperature, and monitors the change in the difference between the output signals of the two sensors to diagnose the contamination coverage of the main thermoelectric sensor, thereby finally realizing a technical solution capable of online, automatic and accurate diagnosis of the contamination coverage state of the thermoelectric sensor.
[0044] It should be understood that the size of the serial number of each step in each of the above embodiments does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
[0045] The above mainly describes a contamination detection method of a thermoelectric sensor, and a contamination detection device of a thermoelectric sensor will be described below.
[0046] Referring to Figure 4 , a contamination detection device of a thermoelectric sensor provided by an embodiment of the present application is shown, which comprises: The signal acquisition module 401 is configured to acquire a first signal output by the main thermocouple sensor and a second signal output by the reference thermocouple sensor; wherein an optical window of the main thermocouple sensor is exposed to a test environment, and an optical window of the reference thermocouple sensor is covered by a protective cover, the protective cover has high thermal conductivity and environmental sealing, and the main thermocouple sensor and the reference thermocouple sensor are placed in the test environment. The pollutant detection module 402 is configured to determine whether the optical window of the main thermocouple sensor is covered by the pollutant according to a comparison result of the first signal and the second signal.
[0047] In an implementation manner of the embodiment of the present application, the pollutant detection module comprises: The difference signal calculation unit is configured to calculate a signal difference value and / or a signal ratio value of the first signal and the second signal. The pollutant detection unit is configured to determine that the optical window of the main thermocouple sensor is covered by the pollutant if a difference between the signal difference value and a pre-stored reference difference value exceeds a first threshold value, and / or a difference between the signal ratio value and a pre-stored reference ratio value exceeds a second threshold value; wherein the reference difference value is a difference between output signals of the main thermocouple sensor and the reference thermocouple sensor in a case that the optical window of the main thermocouple sensor is not covered by the pollutant; and the reference ratio value is a ratio of the output signals of the main thermocouple sensor and the reference thermocouple sensor in the case that the optical window of the main thermocouple sensor is not covered by the pollutant.
[0048] In an implementation manner of the embodiment of the present application, the pollutant detection module further comprises: The temperature measurement object identification unit is configured to identify a current temperature measurement object of the main thermocouple sensor. The reference value acquisition unit is configured to acquire a target difference value corresponding to the current temperature measurement object as the reference difference value, and acquire a target ratio value corresponding to the current temperature measurement object as the reference ratio value; wherein the target difference value is a difference between output signals of the main thermocouple sensor and the reference thermocouple sensor in a case that the optical window of the main thermocouple sensor is not covered by the pollutant and the main thermocouple sensor measures a temperature of the current temperature measurement object; and the target ratio value is a ratio of the output signals of the main thermocouple sensor and the reference thermocouple sensor in the case that the optical window of the main thermocouple sensor is not covered by the pollutant and the main thermocouple sensor measures the temperature of the current temperature measurement object.
[0049] In an implementation manner of the embodiment of the present application, the pollutant detection unit comprises: The target temperature acquisition subunit is configured to acquire a target temperature of the current temperature measurement object detected by the high-precision temperature sensor if the difference between the signal difference value and the pre-stored reference difference value exceeds the first threshold value, and / or the difference between the signal ratio value and the pre-stored reference ratio value exceeds the second threshold value. The first contamination detection sub-unit is configured to determine that the optical window of the main thermoelectric sensor is covered by contamination if a fluctuation range of the target temperature within a set time length is less than a third threshold value.
[0050] In an implementation form of the embodiment of the application, the contamination detection unit comprises: The cleaning time acquisition sub-unit is configured to acquire a last cleaning time of the optical window of the main thermoelectric sensor if a difference between the signal difference value and a pre-stored reference difference value exceeds a first threshold value, and / or a difference between the signal ratio value and a pre-stored reference ratio value exceeds a second threshold value. The second contamination detection sub-unit is configured to determine that the optical window of the main thermoelectric sensor is covered by contamination if a difference between the last cleaning time and a current time exceeds a fourth threshold value.
[0051] In an implementation form of the embodiment of the application, the contamination detection device of the thermoelectric sensor further comprises: The cleaning control module is configured to control the window cleaning device to perform cleaning processing on the optical window of the main thermoelectric sensor if it is determined that the optical window of the main thermoelectric sensor is covered by contamination.
[0052] In an implementation form of the embodiment of the application, the cleaning control module comprises: The severity determination unit is configured to determine a severity of contamination covering the optical window of the main thermoelectric sensor according to the comparison result of the first signal and the second signal. The working parameter setting unit is configured to set a working parameter of the window cleaning device according to the severity. The cleaning control unit is configured to control the window cleaning device to perform cleaning processing on the optical window of the main thermoelectric sensor based on the working parameter.
[0053] The embodiment of the application further provides a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the contamination detection method of the thermoelectric sensor described in any of the above embodiments.
[0054] The embodiment of the application further provides a computer program product. When the computer program product is run on an electronic device, the electronic device performs the contamination detection method of the thermoelectric sensor described in any of the above embodiments.
[0055] Figure 5 is a schematic diagram of an electronic device provided by an embodiment of the application. As shown in Figure 5As shown, the electronic device 5 of this embodiment includes a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50. The processor 50 implements the steps in the above-described embodiments of the method for detecting pollutants by the thermoelectric sensor when executing the computer program 52, such as Figure 2 The processor 50 implements the functions of the modules / units in the above-described embodiments of the apparatus when executing the computer program 52, such as implementing the steps 201-202. Figure 4 The processor 50 implements the functions of the modules / units in the above-described embodiments of the apparatus when executing the computer program 52, such as implementing the steps 201-202.
[0056] The computer program 52 can be segmented into one or more modules / units stored in the memory 51 and executed by the processor 50 to complete the present application. The one or more modules / units can be a series of computer program instruction segments capable of completing a specific function, which are used to describe the execution process of the computer program 52 in the electronic device 5.
[0057] The processor 50 can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic components, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.
[0058] The memory 51 can be an internal storage unit of the electronic device 5, such as a hard disk or a memory of the electronic device 5. The memory 51 can also be an external storage device of the electronic device 5, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Further, the memory 51 can include both the internal storage unit and the external storage device of the electronic device 5. The memory 51 is used to store the computer program and other programs and data required by the electronic device. The memory 51 can also be used to temporarily store data that has been output or will be output.
[0059] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional units and modules is taken as an example, and in actual application, the above functions can be completed 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 complete all or part of the functions described above. Each functional unit or module in the embodiment can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or software. In addition, the specific names of each functional unit or module are only for easy distinction, and do not limit the protection scope of the present application. The specific working process of the units and modules in the system can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
[0060] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, apparatus and unit described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
[0061] In the above embodiments, the description of each embodiment has its own emphasis, and the parts not described or recorded in detail in a certain embodiment can be referred to the related description of other embodiments.
[0062] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0063] In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. For example, the system embodiments described above are only schematic, for example, the division of the modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units or components shown or discussed can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or other forms.
[0064] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, i.e. may be located in one place, or may be distributed on multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiments of the present application.
[0065] In addition, the functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0066] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the above-mentioned embodiment methods can also be completed by a computer program instructing related hardware, and the computer program can be stored in a computer readable storage medium. The computer program can implement the steps of each method embodiment when executed by a processor. The computer program includes computer program code, which can be in the form of source code, object code, executable files or some intermediate forms. The computer readable medium can include any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the contents included in the computer readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
[0067] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. A method of detecting a contaminant of a thermoelectric sensor, characterized by, The method comprises: acquiring a first signal output by a main thermocouple sensor and a second signal output by a reference thermocouple sensor; wherein an optical window of the main thermocouple sensor is exposed to a test environment, an optical window of the reference thermocouple sensor is covered by a protective cover, the protective cover has high thermal conductivity and environmental sealing, and the main thermocouple sensor and the reference thermocouple sensor are juxtaposed in the test environment; determining whether the optical window of the main thermocouple sensor is covered by a contaminant according to a comparison result of the first signal and the second signal.
2. The method of claim 1, wherein, The determining whether the optical window of the main thermocouple sensor is covered by a contaminant according to the comparison result of the first signal and the second signal comprises: calculating a signal difference and / or a signal ratio of the first signal and the second signal; if a difference between the signal difference and a pre-stored reference difference exceeds a first threshold value, and / or a difference between the signal ratio and a pre-stored reference ratio exceeds a second threshold value, it is determined that the optical window of the main thermocouple sensor is covered by a contaminant; wherein the reference difference is a difference between output signals of the main thermocouple sensor and the reference thermocouple sensor when the optical window of the main thermocouple sensor is not covered by a contaminant; and the reference ratio is a ratio of the output signals of the main thermocouple sensor and the reference thermocouple sensor when the optical window of the main thermocouple sensor is not covered by a contaminant.
3. The method of claim 2, wherein, The reference difference and the reference ratio are determined by: identifying a current temperature measurement object of the main thermocouple sensor; acquiring a target difference corresponding to the current temperature measurement object as the reference difference, and acquiring a target ratio corresponding to the current temperature measurement object as the reference ratio; wherein the target difference is a difference between output signals of the main thermocouple sensor and the reference thermocouple sensor when the optical window of the main thermocouple sensor is not covered by a contaminant and the main thermocouple sensor measures the temperature of the current temperature measurement object; and the target ratio is a ratio of the output signals of the main thermocouple sensor and the reference thermocouple sensor when the optical window of the main thermocouple sensor is not covered by a contaminant and the main thermocouple sensor measures the temperature of the current temperature measurement object.
4. The method of claim 3, wherein, The if a difference between the signal difference and a pre-stored reference difference exceeds a first threshold value, and / or a difference between the signal ratio and a pre-stored reference ratio exceeds a second threshold value, it is determined that the optical window of the main thermocouple sensor is covered by a contaminant, comprises: if a difference between the signal difference and a pre-stored reference difference exceeds a first threshold value, and / or a difference between the signal ratio and a pre-stored reference ratio exceeds a second threshold value, a target temperature of the current temperature measurement object detected by a high-precision temperature sensor is acquired; if a fluctuation amplitude of the target temperature within a set time period is less than a third threshold value, it is determined that the optical window of the main thermocouple sensor is covered by a contaminant.
5. The method of claim 2, wherein, determining that the optical window of the main thermopile sensor is covered by contaminants if a difference between the signal difference value and a pre-stored reference difference value exceeds a first threshold value, and / or a difference between the signal ratio value and a pre-stored reference ratio value exceeds a second threshold value, comprises: obtaining a last cleaning time of the optical window of the main thermopile sensor if a difference between the signal difference value and a pre-stored reference difference value exceeds a first threshold value, and / or a difference between the signal ratio value and a pre-stored reference ratio value exceeds a second threshold value; determining that the optical window of the main thermopile sensor is covered by contaminants if a difference between the last cleaning time and a current time exceeds a fourth threshold value.
6. The method according to any one of claims 1 to 5, characterized in that, After determining whether the optical window of the main thermopile sensor is covered by contaminants according to the comparison result of the first signal and the second signal, the method further comprises: controlling a window cleaning device to perform a cleaning process on the optical window of the main thermopile sensor if it is determined that the optical window of the main thermopile sensor is covered by contaminants.
7. The method of claim 6, wherein, The control of the window cleaning device to perform the cleaning process on the optical window of the main thermopile sensor comprises: determining a severity of contamination of the optical window of the main thermopile sensor according to the comparison result of the first signal and the second signal; setting an operating parameter of the window cleaning device according to the severity; controlling the window cleaning device to perform the cleaning process on the optical window of the main thermopile sensor based on the operating parameter.
8. A contamination detection device for a thermopile sensor, characterized by comprises: a signal acquisition module configured to acquire a first signal output by a main thermopile sensor and a second signal output by a reference thermopile sensor; wherein an optical window of the main thermopile sensor is exposed to a test environment, an optical window of the reference thermopile sensor is covered by a protective cover, the protective cover has high thermal conductivity and environmental sealing, and the main thermopile sensor and the reference thermopile sensor are juxtaposed in the test environment; a contamination detection module configured to determine whether the optical window of the main thermopile sensor is covered by contaminants according to a comparison result of the first signal and the second signal.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor executes the computer program to implement the contamination detection method of the thermopile sensor according to any one of claims 1 to 7.
10. A computer program product, characterised in that, When the computer program product runs on the electronic device, the electronic device is caused to perform the contamination detection method of the thermopile sensor according to any one of claims 1 to 7.