Locomotive passing detection system

By integrating sensors, data processing, environmental detection and public network communication technologies in the railway detection system, real-time monitoring of locomotive driving status and environmental conditions is achieved, solving the problems of low efficiency and insufficient accuracy of traditional systems, and improving the safety and efficiency of railway traffic.

CN119796279APending Publication Date: 2025-04-11天津七一二移动通信股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411988728.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

Traditional railway inspection systems are inefficient and insufficiently accurate, and cannot meet the real-time monitoring needs of locomotive driving status and environmental conditions.

Method used

A comprehensive locomotive inspection system is developed, integrating sensor technology (passive magnetic steel and induced voltage sensor), data processing technology, environmental detection technology and public network communication technology, and real-time detection and data transmission are achieved through microcontroller units, public network communication circuits, potential comparison circuits and environmental detection circuits.

Benefits of technology

Real-time detection of locomotive driving status and environmental conditions is realized, the safety and efficiency of railway traffic is improved, and effective monitoring and early warning can be achieved to ensure the safe and efficient operation of railway transportation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119796279A_ABST
    Figure CN119796279A_ABST
Patent Text Reader

Abstract

The invention discloses a locomotive passing detection system. The system comprises a locomotive passing detection device, a central server, an early warning server and a portable handheld station, the locomotive passing detection device comprises a micro-control unit containing a control program, a public network communication circuit composed of an LTE module, a network voltage stabilizer and a network switch, a potential comparison circuit and an environment detection circuit. The locomotive is connected with the central server through the detection device, the central server is connected with the early warning server, and the early warning server is connected with the portable handheld station. By adopting the induced voltage and passive magnetic steel technology, the real-time detection of the running state and environmental conditions of the locomotive is realized. The system has high reliability and accuracy, and the safety and efficiency of locomotive operation can be effectively improved. And meanwhile, the system can be applied to railway dispatching, and a locomotive dispatching center can realize real-time monitoring and early warning on the running state of the locomotive through data acquisition and transmission functions, so that a powerful guarantee is provided for safe and efficient running of railway transportation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to railway traffic safety monitoring and detection technology in an intelligent transportation system (ITS), and in particular to a locomotive passing detection system. Background Art

[0002] With the development of railway transportation, the demand for real-time monitoring of locomotive driving status and environmental conditions has increased. Traditional detection systems have problems such as low efficiency and insufficient accuracy. Therefore, railway traffic safety monitoring and detection technology has developed in the direction of intelligence and automation, integrating sensors, environmental detection, remote communication and data processing technology. In this context, it is urgent to develop a comprehensive locomotive passing detection system to realize the real-time monitoring of locomotive driving status and environmental conditions. Summary of the invention

[0003] In view of the problems existing in the prior art, the present invention develops a locomotive passing detection system, which integrates technologies from multiple fields such as sensor technology (especially passive magnetic steel and inductive voltage sensor), data processing technology, environmental detection technology (such as temperature and humidity sensing), and public network communication technology to form a comprehensive locomotive passing detection system, aiming to improve the safety and efficiency of railway transportation.

[0004] The technical solution adopted by the present invention is: a locomotive passing detection system includes a locomotive passing detection device, a central server, an early warning server and a portable handheld station; the locomotive passing detection device includes a microcontroller unit containing a control program, a public network communication circuit composed of an LTE module, a network voltage stabilizer, and a network switch, a potential comparison circuit and an environmental detection circuit; the locomotive passing detection device is connected to the central server, the central server is connected to the early warning server, and the early warning server is connected to the portable handheld station.

[0005] The microcontroller unit adopts an MCU microcontroller of model LPC4337. The locomotive passing signal generated by the passive magnetic steel A and the passive magnetic steel B is connected to the MCU microcontroller through the potential comparison circuit. The environmental signal generated by the environmental detection module is connected to the MCU microcontroller through the environmental detection circuit. The MCU microcontroller is connected to the public network communication circuit; the network regulator in the public network communication circuit is respectively connected to the LTE module and the network switch.

[0006] The control program flow of the microcontroller unit performs the following operations: 1. First, the timer and temperature detection program are initialized, and the locomotive enters the detection signal state through the detection device.

[0007] 2. If the induced voltage signal received by the comparison circuit of the locomotive passing detection device when the locomotive passes the passive magnetic steel A is higher than 2V, start timing and keep timing, otherwise return to step 1.

[0008] 3. If the induced voltage signal received by the detection device through the passive magnetic steel B is higher than 2V, stop timing and eliminate the timing interrupt flag, otherwise return to step 1.

[0009] Fourth, the micro control unit collects the locomotive passing signal through the potential comparison circuit, calculates the speed from the passive magnetic steel A to the passive magnetic steel B, and determines the direction of locomotive travel at the same time.

[0010] 5. The micro control unit collects the environmental detection signal through the environmental detection module of the environmental detection circuit.

[0011] 6. The micro control unit analyzes and processes the speed of the locomotive passing through the passive magnetic steel A to the passive magnetic steel B, the locomotive driving direction and the environmental detection data, and then sends them to the central server for reception and distribution.

[0012] 7. The central server sends the speed of the locomotive passing through magnet A to magnet B, the locomotive's driving direction and environmental detection data to the early warning server. The early warning server generates early warning information and sends the early warning information of the locomotive passing to the staff holding the portable handheld station.

[0013] The beneficial effects of the present invention are as follows: the locomotive passing detection system realizes real-time detection of the locomotive running status and environmental conditions by adopting the induction voltage and passive magnetic steel technology. The system has high reliability and accuracy, and can effectively improve the safety and efficiency of locomotive operation. At the same time, it can be applied to railway dispatching. Through the data collection and transmission functions, the locomotive dispatching center can realize real-time monitoring and early warning of the locomotive running status, providing a strong guarantee for the safe and efficient operation of railway transportation. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 It is a block diagram of the connection principle of the locomotive passing detection system of the present invention; Figure 2 for Figure 1 Schematic diagram of the MCU microcontroller N5A circuit of the microcontroller unit; Figure 3 for Figure 1 Schematic diagram of MCU microcontroller N5B, potential comparison circuit, and environmental detection circuit of the microcontroller unit; Figure 4 for Figure 1 The left half of the network switch of the China Public Network communication circuit and the schematic diagram of the LTE module wiring circuit; Figure 5 for Figure 1 The right half of the circuit schematic diagram of the network switch of the China Public Network communication circuit; Figure 6 for Figure 1The schematic diagram of the network voltage stabilizer circuit of the China Public Network communication circuit; Figure 7 It is a flow chart of the software control program of the present invention. DETAILED DESCRIPTION

[0015] In order to more clearly understand the present invention, it is described in detail below with reference to the accompanying drawings.

[0016] like Figure 1 As shown, the locomotive passing detection system includes a locomotive passing detection device, a central server, an early warning server and a portable handheld station; the locomotive passing detection device includes a microcontroller unit containing a control program, a public network communication circuit composed of an LTE module, a network voltage stabilizer, and a network switch, a potential comparison circuit and an environmental detection circuit; the locomotive passing detection device is connected to the central server, the central server is connected to the early warning server, and the early warning server is connected to the portable handheld station.

[0017] The microcontroller unit adopts an MCU microcontroller of model LPC4337. The locomotive passing signal generated by the passive magnetic steel A and the passive magnetic steel B is connected to the MCU microcontroller through a potential comparison circuit. The environmental signal generated by the environmental detection module is connected to the MCU microcontroller through the environmental detection circuit. The MCU microcontroller is connected to the public network communication circuit; the network regulator in the public network communication circuit is respectively connected to the LTE module and the network switch.

[0018] The LTE module provides public network communication capabilities, the network switch circuit provides network expansion functions, and the MCU microcontroller detects the status information of the LTE module and the Ethernet switch chip.

[0019] Figure 1This is the application scenario of the locomotive passing detection system. The environmental signal and the locomotive passing signal are sent to the MCU microcontroller through the environmental detection circuit and the potential comparison circuit respectively. The potential comparison circuit is used to filter out interference signals and induced voltage signals below 5Km / h and output TTL signals to the MCU microcontroller. The environmental detection circuit is used to detect the temperature and humidity data of the surrounding environment in real time, and convert the surrounding temperature and humidity into voltage signals and send them to the MCU microcontroller. The potential comparison circuit is that when a wheel passes over one of the magnets, the magnet generates a locomotive passing signal, and the locomotive passing signal is compared with the reference voltage of the comparator. The part greater than the reference voltage outputs a TTL level to the I / O port of the MCU microcontroller, and at the same time triggers the set timing function to start timing; when the other magnet generates the same signal, the timing ends; at the same time, the timing interrupt flags of the two ports are cleared. And the locomotive passing speed is calculated in the main function (speed = magnet spacing / passing time). The speed and environmental detection data (temperature and humidity) are encoded and sent to the Ethernet switch chip (the switch is redundant for business expansion), the Ethernet switch chip sends the data to the LTE module, the LTE module packages the data and sends it to the central server through the public network. The central server sends the location information of the locomotive to the early warning server, and the early warning server sends the early warning information to the portable handheld station close to the magnet.

[0020] The MCU microcontroller is divided into two parts: MCU microcontroller N5A and MCU microcontroller N5B, such as Figure 2 , Figure 3 The potential comparison circuit uses LM393LVCR comparator U1 and LM393LVCR comparator U2, and the environment detection circuit uses HCT11 environment detection module J1. Figure 3 shown.

[0021] like Figure 2 As shown, pins 25, 59, 94, 131, 5, 36, 41, 71, 77, 107, 111 and 141 of the MCU microcontroller N5A are connected, and one end of capacitor C50, capacitor C49, capacitor C48, capacitor C47 and capacitor C46 are connected to the power supply 3.3V, and the other ends of capacitor C50, capacitor C49, capacitor C48, capacitor C47 and capacitor C46 are grounded respectively; at the same time, capacitor C58, capacitor C57, capacitor C56, capacitor C55, capacitor C54, capacitor C64, capacitor C63, capacitor C62, capacitor C61 and capacitor C60 are grounded respectively.

[0022] like Figure 2As shown, the 128th pin of the MCU microcontroller N5A is connected to one end of the capacitor C66, the positive electrode of the diode VD12, the positive electrode of the diode VD10, and one end of the resistor R51. The negative electrode of the diode VD10 is connected to the 2nd pin of the reset chip N8 of model SP809. The 1st and 3rd pins of the reset chip N8 are connected to both ends of the capacitor C59, and the 3rd pin is connected to the power supply 3.3V, and the 1st pin is grounded; the other end of the resistor R51 is connected to the 2nd pin of the JTAG interface XS5, and then connected to the power supply 3.3V, the 4th pin, the 6th pin, the 8th pin, the 10th pin, the 12th pin, the 14th pin, and the 16th pin of the JTAG interface XS5. , 18 and 20 are connected to ground; 1 pin is connected to power supply 3.3V, 3 pins, 5 pins, 7 pins and 13 pins are connected to 29 pins, 26 pins, 30 pins and 31 pins of MCU microcontroller N5A respectively, and connected to power supply 3.3V through resistors R55, R56, R57 and R58 respectively, 9 pin of JTAG interface XS5 is connected to 27 pin of MCU microcontroller N5A and grounded through resistor R66, 11 pins, 17 pins and 19 pins of JTAG interface XS5 are grounded through resistors R65, R64 and R63 respectively, Pin 15 of the JTAG interface XS5 is connected to the cathode of the diode VD12; pin 28 of the MCU microcontroller N5A is connected to the other end of the capacitor C66 through a resistor R54, and is connected to a 3.3V power supply through a resistor R60; pins 16 and 17 of the MCU microcontroller N5A are connected to one end of capacitors C73 and C72 and then to a 3.3V power supply, and the other ends of capacitors C73 and C72 are grounded; pin 24 of the MCU microcontroller N5A is connected to pins 23 and 19 through a resistor R73 and then to ground.

[0023] like Figure 2 As shown, pin 127 of the MCU microcontroller N5A is connected to the cathode of the diode VD7 and one end of the capacitor C51, the anode of the diode VD7 is connected to the power supply 3.3V, and the other end of the capacitor C51 is grounded; pins 137 and 135 of the MCU microcontroller N5A are connected to both ends of the capacitor C53, pin 137 is connected to the power supply 3.3V, and pin 135 is grounded; pins 4, 40, 76, and 109 are connected and then grounded; pin 12 is connected to pin 1 of the 12Mhz crystal oscillator G2 and one end of the capacitor C65, and the other end of the capacitor C65 is grounded; pin 13 of the MCU microcontroller N5A is connected to pin 3 of the 12Mhz crystal oscillator G2 and one end of the capacitor C68, and the other end of the capacitor C68 is grounded; pins 125 and 126 of the MCU microcontroller N5A are connected to both ends of the crystal oscillator G3, and then grounded through capacitors C69 and C71 respectively.

[0024] like Figure 3As shown, the 42nd and 43rd pins of the MCU microcontroller N5B are grounded through resistors R38 and R39 respectively; the 53rd pin is connected to the 2nd pin of the environment detection module J1, the 1st pin of the environment detection module J1 is connected to the power supply 3.3V, and the 4th pin of the environment detection module J1 is grounded; the 96th pin of the MCU microcontroller N5B is connected to the power supply 3.3V through resistor R48, and the BOOT pin is led out to the external socket through resistor R49; the 98th pin is grounded through resistor R53, and the 102nd pin is connected to the power supply 3.3V through resistor R59.

[0025] like Figure 3 As shown, pin 46 of the MCU microcontroller N5B is connected to pin 1 of the comparator U1, pin 2 of the comparator U1 is connected to the power supply 3.3V through the resistor R42, and is grounded through the resistor R45; pin 8 of the comparator U1 is connected to the power supply 3.3V, pin 4 is grounded, and pin 3 is connected to terminal 1 of the connector JP1; pin 54 of the MCU microcontroller N5B is connected to pin 7 of the comparator U2, pin 6 of the comparator U2 is connected to pin 2 of the comparator U1, and pin 5 of the comparator U2 is connected to terminal 3 of the connector JP1.

[0026] The MCU microcontroller N5A circuit includes power supply and filtering, reset circuit, crystal oscillator circuit, program burning interface, etc. to ensure the normal operation of the MCU microcontroller.

[0027] The MCU microcontroller N5B circuit has various I / O ports to realize the control function, including the SPI circuit connected to the flash memory, the serial port circuit connected to the IP175, the environment detection circuit and the potential comparison circuit. The environment detection circuit is composed of an environment detection module; the potential comparison circuit is composed of two comparators, the positive input end of the comparator is connected to the signal trigger unit, which is used to receive the induced voltage signal generated by the locomotive passing through the magnetic steel, and the negative input ends of the two comparators are connected to a 2V reference voltage. The positive input induced voltage signal is compared with the reference voltage signal at the negative input end. The part below 2V does not output a signal. When it is higher than 2V, the comparator outputs a high-level TTL signal, and the MCU microcontroller detects the comparator output signal and performs corresponding processing.

[0028] like Figure 4 , Figure 5As shown, the public network communication circuit includes a network switch circuit, an LTE module wiring circuit and a network voltage regulator circuit; the network switch circuit adopts an Ethernet switch chip N3 of model IP175, and the LTE module wiring circuit adopts a crystal oscillator G1 of model DSO321 / 3225. Pin 123 of the Ethernet switch chip N3 is connected to pin 3 of the crystal oscillator G1, and pin 4 of the crystal oscillator G1 is connected to pin 124, pin 115, and pin 114 of the Ethernet switch chip N3, and is grounded through a capacitor C1, and is also connected to pin 1 of the crystal oscillator G1 through a resistor R1, and pin 2 of the crystal oscillator G1 is grounded; pins 5, 7, 13, and 16 are connected to the ground. , 17 pins, 23 pins, 25 pins, 31 pins, 32 pins, 39 pins, 43 pins, 44 pins, 45 pins, 48 ​​pins, 49 pins, 56 pins, 73 pins, 83 pins, 95 pins, 99 pins, 116 pins, 117 pins, 118 pins, 119 pins, 121 pins, and 126 pins are connected and grounded; pin 15 is grounded through resistor R16, and pin 52 is grounded through resistor R36; pin 1, 6 pins, 10 pins, 14 pins, 20 pins, 24 pins, 28 pins, 35 pins, and 40 pins are connected and connected to power supply AVCC1.9V; pins 47, 50 pins, 55 pins, 82 pins, and 94 pins are connected and connected to power supply DVCC1.9V.

[0029] like Figure 5 As shown, the 101st pin of the Ethernet switch chip N3 is connected to the cathode of the light-emitting diode VD1 through the resistor R8, the 96th pin of the Ethernet switch chip N3 is connected to the cathode of the light-emitting diode VD2 through the resistor R10, the 93rd pin of the Ethernet chip N3 is connected to the anode of the diode VD3, and is connected to the anode of the light-emitting diode VD1 and the anode of the light-emitting diode VD2 through the resistor R9 and then connected to the power supply 3.3V, and is also grounded through the capacitor C6, the cathode of the diode VD3 is connected to the 110th pin of the MCU microcontroller N5B, and the 71st pin of the Ethernet switch chip N3 is connected to the power supply 3.3V through the resistor R27.

[0030] like Figure 6 As shown, the network voltage stabilizer circuit adopts a chip T1 of model H1102 and a socket XS1 of model NC_JS-1147V-06. Pin 16 of chip T1 is connected to pin 3 of socket XS1 through resistor R2, pin 15 is grounded through resistor R3 and capacitor C2, pin 14 is connected to pin 4 of socket XS1 through resistor R4, pin 11 is connected to pin 1 of socket XS1 through resistor R5, and pin 10 is grounded through resistor R6 and capacitor C4; pin 1 of chip T1 is connected to pin 3 of Ethernet switch chip N3, pin 2 is connected to power supply AVCC1.9V and grounded through capacitor C3, pin 3 is connected to pin 4 of Ethernet switch chip N3, pin 6 is connected to pin 127 of Ethernet switch chip N3, pin 7 is connected to power supply AVCC1.9V and grounded through capacitor C5, and pin 8 is connected to pin 128 of Ethernet switch chip N3.

[0031] The public network communication circuit includes a network switch circuit, an LTE module wiring circuit and a network regulator circuit, wherein the MDIO management data input and output pins of the power supply, reset and crystal oscillator in the network switch circuit are used to configure and manage the Ethernet port through the SMI interface; the MDC management data clock pin provides a clock signal for the MDIO pin to synchronize data transmission; the RESET reset pin is used to reset the Ethernet port to the initial state, the 3.3V level is connected to the MAC5_F_FULL and MAC5_F_100 ports through resistors R13 and R14, respectively locking the full-duplex working state and the 100Mbps network transmission rate, the 3.3V level is connected to the SPD1 port through resistor R15 to enable broadcast storm protection, the 3.3V level is connected to the P4EXTMDIO1 port through resistor R17 to enable MII mode, and a set of differential signals including TXO0_P, TXO0_N, RXI0_P, and RXI0_N transmit data between the LTE module. The TXO0_P, TXO0_N, RXI0_P, and RXI0_N signals are sent to the network regulator (the function of the network regulator is to ensure the stable transmission of data signals on the network cable), and the signals are output through the network regulator as LTE-TX_P, LTE-TX_N, LTE-RX_P, and LTE-RX_N signals to the external LTE module (the LTE module is connected to the socket XS1 through a plug), and then the LTE module sends the data to the central server via the public network, finally realizing public network communication.

[0032] The signal triggering part of the signal triggering unit consists of two sets of passive magnets (A and B) installed on the track at a fixed distance and an environmental detection module. The magnet is wrapped with a permanent magnet with the N pole facing upward. When the locomotive wheel passes over the magnet, it cuts the magnetic flux lines, thereby generating an induced voltage in the wires connected around the magnet. This induced voltage signal is regarded as a locomotive passing signal and is used to trigger the subsequent detection process. The environmental detection module converts the surrounding temperature and humidity conditions into voltage signals and sends them to the MCU microcontroller.

[0033] The locomotive detection device is responsible for processing the signal generated by the signal triggering part, calculating the locomotive's travel speed and time, and detecting environmental conditions. Its main functions include: locomotive detection, environmental detection and public network communication.

[0034] 1. The locomotive passes the inspection Passing time calculation: The system sets a fixed distance between passive magnets A and B. When the first locomotive passing signal is generated, the locomotive passing detection device starts timing; when the second locomotive passing signal is generated, the timing ends. The passing time of the locomotive is calculated by the difference between these two time points.

[0035] Travel speed calculation: Using the known passive magnetic steel fixed distance and the calculated passing time, the travel speed of the locomotive is obtained through division operation.

[0036] 2. Environmental testing The locomotive has an integrated environmental detection module (temperature and humidity sensor) inside the detection device, which can detect the ambient temperature and humidity of the system in real time to ensure the stability and safety of the system operation.

[0037] 3. Public network communication The locomotive passing detection device integrates an LTE module and an Ethernet switch chip, which can send the data generated by the system to the central server and early warning server through the public network.

[0038] like Figure 7 As shown, the control program flow of the microcontroller unit performs the following operations: 1. First, the timer and temperature detection program are initialized, and the locomotive enters the detection signal state through the detection device.

[0039] 2. If the induced voltage signal received by the comparison circuit of the locomotive passing detection device when the locomotive passes the passive magnetic steel A is higher than 2V, start timing and keep timing, otherwise return to step 1.

[0040] 3. If the induced voltage signal received by the detection device through the passive magnetic steel B is higher than 2V, stop timing and eliminate the timing interrupt flag, otherwise return to step 1.

[0041] Fourth, the micro control unit collects the locomotive passing signal through the potential comparison circuit, calculates the speed from the passive magnetic steel A to the passive magnetic steel B, and determines the direction of locomotive travel at the same time.

[0042] 5. The micro control unit collects the environmental detection signal through the environmental detection module of the environmental detection circuit.

[0043] 6. The micro control unit analyzes and processes the speed of the locomotive passing through the passive magnetic steel A to the passive magnetic steel B, the locomotive driving direction and the environmental detection data, and then sends them to the central server for reception and distribution.

[0044] 7. The central server sends the speed of the locomotive passing through magnet A to magnet B, the locomotive's driving direction and environmental detection data to the early warning server. The early warning server generates early warning information and sends the early warning information of the locomotive passing to the staff holding the portable handheld station.

[0045] The logic of the locomotive running through the detection system is as follows Figure 7As shown. First, the timer and signal detection enter initialization, and the microcontroller MCU continuously detects the signals from the magnet A and the magnet B. Assume that: here the locomotive passes through the magnet A first. When the locomotive passes through the magnet A, the locomotive passing signal is first judged. If the signal is greater than 2V, the timer starts timing, otherwise the detection signal state is maintained; after starting the timing, the timing state is maintained. When the signal from the magnet B is greater than 2V, the timing is stopped and the flag of the timer is cleared, and a logical judgment is made that the locomotive passes from A to B, otherwise the timing state is maintained; after stopping the timing, the fixed distance between the magnet A and the magnet B and the timing time are divided to calculate the passing speed; after calculating the passing speed, the speed data and the locomotive passing direction data are sent to the central server through the public network communication circuit. The central server is responsible for receiving and distributing various data types, among which the locomotive speed data and the locomotive passing direction data are distributed to the early warning server. The early warning server generates early warning information and sends the early warning information to the portable handheld station that is close to the locomotive passing detection device, so that the portable handheld station receives the information that a locomotive passes nearby.

Claims

1. A locomotive passing detection system, characterized in that: The system includes a locomotive passing detection device, a central server, an early warning server and a portable handheld device; the locomotive passing detection device includes a microcontroller unit containing a control program, a public network communication circuit composed of an LTE module, a network voltage stabilizer and a network switch, a potential comparison circuit and an environmental detection circuit; the locomotive passing detection device is connected to the central server, the central server is connected to the early warning server, and the early warning server is connected to the portable handheld device; The microcontroller unit adopts an MCU microcontroller of model LPC4337. The locomotive passing signal generated by the passive magnetic steel A and the passive magnetic steel B is connected to the MCU microcontroller through the potential comparison circuit. The environmental signal generated by the environmental detection module is connected to the MCU microcontroller through the environmental detection circuit. The MCU microcontroller is connected to the public network communication circuit; the network regulator in the public network communication circuit is respectively connected to the LTE module and the network switch.

2. A locomotive passing detection system according to claim 1, characterized in that: The MCU microcontroller is divided into two parts: MCU microcontroller N5A and MCU microcontroller N5B. The potential comparison circuit adopts LM393LVCR comparator U1 and LM393LVCR comparator U2. The environment detection circuit adopts environment detection module J1 of DHT11. Pin 25, pin 59, pin 94, pin 131, pin 5, pin 36, pin 41, pin 71, pin 77, pin 107, pin 111 and pin 141 of MCU microcontroller N5A are connected, and one end of capacitor C50, capacitor C49, capacitor C48, capacitor C47 and capacitor C46 are connected to power supply 3.3V. The other ends of capacitor C50, capacitor C49, capacitor C48, capacitor C47, and capacitor C46 are grounded respectively; at the same time, capacitor C58, capacitor C57, capacitor C56, capacitor C55, capacitor C54, capacitor C64, capacitor C63, capacitor C62, capacitor C61, and capacitor C60 are grounded respectively; Pin 128 of MCU microcontroller N5A is connected to one end of capacitor C66, the positive electrode of diode VD12, the positive electrode of diode VD10, and one end of resistor R51. The negative electrode of diode VD10 is connected to pin 2 of reset chip N8 of model SP809. Pins 1 and 3 of reset chip N8 are connected to both ends of capacitor C59, and pin 3 is connected to power supply 3.3V, and pin 1 is grounded. The other end of resistor R51 is connected to pin 2 of JTAG interface XS5, and then to power supply 3.3V. Pins 4, 6, 8, 10, 12, 14, 16, 18, and 20 of JTAG interface XS5 are connected and then grounded. Pin 1 is connected to the power supply 3.3V, pins 3, 5, 7, and 13 are connected to pins 29, 26, 30, and 31 of the MCU microcontroller N5A respectively, and are connected to the power supply 3.3V through resistors R55, R56, R57, and R58 respectively. Pin 9 of the JTAG interface XS5 is connected to pin 27 of the MCU microcontroller N5A and is grounded through resistor R66. Pins 11, 17, and 19 of the JTAG interface XS5 are grounded through resistors R65, R64, and R63 respectively. Pin 15 of JTAG interface XS5 is connected to the cathode of diode VD12; Pin 28 of MCU microcontroller N5A is connected to the other end of capacitor C66 through resistor R54, and connected to power supply 3.3V through resistor R60; Pin 16 and Pin 17 of MCU microcontroller N5A are connected to one end of capacitor C73 and capacitor C72 and then connected to power supply 3.3V, and the other end of capacitor C73 and capacitor C72 is grounded; Pin 24 of MCU microcontroller N5A is connected to pin 23 and pin 19 through resistor R73 and then grounded; Pin 127 of MCU microcontroller N5A is connected to the cathode of diode VD7 and one end of capacitor C51, the anode of diode VD7 is connected to the power supply 3.3V, and the other end of capacitor C51 is grounded; Pin 137 and Pin 135 of MCU microcontroller N5A are connected to both ends of capacitor C53, Pin 137 is connected to the power supply 3.3V, and Pin 135 is grounded; Pin 4, Pin 40, Pin 76, and Pin 109 are connected and then grounded; Pin 12 is connected to pin 1 of 12Mhz crystal oscillator G2 and one end of capacitor C65, and the other end of capacitor C65 is grounded; Pin 13 of MCU microcontroller N5A is connected to pin 3 of 12Mhz crystal oscillator G2 and one end of capacitor C68, and the other end of capacitor C68 is grounded; Pin 125 and Pin 126 of MCU microcontroller N5A are connected to both ends of crystal oscillator G3, and then grounded through capacitors C69 and C71 respectively; Pin 42 and pin 43 of the MCU microcontroller N5B are grounded through resistors R38 and R39 respectively; Pin 53 is connected to Pin 2 of the environment detection module J1, Pin 1 of the environment detection module J1 is connected to the power supply 3.3V, and Pin 4 of the environment detection module J1 is grounded; Pin 96 of the MCU microcontroller N5B is connected to the power supply 3.3V through resistor R48, and the BOOT pin is connected to the external socket through resistor R49; Pin 98 is grounded through resistor R53, and Pin 102 is connected to the power supply 3.3V through resistor R59; Pin 46 of the MCU microcontroller N5B is connected to pin 1 of the comparator U1, pin 2 of the comparator U1 is connected to a power supply of 3.3V through a resistor R42, and is grounded through a resistor R45; pin 8 of the comparator U1 is connected to a power supply of 3.3V, pin 4 is grounded, and pin 3 is connected to terminal 1 of the connector JP1; pin 54 of the MCU microcontroller N5B is connected to pin 7 of the comparator U2, pin 6 of the comparator U2 is connected to pin 2 of the comparator U1, and pin 5 of the comparator U2 is connected to terminal 3 of the connector JP1.

3. A locomotive passing detection system according to claim 2, characterized in that: The public network communication circuit includes a network switch circuit, an LTE module wiring circuit and a network voltage regulator circuit; the network switch circuit uses an Ethernet switch chip N3 of model IP175, and the LTE module wiring circuit uses a crystal oscillator G1 of model DSO321 / 3225. Pin 123 of the Ethernet switch chip N3 is connected to pin 3 of the crystal oscillator G1, and pin 4 of the crystal oscillator G1 is connected to pins 124, 115 and 114 of the Ethernet switch chip N3, and is grounded through a capacitor C1, and is also connected to pin 1 of the crystal oscillator G1 through a resistor R1, and pin 2 of the crystal oscillator G1 is grounded; Pin 5, Pin 7, Pin 13, Pin 16, Pin 17, Pin 23, Pin 25, Pin 31, Pin 32, Pin 39, Pin 43, Pin 44, Pin 45, Pin 48, Pin 49, Pin 56, Pin 73, Pin 83, Pin 95, Pin 99, Pin 116, Pin 117, Pin 118, Pin 119, Pin 121, Pin 126 are connected and grounded; Pin 15 is grounded through resistor R16, and pin 52 is grounded through resistor R36; pins 1, 6, 10, 14, 20, 24, 28, 35, and 40 are connected to the power supply AVCC1.9V; pins 47, 50, 55, 82, and 94 are connected to the power supply DVCC1.9V; Pin 101 of the Ethernet switch chip N3 is connected to the cathode of the light-emitting diode VD1 through a resistor R8, pin 96 of the Ethernet switch chip N3 is connected to the cathode of the light-emitting diode VD2 through a resistor R10, pin 93 of the Ethernet switch chip N3 is connected to the anode of the diode VD3, and is connected to the anode of the light-emitting diode VD1 and the anode of the light-emitting diode VD2 through a resistor R9 and then connected to a power supply of 3.3V, and is also grounded through a capacitor C6, the cathode of the diode VD3 is connected to pin 110 of the MCU microcontroller N5B, and pin 71 of the Ethernet switch chip N3 is connected to a power supply of 3.3V through a resistor R27.

4. A locomotive passing detection system according to claim 3, characterized in that: The network voltage stabilizer circuit adopts a chip T1 of model H1102 and a socket XS1 of model NC_JS-1147V-06, wherein the 16th pin of the chip T1 is connected to the 3rd pin of the socket XS1 through a resistor R2, the 15th pin is grounded through a resistor R3 and a capacitor C2, the 14th pin is connected to the 4th pin of the socket XS1 through a resistor R4, the 11th pin is connected to the 1st pin of the socket XS1 through a resistor R5, and the 10th pin is grounded through a resistor R6 and a capacitor C4; the 1st pin of the chip T1 is connected to the 3rd pin of the Ethernet switch chip N3, the 2nd pin is connected to the power supply AVCC1.9V and is grounded through a capacitor C3, the 3rd pin is connected to the 4th pin of the Ethernet switch chip N3, the 6th pin is connected to the 127th pin of the Ethernet switch chip N3, the 7th pin is connected to the power supply AVCC1.9V and is grounded through a capacitor C5, and the 8th pin is connected to the 128th pin of the Ethernet switch chip N3.

5. A locomotive passing detection system according to claim 4, characterized in that: Microcontroller unit The control program flow performs the following operations:

1. First, the timer and temperature detection program enter the initialization, and the locomotive enters the detection signal state through the detection device; 2. If the induced voltage signal received by the potential comparison circuit of the locomotive passing detection device when the locomotive passes the passive magnetic steel A is higher than 2V, the timing starts and the timing state is maintained, otherwise, it returns to step 1; 3. If the induced voltage signal received by the detection device through the passive magnetic steel B is higher than 2V, the timing is stopped and the timing interrupt flag is cleared, otherwise, it returns to step 1; Fourth, the micro control unit collects the locomotive passing signal through the potential comparison circuit, calculates the speed from the passive magnetic steel A to the passive magnetic steel B, and determines the locomotive's driving direction at the same time; 5. The microcontroller unit collects the environmental detection signal through the environmental detection module of the environmental detection circuit; 6. The micro control unit analyzes and processes the speed of the locomotive passing through the passive magnetic steel A to the passive magnetic steel B, the locomotive driving direction and the environmental detection data, and then sends them to the central server for reception and distribution; 7. The central server sends the speed of the locomotive passing through magnet A to magnet B, the locomotive's driving direction and environmental detection data to the early warning server. The early warning server generates early warning information and sends the early warning information of the locomotive passing to the staff holding the portable handheld station.