Gas detection method and system, intelligent terminal and storage medium

By adopting the design of open detection space and retractable connecting rod in the gas detector, combined with pulse signal processing and window amplification technology, the problem of insufficient accuracy in the existing technology is solved, and a higher accuracy gas concentration measurement is achieved , suitable for various gas environments.

CN118914135AInactive Publication Date: 2024-11-08NINGBO KESAIDI ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411078850.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-11-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing gas detectors are insufficient in long-range design, resulting in low measurement accuracy and only accurate to 2 decimal places, which is significantly insufficient to practical application requirements.

Method used

Adopt open detection space and retractable connecting rods to send target frequency light to the detection space through the light source generation device, calculate the gas concentration using the light intensity of the reflected light, and improve data accuracy through pulse signal processing and window amplification technology to adapt to Measure the flow and uneven distribution of gas.

Benefits of technology

It improves the accuracy of the gas detector, close to 3 decimal places, equivalent to accuracy to 10ppm, meeting higher accuracy requirements and is suitable for open and flowing gas environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118914135A_ABST
    Figure CN118914135A_ABST
Patent Text Reader

Abstract

The invention relates to a gas detection method and system, an intelligent terminal and a storage medium, and relates to the field of gas detection.The gas detection method comprises the steps that emergent light is sent to a detection space through a light source generation device, the detection space is an open space, the emergent light is target frequency, and the target frequency is the frequency needed for measuring concentration data of to-be-detected gas; the light source generating device receives reflected light reflected by a reflecting mirror in the detection space, the reflecting mirror and the light source generating device are oppositely arranged, the reflecting mirror is arranged on a bottom plate, and the bottom plate and the light source generating device are connected through a connecting rod; obtaining a detection signal according to the light intensity of the reflected light; extracting and amplifying a pulse in the detection signal to obtain a pulse signal; and converting the pulse signal into a digital signal to obtain the concentration data of the gas to be detected. The gas detector has the effect of improving the accuracy of the gas detector.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of gas detection, and in particular to a gas detection method, system, intelligent terminal and storage medium. Background Art

[0002] Gas detector is an instrument tool for detecting gas concentration. It has a wide range of uses in industrial production and is used in various types of factories.

[0003] Related technologies use an absorption cell to measure gas concentration. The absorption cell is a sealed cavity with an air inlet and an air outlet on it. It is small in size. The absorption cell is a sealed body with a long optical path. Light enters from one side of the absorption cell and is received on the other side. Since a single frequency of light will be absorbed by a specific gas, the degree of light attenuation absorption can reflect the concentration of the gas to be measured.

[0004] Regarding the above-mentioned related technologies, the inventors believe that the related technologies have some deficiencies in the design of long optical paths, resulting in the generally low measurement accuracy of gas detectors, which are accurate to 2 decimal places, which is equivalent to only accurate to 100ppm. This accuracy is significantly insufficient in actual application scenarios. Summary of the invention

[0005] In order to improve the accuracy of a gas detector, the present application provides a gas detection method, system, intelligent terminal and storage medium.

[0006] In a first aspect, the present application provides a gas detection method, which adopts the following technical solution: A gas detection method, comprising: The light source generating device sends outgoing light to the detection space, the detection space is an open space, and the outgoing light is a target frequency, which is a frequency required to measure the concentration data of the gas to be measured; Receiving reflected light reflected by a reflector in the detection space, the reflector and the light source generating device are arranged opposite to each other, the reflector is arranged on a bottom plate, and the bottom plate and the light source generating device are connected by a connecting rod; A detection signal is obtained according to the light intensity of the reflected light; Extracting and amplifying the pulse in the detection signal to obtain a pulse signal; The pulse signal is converted into a digital signal to obtain the concentration data of the gas to be measured.

[0007] By adopting the above technical solution, the gas to be tested in the open detection space can be detected, and the concentration data of the gas to be tested can be calculated according to the light intensity of the reflected light. The open detection space allows the gas detector to be directly placed in the space to be measured for measurement, and the gas detector does not need to inhale air from the outside, which can improve the accuracy of the gas detector.

[0008] Optionally, extracting pulses in the detection signal according to the target frequency to obtain an extracted signal; amplifying the amplitude of the extracted signal to obtain an amplified signal; An amplification operation is performed on the amplified signal located within the amplification window to obtain a pulse signal. The amplification window is used to select a voltage range for performing the amplification operation.

[0009] By adopting the above technical solution, pulses can be extracted and amplified, and window amplification can be performed to improve the accuracy of concentration data, thereby improving the accuracy of the gas detector.

[0010] Optionally, the step of amplifying the amplitude of the extracted signal to obtain an amplified signal is implemented by a pulse distribution circuit; and the step of amplifying the amplified signal located in the amplification window to obtain a pulse signal is implemented by a window-type amplification circuit.

[0011] By adopting the above technical solution, a pulse distribution circuit and a window amplification circuit can be used to improve the accuracy of concentration data and reduce the difficulty of operation.

[0012] Optionally, when the concentration data is less than the lower limit of the concentration data, the connecting rod is extended to increase the distance between the reflector and the light source generating device; During the process of extending the connecting rod, the concentration data is continuously recorded; Determining whether a first change rate of the concentration data is less than a preset change rate; If the first change rate is less than the preset change rate, updating the concentration data; If the first change rate is greater than the preset change rate, the step of extending the connecting rod is continued.

[0013] By adopting the above technical solution, the optical path of the gas detector is increased by extending the connecting rod, so that the light can be fully absorbed by the gas to be detected, thereby improving the accuracy of the gas detector.

[0014] Optionally, when the length of the connecting rod reaches a maximum value and the first change rate of the concentration data is greater than a preset change rate, the light source generating device is rotated so that the connecting rod and the reflector rotate along with the light source generating device; In the process of rotating the light source generating device, the concentration data is continuously recorded to obtain a concentration data set; Preprocessing the concentration data set to obtain a processed concentration data set; The mean of the concentration data set after weighted calculation is obtained to obtain the mean of the concentration data; Update the concentration data using the mean of the concentration data.

[0015] By adopting the above technical solution, when the gas concentration of the gas to be measured in the detection space is uneven, the gas concentration at different positions can be obtained, and the average gas concentration in a certain space can be obtained.

[0016] Optionally, obtain the maximum concentration data in the concentration data set; determining a target rotation angle of a light source generating device corresponding to the maximum concentration data; Rotate the light source generating device to a target rotation angle; Control the connecting rod to make telescopic movement, so that the bottom plate can make reciprocating movement; During the reciprocating motion of the bottom plate, detecting a second rate of change of the concentration data; When the second change rate is less than the stop change rate, the step of controlling the connecting rod to perform the telescopic movement is stopped; When the second change rate is greater than the stop change rate, the step of controlling the connecting rod to perform telescopic movement is continued.

[0017] By adopting the above technical solution, the connecting rod drives the bottom plate to perform reciprocating motion to promote the diffusion of the gas to be measured in the detection space, so as to promote the gas concentration of the gas to be measured in a certain space to become uniform.

[0018] Optionally, obtaining the gas flow rate and gas flow direction of the gas to be measured; Rotate the light source generating device according to the gas flow direction so that the connecting rod and the gas flow direction are perpendicular to each other; Calculate the target length according to the gas flow rate and the preset function, the target length refers to the length of the connecting rod; The connecting rod is extended and retracted to make the length of the connecting rod reach the target length.

[0019] By adopting the above technical solution, even if the gas to be measured is in a flowing state, the gas concentration can be obtained with high accuracy.

[0020] In a second aspect, the present application provides a gas detection system, which adopts the following technical solution: A gas detection system includes an acquisition module for acquiring reflected light, an amplification window, a lower limit of concentration data, a preset change rate, a stop change rate, a gas flow rate and a gas flow direction; A memory for storing a program of any of the above-mentioned gas detection methods; The program in the memory can be loaded and executed by the processor to implement any of the gas detection methods described above.

[0021] In a third aspect, the present application provides a smart terminal, which adopts the following technical solution: An intelligent terminal comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and execute any one of the above-mentioned gas detection methods.

[0022] In a fourth aspect, the present application provides a computer storage medium capable of storing corresponding programs, which is convenient for improving the accuracy of the gas detector, and adopts the following technical solution: A computer-readable storage medium stores a computer program that can be loaded by a processor and execute any of the above-mentioned gas detection methods.

[0023] In summary, the present application includes at least one of the following beneficial technical effects: 1. The gas to be tested in the open detection space can be detected, and the concentration data of the gas to be tested can be calculated based on the light intensity of the reflected light. The open detection space allows the gas detector to be placed directly in the space to be measured for measurement, without the need for the gas detector to inhale air from the outside, which can improve the accuracy of the gas detector; 2. Pulses can be extracted and amplified, as well as windowed amplification to improve the accuracy of concentration data, thereby improving the accuracy of the gas detector; 3. The optical path of the gas detector is increased by extending the connecting rod so that the light can be fully absorbed by the gas to be tested, thereby improving the accuracy of the gas detector. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a structural schematic diagram of a gas detector provided in an embodiment of the present application.

[0025] Figure 2 It is a flow chart of a gas detection method provided in an embodiment of the present application.

[0026] Figure 3 It is a flow chart of a gas detection method provided in an embodiment of the present application.

[0027] Figure 4 This is a pin diagram of a digital-to-analog converter provided in an embodiment of the present application.

[0028] Figure 5 This is an internal circuit diagram of a digital-to-analog converter provided in an embodiment of the present application.

[0029] Figure 6 This is a pin diagram of an analog-to-digital converter provided in an embodiment of the present application.

[0030] Figure 7 It is a flow chart of a gas detection method provided in an embodiment of the present application.

[0031] Figure 8It is a flow chart of a gas detection method provided in an embodiment of the present application.

[0032] Fig. 9 It is a flow chart of a gas detection method provided in an embodiment of the present application.

[0033] Fig.10 It is a flow chart of a gas detection method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solutions and advantages of this application more clear, the following Figure 1-10 It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0035] The present application embodiment discloses a gas detection system. Figure 1 The gas detection system includes: a reflector 11, a bottom plate 12, a connecting rod 13, a top plate 14 and a light source generating device (not shown in the figure). The reflector 11 is arranged on the bottom plate 12, the reflector 11 and the light source generating device are arranged opposite to each other, and the bottom plate 12 and the light source generating device are connected by a connecting rod 13.

[0036] The bottom plate 12, the connecting rod 13 and the top plate 14 together constitute a detection space, which is an open space. Compared with the closed absorption pool in the related art, the detection space of this embodiment is open, the gas to be detected can enter the detection space from any direction / angle, and the structure is simpler.

[0037] The light source generating device is used to generate outgoing light and receive reflected light. The outgoing light generated by the light source generating device is emitted through the through hole 15 on the top plate 14, and after the outgoing light is reflected by the reflector 11, it forms reflected light and is received by the light source generating device. Considering that the gas to be measured will absorb light of the target frequency and the intensity of light will be attenuated when the light propagates between the light source generating device and the reflector, the gas concentration can be calculated based on the intensity of the reflected light and the distance from the light source generating device to the reflector. Furthermore, the emission direction of the outgoing light is perpendicular to the reflector 11, so that the reflected light can be received by the light source generating device as much as possible.

[0038] In some embodiments, the connecting rod 13 is a retractable structure, that is, the length of the connecting rod 13 can be extended or shortened. After the length of the connecting rod 13 is changed, the length of the light source generating device to the reflector 11 is also changed accordingly.

[0039] In some embodiments, the light source generating device and the top plate 14 are rotatable structures. During the rotation of the light source generating device, the top plate 14 needs to rotate together, and the connecting rod 13 and the reflector 11 rotate together with the light source generating device, and the reflector 11 and the light source generating device are always arranged relative to each other. Exemplarily, a rotating assembly structure is provided on the top plate 14, so that the top plate 14 can achieve multi-angle rotation.

[0040] The present application embodiment discloses a gas detection method. Figure 1 , the gas detection method comprises: Step S201: sending outgoing light to the detection space through the light source generating device, the detection space is an open space, the outgoing light is a target frequency, and the target frequency is the frequency required to measure the concentration data of the gas to be measured.

[0041] The light source generating device is used to generate output light, and the output light can be a laser or a pulsed laser or a periodic pulsed laser. Gas molecules can interact with light of the target frequency, so light that can produce a significant effect on the gas to be measured is selected as the output light. Among them, the target frequency can also be expressed by wavelength, then the wavelength λ = c / f, c represents the speed of light, and f represents the target frequency. For example, carbon monoxide molecules have a specific absorption spectrum at a wavelength of 4.67 microns. Methane molecules have a specific absorption spectrum at a wavelength of 3.3 microns (3300 nanometers).

[0042] In the present application, the emitted light may include light of only one frequency or light of multiple frequencies. In other words, the target frequency may be one frequency or multiple frequencies.

[0043] The detection space is connected to the external space of the gas detector. For example, in a factory scenario, the gas detector can be set in a tank, and the detection space is connected to the internal space of the tank, so that the gas detector can detect the gas inside the tank. For another example, in a home scenario, the gas detector can be set in the kitchen, and the detection space is connected to the kitchen space, so that the gas detector can detect the gas in the kitchen space.

[0044] In some embodiments, a reflected light receiver is also provided on the light source generating device, and the reflected light receiver is used to receive reflected light.

[0045] Step S202: receiving reflected light reflected by a reflector in the detection space, the reflector and the light source generating device are arranged opposite to each other, the reflector is arranged on a bottom plate, and the bottom plate and the light source generating device are connected via a connecting rod.

[0046] In some embodiments, the outgoing light is incident vertically onto the reflector, so that the emitted light can return to the light source generating device along the trajectory of the outgoing light and be received by the reflected light receiver.

[0047] In some embodiments, the emitted light enters the reflector at a fixed angle with the reflector, so that the reflected light can be received by the reflected light receiver on the light source generating device.

[0048] Step S203: Obtain a detection signal according to the light intensity of the reflected light.

[0049] The detection signal is a voltage signal that changes with time.

[0050] In some embodiments, a photoresistor is provided in the reflected light receiver. The photoresistor is inversely proportional to the light intensity, that is, the resistance of the photoresistor decreases as the light intensity increases. Therefore, the detection signal can be the output voltage of the reflected light receiver, and the output voltage of the reflected light receiver increases as the light intensity of the reflected light increases. In another embodiment, the output voltage of the reflected light receiver decreases as the light intensity of the reflected light increases.

[0051] Step S204: extract and amplify the pulse in the detection signal to obtain a pulse signal.

[0052] Since the gas to be measured absorbs the light of the target frequency, the intensity of the reflected light will decrease.

[0053] In some embodiments, a pulse signal is obtained by extracting and amplifying the pulse in the detection signal through a DAC (Digital-to-Analog Converter).

[0054] In some embodiments, only the useful pulse amplitude part is amplified as needed, and the pulse is amplified by window amplification to obtain a pulse signal, which can make the pulse signal provide higher accuracy. The embodiment of the present application discloses a gas detection method. Figure 3 , the gas detection method comprises: Optionally, the detection signal is a differential signal.

[0055] Step S301: extracting pulses in the detection signal according to the target frequency to obtain an extracted signal.

[0056] In some embodiments, the step of extracting pulses from the detection signal according to the target frequency to obtain the extracted signal is implemented by a pulse distribution circuit. Further, the pulse distribution circuit is arranged in a digital-to-analog converter.

[0057] In some embodiments, a screening window is set according to a target frequency; pulses in the detection signal are extracted through the screening window. The frequency within the screening window includes the target frequency, and the width of the screening window is positively correlated with the target frequency.

[0058] Step S302: amplify the amplitude of the extracted signal to obtain an amplified signal.

[0059] In some embodiments, the step of amplifying the amplitude of the extracted signal to obtain the amplified signal is implemented by a pulse distribution circuit. Further, the amplitude of the extracted signal is amplified by an amplifying element to obtain the amplified signal. The amplifying element may be an operational amplifier.

[0060] In some embodiments, the amplification factor of the extracted signal is negatively correlated with the amplitude of the extracted signal, that is, the smaller the amplitude of the extracted signal, the greater the amplification factor of the extracted signal. In some other embodiments, the amplitude of the extracted signal is amplified so that the amplitude of the amplified signal reaches a preset amplitude.

[0061] Step S303: performing an amplification operation on the amplified signal within the amplification window to obtain a pulse signal. The amplification window is used to select a voltage range for performing the amplification operation.

[0062] In some embodiments, the step of amplifying the amplified signal in the amplification window to obtain the pulse signal is implemented by a window-type amplification circuit. Further, the window-type amplification circuit is arranged in a digital-to-analog converter.

[0063] In this embodiment, the digital-to-analog converter needs to use the EN port, SDA port, SCL port and RD port, among which the EM port is an enable port used to control the enable or enable state of the digital-to-analog converter; the SDA port is a serial data port, a bidirectional transmission line for serial data transmission; the SCL port is a serial clock port, used to transmit a clock signal; and the RD port is a read port, used to indicate a read operation on the data bus.

[0064] For example, please refer to Figure 4 , Figure 4 The pin diagram of a digital-to-analog converter provided in this embodiment is shown. The EN port is the FSIN port, the SDA port is the SDIN port, the SCL port is the CLKIN port, and the RD port is the VOUT port (in Figure 4 The VOUT port uses the VAOUT port, VCOUT port and VDOUT port). The FSIN port is connected to the S_EN signal, which is an enable signal; the SDIN port is connected to the S_SDA signal, which is a data signal and a detection signal; the CLKIN port is connected to the S_SCL signal, which is a clock signal; the VOUT port outputs the DAC_OUT signal, which is a pulse signal.

[0065] For example, please refer to Figure 4, the data converter will also use the AGND port, DGND port, AVDD port, CLR port and DVDD port. Among them, the AGND port and DGND port are grounding ports, and the AGND port and DGND port are directly grounded; the AVDD port and DVDD port are power supply ports, and the AVDD port and DVDD port are externally connected to a +5V voltage, and the AVDD port is also grounded through C1; the CLR port is a clear port, and the CLR port is grounded through C2.

[0066] In some embodiments, please refer to Figure 5 , Figure 5 It is an internal circuit diagram of a digital-to-analog converter provided in an embodiment of the present application. Among them, the positive phase input terminal of U1 is electrically connected to the DH_IN port, the negative phase input terminal is electrically connected to the output terminal of U1, and the DH_IN port is externally connected to the positive signal of the detection signal, so U1 plays the role of amplifying the positive signal of the detection signal. The positive phase input terminal of U2 is electrically connected to the DL_IN port, the negative phase input terminal is electrically connected to the output terminal of U2, and the DL_IN port is externally connected to the negative signal of the detection signal, so U2 plays the role of amplifying the negative signal of the detection signal. The positive phase input terminal of U3 is electrically connected to the output terminal of U1, and the negative phase input terminal is electrically connected to the output terminal of U2. U3 can convert the detection signal from a differential signal to a single-ended signal, and U3 also has an amplification effect. The positive phase input terminal of U4 is electrically connected to the output terminal of U3, and the negative phase input terminal is electrically connected to the output terminal of the PLHIGH port. The PL HIGH port is externally connected to a high level signal, and the negative phase input terminal of U4 is also electrically connected to the output terminal of U4. Therefore, U4 plays a role of window amplification, and the value of the high level signal externally connected to the PL HIGH port can be adjusted according to the amplification window.

[0067] In some embodiments, a resistor may be provided between the negative phase input terminal and the output terminal of U1; and a resistor may be provided between the negative phase input terminal and the output terminal of U2.

[0068] In some embodiments, an integration circuit is also provided inside the digital-to-analog converter to improve the stability of the digital-to-analog converter. Figure 5 , C10 and R7 are connected in series to form an integrating circuit.

[0069] Step S205: convert the pulse signal into a digital signal to obtain the concentration data of the gas to be measured.

[0070] In some embodiments, the pulse signal is converted into a digital signal through an ADC (Analog-to-Digital Converter) to obtain the concentration data of the gas to be measured.

[0071] For example, please refer to Figure 6 , Figure 6 A pin diagram of an analog-to-digital converter provided in this embodiment is shown. The N1 port, the N2 port and the N3 port are externally connected to the PL HIGH signal, and the PL HIGH signal refers to a high-level signal. The N0 port is externally connected to the PWM DET signal, and the PWM DET signal is a pulse modulation detection signal. The RD port outputs the RD signal, and the RD signal is a digital signal. The ND port and the DR port are grounded. The DD port is externally connected to a +5V power supply, and the DD port is also grounded through C3. The DA port is externally connected to the S_SDA signal, and the S_SDA signal is a pulse signal. The DL port is externally connected to the S_SCL signal, and the S_SCL signal is a clock signal.

[0072] Please refer to Figure 4 , Figure 5 and Figure 6 , the parameters of each electrical component are as follows: R1: 100kΩ, R2: 100kΩ, R3: 1kΩ, R4: 100kΩ, R5: 1kΩ, R6: 1MΩ, R7: 100kΩ, R8: 1MΩ, R9: 1MΩ, R10: 1MΩ, R11: 2kΩ. C1: 100nF; C2: 100nF; C3: 100nF; C4: 330nF, C5: 330nF, C6: 10nF, C7: 10nF, C8: 10nF, C9: 10nF, C10: 100nF, C11: 100nF. Among them, C8 is a decoupling capacitor. U1, U2, U3, and U4 are amplifiers.

[0073] In this application, the gas concentration and the voltage of the digital signal satisfy the following table: Table 1 Correspondence between gas concentration and voltage of digital signal Therefore, the present application can make the accuracy of the gas detector close to 3 decimal places, which is equivalent to an accuracy of 10ppm, thereby greatly improving the accuracy of the gas detector.

[0074] In summary, the above technical solution can detect the gas to be tested in an open detection space and calculate the concentration data of the gas to be tested based on the light intensity of the reflected light. The open detection space allows the gas detector to be placed directly in the space to be measured for measurement, without the need for the gas detector to inhale air from the outside, which can improve the accuracy of the gas detector.

[0075] In the following embodiments, since the detection accuracy of the gas detector is related to the optical path, the longer the optical path, the more fully the gas to be detected can be absorbed by the light of the target frequency. Therefore, in the present application, the distance from the light source generating device to the reflector can be adjusted to adjust the optical path of the gas detector. The present application embodiment discloses a gas detection method. Reference Figure 7 , the gas detection method comprises: Step S701: when the concentration data is less than the lower limit of the concentration data, the connecting rod is extended to increase the distance between the reflector and the light source generating device.

[0076] The data concentration lower limit is a preset concentration data. Optionally, the data concentration lower limit can be adjusted based on actual needs. In some embodiments, the data concentration lower limit is related to the distance from the light source generating device to the reflector in the gas detector.

[0077] Furthermore, the distance from the light source generating device to the reflector is related to the length of the connecting rod. Exemplarily, if the length of the connecting rod is x, then the distance from the light source generating device to the reflector is y=x+b, where b is a constant.

[0078] In some embodiments, the connecting rod is retractable and includes a sleeve and an inner rod. The length of the connecting rod can be adjusted by adjusting the length of the inner rod protruding from the sleeve.

[0079] In some embodiments, one end of the connecting rod passes through the top plate, a first side of the top plate is provided with a reflector, and the second side is a side opposite to the first side. The length of the connecting rod can be adjusted by adjusting the length of the connecting rod exposed on the first side.

[0080] Further, a motor is provided on the connecting rod. In some embodiments, the motor can control the length of the inner rod exposed from the sleeve. In some embodiments, the motor can control the length of the connecting rod exposed from the first side.

[0081] Step S702: During the process of extending the connecting rod, the concentration data is continuously recorded.

[0082] As the distance from the light source generating device to the reflector changes, the light can be more fully absorbed by the gas to be measured, and the accuracy of the concentration data will be improved accordingly. Therefore, during the process of extending the connecting rod, the concentration data can be continuously recorded to determine the change of the concentration data.

[0083] Step S703: determining whether the first change rate of the concentration data is less than a preset change rate.

[0084] In some embodiments, the preset change rate is a fixed value, and relevant technicians can adjust it according to actual needs.

[0085] In some embodiments, the preset change rate is positively correlated with the concentration data. For example, when the concentration data is 2000 ppm, the preset change rate is 5%; when the concentration data is 100 ppm, the preset change rate is 1%.

[0086] Step S704: If the first change rate is less than the preset change rate, the concentration data is updated.

[0087] If the first change rate is greater than the preset change rate, it means that the concentration data has not changed significantly and the accuracy of the gas detector has met the requirements.

[0088] Exemplarily, when the first change rate is less than a preset change rate, corresponding first concentration data is acquired; and the concentration data is updated using the first concentration data.

[0089] Step S705: If the first change rate is greater than the preset change rate, continue to execute the step of extending the connecting rod.

[0090] If the first change rate is greater than the preset change rate, it means that the concentration data is still changing significantly, the gas detector is not accurate enough, and the length of the connecting rod needs to be further extended.

[0091] In other embodiments of the present application, the gas to be tested in a certain space may be unevenly distributed, causing errors in the gas concentration measured by the gas detector, thereby reducing the accuracy of the gas detector. Therefore, in this embodiment, the light source generating device can also be rotated, and the connecting rod and the reflector can be driven to rotate with the light source generating device, so that the detection space will also rotate, thereby changing the detection object of the gas detector. The embodiment of the present application discloses a gas detection method. Reference Figure 8 , the gas detection method comprises: Step S801: when the length of the connecting rod reaches a maximum value and the first change rate of the concentration data is greater than a preset change rate, the light source generating device is rotated so that the connecting rod and the reflector rotate along with the light source generating device.

[0092] In some embodiments, when the length of the connecting rod reaches a maximum value and the first change rate of the concentration data is greater than a preset change rate, it indicates that the distribution of the gas to be detected in the detection space is not uniform enough.

[0093] Step S802: During the process of rotating the light source generating device, the concentration data is continuously recorded to obtain a concentration data set.

[0094] Since the connecting rod and the reflector rotate with the light source generating device, the detection area of ​​the gas detector also changes accordingly, so the gas detector will detect the concentration of the gas to be tested in different areas. Therefore, during the rotation of the light source generating device, it is necessary to continuously record the concentration data to determine the change of the concentration data of the gas to be tested in different areas.

[0095] In some embodiments, the light source generating device can rotate according to a preset trajectory.

[0096] In some embodiments, each time the light source generating device rotates through a preset angle, the concentration data is recorded once and the concentration data is written into a concentration data set.

[0097] In some embodiments, during the rotation of the light source generating device, if it is detected that the concentration data has not changed within a preset number of times, the rotation direction of the light source generating device is changed. Exemplarily, if it is detected that the concentration data has not changed within a preset number of times, the original rotation direction of the light source generating device is set as the first direction. In the plane coordinate system, with the first direction as a reference, a random angle is rotated counterclockwise to obtain a second direction, and the random angle is greater than 0 degrees and less than 360 degrees; the light source generating device is controlled to rotate in the second direction.

[0098] In some embodiments, the light source generating device is made to perform circular motion, and the concentration data is continuously recorded to obtain a concentration data set. In the concentration data set, the maximum value and the minimum value of the concentration data are determined, and the first light source orientation corresponding to the maximum value of the concentration data and the second light source orientation corresponding to the minimum value of the concentration data are obtained; the rotation trajectory from the first light source orientation to the second light source orientation is calculated; and the light source generating device is controlled to rotate on the straight line where the rotation trajectory is located. Therefore, when the distribution of the gas to be measured in a certain space is uneven, the light source generating device can be made to perform circular motion to determine in which direction the gas to be measured is dense or sparse, so that the light source generating device can be rotated between the gas-dense area and the gas-sparse area to measure the concentration data of the two areas.

[0099] Step S803: pre-processing the concentration data set to obtain a processed concentration data set.

[0100] In some embodiments, preprocessing includes but is not limited to at least one of removing maximum values, removing minimum values, removing outliers, and removing duplicate data.

[0101] Step S804: weighted calculation of the mean of the concentration data set to obtain the concentration data mean.

[0102] In some embodiments, the mean of the processed concentration data set is calculated; a weight value is calculated based on the difference between the mean and each concentration data in the processed concentration data set; and the processed concentration data set is calculated based on the weight value to obtain the concentration data mean.

[0103] Step S805: Use the mean value of the concentration data to update the concentration data.

[0104] Since the distribution of the gas to be measured in the first region is not uniform, the concentration data mean is used to update the concentration data.

[0105] In other embodiments of the present application, for the maximum concentration data in the concentration data set, the detection area corresponding to the maximum concentration data is a dense area of ​​the gas to be detected. In order to ensure the accuracy of the detection result of the gas detector, it is necessary to diffuse the gas to be detected in the dense area to other areas to ensure that the gas to be detected can be evenly distributed. The embodiment of the present application discloses a gas detection method. Reference Fig. 9 , the gas detection method comprises: Step S901: Acquire the maximum concentration data in the concentration data set.

[0106] The maximum concentration data is the maximum value in the concentration data set. In some embodiments, the concentration data set needs to be preprocessed, and the preprocessing may include an operation of removing the maximum value, so the maximum concentration data may also be the second largest value in the concentration data set.

[0107] Step S902: Determine a target rotation angle of the light source generating device corresponding to the maximum concentration data.

[0108] In some embodiments, the target rotation angle is the rotation angle of the light source generating device when the detection result of the gas detector is maximum concentration data.

[0109] The rotation angle of the light source generating device is fixed by a vertical line perpendicular to the reflector.

[0110] Step S903: rotating the light source generating device to a target rotation angle.

[0111] In some embodiments, the light source generating device is rotated according to a target rotation angle.

[0112] Step S904: Control the connecting rod to perform telescopic motion, so that the bottom plate performs reciprocating motion.

[0113] Since the bottom plate is connected to the connecting rod and the light source generating device is fixed, when the connecting rod seat moves in a telescopic manner, the bottom plate will move together with the connecting rod and exhibit a reciprocating motion.

[0114] In some embodiments, the connecting rod includes a sleeve and an inner rod, and the length of the inner rod protruding from the sleeve is controlled to allow the connecting rod to perform telescopic movement.

[0115] In some embodiments, one end of the connecting rod passes through the top plate, a reflector is disposed on a first side of the top plate, and the second side is a side opposite to the first side. The length of the connecting rod exposed on the first side is controlled to allow the connecting rod to perform telescopic movement.

[0116] Step S905: Detecting a second change rate of the concentration data during the reciprocating motion of the bottom plate.

[0117] When the bottom plate makes reciprocating motion, the motion of the bottom plate will cause the gas in the space to flow, thereby causing the gas to be measured to diffuse.

[0118] In some embodiments, the gas detector detects the concentration of the gas to be detected once every preset time, and calculates the second change rate of the concentration data based on the concentration data obtained this time and the concentration data obtained in the previous measurement.

[0119] In some embodiments, the concentration of the gas to be measured is detected once each time the bottom plate makes a preset number of reciprocating motions.

[0120] Step S906: When the second change rate is less than the stop change rate, stop executing the step of controlling the connecting rod to perform telescopic movement.

[0121] When the second change rate is less than the stop change rate, it indicates that the concentration of the gas to be measured in a certain area has tended to be uniform, and there is no need to continue controlling the connecting rod to perform telescopic movement.

[0122] In some embodiments, the stop change rate is a fixed value, and relevant technicians can adjust it according to actual needs.

[0123] In some embodiments, the preset change rate is positively correlated with the concentration data.

[0124] Step S907: When the second change rate is greater than the stop change rate, continue to execute the step of controlling the connecting rod to perform telescopic movement.

[0125] When the second change rate is greater than the stop change rate, it indicates that the gas to be measured in a certain area is not yet uniform, and the connecting rod still needs to be controlled to perform telescopic movement.

[0126] In summary, by adopting the above technical solution, the optical path of the gas detector can be increased by extending the connecting rod, so that the light can be fully absorbed by the gas to be detected, thereby improving the accuracy of the gas detector. Moreover, when the gas concentration of the gas to be detected in the detection space is uneven, the gas concentration at different positions can be obtained, and the average gas concentration in a certain space can be obtained. In addition, the bottom plate is driven to reciprocate by the connecting rod to promote the diffusion of the gas to be detected in the detection space, so as to promote the gas concentration of the gas to be detected in a certain space to become uniform.

[0127] In the following embodiments, compared with the related art, the detection space of the gas detector of the present application adopts an open space design, and does not require the outside to send gas into the gas detector. Therefore, the solution of the present application can be applied in the scenario of measuring flowing gas, so that the gas detector can directly measure the concentration of flowing gas. The embodiment of the present application discloses a gas detection method. Reference Fig.10 , the gas detection method comprises: Step S1001: Obtain the gas flow rate and gas flow direction of the gas to be measured.

[0128] In some embodiments, the gas detector is connected to a flow meter, which is used to obtain the gas flow rate and gas flow direction of the gas to be tested. The flow meter can send the gas flow rate and gas flow direction to the gas detector.

[0129] In some embodiments, the gas detector is connected to a gas flow meter, which is used to obtain the gas flow rate and gas flow direction of the gas to be tested. The gas flow meter can send the gas flow rate and gas flow direction to the gas detector.

[0130] Step S1002: Rotate the light source generating device according to the gas flow direction so that the connecting rod and the gas flow direction are perpendicular to each other.

[0131] When the connecting rod is perpendicular to the gas flow direction, the gas distribution inside the detection area can be as uniform as possible, making the concentration data of the gas detector as accurate as possible.

[0132] Step S1003: Calculate the target length according to the gas flow rate and a preset function, where the target length refers to the length of the connecting rod.

[0133] The preset function is used to represent the mapping relationship between the gas flow rate and the target length. For example, the gas flow rate is substituted into the preset function to obtain the target length. In some embodiments, the preset function is a linear function.

[0134] In some other embodiments, the target length can also be calculated by a length prediction model. For example, the length prediction model is called to process the gas flow rate data to obtain the target length. Optionally, the length prediction model is any one of a convolutional neural network, a recurrent neural network, a long short-term memory neural network, and a hybrid neural network.

[0135] Step S1004: Extending the connecting rod to make the length of the connecting rod reach the target length.

[0136] In some embodiments, the connecting rod is retractable and includes a sleeve and an inner rod. The length of the connecting rod can be adjusted by adjusting the length of the inner rod protruding from the sleeve.

[0137] In some embodiments, one end of the connecting rod passes through the top plate, a first side of the top plate is provided with a reflector, and the second side is a side opposite to the first side. The length of the connecting rod can be adjusted by adjusting the length of the connecting rod exposed on the first side.

[0138] In summary, by adopting the above technical solution, even if the gas to be measured is in a flowing state, the gas concentration can be obtained with high accuracy.

[0139] Based on the same inventive concept, an embodiment of the present application provides a gas detection system, including: An acquisition module is used to acquire reflected light, amplification window, lower limit of concentration data, preset change rate, stop change rate, gas flow rate and gas flow direction; A memory for storing a program of any of the above-mentioned gas detection methods; The program in the memory can be loaded and executed by the processor to implement any of the gas detection methods described above.

[0140] In summary, the above technical solution can detect the gas to be tested in an open detection space and calculate the concentration data of the gas to be tested based on the light intensity of the reflected light. The open detection space allows the gas detector to be placed directly in the space to be measured for measurement, without the need for the gas detector to inhale air from the outside, which can improve the accuracy of the gas detector.

[0141] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0142] An embodiment of the present application provides a computer-readable storage medium storing a computer program that can be loaded by a processor and execute a gas detection method.

[0143] Computer storage media include, for example, various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

[0144] Based on the same inventive concept, an embodiment of the present application provides an intelligent terminal, including a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute a gas detection method.

[0145] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0146] The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.

Claims

1. A gas detection method, characterized in that: The method comprises: Sending outgoing light to the detection space through a light source generating device, the detection space is an open space, the outgoing light is a target frequency, and the target frequency is a frequency required to measure the concentration data of the gas to be measured; Receiving reflected light reflected by a reflector in the detection space, wherein the reflector is arranged opposite to the light source generating device, the reflector is arranged on a bottom plate, and the bottom plate and the light source generating device are connected via a connecting rod; Obtaining a detection signal according to the light intensity of the reflected light; Extracting and amplifying the pulse in the detection signal to obtain a pulse signal; The pulse signal is converted into a digital signal to obtain the concentration data of the gas to be measured.

2. The gas detection method according to claim 1, characterized in that: The step of extracting and amplifying the pulse in the detection signal to obtain the pulse signal comprises: Extracting pulses in the detection signal according to the target frequency to obtain an extracted signal; amplifying the amplitude of the extracted signal to obtain an amplified signal; An amplification operation is performed on the amplified signal within an amplification window to obtain the pulse signal, and the amplification window is used to select a voltage range for performing the amplification operation.

3. The gas detection method according to claim 2, characterized in that: The step of amplifying the amplitude of the extracted signal to obtain the amplified signal is implemented by a pulse distribution circuit; the step of amplifying the amplified signal located in the amplification window to obtain the pulse signal is implemented by a window-type amplification circuit.

4. The gas detection method according to claim 1, characterized in that: The method further comprises: When the concentration data is less than a lower limit of the concentration data, extending the connecting rod to increase the distance between the reflector and the light source generating device; During the process of extending the connecting rod, continuously recording the concentration data; Determining whether a first change rate of the concentration data is less than a preset change rate; If the first change rate is less than the preset change rate, updating the concentration data; If the first change rate is greater than the preset change rate, the step of extending the connecting rod is continued.

5. The gas detection method according to claim 4, characterized in that: The method further comprises: When the length of the connecting rod reaches a maximum value and the first change rate of the concentration data is greater than the preset change rate, rotating the light source generating device so that the connecting rod and the reflector rotate along with the light source generating device; During the process of rotating the light source generating device, continuously recording the concentration data to obtain a concentration data set; Preprocessing the concentration data set to obtain a processed concentration data set; Weighted calculation of the mean of the processed concentration data set to obtain a concentration data mean; The concentration data is updated using the concentration data mean.

6. The gas detection method according to claim 5, characterized in that: The method further comprises: Acquire the maximum concentration data in the concentration data set; determining a target rotation angle of the light source generating device corresponding to the maximum concentration data; Rotating the light source generating device to the target rotation angle; Controlling the connecting rod to perform telescopic motion so that the bottom plate performs reciprocating motion; During the reciprocating motion of the bottom plate, detecting a second change rate of the concentration data; When the second change rate is less than the stop change rate, stopping the step of controlling the connecting rod to perform telescopic movement; When the second change rate is greater than the stop change rate, the step of controlling the connecting rod to perform telescopic movement is continued.

7. The gas detection method according to claim 1, characterized in that: The method further comprises: Obtaining the gas flow rate and gas flow direction of the gas to be measured; Rotate the light source generating device according to the gas flow direction so that the connecting rod and the gas flow direction are perpendicular to each other; Calculating a target length according to the gas flow rate and a preset function, wherein the target length refers to the length of the connecting rod; The connecting rod is extended and retracted so that the length of the connecting rod reaches the target length.

8. A gas detection system, characterized in that: The system comprises: An acquisition module is used to acquire reflected light, amplification window, lower limit of concentration data, preset change rate, stop change rate, gas flow rate and gas flow direction; A memory for storing a program of the gas detection method according to any one of claims 1 to 7; The program in the memory can be loaded and executed by the processor to implement the gas detection method according to any one of claims 1 to 7.

9. An intelligent terminal, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and executes any one of the methods of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute the method according to any one of claims 1 to 7.