Gas pipeline fault automatic separation circuit based on bus communication
The automatic fault isolation circuit for gas pipelines via bus communication utilizes a sensor array and MCU circuit to achieve rapid and automatic fault isolation of gas pipelines. This solves the problems of low maintenance efficiency and slow emergency response in existing technologies, and achieves fast and efficient fault isolation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-19
- Publication Date
- 2026-03-31
AI Technical Summary
Existing gas pipelines are prone to failure, have low maintenance efficiency, cannot achieve automatic fault isolation, and traditional manual inspections have blind spots and long response times, making it difficult to meet the needs of rapid emergency response.
An automatic fault isolation circuit for gas pipelines based on bus communication is adopted. Signals are collected by an array of gas leak, temperature and pressure sensors. A comparator and MCU circuit are used to compare thresholds and trigger the automatic control of the solenoid valve to achieve rapid fault isolation.
It enables rapid, efficient, and automatic isolation of gas pipeline faults, reducing losses, avoiding problems such as accidental switching and complex wiring, and improving emergency response capabilities.
Smart Images

Figure CN224065277U_ABST
Abstract
Description
Technical Field
[0001] This utility model belongs to the field of gas pipeline fault detection and separation technology. Background Technology
[0002] A large portion of the existing gas pipeline network was built in the late 20th century, and most of it uses easily corroded materials such as gray cast iron. Long-term service has led to pipeline aging and a significantly increased risk of leaks. For cities, this is a ticking time bomb. Furthermore, the early designs had low standards and limited corrosion protection measures. The network is also intertwined with power and water supply lines, making maintenance difficult and prone to secondary accidents. Traditional maintenance relies on manual inspections, covering only 5 kilometers daily, leaving blind spots and long response times (leaks may not be detected for days). Additionally, the traditional "separation of operation and maintenance" management model results in cumbersome fault handling procedures and long repair cycles at remote sites, failing to meet rapid emergency response needs. Utility Model Content
[0003] This invention addresses the problems of existing gas pipelines being prone to failure, having low maintenance efficiency, and being unable to achieve automatic fault separation. It provides a gas pipeline fault automatic separation circuit based on bus communication.
[0004] The present invention provides an automatic fault isolation circuit for gas pipelines based on bus communication, comprising: a gas leak detection sensor array, a temperature sensor array, a pressure sensor array, a comparator array, a main MCU circuit, a main independent watchdog circuit, a backup MCU circuit, a backup independent watchdog circuit, an OR gate logic module, a drive circuit array, a solenoid valve array, and a bus.
[0005] A gas leak detection sensor array is placed at the gas pipeline interface or near the valve; it is used to detect whether there is a gas leak in the gas pipeline.
[0006] The pressure sensor array is distributed on the inlet side of the branch valves of the main gas pipeline to collect pressure signals at different locations on the main pipeline;
[0007] A temperature sensor array is distributed on the surface of the gas pipeline to collect temperature signals from the gas pipeline surface and the surrounding environment.
[0008] Each sensor in the gas leak detection sensor array, temperature sensor array, and pressure sensor array is connected to a comparator in the comparator array; each sensor transmits the acquired signal to the corresponding comparator.
[0009] The comparator compares the received signal with the corresponding threshold. When the received signal is greater than the corresponding threshold, it sends a solenoid valve control trigger signal to the main MCU circuit and the backup MCU circuit through the bus.
[0010] The main MCU circuit sends pulse signals to the main independent watchdog circuit in real time. When the main MCU circuit fails and fails to send pulse signals to the main independent watchdog circuit within a timeout, the main independent watchdog circuit sends a start-up trigger signal to the backup MCU circuit.
[0011] The backup MCU circuit sends pulse signals to the backup independent watchdog circuit in real time. When the backup MCU circuit fails and fails to send pulse signals to the backup independent watchdog circuit within a timeout, the backup independent watchdog circuit sends a start-up trigger signal to the main MCU circuit.
[0012] The backup MCU circuit and the main MCU circuit send drive control signals to the corresponding drive circuits via a bus through an OR gate logic module.
[0013] The drive circuit array includes multiple drive circuits, each of which drives the opening or closing of a solenoid valve.
[0014] Furthermore, in this utility model, the solenoid valve is an explosion-proof electric ball valve or an explosion-proof solenoid valve.
[0015] Furthermore, in this invention, the temperature sensor uses a PT100 armored probe.
[0016] Furthermore, in this invention, both the backup MCU circuit and the main MCU circuit are implemented using a chip of model STM32F103VET6.
[0017] Furthermore, in this invention, the pressure sensor is a sensor with the model number MPX5050DP.
[0018] Furthermore, in this invention, the gas leak detection sensor is a catalytic combustion type sensor.
[0019] Furthermore, this utility model also includes an alarm circuit, which receives the start-up trigger signal output by the main independent watchdog circuit and the backup independent watchdog circuit to trigger an alarm.
[0020] This invention employs sensors installed in gas pipelines. Data from each sensor is compared to a threshold using a comparator. When the threshold is exceeded, a trigger signal is sent to the MCU circuit via a bus. The MCU circuit only receives the trigger signal and performs corresponding drive circuit trigger control, thus achieving rapid and efficient fault isolation and effectively reducing losses caused by faults. Attached Figure Description
[0021] Figure 1 This is a circuit block diagram of the present invention. Detailed Implementation
[0022] The technical solutions of the present utility model will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present utility model, and not all embodiments. Based on the embodiments of the present utility model, all other embodiments obtained by those skilled in the art without creative effort are within the protection scope of the present utility model. It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present utility model can be combined with each other.
[0023] Specific implementation method one: Refer to Figure 1 This embodiment describes an automatic fault isolation circuit for gas pipelines based on bus communication, comprising: a gas leak detection sensor array, a temperature sensor array, a pressure sensor array, a comparator array, a main MCU circuit 5, a main independent watchdog circuit 6, a backup MCU circuit 7, a backup independent watchdog circuit 8, an OR gate logic module 9, a drive circuit array, a solenoid valve array, and a bus.
[0024] A gas leak detection sensor array is placed at the gas pipeline interface or near the valve; it is used to detect whether there is a gas leak in the gas pipeline.
[0025] The pressure sensor array is distributed on the inlet side of the branch valves of the main gas pipeline to collect pressure signals at different locations on the main pipeline;
[0026] A temperature sensor array is distributed on the surface of the gas pipeline to collect temperature signals from the gas pipeline surface and the surrounding environment.
[0027] Each sensor in the gas leak detection sensor array, temperature sensor array, and pressure sensor array is connected to a comparator 4 in the comparator array; each sensor transmits the collected signal to the corresponding comparator 4.
[0028] The comparator 4 compares the received signal with the corresponding threshold. When the received signal is greater than the corresponding threshold, it sends a solenoid valve control trigger signal to the main MCU circuit 5 and the backup MCU circuit 7 via the bus.
[0029] The main MCU circuit 5 sends pulse signals to the main independent watchdog circuit 6 in real time. When the main MCU circuit 5 fails and fails to send pulse signals to the main independent watchdog circuit 6 within a timeout, the main independent watchdog circuit 6 sends a start-up trigger signal to the backup MCU circuit 7.
[0030] The backup MCU circuit 7 sends pulse signals to the backup independent watchdog circuit 8 in real time. When the backup MCU circuit 7 fails and fails to send pulse signals to the backup independent watchdog circuit 8 within a timeout, the backup independent watchdog circuit 8 sends a start-up trigger signal to the main MCU circuit 5.
[0031] The backup MCU circuit 7 and the main MCU circuit 5 send drive control signals to the corresponding drive circuits via an OR gate logic module 9 and a bus.
[0032] The drive circuit array includes multiple drive circuits 10, each drive circuit 10 being used to drive the opening or closing of a solenoid valve.
[0033] In this invention, the backup MCU circuit 7 or the main MCU circuit 5 sends a drive trigger signal to the corresponding solenoid valve drive circuit according to the received trigger signal, thereby controlling the corresponding solenoid valve and achieving automatic fault isolation.
[0034] Furthermore, in this embodiment, the solenoid valve 11 is an explosion-proof electric ball valve or an explosion-proof solenoid valve.
[0035] Furthermore, in this embodiment, the temperature sensor 2 uses a PT100 armored probe.
[0036] Furthermore, in this embodiment, both the backup MCU circuit 7 and the main MCU circuit 5 are implemented using a chip of model STM32F103VET6.
[0037] Furthermore, in this embodiment, the pressure sensor 3 is a sensor with the model number MPX5050DP.
[0038] Furthermore, in this embodiment, the gas leak detection sensor 1 is a catalytic combustion sensor.
[0039] Furthermore, this embodiment also includes an alarm circuit, which receives the start-up trigger signal output by the main independent watchdog circuit 6 and the backup independent watchdog circuit 8 to trigger an alarm.
[0040] In this embodiment, the alarm circuit receives a trigger and performs an audible, visual, or wireless communication alarm.
[0041] In this invention, the main and backup MCU circuits use the STM32F103VET6 chip, whose core is ARM Cortex-M3 with a main frequency of 72MHz.
[0042] Memory: Flash: 512KB, RAM: 64KB.
[0043] Package: LQFP100 (14×14mm).
[0044] Peripheral resources:
[0045] Communication interfaces: 3×SPI, 2×I2C, 5×UART, 2×CAN, 1×USB 2.0.
[0046] Analog modules: 3×12-bit ADC (21 channels, 1μs conversion time), 2×12-bit DAC.
[0047] Timers: 4 x 16-bit general purpose timers, 2 x PWM advanced control timers, 1 x SysTick.
[0048] Power supply: 2.0–3.6V, typical power consumption: 36mA (full speed operation).
[0049] Each solenoid valve in this invention employs an independent drive circuit, allowing for independent adjustment of its response time (e.g., PWM duty cycle) to prevent inconsistent operation due to load variations. Furthermore, each drive circuit is isolated from the high-voltage side via optocouplers or magnetic isolation chips (such as the ADIAM series) to prevent common-mode interference and the propagation of electrical faults. During real-time operation, the pressure sensor is sealed at the threaded interface (NPT / G thread) and equipped with a pulse buffer. Two independent watchdog circuits utilize the MAX706 chip with a 1.6s timeout and manual reset input. The OR gate logic circuit uses the SN74LVC1G32 chip, supporting 3.3V levels with a delay of <5ns. An isolation DC-DC converter is established between the power supply and the MCU, using the B0505S-1W chip. The optocoupler is implemented using the TLP521-4 chip.
[0050] In the normal operating state of the circuit described in this invention, the main MCU controls the actuator, periodically feeds the watchdog timer, and sends heartbeat packets. The standby MCU monitors the heartbeat and watchdog status and is in standby mode.
[0051] Fault detection:
[0052] Scenario 1: Main MCU freezes (dog timer not fed)
[0053] When the main MCU watchdog timer times out, a reset signal is sent to the backup MCU.
[0054] The backup MCU immediately takes over control after detecting the reset signal.
[0055] The backup MCU detects a heartbeat timeout and forces a control signal to be output via an OR gate.
[0056] Switching process:
[0057] The backup MCU starts the control logic and inherits the latest state (sensor data) of the main MCU.
[0058] The status feedback verifies whether the actuator's action has been completed (valve is closed).
[0059] This invention employs a primary and backup MCU to synchronize key data in real time, avoiding state conflicts during switching. It prevents accidental switching and reduces wiring complexity through bus communication, effectively and quickly achieving fault detection and automatic fault isolation in gas pipelines.
[0060] While specific embodiments of the present invention have been described herein with reference to them, it should be understood that these embodiments are merely examples of the principles and applications of the present invention. Therefore, it should be understood that many modifications can be made to the exemplary embodiments, and other arrangements can be designed without departing from the spirit and scope of the present invention as defined by the appended claims. It should be understood that different dependent claims and features described herein can be combined in ways different from those described in the original claims. It is also understood that features described in conjunction with individual embodiments can be used in other described embodiments.
Claims
1. A bus communication-based automatic separation circuit for a gas pipeline fault, characterized by, It comprises: a gas leakage detection sensor array, a temperature sensor array, a pressure sensor array, a comparator array, a main MCU circuit (5), a main independent watchdog circuit (6), a backup MCU circuit (7), a backup independent watchdog circuit (8), an OR gate logic module (9), a driving circuit array, a solenoid valve array and a bus; The gas leakage detection sensor array is arranged at the gas pipeline interface or near the valve, and is used to collect whether there is gas leakage in the gas pipeline. The pressure sensor array is arranged on the gas pipeline main line branch valve gas inlet side, and is used to collect the pressure signals at different positions of the main line. The temperature sensor array is arranged on the surface of the gas pipeline, and is used to collect the temperature signals of the surface of the gas pipeline and the environment. Each sensor in the gas leakage detection sensor array, the temperature sensor array and the pressure sensor array is connected to a comparator (4) in the comparator array; each sensor transmits the collected signal to the corresponding comparator (4). The comparator (4) compares the received signal with the corresponding threshold value, and sends a solenoid valve control trigger signal to the main MCU circuit (5) and the backup MCU circuit (7) through the bus when the received signal is greater than the corresponding threshold value. The main MCU circuit (5) sends a pulse signal to the main independent watchdog circuit (6) in real time, and when the main MCU circuit (5) fails and does not send a pulse signal to the main independent watchdog circuit (6) in time, the main independent watchdog circuit (6) sends a start working trigger signal to the backup MCU circuit (7). The backup MCU circuit (7) sends a pulse signal to the backup independent watchdog circuit (8) in real time, and when the backup MCU circuit (7) fails and does not send a pulse signal to the backup independent watchdog circuit (8) in time, the backup independent watchdog circuit (8) sends a start working trigger signal to the main MCU circuit (5). The backup MCU circuit (7) and the main MCU circuit (5) send a driving control signal to the corresponding driving circuit through the OR gate logic module (9) through the bus. The driving circuit array comprises a plurality of driving circuits (10), and each driving circuit (10) is used to drive the opening or closing of a solenoid valve.
2. A gas pipeline fault automatic separation circuit based on bus communication according to claim 1, characterized in that, The solenoid valve (11) adopts an explosion-proof electric ball valve or an explosion-proof solenoid valve.
3. A gas pipeline fault automatic separation circuit based on bus communication according to claim 1 or 2, characterized in that, The temperature sensor (2) adopts a PT100 armored probe.
4. A gas pipeline fault automatic separation circuit based on bus communication according to claim 1 or 2, characterized in that, The backup MCU circuit (7) and the main MCU circuit (5) both adopt a chip with model number STM32F103VET6.
5. A bus communication based automatic gas pipeline fault isolation circuit according to claim 1 or 2, wherein, The pressure sensor (3) adopts a sensor with model number MPX5050DP.
6. A bus communication based automatic gas pipeline fault isolation circuit according to claim 1 or 2, wherein, The gas leakage detection sensor adopts a catalytic combustion type sensor.
7. A bus communication based automatic gas pipeline fault isolation circuit according to claim 1 or 2, wherein, It further comprises an alarm circuit which receives the start working trigger signals output by the main independent watchdog circuit (6) and the backup independent watchdog circuit (8) to alarm.