Laser gas detection system with self-diagnosis function and gas real-time calibration method

By introducing self-diagnosis function and real-time calibration method into the laser gas detection system, the problems of low detection efficiency and inaccurate results caused by optical power attenuation and circuit aging of the traditional system are solved, achieving higher intelligence and accuracy, and meeting the needs of Meet customer demand for efficient detection.

CN115128023BActive Publication Date: 2024-08-27HENAN HANWEI ELECTRONICS

Patent Information

Application Number
CN202210620138.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-02
Publication Date
2024-08-27
Estimated Expiration
2042-06-02

AI Technical Summary

Technical Problem

After long-term use, traditional laser gas detection systems suffer from low detection efficiency and inaccurate results due to optical power attenuation, circuit aging and environmental effects. They are also unable to perform self-diagnosis and cannot meet customer needs.

Method used

A laser gas detection system with self-diagnosis function is designed, including a detection unit, a multi-channel amplification filter unit, a signal processing unit and a laser drive unit. The system self-diagnosis and real-time calibration are realized through the processor, DAC, ADC and analog switches. Capable of detecting address line shorts, opens, and crosstalk, and troubleshooting lasers, DACs, and ADCs.

Benefits of technology

It improves the intelligence and detection accuracy of the system, realizes self-diagnosis and real-time calibration of core components, reduces the probability of detection errors caused by faults, and improves the system's adaptability and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115128023B
    Figure CN115128023B
Patent Text Reader

Abstract

The present invention proposes a laser gas detection system with self-diagnosis function and a gas real-time calibration method. The laser gas detection system includes a detection unit, a multi-channel amplification and filtering unit, a signal processing unit, a zoom translation unit and a laser driving unit connected in series in sequence. The laser driving unit is connected to the detection unit; the detection unit realizes online laser gas detection real-time calibration, and the signal processing unit completes system self-diagnosis. The present invention solves the problems that the detection standard parameters of the traditional laser gas detection system are easily affected by device aging, the detection efficiency is low, the detection accuracy is greatly affected by temperature, and the damage of the core parts is not easy to be found. By using the address line as the control line, the system's self-detection ability of the core components is improved. At the same time, the present invention uses the online laser gas detection real-time calibration method to improve the monitoring efficiency of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of gas detection and self-diagnosis, and in particular to a laser gas detection system with a self-diagnosis function and a gas real-time calibration method. Background Art

[0002] In places such as coal mines or natural gas pipelines, the leakage of hazardous gases will directly threaten the personal and property safety of the surrounding people. Since the gas leakage area is a dangerous environment, the detection personnel cannot conduct close inspection and detection. Therefore, the laser gas detection system with multiple advantages such as zero cross interference, fast response speed, long-distance telemetry or fixed point online real-time detection has become an important device for detecting hazardous gas leaks. However, with the long-term use of the equipment, the laser will experience optical power attenuation, and the laser circuit is also prone to parameter changes due to the aging of resistors and capacitors. In addition, due to the large temperature difference between the north and the south, the output wavelength of the laser will also appear to be drifting. In the indoor environment, the temperature compensation algorithm of the laser will also fail to achieve the ideal effect due to the complex and harsh environment. In view of the measurement errors caused by the above phenomena, manufacturers generally require customers to send the equipment back to the original factory for offline recalibration, and then mail the adjusted laser to the customer. This processing method is not only time-consuming and labor-intensive, but also causes customer dissatisfaction and fails to meet customer needs in a timely manner.

[0003] With the development of intelligent and miniaturized laser gas detection equipment, the integration of laser gas detection systems is becoming increasingly higher. Due to long-term use of the equipment, the laser output light power attenuation or even damage occurs; the resistance and capacitance in the circuit change the circuit parameters due to aging; a certain I / O port or storage unit on the processor fails, a single address line is open, adjacent address lines are shorted, and crosstalk between address lines may cause various failure modes in the operation of the laser gas detection system, resulting in errors in the detection results. The self-diagnosis module can reduce the probability of detection errors caused by core component failures. Summary of the invention

[0004] In view of the technical problems that current laser gas detection equipment is greatly affected by the environment, cannot meet customer needs, and cannot perform self-diagnosis on core components, the present invention proposes a laser gas detection system with self-diagnosis function and a gas real-time calibration method, which solves the problems of low detection efficiency and inaccurate results of traditional laser gas detection systems and improves the intelligence level of laser gas detection systems.

[0005] In order to achieve the above-mentioned purpose, the technical solution of the present invention is implemented as follows: a laser gas detection system with a self-diagnosis function, characterized in that it includes a detection unit, a multi-channel amplification and filtering unit, a signal processing unit, a zoom and translation unit and a laser driving unit connected in series in sequence, and the laser driving unit is connected to the detection unit; the detection unit realizes online laser gas detection real-time calibration, and the signal processing unit and the detection unit complete system self-diagnosis.

[0006] The signal processing unit includes a processor, a DAC, an ADC and an analog switch, wherein the DAC, the ADC and the analog switch are all connected to the processor, the analog switch is connected to the ADC, the DAC is connected to the zoom and translation unit, the analog switch is connected to the multi-channel amplification and filtering unit, and the processor is connected to the display screen.

[0007] The A5 address line of the processor is connected to the CS address line of the DAC, the A7 address line of the processor is connected to the WR address line of the DAC, the DB0-DB15 address lines of the DAC and the DB0-DB15 address lines of the ADC are both connected to the D0-D15 address lines of the processor, the A6 address line of the processor is connected to the CS address line of the ADC, the A4 address line of the processor is connected to the RD address line of the ADC, the A3 address line of the processor is connected to the CONVST address line of the ADC, the CLKOUT address line of the processor is connected to the CLKIN address line of the ADC, the A1 address line of the processor is connected to the A0 address line of the analog switch, the A2 address line of the processor is connected to the A1 address line of the analog switch, the A6 address line of the processor is connected to the EN address line of the analog switch, and the analog switch is connected to the ADC via the D address line.

[0008] The detection unit includes a laser, a laser splitter, a standard gas storage unit, a reference detector and a main detector. The input end of the laser is connected to the laser driving unit, the output end of the laser is connected to the input end of the laser splitter, the laser emitted by the output port I of the laser splitter passes through the gas to be detected in the environment and is received by the main detector, and the output port I of the laser splitter is on the same horizontal line as the main detector; the laser emitted by the output port II of the laser splitter passes through the standard gas storage unit and is received by the reference detector, and the output port II of the laser splitter is on the same horizontal line as the reference detector; the main detector and the reference detector are both connected to the multi-channel amplification and filtering unit.

[0009] The method for implementing the system self-diagnosis is as follows: the processor completes the diagnosis of address line short circuit, open circuit and crosstalk between address lines, and uses the processor, DAC, ADC, analog switch and laser to complete the fault self-diagnosis of DAC, ADC, analog switch and laser.

[0010] The diagnosis of short circuit or open circuit utilizes the internal principle of the processor. It writes test data in the address line, and then reads back the address of the written test data and the adjacent address. Based on the readback, it is determined whether the address line of the processor is open or short-circuited. If there is a short circuit or open circuit, the system display will display a control line fault, prompting the device to return to the factory for repair. The diagnosis method for crosstalk between address lines is the time redundancy method, which uses the signal processing unit to repeatedly read the functional safety-related data. If different values ​​appear in the data read multiple times, it is considered that there is interference between the address lines. When interference is detected, the system display will display a control line fault, prompting the device to return to the factory for repair.

[0011] The SRAM address of the processor starts from 0X20000000;

[0012] Turn off the global interrupt of the processor, back up the content at address 0X20000000, write the test data 0x55 to address 0X20000000, and then read back whether the content at address 0X20000000 is equal to 0x55. If the address content at address 0X20000000 is not 0x55, the test result is abnormal, and take abnormal handling measures. If the address content at address 0X20000000 is 0x55, then address 0X20000000 is normal, the processor clears the test data at address 0X20000000, and inputs the test data to address lines A0-A15 in turn and reads back to detect whether there is an abnormality.

[0013] Test the A0 address line of the processor, back up the content at the A1 address, write the test data 0xAA to the A1 address, if the A0 address is disconnected, the test data 0xAA will be written to the 0x20000000 address, read back the content at the 0x20000000 address, if the content at the 0x20000000 address is 0xAA, it can be determined that the A0 address line is disconnected; if A0 and A1 are short-circuited, write the test data 0xAA to the A3 address, if the content at the A1, A2 or A3 address is read back and is 0xAA, it can be determined that A0 and A1 are short-circuited; after testing the A0 address line without any problem, restore the content at the A1 address, if the test is abnormal, take abnormal handling measures;

[0014] Test the A1 address line of the processor, back up the content at the A2 address, write the test data 0xAA to the A2 address, if the A1 address line is broken, write the test data 0xAA to the A0 address, read back the content at the A0 address, if the content at the A0 address is 0xAA, it can be determined that the A0 address line is broken; if A0 and A1 are short-circuited, write the test data 0xAA to the A3 address, read back the content at the A1, A2 or A3 address and it is 0xAA, it can be determined that A0 and A1 are short-circuited, if the A1 and A2 address lines are short-circuited, then the test data 0xAA will be written to the A6 address, if the content at the A2, A4 or A6 address is 0xAA, it can be determined that the A1 and A2 address lines are short-circuited; after the A1 address line test is normal, restore the content of the A2 address line, if the test is abnormal, take abnormal handling measures;

[0015] And so on, test the A2-A15 address lines respectively. After all the tests are completed, restore the content at the address 0x20000000.

[0016] Use the signal processing unit to diagnose ADC faults: control the analog switch to provide a fixed voltage value, and control the ADC to perform analog-to-digital conversion. The processor reads the converted data and inverts the collected voltage value, and compares whether the collected voltage value is the same as the fixed voltage value. If they are the same, the ADC is normal. If they are different, the ADC is faulty. The display prompts that the core component of the system, the ADC, is damaged, and prompts the device to return to the factory for repair.

[0017] Use the signal processing unit to diagnose DAC faults: The ADC inside the processor collects the laser drive waveform output by the DAC, and compares the data one-to-one with the laser drive waveform stored inside the processor. If the comparison results are exactly the same, the DAC is normal. If one or more data points are abnormal, the ADC is used to collect the laser drive waveform output by the DAC again, and then a one-to-one comparison is performed again. If the comparison result is still abnormal, the display screen will show that the core component DAC is damaged, and it is prompted to return to the factory for repair;

[0018] Laser fault diagnosis is performed using the signal processing unit and the detection unit: the processor controls the analog switch to be in the reference amplification and filtering circuit state, so that the ADC collects the photoelectric signal of the reference detector, and processes the photoelectric signal using a digital phase-locked amplification algorithm to calculate the first harmonic, second harmonic values ​​of the known concentration gas in the reference gas chamber, and the value corresponding to the position of the second harmonic maximum value; if the calculated first harmonic value is less than the preset optical power value, the laser output optical power is abnormal; if the position value corresponding to the second harmonic maximum value exceeds the preset range value, the laser output center wavelength is abnormal; when the laser output data is abnormal, the display screen will show that the laser component is damaged, prompting the device to be returned to the factory for repair.

[0019] The laser is used to irradiate the detection unit with the calibration gas and the gas to be detected in the environment, and the detection, analysis and comparison are performed, and the calibration coefficient of the detection unit is adjusted according to the comparison results.

[0020] The reference detector in the laser detection unit detects the standard gas in the standard gas storage unit, and the calibration coefficient K is stored according to the processor when it leaves the factory. m0 Inversely calculate the gas concentration Ⅰ of the calibration gas storage unit and compare it with the preset known gas concentration Ⅱ; if they are the same, the main detector will still use the calibration coefficient K stored at the factory. m0 Calculate the detected gas concentration. If they are different, divide the calculated gas concentration I by the preset known gas concentration II to set the compensation coefficient of the main photoelectric signal.

[0021] At the same time, the laser driving unit generates a laser driving signal, performs temperature and current modulation on the laser, and then processes the detection signal through a multi-channel amplifier and filter unit. The processor is used to filter and phase-lock amplify the collected detector signal in a time-sharing or simultaneous manner, and obtain the first harmonic and second harmonic. Then, according to the calibration coefficient K stored at the factory, m0 The concentration of the gas to be detected III is calculated by inversion; when the gas concentration I calculated by the standard gas storage unit is the same as the preset known gas concentration II, the display screen outputs the current concentration of the gas to be detected III; when the gas concentration I calculated by the standard gas storage unit is different from the preset known gas concentration II, the concentration of the gas to be detected III is multiplied by the compensation coefficient to obtain the concentration of the gas to be detected IV, and the concentration of the gas to be detected IV is output as the result through the display screen.

[0022] The present invention adopts the above structure, through the self-judgment method, uses the signal processing unit to monitor the core components of the system, monitors the address lines one by one, and determines whether the core components such as the processor are short-circuited or open-circuited, thereby reducing the probability of the system making misjudgments due to circuit components and improving the intelligence of the system. The time redundancy method is used to read the security-related data in the signal processing unit multiple times, and the data content is compared to determine whether there are differences between the multiple read data, so as to detect whether there is interference between the address lines, thereby improving the accuracy of the system detection. The detection unit is used to monitor and compare the standard gas with the gas in the environment, and the collected information is filtered and amplified by the multi-channel amplification and filtering unit, and then the signal is transmitted to the signal processing unit for analysis and detection. The laser gas detection real-time calibration method is used to determine whether the calibration coefficient of the main detector needs to be adjusted, thereby completing the real-time calibration of the detection unit, improving the system's adaptability to the environment, and further enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0024] Figure 1 It is a principle block diagram of the present invention.

[0025] Figure 2 It is the operating principle diagram of the present invention.

[0026] Figure 3 The self-diagnosis operation principle diagram of the signal processing unit of the present invention, wherein (a) is the operation principle diagram of the preliminary abnormality troubleshooting of the address line, (b) is the operation principle diagram of the abnormality handling measure of the A0 address line, and (c) is the operation principle diagram of the abnormality handling measure of the A1 address line.

[0027] Figure 4 This is a flow chart of the real-time calibration method for laser gas detection of the present invention.

[0028] In the figure, 1 is a laser, 2 is a laser splitter, 3 is a standard gas storage unit, 4 is a reference detector, 5 is a main detector, 6 is a multi-channel amplifier and filter unit, 7 is a laser drive unit, 8 is a zoom and translation unit, 9 is a signal processing unit, 10 is a processor, 11 is a DAC, 12 is an ADC, 13 is an analog switch, and 14 is a detection unit. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] Example 1

[0031] like Figure 1 As shown, the laser gas detection system with self-diagnosis function of the present invention includes a detection unit 14, a multi-channel amplification and filtering unit 6, a signal processing unit 9, a zoom and translation unit 8 and a laser driving unit 7 which are connected in series in sequence, and the laser driving unit is connected to the detection unit 14.

[0032] Among them, the detection unit 14 mainly uses laser to inspect and detect the standard gas and the gas to be detected. The multi-channel amplification and filtering unit 6 is a Butterworth bandpass filter amplifier circuit, one channel is a reference amplification and filtering circuit, and two channels are main amplification and filtering circuits. The reference amplification and filtering circuit and the main amplification and filtering circuit are both connected to the analog switch 13 of the signal processing unit 9. The main function of the signal processing unit 9 is to perform self-diagnosis operation on its own core components, determine whether the address line is open circuit, short circuit and damage, and control the laser gas detection system 14 to detect the gas in the environment and calibrate the calibration coefficient in real time. The signal unit processing unit 9 includes a processor 10, a DAC11, an ADC12 and an analog switch 13. The DAC11, the ADC12 and the analog switch 13 are all connected to the processor 10, the analog switch 13 is connected to the ADC12, the DAC11 is connected to the zoom and translation unit 8, and the analog switch 13 is connected to the multi-channel amplification and filtering unit 6. Specifically, the A5 address line of the processor 10 is connected to the CS address line of the DAC11, the A7 address line of the processor 10 is connected to the WR address line of the DAC11, the DB0-DB15 address lines of the DAC11 and the DB0-DB15 address lines of the ADC12 are both connected to the D0-D15 address lines of the processor 10, the A6 address line of the processor 10 is connected to the CS address line of the ADC12, the A4 address line of the processor 10 is connected to the RD address line of the ADC12, the A3 address line of the processor 10 is connected to the CONVST address line of the ADC12, the CLKOUT address line of the processor 10 is connected to the CLKIN address line of the ADC12, the A1 address line of the processor 10 is connected to the A0 address line of the analog switch 13, the A2 address line of the processor 10 is connected to the A1 address line of the analog switch 13, the A6 address line of the processor 10 is connected to the EN address line of the analog switch 13, and the analog switch 13 is connected to the ADC12 via the D address line. Among them, the A0 and A1 address lines of the processor 10 are used to select which of the four filtered and amplified signals to pass through, the A2 address line is the control pin for ADC conversion, a high level enables the ADC to perform analog-to-digital conversion, and a low level prohibits the ADC to perform analog-to-digital conversion, the A3 address line is the enable pin for the processor 10 to read the ADC conversion result, low voltage enables, high level prohibits, the A4 address line is the ADC chip select pin, low level selects the ADC, high level releases the ADC, the A5 address line is the DAC chip select pin, low level selects the DAC device, high level releases the DAC, the A6 address line is the enable pin of the analog switch, the A7 address line is the enable pin for the processor to write laser drive waveform data to the DAC, low level enables, high level prohibits, CLKOUT is used for the processor to output a clock signal to ADC12 through frequency division and frequency multiplication configuration, as a clock reference for ADC12 to perform analog-to-digital conversion, DB0-DB15 is a data bus, used to write or read data.Among them, the main function of the processor 10 is to analyze and calculate the system data and detect whether the calibration coefficient needs to be calibrated. The main function of DAC11 is to convert the digital signal output by the processor into an analog signal. The main function of ADC12 is to convert the input analog signal into a digital signal that can be processed and calculated by the processor 10; the analog switch 13 can use ADG704, and the switches S0 and S1 of the analog switch 13 are respectively connected to the main amplification and filtering circuit of the multi-channel amplification and filtering unit 6, and the switch S2 is connected to the reference amplification and filtering circuit of the multi-channel amplification and filtering unit 6. S3 is a fixed voltage value for the diagnosis of ADC12. The main function of the zoom translation unit 8 is to manually or automatically adjust the DC value and the amplitude of the sine wave modulation signal of the laser driving waveform output by DAC11 using a manual potentiometer or a digital potentiometer; the laser driving unit 7 is a microcontroller laser driving unit that controls the laser emitted by the detection unit 14. The laser driving unit 7 is a constant current source laser driving circuit constructed by an operational amplifier and a triode or a MOS tube.

[0033] The detection unit 14 includes a laser 1, a laser splitter 2, a standard gas storage unit 3, a reference detector 4 and a main detector 5. Among them, the laser 1 can be selected from DFB, ICL, QCL lasers, etc. The main function of the laser 1 is to emit laser according to the information transmitted by the laser driving unit 7, and the input end of the laser 1 is connected to the laser driving unit 7; the main function of the laser splitter 2 is to disperse the laser emitted by the laser 1 into two lasers, and the input end of the laser splitter 2 is connected to the output end of the laser 1; the laser passes through the gas to be detected in the space and is collected by the main detector 5, and analyzed according to the laser attenuation degree, and the output port I of the laser splitter 2 is on the same horizontal line as the main detector 5. The standard gas storage unit 3 is a component for detecting and storing standard gas. After passing through the standard gas storage unit 3, the laser is collected by the reference detector 4 and analyzed according to the laser attenuation degree. The laser emitted by the output port II of the laser splitter 2 passes through the standard gas storage unit 3 and is received by the reference detector 4, and the output port II of the laser splitter 2 is on the same horizontal line as the reference detector 4. The reference detector 4 and the main path detector 5 are both connected to the multi-path amplification and filtering unit 6 .

[0034] Specifically, Figure 2As shown, first, a laser parameter optimization and adjustment platform is built to determine the optimal driving waveform of laser 1, and the translation amount and zoom multiple of the zoom translation unit 8 are adjusted according to the selected laser 1 data manual to generate the optimal laser driving signal. Then, a high and low temperature test chamber and various concentration standard gases are built to calibrate the detection unit, store the calibration coefficient in the processor, and complete the system initialization. Before performing the gas detection in the space, the address line of the processor 10 is first short-circuited and open-circuited. If there is a fault, the control line fault is displayed on the system display, prompting the return to the factory for repair. The signal processing unit 9 is used to repeatedly read the functional safety-related data, and the time redundancy method is used to diagnose the crosstalk between the address lines. If different values ​​appear in the data read multiple times, it is considered that there is interference between the address lines. When interference is detected, the control line fault is displayed on the system display, prompting the return to the factory for repair.

[0035] After completing the detection of the processor 10, the signal processing unit 9 and the detection unit 14 are used to perform fault diagnosis on ADC12, DAC11, and laser 1. Specifically, the signal processing unit 9 is used to perform fault diagnosis on ADC12, control the analog switch 13 to provide a fixed voltage value, and control ADC12 to perform analog-to-digital conversion. The processor 10 reads the converted data and inverts the collected voltage value, and compares whether the collected voltage value is the same as the fixed voltage value. If they are the same, ADC10 is normal. If they are different, ADC12 is faulty, and the display screen prompts that the core component of the system ADC12 is damaged, and prompts to return to the factory for repair. The signal processing unit 9 is used to perform fault diagnosis of DAC11, and the ADC inside the processor 10 is used to collect the laser driving waveform output by DAC11, and a one-to-one data comparison is performed with the laser driving waveform stored inside the processor 10. If the comparison results are exactly the same, DAC11 is normal. If one or more data points are abnormal, ADC12 is used to collect the laser driving waveform output by DAC11 again, and then a one-to-one comparison is performed again. If the comparison result is still abnormal, the display screen will show that the core component DAC11 is damaged, and a factory repair prompt is given. The signal processing unit 9 and the detection unit 14 are used to diagnose the fault of the laser 1. The analog switch 13 is controlled by the processor 10 to be in the reference amplification and filtering circuit state, enabling the ADC12 to collect the photoelectric signal of the reference detector, and the photoelectric signal is processed by the digital phase-locked amplification algorithm to calculate the first harmonic, second harmonic value and the value corresponding to the position of the second harmonic maximum value of the known concentration gas in the reference gas chamber. If the calculated first harmonic value is less than the preset optical power value, the laser output optical power is abnormal. If the position value corresponding to the second harmonic maximum value exceeds the preset range value, the laser 1 output center wavelength is abnormal. When the laser output data is abnormal, it is displayed on the display screen that the laser 1 component is damaged, prompting the manufacturer to return for repair.

[0036] After completing the fault diagnosis of DAC11, ADC12 and the laser and confirming that the system hardware is normal, the DC quantity and the amplitude of the sinusoidal modulation signal of the laser driving waveform output by DAC11 are adjusted through the scaling and translation unit 8, and the laser 1 is driven by the laser driving unit 7 to emit the detection laser. After the detection laser enters the laser splitter 2, it is divided into multiple paths, one of which passes through the gas to be detected in the environment and then enters the main detector 5, and the other passes through the standard gas storage unit 3 and then enters the reference detector 4. Then the main detector 5 analyzes and detects the laser and obtains signal I, and the reference detector 4 analyzes and processes the incident laser and obtains signal II. After being processed by the multi-channel amplification and filtering unit 6, the signal I and the signal II enter the signal processing unit 9. The signal processing unit 9 first uses the phase-locked amplification algorithm to calculate 2f / 1f for the signal II, inversely calculates the concentration based on the calibration coefficient, and compares it with the known gas concentration to determine whether the main path needs to be calibrated online in real time. If calibration is required, it is calibrated. Then, the phase-locked amplification algorithm is used to calculate the signal I, and the concentration is calculated and output according to the calibration coefficient stored at the factory and the compensation system. If calibration is not required, the calculated concentration of the signal I is directly output, and an audible and visual alarm is issued when the concentration is greater than the alarm threshold.

[0037] Example 2

[0038] like Figure 3 As shown, a gas real-time calibration method of a laser gas detection system with a self-diagnosis function of the present invention writes test data in the address line, then reads back the address of the written data and the adjacent address, and judges whether the address line of the processor 10 is open or short-circuited according to the readback. The address of the SRAM of the processor 10 starts from the A0 address line.

[0039] Turn off the global interrupt of processor 10, back up the content at address A0, write test data 0x55 to address A0, and then read back whether the content at address A0 is equal to 0x55. If the address content at address A0 is not 0x55, the test result is abnormal, and take exception handling measures; if the address content at address A0 is 0x55, address A0 is normal, processor 10 clears the test data at address A0, and inputs test data to address lines A0-A15 in turn and reads back to detect whether there is an abnormality.

[0040] After the test result is abnormal, the A0 address line of the processor 10 is tested, the content at the A1 address is backed up, and the test data 0xAA is written to the A1 address. If the A0 address line is broken, the test data 0xAA will be written to the A0 address, and the content at the A0 address is read back. If the content at the A0 address is 0xAA, it can be determined that the A0 address line is broken; if A0 and A1 are short-circuited, the test data 0xAA will be written to the A3 address. If the content at the A1, A2 or A3 address is read back and is 0xAA, it can be determined that A0 and A1 are short-circuited. After testing the A0 address line and there is no problem, restore the content of the A1 address line. If the test is abnormal, take exception handling measures.

[0041] The A1 address line of the processor 10 is tested, the content at the A2 address is backed up, and the test data 0xAA is written to the A2 address. If the A1 address line is broken, the test data 0xAA will be written to the A0 address, and the content at the A0 address is read back. If the content at the A0 address is 0xAA, it can be determined that the A0 is broken. If A0 and A1 are short-circuited, the test data 0xAA will be written to the A3 address. If the content at the A1, A2 or A3 address is read back and is 0xAA, it can be determined that A0 and A1 are short-circuited; if A1 and A2 are short-circuited, the test data 0xAA will be written to the A6 address. If the content at the A2, A4 or A6 address is read back and is 0xAA, it can be determined that the A1 and A2 address lines are short-circuited. After the A1 address line test is normal, the content of the A2 address line is restored. If the test is abnormal, abnormal handling measures are taken;

[0042] And so on, test the address lines A2-A15 respectively. After all the tests are completed, restore the content at the A0 address.

[0043] The other structures and principles are the same as those in Example 1.

[0044] Example 3

[0045] like Figure 4 As shown, the real-time gas calibration method of the laser gas detection system with self-diagnosis function of the present invention uses laser to irradiate the detection unit 14 with the standard gas and the gas to be detected in the environment, and performs detection, analysis and comparison, and adjusts the calibration coefficient of the detection unit 14 according to the comparison result;

[0046] The specific implementation method is to detect the standard gas in the standard gas storage unit 3, according to the calibration coefficient K stored when the processor leaves the factory m0 The gas concentration I of the calibration gas storage unit 3 is calculated by inversion and compared with the preset known gas concentration II. If they are the same, the main detector 5 still uses the calibration coefficient K stored at the factory. m0 Calculate the detected gas concentration. If there is a difference, divide the calculated gas concentration I by the preset known concentration II to set the compensation coefficient of the main photoelectric signal.

[0047] At the same time, the laser driving unit 7 generates a laser driving signal, performs temperature and current modulation on the laser 1, and then processes the detection signal through the multi-channel amplification and filtering unit 6. The processor 10 is used to filter and phase-lock amplify the collected detector signal in a time-sharing or simultaneous manner, and obtain the first harmonic and the second harmonic. Then, according to the calibration coefficient K stored at the factory, m0 The concentration III of the gas to be detected is calculated by inversion. When the concentration I calculated by the standard gas storage unit 3 is the same as the preset known gas concentration II, the display screen outputs the current concentration III of the gas to be detected. When the concentration I calculated by the standard gas storage unit 3 is different from the preset known gas concentration II, the concentration III of the gas to be detected is multiplied by the compensation coefficient to obtain the concentration IV of the gas to be detected, and the concentration IV of the gas to be detected is output as the result through the display screen.

[0048] The other structures and principles are the same as those in Example 2.

[0049] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. Laser gas detection system with self-diagnosis function, characterized by: It comprises a detection unit (14), a multi-channel amplification and filtering unit (6), a signal processing unit (9), a zooming and translation unit (8) and a laser driving unit (7) which are connected in series in sequence, and the laser driving unit (7) is connected to the detection unit (14); The detection unit (14) realizes real-time calibration of online laser gas detection, and the signal processing unit (9) and the detection unit (14) complete system self-diagnosis; The signal processing unit (9) comprises a processor (10), a DAC (11), an ADC (12) and an analog switch (13); the DAC (11), the ADC (12) and the analog switch (13) are all connected to the processor (10); the analog switch (13) is connected to the ADC (12); the DAC (11) is connected to the zoom and translation unit (8); the analog switch (13) is connected to the multi-channel amplification and filtering unit (6); and the processor (10) is connected to the display screen; The diagnosis of short circuit or open circuit utilizes the internal principle of the processor (10), by writing test data in the address line, then reading back the address of the written test data and the adjacent address, and judging whether the address line of the processor (10) is open circuit or short circuit according to the read back. If there is a short circuit or open circuit, the system display screen displays a control line fault, prompting the user to return to the factory for repair; The method for diagnosing crosstalk between address lines is a time redundancy method, which uses a signal processing unit (9) to repeatedly read functional safety-related data. If different values ​​appear in the data read multiple times, it is considered that there is interference between the address lines. When interference is detected, a control line fault is displayed on the system display screen, prompting the user to return to the factory for repair. The processor (10) completes the diagnosis of address line short circuit, open circuit and crosstalk between address lines, and uses the processor (10), DAC (11), ADC (12), analog switch (13) and laser (1) to complete fault self-diagnosis of DAC (11), ADC (12), analog switch (13) and laser (1); The SRAM address of the processor (10) starts from 0X20000000; The global interrupt of the processor (10) is turned off, the content at the address 0X20000000 is backed up, and the test data 0x55 is written to the address 0X20000000, and then the content at the address 0X20000000 is read back to see whether it is equal to 0x55. If the address content at the address 0X20000000 is not 0x55, the test result is abnormal, and the abnormality handling measures are taken. If the address content at the address 0X20000000 is 0x55, the address 0X20000000 is normal, and the processor (10) clears the test data at the address 0X20000000, and sequentially inputs the test data to the address lines A0-A15 and reads back to detect whether there is an abnormality. The A0 address line of the processor (10) is tested, the content at the A1 address is backed up, and the test data 0xAA is written to the A1 address. If the A0 address is disconnected, the test data 0xAA is written to the 0x20000000 address, and the content at the 0x20000000 address is read back. If the content at the 0x20000000 address is 0xAA, it can be determined that the A0 address line is disconnected; if A0 and A1 are short-circuited, the test data 0xAA is written to the A3 address. If the content at the A1, A2 or A3 address is read back and is 0xAA, it can be determined that A0 and A1 are short-circuited; after testing the A0 address line without any problem, the content at the A1 address is restored. If the test is abnormal, an abnormality handling measure is taken; The A1 address line of the processor (10) is tested, the content at the A2 address is backed up, and the test data 0xAA is written to the A2 address. If the A1 address line is broken, the test data 0xAA is written to the A0 address, and the content at the A0 address is read back. If the content at the A0 address is 0xAA, it can be determined that the A0 address line is broken; if A0 and A1 are short-circuited, the test data 0xAA is written to the A3 address, and the content at the A1, A2 or A3 address is read back and all is 0xAA, it can be determined that A0 and A1 are short-circuited; if the A1 and A2 address lines are short-circuited, the test data 0xAA is written to the A6 address, and if the content at the A2, A4 or A6 address is read back and all is 0xAA, it can be determined that the A1 and A2 address lines are short-circuited; after the A1 address line test is normal, the content of the A2 address line is restored, and if the test is abnormal, abnormal handling measures are taken; And so on, test the A2-A15 address lines respectively. After all the tests are completed, restore the content at the address 0x20000000.

2. The laser gas detection system with self-diagnosis function according to claim 1, characterized in that: The A5 address line of the processor (10) is connected to the CS address line of the DAC (11), the A7 address line of the processor (10) is connected to the WR address line of the DAC (11), the DB0-DB15 address lines of the DAC (11) and the DB0-DB15 address lines of the ADC (12) are both connected to the D0-D15 address lines of the processor (10), the A6 address line of the processor (10) is connected to the CS address line of the ADC (12), the A4 address line of the processor (10) is connected to the RD address line of the ADC (12), and the processor The A3 address line of the processor (10) is connected to the CONVST address line of the ADC (12), the CLKOUT address line of the processor (10) is connected to the CLKIN address line of the ADC (12), the A1 address line of the processor (10) is connected to the A0 address line of the analog switch (13), the A2 address line of the processor (10) is connected to the A1 address line of the analog switch (13), the A6 address line of the processor (10) is connected to the EN address line of the analog switch (13), and the analog switch (13) is connected to the ADC (12) via the D address line.

3. The laser gas detection system with self-diagnosis function according to claim 1 or 2, characterized in that: The detection unit (14) comprises a laser (1), a laser splitter (2), a standard gas storage unit (3), a reference detector (4) and a main detector (5); the input end of the laser (1) is connected to a laser driving unit (7); the output end of the laser (1) is connected to an input end of the laser splitter (2); the laser emitted by an output port I of the laser splitter (2) passes through the gas to be detected in the environment and is received by the main detector (5); the output port I of the laser splitter (2) and the main detector (5) are on the same horizontal line; the laser emitted by an output port II of the laser splitter (2) passes through the standard gas storage unit (3) and is received by the reference detector (4); the output port II of the laser splitter (2) and the reference detector (4) are on the same horizontal line; the main detector (5) and the reference detector (4) are both connected to a multi-channel amplification and filtering unit (6).

4. The gas real-time calibration method of the laser gas detection system with self-diagnosis function according to claim 3 is characterized in that: Utilizing the signal processing unit (9) to perform ADC (12) fault diagnosis: controlling the analog switch (13) to provide a fixed voltage value, and controlling the ADC (12) to perform analog-to-digital conversion, the processor (10) reading the converted data and inverting the collected voltage value, and comparing whether the collected voltage value is the same as the fixed voltage value; if they are the same, the ADC (10) is normal; if they are different, the ADC (12) is faulty, and the display screen prompts that the core component of the system, the ADC (12), is damaged, and prompts the device to return to the factory for repair; DAC (11) fault diagnosis is performed using the signal processing unit (9): the ADC inside the processor (10) collects the laser driving waveform output by the DAC (11), and compares the data one-to-one with the laser driving waveform stored inside the processor (10). If the comparison results are exactly the same, the DAC (11) is normal. If one or more data points are abnormal, the ADC (12) is used to collect the laser driving waveform output by the DAC (11) again, and then a one-to-one comparison is performed again. If the comparison result is still abnormal, the display screen displays that the core component DAC (11) is damaged, and prompts the device to be returned to the factory for repair. The signal processing unit (9) and the detection unit (14) are used to diagnose the fault of the laser (1): the processor (10) controls the analog switch (13) to be in the reference amplification filter circuit state, so that the ADC (12) collects the photoelectric signal of the reference detector, and processes the photoelectric signal using a digital phase-locked amplification algorithm to calculate the first harmonic and second harmonic values ​​of the known concentration gas in the reference gas chamber and the value corresponding to the position of the second harmonic maximum value; if the calculated first harmonic value is less than the preset optical power value, the laser output optical power is abnormal; if the position value corresponding to the second harmonic maximum value exceeds the preset range value, the laser (1) output center wavelength is abnormal; when the laser output data is abnormal, it is displayed on the display screen that the laser (1) component is damaged, prompting the manufacturer to return the laser for repair.

5. The gas real-time calibration method of the laser gas detection system with self-diagnosis function according to claim 4 is characterized in that: Laser is used to irradiate the detection unit (14) with the calibration gas and the gas to be detected in the environment, and detection, analysis and comparison are performed, and the calibration coefficient of the detection unit (14) is adjusted according to the comparison result.

6. The real-time gas calibration method according to claim 4 or 5, characterized in that: The reference detector in the laser detection unit (14) detects the standard gas in the standard gas storage unit (3), and inversely calculates the gas concentration I of the standard gas storage unit (3) according to the calibration coefficient Km0 stored when the processor leaves the factory, and compares it with the preset known gas concentration II; If they are the same, the main detector (5) still calculates the detected gas concentration according to the calibration coefficient Km0 stored at the factory. If they are different, the calculated gas concentration I is divided by the preset known gas concentration II to set the compensation coefficient of the main photoelectric signal. At the same time, a laser driving signal is generated by a laser driving unit (7), and the temperature and current of the laser (1) are modulated. Subsequently, the detection signal is processed by a multi-channel amplification and filtering unit (6). The collected detector signal is filtered and phase-locked amplified by a processor (10) in a time-sharing or simultaneous manner to obtain the first harmonic and the second harmonic. Then, the concentration III of the gas to be measured is calculated by inversion based on the calibration coefficient Km0 stored at the factory. When the gas concentration I calculated by the standard gas storage unit (3) is the same as the preset known gas concentration II, the display screen outputs the current concentration III of the gas to be detected; When the gas concentration I calculated by the standard gas storage unit (3) is different from the preset known gas concentration II, the concentration III of the gas to be detected is multiplied by the compensation coefficient to obtain the concentration IV of the gas to be detected, and the concentration IV of the gas to be detected is output as the result through the display screen.

Citation Information

Patent Citations

  • Laser on-line testing and checking apparatus for rubber element outline

    CN1215151A

  • Method and appaatus for single-laser-sourceharmonic remote sensing gas detection

    CN1470863A

  • Lock-in amplifier with reference

    DE102019002024A1

  • Safety circuit for medical laser scalpel - detects parameters of test oscillation applied to all circuit components e.g. relay shutter, and power supply cut=off switch

    DE4127421A1

  • High integrity gas detector

    GB2412728A

Cited By

  • Laser detection signal gain adaptive control method and system

    CN120993801A