Gas concentration detection method and device

By adjusting the optical switch state and optical path light source, the high-precision adaptation of the gas concentration detection equipment in high-range and low-concentration gas detection is achieved, solving the shortcomings in range and accuracy of existing equipment, and improving detection efficiency.

CN115791630BActive Publication Date: 2025-07-29TIANJIN TONGYANG TECH DEV
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing gas concentration detection equipment does not have high measurement accuracy at high ranges, and the accuracy requirements cannot be met when the gas is detected at low concentrations, and cannot adapt to environments with large concentration changes.

Method used

By obtaining the current optical switch status information, adjusting the optical switch status according to the gas concentration value, switching to the adapted target detection range, and using different optical path light sources to perform gas concentration detection to achieve multi-range detection.

Benefits of technology

High-precision and low-concentration gas detection within the high range of variation is realized, which improves detection efficiency and reduces measurement errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115791630B_ABST
    Figure CN115791630B_ABST
Patent Text Reader

Abstract

The present disclosure provides a gas concentration detection method and apparatus. The method includes: obtaining current optical switch state information within a current time period, where the current optical switch state represented by the current optical switch state information is used to control gas concentration detection based on first optical path light source information, and the detection range corresponding to the first optical path light source information is the current detection range; obtaining the gas concentration value detected within the current time period; in response to determining that the gas concentration value does not match the current detection range, determining a target detection range that matches the gas concentration value; determining target optical switch state information corresponding to the target detection range, where the target optical switch state represented by the target optical switch state information is used to control gas concentration detection based on second optical path light source information, and the second optical path light source information is different from the first optical path light source information; switching the current optical switch state to the target optical switch state; and performing gas concentration detection based on the second optical path light source information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of detection, and more particularly, to a method and apparatus for detecting gas concentration. Background Art

[0002] In many industries, the detection of various gas concentrations is required. In enterprise production, it is necessary to understand the change of gas concentration in the production process. In enterprise safety, it is necessary to understand the presence of various toxic gases and the gas concentration. In various safety protections, it is also necessary to detect the oxygen concentration and the possible concentration of toxic gases in a confined space. In many enterprises, compressed air is used, and it is also necessary to detect the purity of the compressed air accordingly. There are gas detection devices with different ranges on the market for realizing gas concentration detection.

[0003] In the process of implementing the concept of the present disclosure, the inventors found that there are at least the following problems in the related art. For a single-range device, the upper limit of the range is high, but the measurement accuracy for low-concentration gases is not high enough. The upper limit of the range is low, and the measurement accuracy is high, but it cannot meet the measurement environment with large concentration changes. Summary of the Invention

[0004] In view of this, the present disclosure provides a method and apparatus for detecting gas concentration.

[0005] One aspect of the present disclosure provides a method for detecting gas concentration, including: obtaining current optical switch state information in a current time period, where the current optical switch state represented by the current optical switch state information is used to control gas concentration detection based on first optical path light source information, and the detection range corresponding to the first optical path light source information is the current detection range; obtaining a gas concentration value detected in the current time period; in response to determining that the gas concentration value does not match the current detection range, determining a target detection range that matches the gas concentration value; determining target optical switch state information corresponding to the target detection range, where the target optical switch state represented by the target optical switch state information is used to control gas concentration detection based on second optical path light source information, and the second optical path light source information is different from the first optical path light source information; switching the current optical switch state to the target optical switch state; and performing gas concentration detection based on the second optical path light source information.

[0006] Another aspect of the present disclosure provides a gas concentration detection device, including: a light source module for generating an incident light source; an optical switch for receiving the incident light source and controlling the incident light source to output through multiple optical paths; a multi-optical path thread pool for receiving the incident light sources of multiple optical paths and outputting the outgoing light sources of multiple optical paths, where the optical paths corresponding to the light sources of multiple optical paths transmitted in the multi-optical path thread pool have different optical paths; a detector for detecting the outgoing light intensity information of the outgoing light source; and an algorithm module for executing the gas concentration detection method described in the present disclosure.

[0007] According to an embodiment of the present disclosure, since the state of the optical switch can be adjusted according to the gas concentration value and the current detection range, a gas concentration detection scheme supporting multi-range detection can be implemented. Based on this scheme for gas concentration detection, it can not only meet the high-range change range but also meet the accuracy requirements for low-concentration gas detection, and can effectively improve the detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Through the following description of the embodiments of the present disclosure with reference to the drawings, the above and other objects, features, and advantages of the present disclosure will become clearer. In the drawings:

[0009] Figure 1 Schematically shows an exemplary system architecture to which the gas concentration detection method according to an embodiment of the present disclosure can be applied;

[0010] Figure 2 Schematically shows a flowchart of the gas concentration detection method according to an embodiment of the present disclosure;

[0011] Figure 3 Schematically shows a gas concentration detection device with multi-range automatic switching;

[0012] Figure 4A Schematically shows a flowchart of switching the state of the optical switch from S = 1 to S = 2 based on a preset switching condition according to an embodiment of the present disclosure;

[0013] Figure 4B Schematically shows a flowchart of switching the state of the optical switch from S = 2 to S = 1 based on a preset switching condition according to an embodiment of the present disclosure; and

[0014] Figure 5 Schematically shows a block diagram of a computer system suitable for the gas concentration detection method according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0015] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the following detailed description, for the sake of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. However, it is obvious that one or more embodiments can also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts of the present disclosure.

[0016] The terms used herein are merely for describing specific embodiments and are not intended to limit the present disclosure. The terms "including", "comprising", etc. used herein indicate the presence of the described features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0017] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0018] In the case of using expressions such as "at least one of A, B, and C, etc.", generally, it should be interpreted according to the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include, but is not limited to, a system having only A, only B, only C, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", generally, it should be interpreted according to the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include, but is not limited to, a system having only A, only B, only C, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.).

[0019] Figure 1 Schematically shown is an exemplary system architecture 100 to which the gas concentration detection method according to an embodiment of the present disclosure can be applied. It should be noted that Figure 1 What is shown is only an example of the system architecture to which the embodiments of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments, or scenarios.

[0020] As Figure 1As shown, the system architecture 100 according to this embodiment may include a terminal device 101, a network 102, and a gas concentration detection device 103. The network 102 is used to provide a medium for a communication link between the terminal device 101 and the gas concentration detection device 103. The network 102 may include various connection types, such as wired and / or wireless communication links, etc.

[0021] The user can use the terminal device 101 to interact with the gas concentration detection device 103 through the network 102 to receive or send messages, instructions, etc.

[0022] The terminal device 101 may be various electronic devices with a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop computers, desktop computers, etc. An algorithm module for controlling the working mode of the gas concentration detection device 103 may be preset on the terminal device 101 to provide background management services for the gas concentration detection device 103. For example, the terminal device 101 may analyze and process the relevant data received from the gas concentration detection device 103, and feedback the processing result to the gas concentration detection device 103 or the user.

[0023] The gas concentration detection device 103 may receive the gas to be detected or be placed in the environment to be detected to obtain gas parameter information or environmental parameter information, so as to determine the gas concentration according to the parameter information. The above algorithm module for controlling the working mode of the gas concentration detection device 103 may also be directly set in the gas concentration detection device 103.

[0024] It should be noted that the gas concentration detection method provided by the embodiments of the present disclosure may generally be executed by the terminal device 101. Correspondingly, the gas concentration detection device provided by the embodiments of the present disclosure may generally be set in the terminal device 101. The gas concentration detection method provided by the embodiments of the present disclosure may also be executed by a server or a server cluster different from the terminal device 101 and capable of communicating with the terminal device 101. Correspondingly, the gas concentration detection device provided by the embodiments of the present disclosure may also be set in a server or a server cluster different from the terminal device 101 and capable of communicating with the terminal device 101. Or, the gas concentration detection method provided by the embodiments of the present disclosure may also be executed by the gas concentration detection device 103, or may also be executed by other devices or equipment different from the gas concentration detection device 103.

[0025] For example, the gas concentration value detected during the current time period and the current optical switch state information can be originally stored in the terminal device 101, or stored on an external storage device and imported into the terminal device 101. Then, the terminal device 101 can execute the gas concentration detection method provided by the embodiments of the present disclosure locally, or send the gas concentration value and the current optical switch state information to other terminal devices, servers, or server clusters, and the other terminal devices, servers, or server clusters that receive the gas concentration value and the current optical switch state information execute the gas concentration detection method provided by the embodiments of the present disclosure.

[0026] It should be understood that Figure 1 the number of terminal devices, networks, and gas concentration detection devices in

[0027] According to another embodiment of the present disclosure, a gas concentration detection method is provided.

[0028] Figure 2 A flowchart of the gas concentration detection method according to the embodiments of the present disclosure is schematically shown.

[0029] As Figure 2 shown, the method includes operations S201 to S206.

[0030] In operation S201, the current optical switch state information during the current time period is obtained, and the current optical switch state represented by the current optical switch state information is used to control the gas concentration detection based on the first optical path light source information, and the detection range corresponding to the first optical path light source information is the current detection range.

[0031] As a method for detecting gas concentration, the spectroscopic absorption method is based on Lambert-Beer's law, that is, I(λ) = I0(λ)exp[-Lα(λ)c]. Where λ is the light source, I0(λ) is the incident light intensity of the light source, which becomes the light source exit light intensity I(λ) after passing through the gas to be detected, L is the optical path length, α(λ) is the gas absorption coefficient corresponding to the light source, and c is the gas concentration. It can be seen from Lambert-Beer's law that the longer the optical path, the lower the upper limit of the gas concentration that can be detected. The shorter the optical path, the higher the upper limit of the gas concentration that can be detected.

[0032] According to the embodiments of the present disclosure, gas concentration detection can be performed based on the spectroscopic absorption method. The first optical path light source information can include information such as the first optical path information of the first optical path light source, the first incident light intensity information, the first exit light intensity information, and the first gas absorption coefficient. On this basis, by determining the first optical path light source information and combining Lambert-Beer's law, the detection range corresponding to the first optical path light source information can be determined.

[0033] In operation S202, obtain the gas concentration value detected within the current time period.

[0034] According to an embodiment of the present disclosure, the duration of the current time period can be set in a predefined manner. For example, the current time period can represent a time period with a preset duration ending at the current moment. The duration of the current time period can also be determined in combination with the size of the space occupied by the gas to be detected and the transmission rate of the gas to be detected, and is not limited thereto.

[0035] According to an embodiment of the present disclosure, after determining the current time period, gas concentration detection can be performed based on the first optical path light source information by means of random detection or detection at a certain frequency, and the gas concentration value detected within the current time period can be obtained.

[0036] It should be noted that in this operation, gas concentration detection can also be performed based on other detection methods as long as the gas concentration value can be obtained.

[0037] In operation S203, in response to determining that the gas concentration value does not match the current detection range, determine a target detection range that matches the gas concentration value.

[0038] According to an embodiment of the present disclosure, the mismatch between the gas concentration value and the current detection range can be characterized by at least one of the following situations: the value corresponding to the gas concentration value is outside the range space corresponding to the current detection range; the value corresponding to the gas concentration value is within the range space corresponding to the current detection range, but the difference between the value corresponding to the gas concentration value and the upper limit value of the current detection range is greater than a preset threshold; among the existing multiple detection ranges, there is a detection range that can match the gas concentration value and has a smaller range space.

[0039] According to an embodiment of the present disclosure, the target detection range can represent a detection range whose range space can cover the value corresponding to the gas concentration value. When the range space located by the target detection range and the range space located by the current detection range can both cover the value corresponding to the gas concentration value, the target detection range can represent a detection range with a smaller range space than the range space located by the current detection range. For example, the current detection range is 0 to Z, the gas concentration value is X, and the existing detection ranges include 0 to Y, where X < Y < Z and X, Y, and Z are positive numbers, then the target detection range can be 0 to Y.

[0040] In operation S204, determine the target optical switch status information corresponding to the target detection range. The target optical switch status represented by the target optical switch status information is used to control gas concentration detection based on the second optical path light source information, and the second optical path light source information is different from the first optical path light source information.

[0041] According to an embodiment of the present disclosure, a mapping table characterizing the mapping relationship between the detection range and the switch state information can be determined in advance. In the case where the target optical switch state information needs to be determined, the target optical switch state information corresponding to the target detection range can be determined according to the mapping table.

[0042] According to an embodiment of the present disclosure, the second optical path light source information may include information such as the second optical path information of the second optical path light source, the second incident light intensity information, the second outgoing light intensity information, and the second gas absorption coefficient. The differences between the second optical path light source information and the first optical path light source information can be reflected in at least one of the following aspects: the types of the second optical path light source and the first optical path light source are different, the optical path of the second optical path light source is different from that of the first optical path light source, and the like.

[0043] In operation S205, the current optical switch state is switched to the target optical switch state.

[0044] In operation S206, gas concentration detection is performed based on the second optical path light source information.

[0045] According to an embodiment of the present disclosure, by detecting the gas to be detected based on the second optical path light source information that is more adapted to the gas concentration value of the currently detected gas, a detection result with higher accuracy can be obtained.

[0046] Through the above embodiments of the present disclosure, since the optical switch state can be adjusted according to the gas concentration value and the current detection range, a gas concentration detection scheme supporting multi-range detection can be realized. Based on this scheme for gas concentration detection, both the high-range change range can be satisfied, and the accuracy requirements for low-concentration gas detection can be met, and the detection efficiency can be effectively improved.

[0047] The following further describes the Figure 2 method shown with specific embodiments.

[0048] According to an embodiment of the present disclosure, the optical path corresponding to the first optical path light source information and the optical path corresponding to the second optical path light source information can both be configured in a multi-optical path gas cell. In this case, the gas concentration of the gas to be detected can be detected by inputting the gas to be detected into the multi-optical path gas cell.

[0049] It should be noted that in other embodiments, the multi-optical path gas cell may not be used, and the optical switch, the optical path corresponding to the first optical path light source information, and the optical path corresponding to the second optical path light source information can be directly set in the environment including the gas to be detected, and the above-mentioned gas concentration detection method can be executed.

[0050] According to an embodiment of the present disclosure, in the case of detecting gas concentration based on a multi-path gas cell, the input flow rate of the gas to be detected input into the multi-path gas cell can be obtained first. Then, the duration of the current time period can be determined according to the input flow rate and the volume of the multi-path gas cell.

[0051] According to an embodiment of the present disclosure, the input flow rate can be determined according to the input rate of the gas input into the multi-path gas cell and the output rate of the gas discharged from the multi-path gas cell, or can be directly determined according to the delivery flow rate set by the device for delivering the gas to be detected. When it is necessary to determine the duration of the current time period, for example, the quotient obtained by dividing the volume by the input rate can be determined as the duration of the current time period. It is also possible to first obtain the quotient by dividing the volume by the input rate. Then, according to the quotient and the preset constraint value, the duration of the current time period is determined, which is not limited here.

[0052] Through the above embodiments of the present disclosure, by determining the current time period according to the gas input flow rate and the volume of the multi-path gas cell, gas concentration detection can be more comprehensively and completely realized, and the detection efficiency can be effectively improved.

[0053] According to an embodiment of the present disclosure, the above operation S202 may include: in response to determining that the time in the current time period reaches the detection time, obtaining the first path information, the first incident light intensity information, the first outgoing light intensity information, and the first gas absorption coefficient corresponding to the first path light source information. According to the first path information, the first incident light intensity information, the first outgoing light intensity information, and the first gas absorption coefficient, determine the gas concentration value detected at the detection time.

[0054] For example, based on Lambert-Beer's law, the gas concentration calculation formula shown in formula (1) can be obtained.

[0055]

[0056] In formula (1), c1 can represent the gas concentration of the gas to be detected detected when detecting the gas concentration based on the first path light source information, L1 can represent the first path information, I 10 can represent the first incident light intensity information, I1 can represent the first outgoing light intensity information, and α1 can represent the first gas absorption coefficient.

[0057] According to an embodiment of the present disclosure, in the case of obtaining the first path information, the first incident light intensity information, the first outgoing light intensity information, and the first gas absorption coefficient, based on the calculation of formula (1), the gas concentration value c1 detected when detecting the gas concentration based on the first path light source information can be obtained.

[0058] According to an embodiment of the present disclosure, the gas concentration values detected in the current time period may include multiple gas concentration values. In this case, the above operation S203 may include: in response to determining that a continuous plurality of gas concentration values among the multiple gas concentration values do not match the detection range, determining multiple detection ranges according to the multiple gas concentration values. Determining a target detection range according to the multiple detection ranges.

[0059] According to an embodiment of the present disclosure, in the case where the multiple detection ranges are all the same, the detection range corresponding to the multiple detection ranges may be determined as the target detection range. In the case where the multiple detection ranges are different, gas concentration detection may continue based on the first optical path light source information, and the detection range may be determined according to the detection result until N consecutive and identical detection ranges are obtained, and the detection range corresponding to the N consecutive and identical detection ranges is determined as the target detection range.

[0060] In other embodiments, in the case where the multiple detection ranges are different, the detection range that appears the most times among the multiple detection ranges may also be determined as the target detection range. It is also possible to obtain a post-preset number of detection ranges among the multiple detection ranges, and then determine the target range according to the post-preset number of detection ranges.

[0061] According to an embodiment of the present disclosure, after determining the target optical switch state information according to the target detection range, the above operation S205 may include: generating a switching instruction for switching the optical switch state to the target optical switch state according to the target optical switch state information. In response to receiving the switching instruction, switching the current optical switch state to the target optical switch state.

[0062] Through the above embodiments of the present disclosure, controlling the switching of the optical switch state based on the switching instruction can achieve the automation and intelligence of the switching process, improve the switching efficiency and the gas concentration detection efficiency.

[0063] According to an embodiment of the present disclosure, the above operation S206 may include: obtaining a second optical path information, a second incident light intensity information, a second outgoing light intensity information, and a second gas absorption coefficient corresponding to the second optical path light source information. Determining the gas concentration value of the gas to be detected according to the second optical path information, the second incident light intensity information, the second outgoing light intensity information, and the second gas absorption coefficient.

[0064] According to an embodiment of the present disclosure, after the switching of the optical switch state is completed, gas concentration detection may be performed based on the second optical path light source information corresponding to the switched target optical switch state information.

[0065] For example, based on Lambert-Beer's law, a gas concentration calculation formula as shown in formula (2) can be obtained.

[0066]

[0067] In formula (2), c2 can represent the gas concentration of the gas to be detected detected when detecting the gas concentration based on the second optical path light source information, L2 can represent the second optical path information, I 20 can represent the second incident light intensity information, I2 can represent the second outgoing light intensity information, and α2 can represent the second gas absorption coefficient.

[0068] According to an embodiment of the present disclosure, in the case of obtaining the second optical path information, the second incident light intensity information, the second outgoing light intensity information, and the second gas absorption coefficient, by performing calculations based on formula (2), a more accurate gas concentration value c2 of the gas to be detected can be obtained.

[0069] Through the above embodiments of the present disclosure, a gas concentration detection method with multi-range automatic switching is realized. Based on this method, the gas concentration value can be detected using the most suitable detection range, which can effectively reduce the measurement error and improve the detection rate.

[0070] According to another embodiment of the present disclosure, a gas concentration detection device is provided. The device may include: a light source, an optical switch, a multi-optical path thread pool, a detector, and an algorithm module.

[0071] A light source module, which can be used to generate an incident light source. The light source module may include one or more. Multiple light source modules can generate different types of light sources. Different types of light sources may correspond to the same gas having different gas absorption coefficients. The incident light intensity information of the light source, such as the first incident light intensity information, the second incident light intensity information, etc., can be set by the light source module.

[0072] An optical switch, which can be used to receive the incident light source and control the incident light source to output through multiple optical paths. The optical switch may include a 1×K optical switch. The 1×K optical switch can represent that the optical switch includes one light source input port and K light source output ports, and the K light source output ports correspond to K output optical paths. The 1×K optical switch can only support one light source output port to output the light source at the same time, and K≥2.

[0073] A multi-optical path thread pool, which can be used to receive the incident light sources of multiple optical paths and output the outgoing light sources of multiple optical paths. The optical paths corresponding to the light sources of multiple optical paths transmitted in the multi-optical path thread pool may have different optical paths. In some embodiments, for example, a multi-optical path thread pool with an irregular shape, such as a triangle, a rhombus, and other irregular polygon shapes, can be set, so that the light sources of multiple optical paths transmitted in the multi-optical path thread pool, even if they are transmitted linearly in the multi-optical path thread pool, can have different optical paths.

[0074] A detector can be used to detect the emitted light intensity information of an emitted light source. For example, the aforementioned first emitted light intensity information, second emitted light intensity information, etc. can all be detected and determined by the detector.

[0075] An algorithm module can be used to execute the aforementioned gas concentration detection method. For example, it can include processes such as calculating the gas concentration value and controlling the switching of the optical switch state, which will not be elaborated here.

[0076] According to an embodiment of the present disclosure, the above gas concentration detection device may further include at least one of a mirror, an optical lens, and an optical fiber.

[0077] A mirror can be disposed in a multi - optical - path thread pool and can be used to configure different optical paths for the light sources of multiple optical paths. For example, multiple mirrors can also be set in the multi - optical - path thread pool to configure different optical paths for the light sources of multiple optical paths.

[0078] An optical lens can be used to convert the incident light source and / or the emitted light source into parallel light to improve the detection accuracy. It should be noted that the light source module can also directly generate parallel light. In this case, the optical lens may not be required.

[0079] An optical fiber can be disposed between the optical switch and the multi - optical - path gas cell and is used to transmit the light source output by the optical switch to the multi - optical - path gas cell via the optical fiber, which can effectively reduce the light source loss. It should be noted that the optical switch can also be directly disposed at the edge of the multi - optical - path thread pool. In this case, the optical fiber may not be required.

[0080] Figure 3 Schematically shows a gas concentration detection device with multi - range automatic switching.

[0081] As Figure 3 shown, the gas concentration detection device 300 may include a 90° mirror 1, 90° mirror groups 2 - 1, 2 - 2, optical lenses 3 - 1, 3 - 2, 3 - 3, 3 - 4, optical fibers 4 - 1, 4 - 2, 4 - 3, 4 - 4, optical switches 5 - 1, 5 - 2, a light source 6, a detector 7, a computer 8, and a multi - optical - path gas cell 9.

[0082] Figure 3 For example, two optical paths with different optical paths can be shown: a first - optical - path optical path and a second - optical - path optical path. The first - optical - path optical path can be a short - optical - path optical path relative to the second - optical - path optical path.

[0083] The first - optical - path optical path is as follows: The light rays of the light source 6 are output through the optical fiber 4 - 1 selected by the optical switch 5 - 1. After the light rays reach the lens 3 - 1, they become parallel light and are emitted to the mirror 1. The mirror 1 reflects the light rays in the original direction. The parallel light is converged by the lens 3 - 4 and incident into the optical fiber 4 - 4. Finally, the light is input into the detector 7 through the optical switch 5 - 2, and the computer 8 calculates the gas concentration.

[0084] The second optical path is as follows: Light from light source 6 is selected for output from optical fiber 4-2 via optical switch 5-1. After reaching lens 3-2, the light is transformed into parallel light and emitted to angle mirror 2-1. The angle mirrors 2-1 and 2-2 then fold the light back five times, thereby increasing the optical path. Finally, angle mirror 2-1 reflects the light to lens 3-3, where the parallel light converges into optical fiber 4-3. The light is then input to detector 7 via optical switch 5-2, where computer 8 calculates the gas concentration.

[0085] Optical switches 5-1 and 5-2 are 1×2 optical switches, meaning only one optical path can pass through the entire device at a time. After computer 8 calculates the gas concentration, it can determine an algorithm based on the aforementioned gas concentration detection method to control the optical switch states of optical switches 5-1 and 5-2, enabling switching between different optical paths.

[0086] It should be noted that Figure 3 Only two optical paths with different optical lengths are schematically shown. In actual implementation, optical paths with more optical lengths can be constructed in the multi-optical path gas cell 9 by replacing the optical switch with a 1×M optical switch, or increasing the number of 1×2 optical switches and light sources, and adding angle mirrors to the multi-optical path gas cell 9.

[0087] According to an embodiment of the present disclosure, when the algorithm determined by the aforementioned gas concentration detection method is applied to Figure 3 In the case of the gas concentration detection device shown, for example, S can be set to represent the state of optical switches 5-1 and 5-2. When S = 1, optical fibers 4-1 and 4-4 are controlled to be open, indicating a short optical path and a high range. When S = 2, optical fibers 4-2 and 4-3 are controlled to be open, indicating a long optical path and a low range. The first optical path can, for example, have the first optical path light source information described above, with a range of, for example, 0 to C1. The second optical path can, for example, have the second optical path light source information described above, with a range of, for example, 0 to C2, with C1 > C2.

[0088] The computer 8 can calculate the gas concentration value by combining the known information such as the first optical path light source information and the second optical path light source information with formula (1) and formula (2).

[0089] According to embodiments of the present disclosure, computer 8 can calculate the concentration once every t time intervals, where n is the number of calculations. In some embodiments, C2 can serve as a threshold for switching the range. That is, when the calculated concentration C is greater than C2, the first optical path is clear, S = 1. When the calculated concentration C is less than C2, the second optical path is clear, S = 2.

[0090] According to an embodiment of the present disclosure, setting only the critical value as the optical path switching condition may cause data errors and device losses. To reduce such effects, for example, it can be set that when the state satisfying the switching condition lasts for a duration of N*t (both n and N are the number of calculations, n is a variable in the algorithm, and N is a determined constant), it is considered that the current optical path is not suitable for continuous monitoring, and a switching instruction is generated to switch the state of the optical switch.

[0091] Figure 4A Schematically shows a flowchart for switching the state of the optical switch from S = 1 to S = 2 based on a preset switching condition according to an embodiment of the present disclosure.

[0092] As Figure 4A shown, assume that the initial state of the optical switch is S = 1, that is, the short optical path and high range state corresponding to the first optical path. After the computer 8 calculates the concentration C, if it is determined that the concentration C does not satisfy the switching condition, the state remains unchanged. If the concentration C satisfies the switching condition, the range needs to be considered for switching: each time the switching condition is satisfied, the number n increases by 1. If the switching condition is not satisfied at a certain time before N times, the state remains unchanged and the number n is reset to zero; if the condition is satisfied up to N times, the state switches to S = 2 and the number n is reset to zero.

[0093] Figure 4B Schematically shows a flowchart for switching the state of the optical switch from S = 2 to S = 1 based on a preset switching condition according to an embodiment of the present disclosure.

[0094] As Figure 4B shown, assume that the initial state of the optical switch is S = 2, that is, the long optical path and low range state corresponding to the second optical path. After the computer 8 calculates the concentration C, if it is determined that the concentration C does not satisfy the switching condition, the state remains unchanged. If the concentration C satisfies the switching condition, the range needs to be considered for switching: each time the switching condition is satisfied, the number n increases by 1. If the switching condition is not satisfied at a certain time before N times, the state remains unchanged and the number n is reset to zero; if the condition is satisfied up to N times, the state switches to S = 1 and the number n is reset to zero.

[0095] For example, the volume of the gas chamber is 500 ml, the gas flow rate is 1000 ml / min, and the time for calculating the concentration once is 5 s. To be able to stably and accurately switch the range to calculate the concentration, considering that the gas chamber needs to discharge all the old gas and introduce new gas, the process takes 500 ml / (1000 ml / min) = 30 s. Therefore, the number N can be set to 30 s / 5 s = 6. When the concentration C satisfies the switching condition after calculating 6 times, it indicates that the gas concentration is stable at this time and the range needs to be switched; if the concentration C does not satisfy the switching condition before 6 times, it indicates that the concentration is unstable at this time and the range is not switched.

[0096] In addition, the above definitions of each component and method are not limited to the specific structures, shapes or manners mentioned in the embodiments. Those of ordinary skill in the art can make simple changes or substitutions thereto. For example, in a designed multi - optical - path gas cell, a corner mirror group can be added to increase the optical path. In the above embodiments, only two ranges are simply used for description, and the optical path can also be changed to increase the number of ranges.

[0097] Through the above - mentioned embodiments of the present disclosure, by using a multi - optical - path gas cell and an optical switch, the volume of the device can be reduced. The realized gas concentration detection device realizes multi - range measurement based on the multi - optical - path gas cell, and uses the optical switch structure and the algorithm module control to realize the automatic switching of multiple ranges, which can meet both the high - range variation requirements and the accuracy requirements for low - concentration gases. In addition, by adding a conditional automatic switching algorithm based on the algorithm module, the measurement error and device loss can be effectively reduced.

[0098] Figure 5 A block diagram of a computer system suitable for a gas concentration detection method according to an embodiment of the present disclosure is schematically shown. Figure 5 The shown computer system is only an example and should not bring any limitation to the functions and usage scope of the embodiments of the present disclosure.

[0099] As Figure 5 shown, the computer system 500 according to an embodiment of the present disclosure includes a processor 501, which can perform various appropriate actions and processes according to a program stored in a read - only memory (ROM) 502 or a program loaded from a storage section 508 into a random - access memory (RAM) 503. The processor 501 can include, for example, a general - purpose microprocessor (such as a CPU), an instruction - set processor and / or a related chipset and / or a dedicated microprocessor (such as, an application - specific integrated circuit (ASIC)), and so on. The processor 501 can also include on - board memory for caching purposes. The processor 501 can include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0100] In the RAM 503, various programs and data required for the operation of the system 500 are stored. The processor 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. The processor 501 performs various operations of the method flow according to an embodiment of the present disclosure by executing the programs in the ROM 502 and / or the RAM 503. It should be noted that the program can also be stored in one or more memories other than the ROM 502 and the RAM 503. The processor 501 can also perform various operations of the method flow according to an embodiment of the present disclosure by executing the programs stored in the one or more memories.

[0101] According to an embodiment of the present disclosure, the system 500 may further include an input / output (I / O) interface 505, and the input / output (I / O) interface 505 is also connected to the bus 504. The system 500 may further include one or more of the following components connected to the I / O interface 505: an input portion 506 including a keyboard, a mouse, etc.; an output portion 507 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 508 including a hard disk, etc.; and a communication portion 509 including a network interface card such as a LAN card, a modem, etc. The communication portion 509 performs communication processing via a network such as the Internet. The drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read from it can be installed into the storage portion 508 as needed.

[0102] According to an embodiment of the present disclosure, the method flow according to the embodiment of the present disclosure may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes program codes for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network through the communication portion 509, and / or installed from the removable medium 511. When the computer program is executed by the processor 501, the above-described functions defined in the system of the embodiment of the present disclosure are performed. According to an embodiment of the present disclosure, the above-described system, device, apparatus, module, unit, etc. may be implemented by computer program modules.

[0103] The present disclosure also provides a computer-readable storage medium, which may be included in the device / device / system described in the above embodiment; or may exist separately without being assembled into the device / device / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0104] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or device.

[0105] For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 502 and / or the RAM 503 described above and / or one or more memories other than the ROM 502 and the RAM 503.

[0106] An embodiment of the present disclosure further includes a computer program product, which includes a computer program that contains program code for executing the method provided by the embodiment of the present disclosure. When the computer program product runs on an electronic device, the program code is used to cause the electronic device to implement the gas concentration detection method provided by the embodiment of the present disclosure.

[0107] When the computer program is executed by the processor 501, the above functions defined in the system / apparatus of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, apparatus, module, unit, etc. described above can be implemented by computer program modules.

[0108] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices and magnetic storage devices. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium and downloaded and installed through the communication part 509, and / or installed from the removable medium 511. The program code included in the computer program can be transmitted by any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0109] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level procedures and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include but are not limited to, such as Java, C++, python, the "C" language or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, by using an Internet service provider to connect through the Internet).

[0110] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of code, which contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks may occur in a different order than noted in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and combinations of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or by a combination of dedicated hardware and computer instructions. Those skilled in the art will appreciate that the features recited in the various embodiments and / or claims of the present disclosure can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly recited in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features recited in the various embodiments and / or claims of the present disclosure can be combined and / or combined in various ways. All such combinations and / or combinations fall within the scope of the present disclosure.

[0111] The embodiments of the present disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments have been described separately above, this does not mean that the measures in each embodiment cannot be used advantageously in combination. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art can make various substitutions and modifications, and all such substitutions and modifications should fall within the scope of the present disclosure.

Claims

1. A gas concentration detection method, comprising: Obtaining an input flow rate of the gas to be detected input into a multi - optical - path gas cell; Determining the duration of the current time period according to the input flow rate and the volume of the multi - optical - path gas cell; Obtaining current optical switch state information within the current time period, where the current optical switch state represented by the current optical switch state information is used to control gas concentration detection based on first optical - path light source information, and the detection range corresponding to the first optical - path light source information is the current detection range; Obtaining the gas concentration value detected within the current time period; In response to determining that the gas concentration value does not match the current detection range, determining a target detection range that matches the gas concentration value; Determining target optical switch state information corresponding to the target detection range, where the target optical switch state represented by the target optical switch state information is used to control gas concentration detection based on second optical - path light source information, and the second optical - path light source information is different from the first optical - path light source information, including: the category of the second optical - path light source is different from the category of the first optical - path light source, and different categories of light sources have different gas absorption coefficients for the same gas; Switching the current optical switch state to the target optical switch state; and Performing gas concentration detection based on the second optical - path light source information; Wherein, the optical path corresponding to the first optical - path light source information and the optical path corresponding to the second optical - path light source information are both configured in the multi - optical - path gas cell.

2. The method according to claim 1, wherein The obtaining the gas concentration value detected within the current time period includes: In response to determining that the time within the current time period reaches the detection time, obtaining first optical - path information, first incident light intensity information, first outgoing light intensity information, and first gas absorption coefficient corresponding to the first optical - path light source information; and Determining the gas concentration value detected at the detection time according to the first optical - path information, the first incident light intensity information, the first outgoing light intensity information, and the first gas absorption coefficient.

3. The method according to claim 1, wherein, The gas concentration value includes multiple gas concentration values; the in response to determining that the gas concentration value does not match the current detection range, determining a target detection range that matches the gas concentration value includes: In response to determining that a continuous plurality of gas concentration values among the multiple gas concentration values do not match the detection range, determining multiple detection ranges according to the multiple gas concentration values; and Determining the target detection range according to the multiple detection ranges.

4. The method according to claim 1, wherein, The switching the current optical switch state to the target optical switch state includes: Generating a switching instruction for switching the optical switch state to the target optical switch state according to the target optical switch state information; and In response to receiving the switching instruction, switching the current optical switch state to the target optical switch state.

5. The method according to claim 1, wherein The performing gas concentration detection based on the second optical - path light source information includes: Obtaining second optical - path information, second incident light intensity information, second outgoing light intensity information, and second gas absorption coefficient corresponding to the second optical - path light source information; and Determine the gas concentration value of the gas to be detected according to the second optical path information, the second incident light intensity information, the second outgoing light intensity information, and the second gas absorption coefficient.

6. A gas concentration detection device, comprising: A plurality of light source modules for generating incident light sources of different categories, and the incident light sources of different categories have different gas absorption coefficients corresponding to the same gas; An optical switch for receiving the incident light source and controlling the incident light source to output through a plurality of optical paths; A multi-optical path thread pool for receiving the incident light sources of a plurality of optical paths and outputting the outgoing light sources of the plurality of optical paths, and the optical paths corresponding to the light sources of the plurality of optical paths transmitted in the multi-optical path thread pool are different; A detector for detecting the outgoing light intensity information of the outgoing light source; And An algorithm module for executing the method according to any one of claims 1-5.

7. The device according to claim 6, further comprising: A reflecting mirror disposed in the multi-optical path thread pool for configuring different optical paths for the light sources of the plurality of optical paths; And An optical lens for converting the incident light source and / or the outgoing light source into parallel light.

8. The apparatus according to claim 6, wherein, The optical switch includes a 1×K optical switch, and the 1×K optical switch indicates that the optical switch includes one light source input port and K light source output ports, the K light source output ports correspond to K output optical paths, and the 1×K optical switch only supports one light source output port to output light at the same time, where K≥2.

9. The device according to claim 6, further comprising: An optical fiber disposed between the optical switch and the multi-optical path gas cell for transmitting the light source output by the optical switch to the multi-optical path gas cell via the optical fiber.

Citation Information

Patent Citations

  • Gas sensor with adjustable range, sensing system and sensing method

    CN104833645A

  • Gas sensor giving consideration to measuring range and resolution ratio and implementation method

    CN114136911A