Gas detection device, its control method, and gas detection system

By introducing adaptive calibration function into the gas detection equipment, the detection inaccuracy problem caused by the failure of the internal wavelength calibration function is solved, and adaptive calibration in the case of failure is achieved, improving the accuracy of gas detection and the reliability of the equipment.

CN114646607BActive Publication Date: 2025-07-11HESAI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210421129.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-21
Publication Date
2025-07-11
Estimated Expiration
2042-04-21

AI Technical Summary

Technical Problem

After long-term use of existing gas detection equipment, internal hardware loss leads to failure of internal wavelength calibration function, affecting the accuracy of gas detection.

Method used

Add an adaptive calibration function to the gas detection device, and determine whether the internal wavelength calibration function is invalid through the self-test mode, and switch to the adaptive calibration mode when it fails, and use the gas detection data in the area to be tested for adaptive calibration.

Benefits of technology

Improves the reliability of gas detection data and the robustness of the equipment, ensuring accurate gas detection can be performed when the internal wavelength calibration function fails.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114646607B_ABST
    Figure CN114646607B_ABST
Patent Text Reader

Abstract

The present invention provides a gas detection device, its control method, and a gas detection system. Among them, the control method of the gas detection device includes: in the self-check mode, transmitting a detection signal to the internal wavelength calibration module and determining whether internal reference detection data is obtained; when the internal reference detection data is not obtained, switching the self-check mode to the adaptive calibration mode; in the adaptive calibration mode, adaptively calibrating the wavelength of the detection signal based on the gas detection data obtained by transmitting the detection signal to the area to be measured. By adopting the above solution, it is possible to transmit an adaptively calibrated detection signal to the area to be measured, improve the credibility of the obtained gas detection data, and increase the robustness of the gas detection device, thereby improving the accuracy of gas detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of gas detection, and particularly to a gas detection device, a control method thereof, and a gas detection system. Background Art

[0002] In the existing gas detection technology, by analyzing the absorption of a laser signal (i.e., a detection signal) emitted by a gas detection device in a region to be detected, a specified gas (such as methane) in the region to be detected can be detected.

[0003] According to the research theory of laser absorption spectroscopy, the absorption of the same gas sample for laser signals of different wavelengths is different. According to the correspondence between the laser signal wavelength and the absorption in the gas sample, a gas absorption spectrum line can be formed. The gas absorption spectrum line is a fluctuating curve and there are gas absorption peaks. Based on this, during gas detection, it is usually desired to lock the central wavelength of the detection signal of the gas detection device to the wavelength corresponding to the gas absorption peak. Thus, after emitting the detection signal to the region to be detected, the obtained gas detection data can characterize the absorption of the detection signal in the region to be detected. According to the gas detection data, a gas absorption spectrum line with a gas absorption peak can be formed. However, due to interference factors such as changes in ambient temperature, device component loss, and device circuit loss, the detection signal emitted by the gas detection device has a wavelength shift, which affects the accuracy of gas detection.

[0004] In order to reduce the influence of wavelength shift on gas detection, existing gas detection devices are configured with an internal wavelength calibration function. Through the internal wavelength calibration function, the wavelength of the detection signal can be roughly calibrated to ensure that the gas absorption spectrum line corresponding to the gas detection data has a gas absorption peak.

[0005] For example, referring to Figure 1 , it is a structural schematic diagram of an existing gas detection device with an internal wavelength calibration function. Figure 1 The shown gas detection device D0 includes: a control module 01, a signal emission module 02, a signal reception module 03, and an internal wavelength calibration module 04. Among them, the internal wavelength calibration module 04 includes an internal reference gas chamber 041 and an internal signal reception unit 042. A reference gas with a known concentration is stored in the internal reference gas chamber 041, and the reference gas can be the same as the specified gas detected by the gas detection device D0.

[0006] During normal gas detection, the control module 01 can control the signal transmission module 02 to emit a detection signal L01 with a specific wavelength after internal wavelength calibration to the external area F0 to be measured. The specified gas in the area F0 to be measured can absorb the detection signal L01, and the detection signal L01 is reflected by the reflector W0 in the area F0 to be measured to form an external echo signal L02. The signal reception module 03 receives the external echo signal L02 and performs optoelectronic detection. The control module 01 realizes the gas detection of the area F0 to be measured through the detection result of the signal reception module 03.

[0007] During internal wavelength calibration, the control module 01 can control the signal transmission module 02 to emit the detection signal L01 to the internal reference gas chamber 041 in the internal wavelength calibration module 04. The internal reference gas chamber 041 stores a reference gas consistent with the target gas composition. The reference gas absorbs the detection signal L01 and forms an internal echo signal L03, and the internal echo signal L03 is transmitted to the internal signal receiving unit 042. The internal signal receiving unit 042 receives the internal echo signal L03 and performs optoelectronic detection. The control module 01 can obtain internal reference detection data through data processing according to the detection result of the internal signal receiving unit 042. Among them, the internal reference detection data can characterize the absorption of the detection signal in the internal reference gas chamber 041. Then, the control module 01 can calibrate the wavelength of the detection signal L01 according to the internal reference detection data to ensure that the gas absorption spectrum line corresponding to the gas detection data has a gas absorption peak.

[0008] However, as the usage time increases, the internal hardware of the gas detection device is damaged, which may cause the hardware for realizing the internal wavelength calibration function to malfunction. For example, continue to refer to Figure 1 , the hardware for realizing the internal wavelength calibration function may have the following abnormal situations:

[0009] 1) Due to problems such as vibration, screw loosening, and high and low temperature degumming, optical offset is caused, the internal echo signal L03 cannot be received, or the light intensity of the received internal echo signal L03 does not exceed the preset minimum light intensity threshold.

[0010] 2) The components in the internal wavelength calibration module 04 are damaged (such as the internal signal receiving unit 042 is damaged) or the circuit is disconnected (such as the signal line falls off).

[0011] After the hardware for realizing the internal wavelength calibration function malfunctions, the internal wavelength calibration function fails and the wavelength calibration cannot be effectively performed, thus seriously affecting the accuracy of gas detection. Therefore, how to improve the accuracy of gas detection urgently needs to be solved by those skilled in the art. Summary of the Invention

[0012] In view of this, the present invention provides a gas detection device, its control method, and a gas detection system, which can emit an adaptively calibrated detection signal to a region to be measured, improve the credibility of the obtained gas detection data, and increase the robustness of the gas detection device, thereby improving the accuracy of gas detection.

[0013] Specifically, the present invention provides a control method for a gas detection device, including:

[0014] In the self-check mode, emitting a detection signal to an internal wavelength calibration module and determining whether internal reference detection data is obtained;

[0015] When the internal reference detection data is not obtained, switching the self-check mode to an adaptive calibration mode;

[0016] In the adaptive calibration mode, adaptively calibrating the wavelength of the detection signal based on the gas detection data obtained by emitting the detection signal to the region to be measured.

[0017] The present invention also provides a gas detection device, including: a control module, a signal emission module, and an internal wavelength calibration module, wherein:

[0018] The control module is adapted to, in the self-check mode, control the signal emission module to emit a detection signal to the internal wavelength calibration module and determine whether internal reference detection data is obtained; when the internal reference detection data is not obtained, switch the self-check mode to the adaptive calibration mode; and, in the adaptive calibration mode, adaptively calibrate the wavelength of the detection signal based on the gas detection data obtained by emitting the detection signal to the region to be measured.

[0019] The present invention also provides a gas detection system, including:

[0020] A gas detection device, which is adapted to, in the self-check mode, emit a detection signal to its own internal wavelength calibration module and determine whether internal reference detection data is obtained; when the internal reference detection data is not obtained, switch the self-check mode to the adaptive calibration mode; in the adaptive calibration mode, adaptively calibrate the wavelength of the detection signal based on the gas detection data obtained by emitting the detection signal to the region to be measured.

[0021] By adopting the control method of the gas detection device provided by the present invention, in the self-check mode, a detection signal is transmitted to the internal wavelength calibration module, and it is determined whether internal reference detection data is obtained, so as to determine whether the internal wavelength calibration function fails; when the internal reference detection data is not obtained, it is determined that the internal wavelength calibration function fails, and thus the self-check mode is switched to the adaptive calibration mode, so that in the adaptive calibration mode, based on the gas detection data obtained by transmitting the detection signal to the area to be measured, the wavelength of the detection signal is adaptively calibrated. In summary, by adding an adaptive calibration function independent of the internal wavelength calibration function during the gas detection process, the gas detection device can provide multiple wavelength calibration methods for the detection signal, that is, when the internal wavelength calibration function fails, it can adaptively solve the wavelength calibration problem without relying on the internal wavelength calibration module, and can transmit the adaptively calibrated detection signal to the area to be measured, improving the credibility of the obtained gas detection data and increasing the robustness of the gas detection device, thereby improving the accuracy of gas detection. Description of the Drawings

[0022] In order to more clearly illustrate the technical solutions of the present invention, the drawings required for the description of the present invention or the prior art will be briefly introduced below. Obviously, the following described drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0023] Figure 1 It is a schematic structural diagram of an existing gas detection device with an internal wavelength calibration function.

[0024] Figure 2 It is a flowchart of a control method for a gas detection device provided by an embodiment of the present invention.

[0025] Figure 3 It is a flowchart of an adaptive calibration method provided by an embodiment of the present invention.

[0026] Figure 4 It is a flowchart of another adaptive calibration method provided by an embodiment of the present invention.

[0027] Figure 5 It is a flowchart of a method for iteratively correcting wavelength control parameters provided by an embodiment of the present invention.

[0028] Figure 6 It is a flowchart of another adaptive calibration method provided by an embodiment of the present invention.

[0029] Figure 7 It is a structural block diagram of a gas detection device provided by an embodiment of the present invention.

[0030] Figure 8 Schematic structural diagram of a gas detection system provided by an embodiment of the present invention.

[0031] Figure 9 For Figure 8 Schematic connection diagram of the external wavelength calibration module and the gas detection device as shown.

[0032] Figure 10 For Figure 8 Schematic structural diagram of the external wavelength calibration module as shown. Detailed implementation manners

[0033] As described in the background art, although existing gas detection devices are configured with an internal wavelength calibration function, which can reduce the impact of wavelength shift on gas detection, however, as the usage time increases, the internal hardware of the gas detection device is damaged, which may cause the hardware for implementing the internal wavelength calibration function to malfunction, resulting in the failure of the internal wavelength calibration function and the inability to effectively perform wavelength calibration, seriously affecting the accuracy of gas detection.

[0034] To address the above problems, an embodiment of the present invention provides a control method for a gas detection device. In the self-check mode, a detection signal is transmitted to the internal wavelength calibration module, and it is determined whether internal reference detection data is obtained, so as to determine whether the internal wavelength calibration function fails. When the internal reference detection data is not obtained, it can be determined that the internal wavelength calibration function fails, and thus the self-check mode is switched to the adaptive calibration mode. In the adaptive calibration mode, based on the gas detection data obtained by transmitting the detection signal to the area to be measured, the wavelength of the detection signal is adaptively calibrated. It can be seen that by adding an adaptive calibration function independent of the internal wavelength calibration function during the gas detection process, the gas detection device can provide multiple wavelength calibration methods for the detection signal, that is, when the internal wavelength calibration function fails, the wavelength calibration problem can be adaptively solved without relying on the internal wavelength calibration module, and a detection signal after adaptive calibration can be transmitted to the area to be measured, improving the credibility of the obtained gas detection data and increasing the robustness of the gas detection device, thereby improving the accuracy of gas detection.

[0035] To enable those skilled in the art to more clearly understand and implement the concept, implementation method, and advantages of the technical solution of this specification, the following is a detailed description with reference to the accompanying drawings.

[0036] Refer to Figure 2 , which is a flowchart of a control method for a gas detection device provided by an embodiment of the present invention. In this example, the control method for the gas detection device may include the following steps:

[0037] S11. In the self-check mode, a detection signal is transmitted to the internal wavelength calibration module, and it is determined whether internal reference detection data is obtained.

[0038] In specific implementation, the triggering time of the self-check mode can be set according to specific scenarios. For example, self-check triggering conditions can be set, and after the triggering conditions are met, the self-check mode is entered. Among them, the self-check triggering conditions can include: the gas detection device starts, the working duration of the gas detection device reaches a preset duration, and other conditions. For another example, an external control triggering method can be set, and after the external control triggers, the self-check mode is entered. Among them, the external control triggering method can include: button, touch, voice control and other triggering methods. The embodiments of the present invention do not specifically limit the triggering time of the self-check mode.

[0039] S12. When the internal reference detection data is not obtained, the self-check mode is switched to the adaptive calibration mode.

[0040] Specifically, reference can continue to Figure 1 In the self-check mode, after a detection signal is transmitted to the internal reference gas chamber 041 of the internal wavelength calibration module 04, if the control module 01 does not obtain the internal reference detection data, it can be determined that the internal wavelength calibration function fails, that is, the internal wavelength calibration module 04 cannot be used normally. Therefore, the self-check mode is switched to the adaptive calibration mode to provide adaptive calibration for the wavelength of the detection signal.

[0041] S13. In the adaptive calibration mode, based on the gas detection data obtained by transmitting the detection signal to the area to be measured, the wavelength of the detection signal is adaptively calibrated.

[0042] In specific implementation, due to the failure of the internal wavelength calibration function, the wavelength of the detection signal transmitted to the area to be measured is not calibrated, and the accuracy of the obtained gas detection data is relatively low. Therefore, the adaptive calibration mode is started to provide adaptive calibration for the wavelength of the detection signal. During the execution of the adaptive calibration, the detection signal can be transmitted to the area to be measured, and after the gas detection data is obtained, the offset wavelength is calibrated, so that the wavelength calibration problem is adaptively solved without the assistance of other modules.

[0043] In summary, by adding an adaptive calibration function independent of the internal wavelength calibration function during the gas detection process, the gas detection device can provide multiple wavelength calibration methods for the detection signal, that is, when the internal wavelength calibration function fails, it can adaptively solve the wavelength calibration problem without relying on the internal wavelength calibration module, and can transmit the adaptively calibrated detection signal to the area to be measured, improving the credibility of the obtained gas detection data and increasing the robustness of the gas detection device, thereby improving the accuracy of gas detection.

[0044] In a specific implementation, with reference to Figure 1 , on the one hand, if the wavelength of the detection signal L01 undergoes a severe shift, or the light intensity of the external echo signal L02 is too low (e.g., lower than the lowest light intensity threshold set by the signal receiving module 03), the signal receiving module 03 cannot detect the external echo signal L02, and thus the control module 01 cannot obtain gas detection data. On the other hand, if the specified gas does not exist in the area to be measured, or the concentration of the specified gas existing in the area to be measured is too low, the detection signal L01 is not absorbed or the absorption is not obvious, resulting in too low a gas absorption peak of the external echo signal L02, and thus the control module 01 cannot obtain gas detection data.

[0045] Based on this, before switching the self-check mode to the adaptive calibration mode, it further includes: emitting the detection signal to the area to be measured and determining whether gas detection data is obtained.

[0046] Thus, when it is determined that gas detection data is obtained, the self-check mode is switched to the adaptive calibration mode to adaptively calibrate the wavelength of the detection signal. When it is determined that no gas detection data is obtained, no mode switch is performed, that is, the self-check mode is not switched to the adaptive calibration mode, so as to avoid performing ineffective adaptive calibration when gas detection data cannot be obtained, saving resources and time.

[0047] In a specific implementation, in order to further improve the reliability and stability of the adaptive calibration, before switching the self-check mode to the adaptive calibration mode, multiple detection signals can be emitted to the area to be measured, and whether there is a gas concentration is determined according to the obtained gas detection data. By judging the number of times of detecting the gas concentration, it is judged whether the gas environment in the area to be measured is stable and reliable, so as to judge whether to switch to the adaptive calibration mode.

[0048] In an optional example, when determining whether there is a gas concentration according to the gas detection data, the wavelength setting parameters stored in the gas detection device can be combined to judge whether there is a gas concentration. Among them, the wavelength setting parameters are suitable for characterizing: the wavelength currently used by the gas detection device for gas detection. Specifically, in the gas absorption spectrum line corresponding to the gas detection data, it is determined whether there is an absorption corresponding to the wavelength characterized by the wavelength setting parameters. If there is a corresponding absorption, it is determined that there is a gas concentration; otherwise, it is determined that there is no gas concentration.

[0049] In a specific implementation, on the one hand, when the internal wavelength calibration function fails and no gas detection data is obtained, adaptive calibration cannot be performed, and the problem of wavelength shift of the detection signal will still affect gas detection.

[0050] On the other hand, when internal reference detection data can be obtained, the hardware related to the internal wavelength calibration function may experience a decrease in accuracy, that is, the internal wavelength calibration function still fails and it is difficult to detect.

[0051] For example, in combination with the reference Figure 1 , as the internal reference gas chamber 041 is used over time, its sealing performance will gradually decrease, resulting in gas leakage from the stored gas. After the gas leaks, the internal reference gas chamber 041 loses its reference value. Another example is that the power supply of the internal signal receiving unit 042 is unstable, resulting in low accuracy of the detection results. Still another example is that part of the optical path inside the internal wavelength calibration module 04 is offset, resulting in signal loss and incomplete data. From the above situations of decreased accuracy, although internal reference detection data can be obtained, the credibility of the data is low, thereby increasing the error rate of internal wavelength calibration.

[0052] Based on this, in order to improve the reliability of the detection signal wavelength and quickly detect the problem of the failure of the internal wavelength calibration function, an external calibration mode can be set for the gas detection device. When the gas detection data is not obtained, or the internal reference detection data is obtained, the external calibration mode can be switched, so as to provide external calibration for the detection signal wavelength through the external wavelength calibration module. Among them, the external calibration can specifically include: calibrating the wavelength of the detection signal based on the external reference detection data obtained by transmitting the detection signal to the external wavelength calibration module. For the sake of easy understanding, the following is a schematic description through specific embodiments.

[0053] In an optional example, continuing to refer to Figure 2 , the control method of the gas detection device may further include the following steps:

[0054] S14, when the gas detection data is not obtained, or the internal reference detection data is obtained, switch to the external calibration mode.

[0055] In a specific implementation, in the case where the internal reference detection data is not obtained, when the gas detection data is not obtained, the internal wavelength calibration function fails and the gas detection device cannot detect the gas in the area to be measured. After switching the self-check mode to the external calibration mode, external calibration can be provided for the detection signal wavelength.

[0056] When the internal reference detection data is obtained, the internal wavelength calibration function of the gas detection device can be used. And when the preset external calibration trigger conditions are met, it will switch to the external calibration mode to provide external calibration for the wavelength of the detection signal. Among them, the external calibration trigger conditions can be set according to specific situations. For example, the external calibration trigger conditions can include: the working duration of the gas detection device reaches a preset duration, the internal temperature of the gas detection device reaches a preset temperature, external control trigger and other conditions. Specifically, the external control trigger methods can include: button, touch, voice control and other trigger methods. The embodiments of the present invention do not specifically limit the trigger conditions of the external calibration mode.

[0057] In addition, when the internal reference detection data is obtained and the external calibration trigger conditions are not met, it can switch to the normal working mode to perform normal gas detection. And when the external calibration trigger conditions are met in the normal working mode, the normal working mode will be switched to the external calibration mode to provide external calibration for the wavelength of the detection signal. Thus, the problem of the failure of the internal wavelength calibration function caused by too long use time in the normal working mode can be avoided, so as to improve the reliability and accuracy of the wavelength of the detection signal.

[0058] S15. In the external calibration mode, based on the external reference detection data obtained by transmitting the detection signal to the external wavelength calibration module, calibrate the wavelength of the detection signal.

[0059] Among them, the external reference detection data can characterize the absorption of the detection signal in the reference gas of the external wavelength calibration module.

[0060] In specific implementation, the external wavelength calibration module can store a reference gas reaching the concentration reference value, and the reference gas stored in the external wavelength calibration module can absorb the detection signal.

[0061] In the external calibration mode, a detection signal can be transmitted to the external wavelength calibration module, and the signal receiving module of the gas detection device receives the external echo signal and performs optoelectronic detection, so as to obtain the external reference detection data.

[0062] According to the absorption of the detection signal characterized by the external reference detection data, the control module can obtain the gas concentration measurement value of the reference gas in the external wavelength calibration module. Since the concentration of the reference gas stored in the external wavelength calibration module is known, that is, the concentration reference value, the gas concentration measurement value can be compared with the known concentration reference value. After determining that there is a deviation between the gas concentration measurement value and the concentration reference value, the wavelength of the detection signal is adjusted according to the preset external calibration wavelength range, and the adjusted detection signal is transmitted to the external wavelength calibration module to continue to determine whether there is a deviation between the gas concentration measurement value and the concentration reference value until the detection signal wavelength corresponding to no deviation between the gas concentration measurement value and the concentration reference value is obtained for use in gas detection. Among them, it can be the detection signal wavelength corresponding to no deviation between the gas concentration measurement value and the concentration reference value after traversing the external calibration wavelength range, or it can be the detection signal wavelength corresponding to no deviation between the gas concentration measurement value and the concentration reference value while traversing the external calibration wavelength range. The embodiment of the present invention does not specifically limit the timing sequence between the adjustment of the detection signal wavelength during external calibration and the determination of the detection signal wavelength.

[0063] In specific implementation, the external calibration wavelength range can be set according to specific circumstances. For example, the preset wavelength range can be the maximum wavelength change range that the signal emission module can achieve, or it can be set according to the internal calibration wavelength range. Among them, the external calibration wavelength range can be greater than the internal calibration wavelength range.

[0064] In addition, the adjustment method of the detection signal wavelength during external calibration can be set according to specific circumstances. For example, the adjustment process of the detection signal wavelength during external calibration can include: changing the wavelength of the detection signal according to the set external calibration step size to achieve the stepped wavelength adjustment of the detection signal.

[0065] Adopting the above solution, adding an external wavelength calibration function independent of the internal wavelength calibration function during the gas detection process can provide external calibration for the wavelength of the detection signal when the internal wavelength calibration function fails and gas detection data cannot be obtained, so that the detected gas concentration can accurately reflect the real gas concentration, improve the reliability of the detection signal wavelength, and effectively avoid the problem of the failure of the internal wavelength calibration function when internal reference detection data can be obtained, thereby further increasing the diversity of the detection signal wavelength calibration method and improving the data credibility, and then improving the accuracy of gas detection.

[0066] In practical applications, the wavelength of the detection signal can be adjusted by adjusting the wavelength control parameter of the signal emission module. Therefore, in the calibration process described in the embodiments of the present invention, namely, the adaptive calibration process, the internal calibration process, and the external calibration process, the wavelength of the detection signal can be calibrated by correcting the wavelength control parameter. Among them, the specific type of the wavelength control parameter can be determined according to the structural principle of controlling the wavelength in the signal emission module. For example, if the temperature is changed by a Thermo Electric Cooler (TEC) in the signal emission module to adjust the wavelength of the detection signal, the temperature setting parameter of the TEC is the wavelength control parameter. The present invention does not specifically limit the type of the wavelength control parameter.

[0067] In a specific implementation, with reference to Figure 1 , since the internal reference gas chamber 041 is built into the gas detection device D0 and is restricted by the internal space of the gas detection device D0, the gas volume of the internal reference gas chamber 041 is small. When there is a slight deviation in the concentration of the stored reference gas, a very obvious concentration change will occur, which also significantly affects the absorption of the detection signal L01 in the internal reference gas chamber 041, thus making it impossible to accurately detect the gas.

[0068] For example, the concentration reference value of the reference gas in the internal reference gas chamber 041 is 500. When the concentration of the reference gas is 450, the concentration deviation accounts for 10% of the concentration reference value, and the concentration change is very obvious. The absorption of the detection signal L01 in the internal reference gas chamber 041 with a 10% concentration deviation is also completely different from that in the internal reference gas chamber 041 without concentration deviation, that is, it also significantly affects the absorption of the detection signal L01 in the internal reference gas chamber 041.

[0069] However, the external wavelength calibration module can be arranged outside the gas detection device and is not restricted by the internal space of the gas detection device. Therefore, the gas volume of the external wavelength calibration module can be set according to specific situations and requirements. When the gas volume of the external wavelength calibration module is large enough, even if there is a certain deviation in the concentration of the stored reference gas, no very obvious concentration change will occur, and it will not significantly affect the absorption of the detection signal in the external wavelength calibration module, and gas detection can still be accurately performed.

[0070] For example, the concentration reference value of the reference gas in the external wavelength calibration module is 5000. Then, when the concentration of the reference gas is 4950, the concentration deviation accounts for 1% of the concentration reference value, and the concentration change is not obvious. The absorption of the detection signal in the external wavelength calibration module with a 1% concentration deviation will not be significantly different from that in the external wavelength calibration module without concentration deviation, that is, it will not significantly affect the absorption of the detection signal in the external wavelength calibration module.

[0071] Therefore, due to its small volume, the internal wavelength calibration module has a problem of low calibration accuracy. While the external calibration, due to its large volume, can compensate for the low calibration accuracy of the internal wavelength calibration module caused by the small volume of the internal reference gas chamber and has high accuracy.

[0072] In a specific implementation, a reference gas with a higher concentration, such as a reference gas with a concentration of 100%, can be stored in the external wavelength calibration module.

[0073] In practical applications, the switching method of the external calibration mode can be set according to specific situations. For example, when the gas detection data is not obtained or the internal reference detection data is obtained, if the gas detection device is already connected to the external wavelength calibration module, after meeting the external calibration trigger conditions, it can be directly switched to the external calibration mode. While if the gas detection device is not yet connected to the external wavelength calibration module, a prompt to start the external calibration mode can be sent to the user, thereby reminding the user to connect the external wavelength calibration module to the gas detection device, and after completing the connection between the two and meeting the external calibration trigger conditions, the mode is switched to the external calibration mode. The embodiments of the present invention do not specifically limit the switching method of the external calibration mode.

[0074] In a specific implementation, in combination with reference Figure 1 , after the detection signal emitted according to the wavelength control parameter, the gas detection data can be obtained through the signal receiving module 03. The detection result output by the signal receiving module 03 is a continuous analog signal. For the convenience of data processing, the control module 01 can sample the detection result output by the signal receiving module point by point at a certain sampling frequency, and use the obtained discrete digital signal as the gas detection data. Therefore, the wavelength in the gas detection data can be converted with the sampling points.

[0075] Furthermore, since the wavelength in the gas detection data can be converted with the sampling points, during the external calibration process, the gas concentration measurement value can be determined according to the gas absorption situation corresponding to the sampling points.

[0076] Adopting the above solution, since the number and sorting of the sampling points are fixed, converting the wavelength in the gas detection data into the corresponding sampling points can realize data standardization processing, which is beneficial to unifying the evaluation scale and reducing the calculation amount.

[0077] In specific implementations, there are some situations that cause external calibration to fail. For example, the following situations may cause external calibration to fail: 1) The light intensity corresponding to the vicinity of the gas absorption peak in the external echo signal is too weak (e.g., less than the preset minimum light intensity threshold), resulting in untrustworthy data; 2) The set external calibration step size is too large, resulting in the gas absorption peak not appearing; 3) After traversing the external calibration wavelength range, the correct gas concentration still cannot be obtained.

[0078] If the internal wavelength calibration function can be used when the external calibration fails, that is, internal reference detection data can be obtained, the wavelength of the detection signal can be internally calibrated, and then the relevant parameters of the external calibration can be adjusted according to the internal calibration result, thereby improving the reliability of the detection signal wavelength.

[0079] In an optional example, continuing to refer to Figure 2 , the control method of the gas detection device may further include the following steps: S16, when the internal reference detection data is obtained and the external calibration fails, based on the obtained internal reference detection data, calibrate the wavelength of the detection signal. Thus, the relevant parameters of the external calibration are adjusted according to the internal calibration result, thereby improving and ensuring the reliability of the detection signal wavelength.

[0080] In specific implementations, the internal calibration described in the embodiments of the present invention may include: according to the internal reference detection data, determine the actual wavelength corresponding to the gas absorption peak, and compare it with the theoretical wavelength (i.e., the wavelength that the gas absorption peak theoretically corresponds to determined by means such as experiments and prior knowledge). After determining that the actual wavelength corresponding to the gas absorption peak has an offset according to the offset condition, by adjusting the wavelength of the detection signal and in the case of a limited number of iterations, obtain the adjusted wavelength of the detection signal so that the actual wavelength corresponding to the gas absorption peak is consistent with the theoretical wavelength.

[0081] It can be understood that the offset condition can be set according to specific situations. For example, when the offset amount between the actual wavelength and the theoretical wavelength corresponding to the gas absorption peak belongs to the preset allowable offset error range, it is determined that the actual wavelength corresponding to the gas absorption peak has no offset, otherwise, it is determined that the actual wavelength corresponding to the gas absorption peak has an offset. Thus, it is possible to avoid the internal calibration taking too long and improve the efficiency of the internal calibration.

[0082] It can also be understood that the way to adjust the wavelength of the detection signal during internal calibration can be set according to specific situations. For example, the process of adjusting the wavelength of the detection signal during internal calibration may include: setting the internal calibration wavelength range based on the theoretical wavelength, and changing the wavelength of the detection signal according to the preset internal calibration step size to achieve a step-by-step wavelength adjustment of the detection signal.

[0083] In specific implementations, in combination with reference to Figure 1, the detection result output by the internal signal receiving unit 042 is a continuous analog signal. For the convenience of data processing, the control module 01 can sample the detection result output by the internal signal receiving unit 042 point by point according to a certain sampling frequency, so as to obtain a discrete digital signal as the internal reference detection data. Therefore, the wavelength in the internal reference detection data can be converted with the sampling points.

[0084] Based on this, during the internal calibration process, the potential difference between the sampling points corresponding to the actual wavelength and the theoretical wavelength can be used to determine whether there is an offset in the actual wavelength corresponding to the gas absorption peak. For example, if the potential difference between the sampling points corresponding to the actual wavelength and the theoretical wavelength is within 30 points, it is determined that the actual wavelength has no offset; otherwise, it is determined that the actual wavelength has an offset.

[0085] Adopting the above scheme, since the number and sorting of the sampling points are fixed, converting the actual wavelength and the theoretical wavelength into corresponding sampling points can realize data standardization processing, which is beneficial to unifying the evaluation scale and reducing the calculation amount.

[0086] In a specific implementation, when in the adaptive calibration mode, based on the gas detection data obtained by emitting the detection signal to the area to be measured and the historical deviation data obtained before the adaptive calibration, determine the deviation situation of the wavelength of the detection signal, and adjust the wavelength of the detection signal.

[0087] In an optional example, as Figure 3 shown, it is a flowchart of an adaptive calibration method provided by an embodiment of the present invention. In this example, the adaptive calibration method may include the following steps:

[0088] S21, in the adaptive calibration mode, obtain historical deviation data, and emit the detection signal to the area to be measured to obtain the gas detection data.

[0089] In a specific implementation, the historical deviation data may be pre-stored in the gas detection device or obtained based on the wavelength control parameter. The process of obtaining the historical deviation data based on the wavelength control parameter may be: based on the wavelength control parameter, emit a detection signal to the area to be measured, and determine the gas absorption peak of the gas absorption spectrum line corresponding to the obtained gas detection data, so as to determine the deviation degree between the actual wavelength and the target wavelength corresponding to the gas absorption peak as the historical deviation data.

[0090] Among them, the target wavelength may include a wavelength with a certain reference. For example, the target wavelength may include at least one of the following wavelengths:

[0091] 1) The wavelength corresponding to a specified position in the theoretical gas absorption spectrum. Optionally, the specified position may be the wavelength theoretically corresponding to the gas absorption peak;

[0092] 2) The wavelength determined according to the wavelength setting parameter stored in the gas detection device. Specifically, since the wavelength setting parameter can characterize the wavelength currently used by the gas detection device for gas detection, the wavelength characterized by the wavelength setting parameter can be used as a target wavelength. In addition, since the wavelength and the sampling point can be converted, the wavelength setting parameter can also be represented by the sampling point.

[0093] In practical applications, at least one set of detection signals can be emitted to the area to be measured based on the wavelength control parameter to obtain a corresponding number of historical deviation data. One set of detection signals includes at least one detection signal.

[0094] In addition, when one set of detection signals includes multiple detection signals, the gas absorption spectra corresponding to the multiple detection signals can be superimposed, and the wavelength corresponding to the superimposed gas absorption peak is compared with the target wavelength to determine the deviation degree therebetween, so as to obtain the historical deviation data corresponding to this set of detection signals.

[0095] In specific implementation, in addition to emitting detection signals for obtaining historical deviation data to the area to be measured, detection signals for obtaining gas detection data can also be additionally emitted to the area to be measured for subsequent correction of the wavelength control parameter in combination with the historical deviation data.

[0096] Furthermore, in an optional example, multiple detection signals can be emitted to the area to be measured, so as to obtain multiple gas detection data for subsequent correction of the wavelength control parameter in combination with the historical deviation data.

[0097] In practical applications, since both the historical deviation data and the gas detection data are obtained by emitting detection signals to the area to be measured, the acquisition order of the historical deviation data and the gas detection data can be set. For example, it can be set to first emit at least one detection signal to the area to be measured for obtaining historical deviation data, and then emit at least one detection signal to the area to be measured for obtaining gas detection data.

[0098] S22. Correct the wavelength control parameter according to the obtained gas detection data and the historical deviation data to adaptively calibrate the wavelength of the detection signal.

[0099] In specific implementation, determine the gas absorption peak of the gas absorption spectrum corresponding to the gas detection data, and determine the deviation degree between the actual wavelength corresponding to the gas absorption peak of the gas detection data and the target wavelength, so as to obtain real-time deviation data.

[0100] Then, based on the real-time deviation data and the historical deviation data, the wavelength control parameter can be corrected. Specifically, based on the real-time deviation data and the historical deviation data, an averaging operation can be performed, and the operation result is used as the correction gradient to determine the correction amount, and based on the correction amount, the wavelength control parameter is corrected.

[0101] In practical applications, the correction amount can be the result obtained after performing arithmetic processing based on the correction gradient, where the specific process of the arithmetic processing can be set according to specific circumstances. For example, the correction gradient can be multiplied by a preset adaptive calibration step size, and the result of the multiplication operation is used as the correction amount.

[0102] As can be seen from the above, through the gas detection data and the historical deviation data, the wavelength control parameter can be corrected, and without relying on the internal wavelength calibration module, the wavelength offset problem can be adaptively solved, improving the data credibility and increasing the device robustness, thereby improving the accuracy of gas detection.

[0103] It can be understood that the above steps S21 and S22 can be executed in a specified order or synchronously, and the embodiments of the present invention do not make specific limitations on this.

[0104] In specific implementation, a single correction may not obtain a suitable wavelength control parameter. For this reason, the wavelength control parameter can be corrected multiple times through an iterative method, so that the actual wavelength corresponding to the gas absorption peak continuously approaches the target wavelength, improving the accuracy and precision of the adaptive calibration.

[0105] In an optional example, as Figure 4 shown, it is a flowchart of another adaptive calibration method provided by the embodiments of the present invention. In this example, the adaptive calibration method can include the following steps:

[0106] S31, in the adaptive calibration mode, obtain historical deviation data, emit the detection signal to the area to be measured, and obtain the gas detection data.

[0107] It can be understood that the process of obtaining historical deviation data can refer to the relevant description in the above related part (such as the above step S21), and will not be elaborated here.

[0108] S32, based on the gas detection data, determine the deviation degree between the actual wavelength corresponding to the gas absorption peak and the target wavelength to obtain real-time deviation data.

[0109] Among them, the specific wavelength types included in the target wavelength can refer to the description in the historical deviation data part, and will not be elaborated here.

[0110] In a specific implementation, multiple detection signals can be emitted to the area to be measured, and the gas absorption spectra corresponding to the gas detection data obtained multiple times are superimposed. Then, the deviation degree between the wavelength corresponding to the superimposed gas absorption peak and the target wavelength is determined to obtain real-time deviation data.

[0111] S33. Based on the real-time deviation data and the historical deviation data, the wavelength control parameter is corrected, and based on the corrected wavelength control parameter, the correction is continued until the preset calibration end condition is met and then the correction is stopped.

[0112] In a specific implementation, based on the real-time deviation data and the historical deviation data, an average operation can be performed, and the operation result is used as the correction gradient to determine the correction amount. Based on the correction amount, the wavelength control parameter is corrected. If the iteration in the adaptive calibration process proceeds normally, the real-time deviation data continuously becomes smaller, making the correction amount also continuously become smaller, thereby achieving the purpose of gradient descent and decreasing step size.

[0113] Based on this, a first deviation threshold can be set. When the real-time deviation data is less than the first deviation threshold, it is determined that the adaptive calibration is completed, and thus gas detection can be performed; otherwise, the wavelength control parameter is continued to be corrected. The first deviation threshold can be set according to the real-time deviation data in the first round.

[0114] Thus, through an iterative method, multiple gradient corrections are performed on the wavelength control parameter, so that the wavelength corresponding to the gas absorption peak continuously approaches the target wavelength, thereby improving the accuracy and precision of the adaptive calibration.

[0115] In a specific implementation, as Figure 5 shown, in the process of continuing to correct based on the corrected wavelength control parameter until the preset calibration end condition is met and then stopping the correction, the following steps can be included:

[0116] S331. Based on the wavelength control parameter in this round, a detection signal with a corresponding wavelength is emitted to the area to be measured.

[0117] S332. Based on the obtained gas detection data, the deviation degree between the actual wavelength corresponding to the gas absorption peak and the target wavelength is determined to obtain the real-time deviation data in this round.

[0118] S333. Based on the real-time deviation data and the historical deviation data in the previous round, the historical deviation data in this round is determined.

[0119] In a specific implementation, since the wavelength control parameter in this round is not the first-round correction, there are real-time deviation data and historical deviation data in the previous round. The acquisition method of the historical deviation data in this round can be set according to specific circumstances.

[0120] Specifically, if the real-time deviation data in this round is b11, the historical deviation data in the previous round is a01 to a0n, and the real-time deviation data in the previous round is A1, then in some cases, the real-time deviation data A1 in the previous round and all the historical deviation data in the previous round (i.e., the historical deviation data a01 to a0n) can be selected as the historical deviation data in this round. Thus, the historical deviation data in this round can contain relatively comprehensive deviation information, effectively reducing the interference of abnormal data and facilitating subsequent correction.

[0121] In other cases, the real-time deviation data A1 in the previous round and some of the historical deviation data in the previous round (such as the historical deviation data b02 to b0n) can be selected as the historical deviation data in this round. Thus, the data volume can be reduced, and the correction accuracy can be guaranteed, which is beneficial to improving the correction efficiency.

[0122] S334. Based on the real-time deviation data and historical deviation data in this round, correct the wavelength control parameter in this round and continue the correction until the correction stops after meeting the calibration end condition.

[0123] In specific implementation, if the iteration in the adaptive calibration process proceeds normally, the real-time deviation data in this round will be less than the real-time deviation data in the previous round, that is, the change trend of the real-time deviation data is gradually decreasing. When the real-time deviation data is less than the first deviation threshold, it is determined that the adaptive calibration is completed, and thus gas detection can be performed; otherwise, continue to correct the wavelength control parameter.

[0124] It can be understood that the content of the above steps S341, S342, and S344 can refer to the descriptions in the above relevant parts (such as Figure 3 and Figure 4 ), and will not be elaborated here. In addition, the above steps S341 to S342 and step S343 can be executed in a specified order or synchronously. The embodiments of the present invention do not make specific limitations on this.

[0125] In practical applications, according to the above description, it can be known that the wavelength in the gas detection data can be converted with the sampling point. Therefore, according to the corresponding relationship between the two, the target wavelength can also be converted into a sampling point, and further, the deviation degree between the actual wavelength and the target wavelength can be determined through the sampling point. Specifically, the sampling point of the actual wavelength and the sampling point of the target wavelength can be determined, and the point difference between the sampling point of the actual wavelength and the sampling point of the actual wavelength can be calculated to determine the deviation degree between the actual wavelength corresponding to the gas absorption peak and the target wavelength.

[0126] In specific implementations, there may be some abnormal situations in the adaptive calibration. For example, when the device is powered on or the gas environment in the area to be measured changes drastically, the waveform of the gas detection data has oscillating changes. At this time, the working condition of the gas detection device is not stable, and the adaptive calibration result is not credible. Another example is that since the laser in the signal emission module is very sensitive to temperature, if the temperature changes significantly, it may lead to an untrustworthy adaptive calibration result. Another example is that the adaptive calibration cannot end after a long time. Another example is that the adaptive calibration is repeatedly performed within a short period of time.

[0127] Based on this, in order to avoid untrustworthy adaptive calibration results and excessive time occupied by adaptive calibration, which seriously affects the device operation speed, the step of emitting the detection signal to the area to be measured to obtain the gas detection data may include:

[0128] When the credibility information meets the credibility condition, the gas in the area to be measured is detected using the wavelength control parameter before correction, where the credibility information may include at least one of: the dispersion degree information between the real-time deviation data and the historical deviation data, the real-time deviation data, the historical deviation data, the temperature difference information, the change trend information of the real-time deviation data, the correction times information, and the time interval information.

[0129] For the convenience of understanding and implementation, the following will separately describe in detail the process of judging the credibility of adaptive calibration through credibility conditions according to the specific types of credibility information.

[0130] 1) Judging whether the adaptive calibration is credible based on the dispersion degree information between the real-time deviation data and the historical deviation data.

[0131] In specific implementations, a dispersion degree threshold can be set. Before correcting the wavelength control parameter according to the obtained gas detection data and the historical deviation data, compare the dispersion degree information between the real-time deviation data and the historical deviation data with the dispersion degree threshold. When the dispersion degree information between the real-time deviation data and the historical deviation data is greater than the dispersion degree threshold, stop the adaptive calibration and use the wavelength control parameter before correction to detect the gas in the area to be measured. Otherwise, the wavelength control parameter can be corrected according to the obtained gas detection data and the historical deviation data.

[0132] 2) Judging whether the adaptive calibration is credible based on the real-time deviation data.

[0133] In specific implementations, a second deviation threshold can be set, where the second deviation threshold is greater than the first deviation threshold in the calibration end condition.

[0134] Before correcting the wavelength control parameter according to the obtained gas detection data and the historical deviation data, compare the real-time deviation data with a second deviation threshold. When the real-time deviation data is greater than the second deviation threshold, stop the adaptive calibration and use the wavelength control parameter before correction to detect the gas in the area to be measured. Otherwise, the wavelength control parameter can be corrected according to the obtained gas detection data and the historical deviation data. The real-time deviation data can be represented by the point difference between the sampling points of the actual wavelength and the sampling points of the target wavelength.

[0135] 3) Based on the historical deviation data, determine whether the adaptive calibration is reliable.

[0136] In a specific implementation, a third deviation threshold can be set. The third deviation threshold can be the same as the second deviation threshold or greater than the second deviation threshold.

[0137] Before correcting the wavelength control parameter according to the obtained gas detection data and the historical deviation data, compare the historical deviation data with a third deviation threshold. When the historical deviation data is greater than the third deviation threshold, stop the adaptive calibration and use the wavelength control parameter before correction to detect the gas in the area to be measured. Otherwise, the wavelength control parameter can be corrected according to the obtained gas detection data and the historical deviation data. The historical deviation data can be represented by the point difference between the sampling points of the actual wavelength and the sampling points of the target wavelength.

[0138] 4) Based on the temperature difference information, determine whether the adaptive calibration is reliable.

[0139] In a specific implementation, a temperature difference threshold can be set. Before correcting the wavelength control parameter according to the obtained gas detection data and the historical deviation data, compare the temperature difference information with the temperature difference threshold. When the temperature difference information between the current temperature and the historical temperature is greater than the temperature difference threshold, stop the adaptive calibration and use the wavelength control parameter before correction to detect the gas in the area to be measured. Otherwise, the wavelength control parameter can be corrected according to the obtained gas detection data and the historical deviation data.

[0140] The temperature difference information can be determined by the current temperature and the historical temperature. The temperature difference information can include: the temperature difference information of the gas detection device housing, the temperature difference information of the circuit board, and the temperature difference information of the laser. Correspondingly, the current temperature can include at least one of the following: the current temperature of the gas detection device housing, the current temperature of the circuit board, and the current temperature of the laser. The historical temperature can be the temperature recorded when the gas detection device was started or calibrated last time, and the historical temperature can include at least one of the following: the historical temperature of the gas detection device housing, the historical temperature of the circuit board, and the historical temperature of the laser.

[0141] 5) Judge whether the adaptive calibration is credible based on the change trend information of the real-time deviation data.

[0142] In a specific implementation, before correcting the wavelength control parameter according to the obtained gas detection data and the historical deviation data, judge whether the change trend of the real-time deviation data is increasing or decreasing based on the change trend information of the real-time deviation data. When it is determined that the change trend of the real-time deviation data is increasing, stop the adaptive calibration and use the wavelength control parameter before correction to detect the gas in the area to be measured. Otherwise, the wavelength control parameter can be corrected according to the obtained gas detection data and the historical deviation data.

[0143] Among them, the change trend information of the real-time deviation data can be determined by comparing the real-time deviation data and the historical wavelength deviation data. The historical wavelength deviation data can be set according to the real-time deviation data of the first round.

[0144] 6) Judge whether the adaptive calibration is credible based on the correction times information.

[0145] In a specific implementation, a correction times threshold can be set. Before correcting the wavelength control parameter according to the obtained gas detection data and the historical deviation data, compare the correction times information with the correction times threshold. When the correction times information is greater than the correction times threshold, stop the adaptive calibration and use the wavelength control parameter before correction to detect the gas in the area to be measured. Otherwise, the wavelength control parameter can be corrected according to the obtained gas detection data and the historical deviation data.

[0146] 7) Judge whether the adaptive calibration is credible based on the time interval information.

[0147] In a specific implementation, a time interval threshold can be set. Before correcting the wavelength control parameter according to the obtained gas detection data and the historical deviation data, compare the time interval information with the time interval threshold. When the time interval information is greater than the time interval threshold, stop the adaptive calibration and use the wavelength control parameter before correction to detect the gas in the area to be measured. Otherwise, the wavelength control parameter can be corrected according to the obtained gas detection data and the historical deviation data.

[0148] Among them, the time interval information can be determined by comparing the current time and the historical time. The current time can be the time recorded when the gas detection device is started this time or during this adaptive calibration. Correspondingly, the historical time can be the time recorded when the gas detection device was started last time or during the last adaptive calibration.

[0149] As described above, based on the above credibility information, it is determined whether there is an abnormal situation in the adaptive calibration, so as to timely stop the adaptive calibration with abnormal situations, avoid generating and adopting untrustworthy adaptive calibration results, and save time and improve data reliability.

[0150] To enable those skilled in the art to further understand the implementation process of the adaptive calibration, the following is a schematic description through a detailed example.

[0151] In an optional example, referring to Figure 6 , which is a flowchart of another adaptive calibration method provided by an embodiment of the present invention. In this example, the adaptive calibration method may include the following steps:

[0152] SA, extract the device parameters stored in the gas detection device.

[0153] Specifically, the device parameters may include: the historical temperature Tcase0 of the gas detection device housing, the historical temperature Tpcb0 of the circuit board, the historical temperature Tld0 of the laser, the wavelength control parameter Ttec0, the wavelength setting parameter Sit, and the time interval information ΔTime. Among them, the wavelength setting parameter Sit can be represented by sampling points.

[0154] Among them, the historical temperature Tcase0 of the gas detection device housing, the historical temperature Tpcb0 of the circuit board, the historical temperature Tld0 of the laser, and the time interval information ΔTime after the last start and the current start are used when determining whether to stop the adaptive calibration; the wavelength control parameter Ttec0 and the wavelength setting parameter Sit are used for wavelength adaptive calibration.

[0155] SB, determine whether to switch to the adaptive calibration mode. If so, continue to step SC.

[0156] According to the wavelength control parameter Ttec0, emit the detection signal to the area to be measured, and obtain the gas detection data. Then, according to the obtained gas detection data and the wavelength setting parameter Sit, determine whether there is a gas concentration. If there is no gas concentration, emit the next detection signal until there is a gas concentration.

[0157] Optionally, a certain number of detection signals are taken to determine whether there is a concentration, and whether to enable the adaptive calibration mode is determined based on whether there is a concentration. After determining the gas concentration based on the gas detection data and the wavelength setting parameter Sit obtained from the current detection signal, starting from this detection signal (i.e., detection signal 001), 49 subsequent detection signals (i.e., detection signals 002 to 050) are output, and it is determined whether there is a gas concentration. If a certain number (such as 49) of gas concentrations are detected among the 50 detection signals, or if the detection signals with gas concentrations among the 50 detection signals exceed a certain proportion (such as 95%), the adaptive calibration mode can be switched; otherwise, the adaptive calibration mode is not switched.

[0158] SC, switch to the adaptive calibration mode and perform adaptive calibration. Among them, the process of adaptive calibration includes the following steps:

[0159] SC-1, obtain historical deviation data.

[0160] ① Taking 50 detection signals as a group, 50 detection signals (i.e., detection signals 51 to 100) are emitted again, the gas absorption spectra corresponding to the detection signals 51 - 100 are superimposed, and the actual wavelength corresponding to the superimposed gas absorption peak is determined. The position difference between the sampling point of the actual wavelength and the middle sampling point within the sampling range (i.e., the sampling point corresponding to the theoretical wavelength of the gas absorption peak in this example) is obtained to get the historical deviation data D1, and the absolute value of the position difference between the sampling point of the actual wavelength and the wavelength setting parameter Sit is obtained to get the historical deviation data Da1.

[0161] ② Repeat the above step ① to obtain the historical deviation data D2 - D5 and the historical deviation data Da2 - Da5 corresponding to the second group of detection signals (i.e., detection signals 101 to 150) to the fifth group of detection signals (detection signals 251 - 300).

[0162] SC-2, emit the detection signal to the area to be measured to obtain real-time deviation data.

[0163] 50 detection signals (i.e., detection signals 301 to 350) are emitted again, the gas absorption spectra corresponding to the detection signals 301 - 350 are superimposed, and the actual wavelength corresponding to the superimposed gas absorption peak is determined. The position difference between the sampling point of the actual wavelength and the middle sampling point is obtained to get the real-time deviation data D6, and the absolute value of the position difference between the sampling point of the actual wavelength and the wavelength setting parameter Sit is obtained to get the real-time deviation data Da6.

[0164] SC-3, verify the data credibility of the adaptive calibration.

[0165] ① Determine whether the adaptive calibration is credible based on the dispersion information between the real-time deviation data and the historical deviation data, and the real-time deviation data and the historical deviation data.

[0166] Calculate the dispersion between the real-time deviation data D6 and the historical deviation data D1 - D5 through the variance formula to obtain the dispersion information DL.

[0167] Use the dispersion information DL, the historical deviation data Da1 - Da5, and the real-time deviation data Da6 as credibility information to perform a credibility condition judgment. If the dispersion information DL is greater than the dispersion threshold, and at least one of any one of the historical deviation data Da1 - Da5 being greater than the second deviation threshold and the real-time deviation data Da6 being greater than the third deviation threshold is satisfied, then determine that the adaptive calibration is not credible, discard the data obtained during the adaptive calibration process, and return to step SC-1 to start over.

[0168] It can be understood that although in this example, the dispersion information is determined based on the real-time deviation data D6 and the historical deviation data D1 - D5, in actual applications, according to specific circumstances, the dispersion information can also be determined based on the real-time deviation data Da6 and the historical deviation data Da1 - Da5, or two types of dispersion information can be determined based on the real-time deviation data D6 and the historical deviation data D1 - D5, as well as the real-time deviation data Da6 and the historical deviation data Da1 - Da5. The embodiments of the present invention do not make specific limitations on this.

[0169] It can also be understood that although in this example, the historical deviation data Da1 - Da5 and the real-time deviation data Da6 are used as credibility information, in actual applications, according to specific circumstances, the credibility information can also be selected from the historical deviation data D1 - D5 and the real-time deviation data D6, or the credibility information can be selected from the historical deviation data D1 - D5, the historical deviation data Da1 - Da5, the real-time deviation data D6, and the real-time deviation data Da6. The embodiments of the present invention do not make specific limitations on this.

[0170] ② Based on the temperature difference information, determine whether the adaptive calibration is credible.

[0171] The current temperature Tcase1 of the housing of the gas detection device, the current temperature Tpcb1 of the circuit board, and the current temperature Tld1 of the laser are detected. The current temperature Tcase1 of the housing of the gas detection device is compared with the historical temperature Tcase0 of the housing of the gas detection device, the historical temperature Tpcb0 of the circuit board is compared with the current temperature Tpcb1 of the circuit board, and the historical temperature Tld0 of the laser is compared with the current temperature Tld1 of the laser, to obtain the temperature difference information ΔTcase of the housing of the gas detection device, the temperature difference information ΔTpcb of the circuit board, and the temperature difference information ΔTld of the laser.

[0172] The temperature difference information ΔTcase of the housing of the gas detection device, the temperature difference information ΔTpcb of the circuit board, and the temperature difference information ΔTld of the laser are used as credibility information. The temperature difference information ΔTcase of the housing of the gas detection device is compared with the temperature difference threshold of the housing of the gas detection device (such as 15 °C), the temperature difference information ΔTpcb of the circuit board is compared with the temperature difference threshold of the circuit board (such as 15 °C), the temperature difference information ΔTld of the laser is compared with the temperature difference threshold of the laser (such as 5 °C), and the time interval information ΔTime is compared with the preset time interval threshold (such as 5 minutes).

[0173] If the temperature difference information ΔTcase of the housing of the gas detection device is greater than the temperature difference threshold of the housing of the gas detection device or the temperature difference information ΔTpcb of the circuit board is greater than the temperature difference threshold of the circuit board, and at the same time the temperature difference information ΔTld of the laser is greater than the temperature difference threshold of the laser and the time interval information ΔTime is less than the time interval threshold, the data obtained from this adaptive calibration is discarded and the adaptive calibration is stopped.

[0174] ③, Based on the correction times information, determine whether the adaptive calibration is credible.

[0175] The correction times information n is obtained as credibility information. When the correction times information n is greater than the correction times threshold (such as 15 times), the data obtained from this adaptive calibration is discarded and the adaptive calibration is stopped.

[0176] ④, Based on the change trend information of the real-time deviation data, determine whether the adaptive calibration is credible

[0177] The change trend information of the real-time deviation data is obtained. When it is determined according to the change trend information of the real-time deviation data that the change trend of the real-time deviation data is increasing, the data obtained from this adaptive calibration is discarded and the adaptive calibration is stopped.

[0178] SC-4 averages the real-time deviation data D6 with the historical deviation data D1 to D5 respectively, and uses the obtained average value as the gradient Δd, and corrects the wavelength control parameter through the following formula:

[0179] θ i+1 = θ i - λ * Δd;

[0180] Among them, λ represents the adaptive calibration step size, which can be set according to experimental data or prior experience. The multiplier of λ and Δd (i.e., λ * Δd) represents the correction amount. θ i represents the hexadecimal wavelength control parameter of this round, and θ i+1 represents the corrected hexadecimal wavelength control parameter.

[0181] It can be understood that although in this example, the wavelength control parameter is corrected based on the real-time deviation data D6 and the historical deviation data D1 to D5, in actual application, according to specific situations, the wavelength control parameter can also be corrected based on the real-time deviation data Da6 and the historical deviation data Da1 to Da5, or the wavelength control parameter can be determined and corrected based on the real-time deviation data D6, the historical deviation data D1 to D5, the real-time deviation data Da6 and the historical deviation data Da1 to Da5. The embodiments of the present invention do not make specific limitations on this.

[0182] SC-5 obtains the corrected wavelength control parameter as the wavelength control parameter of the next round, and returns to the above step SC-2 until the adaptive calibration stops, or when the real-time deviation data of this round is less than the preset first deviation threshold, it is determined that the actual wavelength is already close enough to the target wavelength, the adaptive calibration is completed, and the current device data is recorded for use in the next adaptive calibration.

[0183] SD, if the adaptive calibration stops, the wavelength control parameter is used for gas detection in the area to be measured, otherwise the wavelength control parameter obtained by the adaptive calibration is used.

[0184] It can be understood that some steps in the above step SC can be executed in a specified order or synchronously. For example, the steps SC-3 to SC-4, step SC-5, step SC-6, and step SC-7 in the above step SC can be executed in a specified order or synchronously. The embodiments of the present invention do not make specific limitations on this.

[0185] In a specific implementation, with continued reference to Figure 2 , the control method of the gas detection device may further include the following steps:

[0186] S17. Transmit a detection signal with calibrated wavelength to the area to be measured to determine the gas detection data of the area to be measured. The wavelength of the detection signal can be calibrated by at least one of internal calibration, external calibration, and adaptive calibration.

[0187] In a specific implementation, based on the gas detection data obtained from the detection signal with calibrated wavelength, the gas concentration measurement value of the area to be measured can be determined and output as the gas detection result of the area to be measured for the user's reference.

[0188] It can be understood that the above describes multiple embodiment solutions provided by the embodiments of this specification. The optional methods described in each embodiment solution can be combined and cross-referenced with each other without conflict, thus extending multiple possible embodiment solutions, all of which can be considered as the embodiment solutions disclosed and made public in this specification.

[0189] This specification also provides a gas detection device corresponding to the above control method of the gas detection device. The following will be introduced in detail through specific embodiments with reference to the drawings. It should be noted that the gas detection device described below can be considered as a functional module required to implement the control method of the gas detection device provided in this specification; the content of the gas detection device described below can be mutually corresponding and referred to the content of the control method of the gas detection device described above.

[0190] In a specific implementation, as Figure 7 shown, it is a structural block diagram of a gas detection device provided by an embodiment of the present invention. In this example, the gas detection device D1 may include: a control module 11, a signal transmission module 12, and an internal wavelength calibration module 13, where:

[0191] The control module 11 is adapted to, in the self-check mode, control the signal transmission module 12 to transmit a detection signal to the internal wavelength calibration module 13 and determine whether internal reference detection data is obtained; when the internal reference detection data is not obtained, switch the self-check mode to the adaptive calibration mode; and, in the adaptive calibration mode, adaptively calibrate the wavelength of the detection signal based on the gas detection data obtained by transmitting the detection signal to the area to be measured. The specific process of the adaptive calibration can refer to the description of the relevant part above and will not be elaborated here.

[0192] In summary, by adding an adaptive calibration function independent of the internal wavelength calibration function during the gas detection process, the gas detection device can provide multiple wavelength calibration methods for the detection signal. That is, when the internal wavelength calibration function fails, it can adaptively solve the wavelength calibration problem without relying on the internal wavelength calibration module, and can emit an adaptively calibrated detection signal to the area to be measured, improving the credibility of the obtained gas detection data and increasing the robustness of the gas detection device, thereby improving the accuracy of gas detection.

[0193] It can be understood that the gas detection device provided by the embodiment of the present invention may further include other functional modules, such as a signal receiving module for receiving external echo signals. The present invention does not specifically limit the internal structure of the gas detection device.

[0194] In practical applications, the components of each module in the gas detection device can be determined according to specific requirements. For example, the control unit may include a processor; the signal emission module may include a laser; the internal wavelength calibration module may include an internal reference gas chamber and an internal signal receiving unit, and the signal emission module and the internal signal receiving unit may include detectors.

[0195] Among them, the processor included in the control module can be implemented by processing chips such as a central processing unit (CPU) and a field programmable gate array (FPGA), or can be implemented by an application specific integrated circuit (ASIC) or one or more integrated circuits configured to implement the embodiments of the present invention.

[0196] In a specific implementation, the gas detection device is detachably connected to an external wavelength calibration module; the control module is also adapted to switch to an external calibration mode when the gas detection data is not obtained or the internal reference detection data is obtained; in the external calibration mode, the wavelength of the detection signal is calibrated based on the external reference detection data obtained by emitting the detection signal to the external wavelength calibration module. The specific process of external calibration can refer to the description of the relevant part above and will not be elaborated here.

[0197] Adopting the above solution, adding an external wavelength calibration function independent of the internal wavelength calibration function during gas detection can provide external calibration for the wavelength of the detection signal when the internal wavelength calibration function fails and gas detection data cannot be obtained, enabling the detected gas concentration to accurately reflect the true gas concentration, improving the reliability of the detection signal wavelength, and, when internal reference detection data can be obtained, effectively avoiding the problem of the failure of the internal wavelength calibration function, thereby further increasing the diversity of the detection signal wavelength calibration methods and improving the data credibility, and then improving the accuracy of gas detection.

[0198] In a specific implementation, the control module is further adapted to calibrate the wavelength of the detection signal based on the obtained internal reference detection data when the internal reference detection data is obtained and the external calibration fails. This ensures the reliability of the detection signal wavelength.

[0199] This specification also provides a gas detection system corresponding to the control method of the above gas detection device. The following will be introduced in detail through specific embodiments with reference to the accompanying drawings. It should be noted that the content of the gas detection system described below can be correspondingly referred to the content of the control method of the gas detection device and the gas detection device described above.

[0200] In a specific implementation, as Figure 8 shown, it is a schematic structural diagram of a gas detection system provided by an embodiment of the present invention. In this example, the gas detection system SYS may include: a gas detection device DA.

[0201] The gas detection device DA is adapted to, in the self-check mode, transmit a detection signal to its own internal wavelength calibration module and determine whether internal reference detection data is obtained; when the internal reference detection data is not obtained, switch the self-check mode to the adaptive calibration mode; in the adaptive calibration mode, adaptively calibrate the wavelength of the detection signal based on the gas detection data obtained by transmitting the detection signal to the area to be measured.

[0202] In summary, the gas detection device can provide multiple wavelength calibration methods for the detection signal by adding an adaptive calibration function independent of the internal wavelength calibration function during gas detection, that is, when the internal wavelength calibration function fails, it can adaptively solve the wavelength calibration problem without relying on the internal wavelength calibration module, and can transmit the adaptively calibrated detection signal to the area to be measured, improving the credibility of the obtained gas detection data and increasing the robustness of the gas detection device, thereby improving the accuracy of gas detection.

[0203] In a specific implementation, continue to refer to Figure 8, the gas detection system SYS may further include: an external wavelength calibration module DB, detachably connected to the gas detection device DA. Refer to Figure 9 , which is Figure 8 a schematic diagram of the connection between the external wavelength calibration module shown and the gas detection device. Refer to Figure 8 and Figure 9 , the external wavelength calibration module DB can be attached to the detection signal emission port DA-1 of the gas detection device DA.

[0204] After the gas detection device DA and the external wavelength calibration module DB are connected, when the gas detection device DA does not obtain the gas detection data or obtains the internal reference detection data, it switches to the external calibration mode; and, in the external calibration mode, the wavelength of the detection signal is calibrated based on the external reference detection data obtained by transmitting the detection signal to the external wavelength calibration module DB.

[0205] Adopting the above solution, adding an external wavelength calibration function independent of the internal wavelength calibration function during gas detection can improve the reliability of the detection signal wavelength when the internal wavelength calibration function fails and gas detection data cannot be obtained, and, facilitate quickly discovering the problem of the internal wavelength calibration function failure when the internal reference detection data can be obtained, thereby further increasing the diversity of the detection signal wavelength calibration method and improving the data credibility, and further improving the accuracy of gas detection.

[0206] In a specific implementation, as Figure 10 shown, which is Figure 8 a schematic diagram of the structure of the external wavelength calibration module shown. Refer to Figures 8 to 10 , the external wavelength calibration module DB may specifically include:

[0207] A storage part DB-1, which has a hollow cavity for storing reference gas inside, and an opening DB-a at one end thereof for docking with the emission port DA-1 of the gas detection device DA; when the external wavelength calibration module DB is connected to the gas detection device DA, the plane of the storage part DB-1 with the opening DB-a is attached to the plane where the emission port DA-1 of the gas detection device DA is located.

[0208] A connection part DB-2, arranged on one side of the opening DB-a of the storage part DB-1, adapted to be detachably connected to the outer surface of the gas detection device.

[0209] In a specific implementation, continue to refer to Figures 8 to 10, the external wavelength calibration module DB further includes an external signal receiving unit (not shown in the figure). The external signal receiving unit is disposed on the storage unit DB-1 and is located on a side opposite to the opening DB-a and the connection unit DB-2. The external signal receiving unit is adapted to receive an echo signal from the storage unit DB-1 and perform optoelectronic detection.

[0210] In a specific implementation, the internal structure of the gas detection device DA can be referred to Figure 1 the gas detection device D0 shown. The control module of the gas detection device DA (not shown in the figure) can be coupled to the external signal receiving unit of the external wavelength calibration module DB. After the gas detection device DA transmits a detection signal to the external wavelength calibration module DB, the control module of the gas detection device DA can obtain external reference detection data through data processing according to the detection result of the external signal receiving unit. Among them, the external reference detection data can characterize the absorption of the detection signal in the storage unit DB-1. Then, the control module of the gas detection device DA can calibrate the wavelength of the detection signal according to the external reference detection data to ensure that the gas absorption spectrum corresponding to the gas detection data has a gas absorption peak.

[0211] It should be noted that the so-called "one embodiment" or "embodiment" in the present invention refers to specific features, structures or characteristics that can be included in at least one implementation manner of the present invention. And in the description of the present invention, terms such as "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Thus, features defined with terms such as "first" and "second" may explicitly or implicitly include one or more of such features. Moreover, terms such as "first" and "second" are used to distinguish similar objects and do not necessarily need to be used to describe a specific order or indicate importance. It can be understood that such terms can be interchanged under appropriate circumstances so that the embodiments of the present invention described here can be implemented in an order other than those illustrated or described here.

[0212] Although the embodiments of the present invention are disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention should be subject to the scope defined by the claims.

Claims

1. A control method for a gas detection device, characterized in that, Including: In the self-check mode, a detection signal is transmitted to the internal wavelength calibration module, and it is determined whether internal reference detection data is obtained; When the internal reference detection data is not obtained, the self-check mode is switched to the adaptive calibration mode; In the adaptive calibration mode, based on the gas detection data obtained by transmitting the detection signal to the area to be measured, the wavelength of the detection signal is adaptively calibrated, including: in the adaptive calibration mode, historical deviation data is obtained, and the detection signal is transmitted to the area to be measured to obtain the gas detection data; according to the obtained gas detection data and the historical deviation data, the wavelength control parameter is corrected to adaptively calibrate the wavelength of the detection signal; The detection signal with the wavelength calibrated is transmitted to the area to be measured to determine the gas detection data of the area to be measured.

2. The control method of the gas detection device according to claim 1, characterized in that, Before switching the self-check mode to the adaptive calibration mode, it further includes: The detection signal is transmitted to the area to be measured, and it is determined whether gas detection data is obtained.

3. The control method of the gas detection device according to claim 2, characterized in that, It further includes: When the gas detection data is not obtained or the internal reference detection data is obtained, it is switched to the external calibration mode; In the external calibration mode, based on the external reference detection data obtained by transmitting the detection signal to the external wavelength calibration module, the wavelength of the detection signal is calibrated.

4. The control method of the gas detection device according to claim 3, characterized in that, It further includes: When the internal reference detection data is obtained and the external calibration fails, based on the obtained internal reference detection data, the wavelength of the detection signal is calibrated.

5. The control method of the gas detection device according to claim 1, characterized in that, The correcting the wavelength control parameter according to the obtained gas detection data and the historical deviation data to adaptively calibrate the wavelength of the detection signal includes: Based on the gas detection data, the deviation degree between the actual wavelength corresponding to the gas absorption peak and the target wavelength is determined to obtain real-time deviation data; Based on the real-time deviation data and the historical deviation data, the wavelength control parameter is corrected, and based on the corrected wavelength control parameter, the correction is continued until the preset calibration end condition is met and the correction is stopped.

6. The control method of the gas detection device according to claim 5, characterized in that, The determining the deviation degree between the actual wavelength corresponding to the gas absorption peak and the target wavelength based on the gas detection data includes: The gas absorption spectra corresponding to the gas detection data obtained multiple times are superimposed, and the deviation degree between the wavelength corresponding to the superimposed gas absorption peak and the target wavelength is determined.

7. The control method of the gas detection device according to any one of claims 5 or 6, characterized in that Continuing the correction based on the corrected wavelength control parameter until the preset calibration end condition is met and the correction is stopped includes: When the real-time deviation data is less than the first deviation threshold, the gas detection of the area to be measured is performed, otherwise the wavelength control parameter is continuously corrected.

8. The control method of the gas detection device according to claim 5 or 6, characterized in that, The transmitting the detection signal to the area to be measured to obtain the gas detection data includes: When the credibility information meets the credibility conditions, the wavelength control parameters before correction are used for gas detection in the area to be measured. The credibility information includes at least one of the following: the dispersion information between the real-time deviation data and the historical deviation data, the real-time deviation data, the historical deviation data, the temperature difference information, the change trend information of the real-time deviation data, the correction times information, and the time interval information.

9. The control method of the gas detection device according to claim 5 or 6, characterized in that, The correction of the wavelength control parameters based on the real-time deviation data and the historical deviation data includes: Performing an average operation based on the real-time deviation data and the historical deviation data, and using the operation result as the correction gradient to determine the correction amount; Correcting the wavelength control parameters based on the correction amount.

10. A gas detection device, characterized in that, It includes: A control module, a signal emission module, and an internal wavelength calibration module, where: The control module is adapted to, in the self-check mode, control the signal emission module to emit a detection signal to the internal wavelength calibration module and determine whether internal reference detection data is obtained; when the internal reference detection data is not obtained, switch the self-check mode to the adaptive calibration mode; and, in the adaptive calibration mode, perform adaptive calibration on the wavelength of the detection signal based on the gas detection data obtained by emitting the detection signal to the area to be measured, including: in the adaptive calibration mode, obtaining historical deviation data, emitting the detection signal to the area to be measured to obtain the gas detection data; correcting the wavelength control parameters according to the obtained gas detection data and the historical deviation data to adaptively calibrate the wavelength of the detection signal; and emitting the detection signal with the wavelength calibrated to the area to be measured to determine the gas detection data of the area to be measured.

11. The gas detection device according to claim 10, characterized in that, The gas detection device is detachably connected to an external wavelength calibration module; The control module is further adapted to switch to the external calibration mode when the gas detection data is not obtained or the internal reference detection data is obtained; in the external calibration mode, calibrate the wavelength of the detection signal based on the external reference detection data obtained by emitting the detection signal to the external wavelength calibration module.

12. The gas detection device according to claim 11, characterized in that, The control module is further adapted to, when the internal reference detection data is obtained and the external calibration fails, calibrate the wavelength of the detection signal based on the obtained internal reference detection data.

13. A gas detection system, characterized in that, It includes: A gas detection device, which is adapted to, in the self-check mode, emit a detection signal to its own internal wavelength calibration module and determine whether internal reference detection data is obtained; When the internal reference detection data is not obtained, switch the self-check mode to the adaptive calibration mode; In the adaptive calibration mode, based on the gas detection data obtained by emitting the detection signal to the area to be measured, adaptively calibrate the wavelength of the detection signal, including: in the adaptive calibration mode, obtain historical deviation data, and emit the detection signal to the area to be measured to obtain the gas detection data; according to the obtained gas detection data and the historical deviation data, correct the wavelength control parameter to adaptively calibrate the wavelength of the detection signal; and emit the detection signal with the calibrated wavelength to the area to be measured to determine the gas detection data of the area to be measured.

14. The gas detection system according to claim 13, wherein, It further includes: An external wavelength calibration module, detachably connected to the gas detection device; The gas detection device switches to the external calibration mode when no gas detection data is obtained or the internal reference detection data is obtained; and in the external calibration mode, calibrate the wavelength of the detection signal based on the external reference detection data obtained by emitting the detection signal to the external wavelength calibration module.

15. The gas detection system according to claim 14, characterized in that, The external wavelength calibration module includes: A storage part, which is provided with a cavity for storing a reference gas, and one end thereof is provided with an opening for docking with the emission port of the gas detection device; A connection part, arranged on one side of the opening of the storage part, adapted to be detachably connected to the outer surface of the gas detection device.

Citation Information

Patent Citations

  • Self-adaptive correction wavelength UV generator and strategy based on single-chip microcomputer

    CN112835291A