Train detection system and method
By using software logic circuits to replace hardware circuits in the 64D semi-automatic closure system, system maintenance is simplified, fault repair difficulties caused by complex hardware circuits are solved, and cost savings and management efficiency are improved.
Patent Information
- Application Number
- CN202411359342.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2024-12-03
AI Technical Summary
The hardware circuit structure of the 64D semi-automatic closure system is complex, which leads to difficulty in troubleshooting and requires a lot of human resources, which brings difficulties to system maintenance and management.
Software-based logic circuits are used to replace physical hardware circuits, receive relay signals through acquisition circuits, control circuits determine train status signal types, and simulated logic circuits are built for closure management between stations.
Simplifies system maintenance, saves labor costs, and reduces the difficulty of fault detection and repair.
Smart Images

Figure CN119058792A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of railway transportation communication technology, and in particular to a train detection system and method. Background Art
[0002] The 64D semi-automatic block system is a railway signal system that can use relay circuits to achieve communication between stations, such as section vacancy check, block status control, train arrival integrity check, etc.
[0003] At present, the 64D semi-automatic block system is generally controlled by hardware circuits, and the structure of the hardware circuits is relatively complex, such as Figure 1 As shown, due to the complexity of the hardware circuit, when the 64D semi-automatic interlocking system fails, a large amount of human resources are required for maintenance and it is not easy to find the circuit fault, which brings certain difficulties to the maintenance and management of the system. Summary of the invention
[0004] The present application provides a train detection system and method, which uses software-based logic circuits to replace physical hardware circuits, making it relatively easier to maintain than hardware circuits in the prior art, and can save a certain amount of manpower costs.
[0005] In a first aspect, the present application provides a train detection system, including: a logic control circuit and an acquisition circuit;
[0006] The acquisition circuit is used to receive the relay signal and send the relay signal to the control circuit;
[0007] The control circuit is used to determine the type of train status signal according to the relay signal or the received control signal and determine the relay module required to build the analog logic circuit according to the type of train status signal;
[0008] The connection relationship between the relay modules is determined according to the adsorption state or initialization state of each relay module, and an analog logic circuit is built according to the connection relationship. The analog logic circuit is used to handle blocking between stations.
[0009] Optionally, the control circuit includes a relay logic control circuit and a main control circuit;
[0010] The main control circuit is used to receive the relay signal or the control signal sent by the acquisition circuit and send the relay signal or the control signal to the relay logic control circuit;
[0011] The relay logic control circuit is used to determine the type of the train status signal according to the relay signal or the control signal and determine the relay module required to build the analog logic circuit according to the type of the train status signal;
[0012] The connection relationship between the relay modules is determined according to the suction state or initialization state of each relay module, and an analog logic circuit is constructed according to the connection relationship.
[0013] Optionally, the relay logic control circuit is specifically used for:
[0014] When a reset signal is received, it is determined that the rear node of each group of nodes of each relay module is connected to the middle node, and the front node is disconnected from the middle node;
[0015] When the reset signal is not received and the relay is powered or the relay is in the attracted state, it is determined that the rear node of each group of nodes of the relay module is connected to the middle node and the front node is disconnected from the middle node;
[0016] When the reset signal is not received and the relay is powered or in a dropped state, it is determined that the rear node of each group of nodes of the relay module is disconnected from the middle node and the front node is connected to the middle node, and the relay module corresponds to the relay.
[0017] Optionally, the acquisition circuit is specifically used for:
[0018] The pickup state of the relay module is determined according to the level state of the signal of each interface.
[0019] Optionally, the system further includes a driving circuit, and the driving circuit is used to control lighting of a corresponding signal light or sounding of an electric bell according to the constructed analog logic circuit.
[0020] Optionally, the acquisition circuit includes: a plurality of optical couplers, wherein the positive electrode of the light emitting diode in each of the optical couplers is connected to an external power supply, and the photosensitive element in each of the optical couplers is connected to a corresponding acquisition signal interface.
[0021] Optionally, the driving circuit includes: an optical coupler, wherein the cathode of the light-emitting diode in the optical coupler is connected to a 3.3V power supply, and the cathode of the light-emitting diode is connected to a signal input interface;
[0022] The positive electrode of the photosensitive element in the optocoupler is connected to the base of the transistor Q1, and the negative electrode of the photosensitive element in the optocoupler is grounded.
[0023] In a second aspect, the present application further provides a train detection method, the method comprising:
[0024] Receive relay signal;
[0025] Determine the type of the train status signal according to the relay signal or the received control signal and determine the relay module required to build the analog logic circuit according to the type of the train status signal;
[0026] Determine the connection relationship between the relay modules according to the adsorption state or initialization state of each relay module and build an analog logic circuit according to the connection relationship;
[0027] The analog logic circuit is used to carry out blocking between stations.
[0028] Optionally, determining the connection relationship between the relay modules according to the adsorption state or initialization state of each relay module includes:
[0029] When a reset signal is received, it is determined that the rear node of each group of nodes of the relay module is connected to the middle node, and the front node is disconnected from the middle node;
[0030] When the reset signal is not received and the relay is powered or the relay is in the attracted state, it is determined that the rear node of each group of nodes of the relay module is connected to the middle node and the front node is disconnected from the middle node;
[0031] When the reset signal is not received and the relay is powered or in a dropped state, it is determined that the rear node of each group of nodes of the relay module is disconnected from the middle node and the front node is connected to the middle node, and the relay module corresponds to the relay.
[0032] Optionally, determining the connection relationship between the relay modules according to the suction state or initialization state of each relay module includes:
[0033] According to the level status of the signal of each interface, the pickup status of the relay module is determined;
[0034] The connection relationship between the relay modules is determined according to the pickup state or initialization state of each relay module.
[0035] In a third aspect, an embodiment of the present application provides a device, comprising a memory and a processor, wherein the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the device executes any method described in the first aspect.
[0036] In a fourth aspect, an embodiment of the present application provides a computer storage medium, in which a code is stored. When the code is executed, a device executing the code implements the method described in any one of the first aspects above.
[0037] Compared with the prior art, this application has the following beneficial effects:
[0038] The train detection system in the present application includes: a logic control circuit and an acquisition circuit, wherein the acquisition circuit is used to receive a relay signal and send the relay signal to the control circuit, the control circuit is used to determine the type of train status signal according to the relay signal or the received control signal and determine the relay module required to build an analog logic circuit according to the type of train status signal, determine the connection relationship between relay modules according to the adsorption state or initialization state of each relay module and build an analog logic circuit for interlocking between stations according to the connection relationship. In this way, a software-based logic circuit is used to replace a physical hardware circuit, which is relatively easy to maintain compared to the hardware circuit in the prior art, and can save a certain amount of labor costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in this embodiment or 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 A circuit structure diagram of a 64D semi-automatic blocking system in the prior art provided in an embodiment of the present application;
[0041] Figure 2 A structural diagram of a train detection system provided in an embodiment of the present application;
[0042] Figure 3 A circuit structure diagram of a collection circuit provided in an embodiment of the present application;
[0043] Figure 4 A schematic diagram of relay modularization provided in an embodiment of the present application;
[0044] Figure 5 A structural diagram of another train detection system provided in an embodiment of the present application;
[0045] Figure 6 A structural diagram of an analog logic circuit provided in an embodiment of the present application;
[0046] Figure 7 A circuit structure diagram of a driving circuit provided in an embodiment of the present application;
[0047] Figure 8 A flow chart of a train detection method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0049] It should be noted that the train detection system and method provided by the present application can be used in the field of railway transportation communication technology. The above is only an example and does not limit the application field of the method and device provided by the present application.
[0050] The 64D semi-automatic block system is a railway signal system that can use relay circuits to achieve communication between stations, such as section vacancy check, block status control, train arrival integrity check, etc.
[0051] At present, the 64D semi-automatic block system is generally controlled by hardware circuits, and the structure of the hardware circuits is relatively complex, such as Figure 1 As shown, due to the complexity of the hardware circuit, when the 64D semi-automatic interlocking system fails, a large amount of human resources are required for maintenance and it is not easy to find the circuit fault, which brings certain difficulties to the maintenance and management of the system.
[0052] In view of this, after research, the technical solution of this application is proposed. The train detection system in this application includes: a logic control circuit and an acquisition circuit, wherein the acquisition circuit is used to receive a relay signal and send the relay signal to the control circuit, and the control circuit is used to determine the type of the train status signal according to the relay signal or the received control signal and determine the relay module required to build the analog logic circuit according to the type of the train status signal, and determine the connection relationship between the relay modules according to the adsorption state or initialization state of each relay module and build an analog logic circuit for handling blockage between stations according to the connection relationship. In this way, the software logic circuit is used instead of the physical hardware circuit, which is relatively easier to maintain than the hardware circuit in the prior art, and can save a certain amount of labor costs.
[0053] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Figure 2 This is a structural diagram of a train detection system provided in an embodiment of the present application. Figure 2 As shown, the system includes: an acquisition circuit 201 and a control circuit 202 .
[0054] The acquisition circuit 201 is used to receive the relay signal and send the relay signal to the control circuit 202. Specifically, the acquisition circuit can be connected to the line relay circuit, the signal sending circuit, the blocking circuit, the vehicle receiving receiver circuit, and the vehicle sending receiving circuit.
[0055] The relays here may include the restoration relay FUAJ, the accident relay SCAJ, the track relay GDJ, the positive line relay ZXL and the negative line relay FXJ in the line relay circuit, the positive power relay ZDJ and the negative power relay FDJ in the signal sending circuit, the blocking relay BSAJ in the blocking circuit, the receipt arrival relay HDJ, the car receiving agreement relay TJJ and the notification departure relay TCJ in the car receiving relay circuit, the selection relay XZJ, the ready opening relay ZKJ, the opening relay KTJ in the departure receiving circuit, etc.
[0056] The circuit structure of the acquisition circuit can be as follows Figure 3 As shown, multiple optocouplers may be included. Figure 3 Take four as examples, namely N1, N2, N3 and N4. Each optocoupler consists of a light-emitting diode (LED), a photosensitive element (such as a phototransistor, a photosensitive diode, etc.) and a coil (for providing energy). Each optocoupler can be connected to the corresponding acquisition interface, and then isolated acquisition is achieved through the optocoupler. The main control circuit controls the output of the dynamic excitation source signal to the c interface to achieve dynamic acquisition of the relay signal.
[0057] Specifically, the positive electrode of the light emitting diode of N1 is connected to the 24V power supply, the negative electrode is connected to the emitter of the transistor Q1, the first port of the photosensitive element of N1 is connected to the a2 interface, and the first port of the photosensitive element of N1 is connected to the a3 interface.
[0058] The positive electrode of the light emitting diode of N2 is connected to the 24V power supply, the negative electrode is connected to the emitter of the transistor Q1, the first port of the photosensitive element of N2 is connected to the b2 interface, and the first port of the photosensitive element of N2 is connected to the b3 interface.
[0059] The positive electrode of the light emitting diode of N3 is connected to the 24V power supply, the negative electrode is connected to the positive electrode of the diode D1, the first port of the photosensitive element of N3 is connected to the a1 interface, and the first port of the photosensitive element of N1 is connected to the a2 interface.
[0060] The positive electrode of the light emitting diode of N4 is connected to the 24V power supply, the negative electrode is connected to the positive electrode of the diode D1, the first port of the photosensitive element of N4 is connected to the b1 interface, and the first port of the photosensitive element of N1 is connected to the b2 interface.
[0061] Figure 3 The functions of R1, R2, R3, R4 and R5 are to limit current and divide voltage or to provide necessary resistance values.
[0062] a1 is connected to the power supply 3.3V, and b1 is connected to the power supply ground of the power supply module. The power supply of the acquisition relay node is powered by an external 24V power supply. a2, a3, b2, and b3 are acquisition signal interfaces. The acquisition circuit collects external relay signals in real time based on the signals provided by the c interface and the hardware circuit, thereby determining the relay status.
[0063] Transistor Q1 is identified as a switch, which is located between R3 and ground and can be used to manually or automatically switch the control state of N2.
[0064] D1 is a diode connected between the b3 pin of the N4 relay and the ground. The function of D1 is to prevent reverse connection and protect the optocoupler from being burned by reverse current.
[0065] The control circuit 202 is used to determine the type of train status signal according to the relay signal or the received control signal and determine the relay module required to build the analog logic circuit according to the type of the train status signal, wherein the train status signal type may include a request for departure signal, a consent to receive the train signal, a notification of sending a signal, an automatic receipt signal, an arrival recovery signal, a cancellation recovery signal, and an accident recovery signal, etc. The relay module refers to the logicization of the relay properties of the hardware and encapsulation into a corresponding relay module, for example, it may include a positive line relay ZXJ for receiving a positive polarity blocking signal, a negative line relay FXJ for receiving a negative polarity blocking signal, a positive electrical appliance ZDJ for sending a positive polarity blocking signal, a negative electrical relay FDJ for receiving a negative polarity blocking signal, and a blocking relay BSJ for supervising and indicating the state of the blocking machine, which is sucked up when the section is idle and no blocking is being processed, and dropped when the section is occupied or blocking is being processed. The selection relay XZJ is used to select and distinguish between automatic receipt and restoration signals, and to monitor whether the exit signal is open. The preparation relay ZKJ is used to record the automatic receipt signal sent by the receiving station. The opening relay KTJ is used to record the consent signal sent by the receiving station and control the exit signal. The restoration relay FUJ is used to receive the restoration signal to restore the blocking machine. The consent relay TJJ is used to record the request for departure signal sent by the departure station, transfer the blocking machine to the receiving state, and form an automatic receipt signal together with the receipt arrival relay HDJ. The departure notification relay TCJ is used to record the train departure notification signal sent by the departure station, and the track relay GDJ is used as the repeater relay of the on-site track relay to supervise the departure and arrival of the train.
[0066] like Figure 4As shown, a relay can have 8 groups of nodes, namely A1B1C1 nodes to A8B9C8 nodes, and can also include a power supply interface such as D1. Then determine whether the relay is powered. According to the adsorption state or initialization state of each relay module, the connection relationship between the relay modules is determined and an analog logic circuit is built according to the connection relationship, wherein the analog logic circuit is built for interlocking between stations. For example, when the train enters the departure station track, the interlocking machine of the departure station is blocked. The departure station can use the built analog logic circuit to send a "+ signal" (notification departure signal) to the destination station. When the train arrives at the destination station completely, the destination station track can also receive the signal to build an analog logic circuit and use the analog logic circuit to return a recovery "- signal" to the departure station. When the departure station receives the "- signal", the departure station can use the analog logic circuit to release the block, thereby realizing the block between the departure station and the destination station.
[0067] In some possible implementations, such as Figure 5 As shown, the control circuit 202 may include a relay logic control circuit 2021 and a main control circuit 1022, wherein the relay logic control circuit 2021 may be a Field Programmable Gate Array (FPGA) circuit.
[0068] The main control circuit 1022 is used to receive the relay signal or control signal sent by the acquisition circuit and send the relay signal or control signal to the relay logic control circuit 2021;
[0069] The relay logic control circuit 2021 can be used to determine the type of train status signal based on the received relay signal or control signal and determine the relay module required to build an analog logic circuit based on the type of train status signal; determine the connection relationship between the relay modules based on the suction state or initialization state of each relay module and build an analog logic circuit based on the connection relationship.
[0070] Specifically, the relay logic control circuit can be used for:
[0071] It is determined whether a reset signal is received, wherein it is determined that the reset signal is received when a signal from the accident relay and a signal from the recovery relay are received.
[0072] When a reset signal is received, it is determined that the rear node of each group of nodes of each relay module is connected to the middle node, and the front node is disconnected from the middle node;
[0073] When the reset signal is not received, it can be further determined whether the relay is powered and in the picked-up state.
[0074] When it is determined that the reset signal is not received and the relay is powered or the relay is in a suction state, it is determined that the rear node of each group of nodes of the relay module is connected to the middle node and the front node is disconnected from the middle node;
[0075] When it is determined that the reset signal is not received and the relay is powered or in a dropped state, it is determined that the rear node of each group of nodes of the relay module is disconnected from the middle node and the front node is connected to the middle node, and the relay module corresponds to the relay.
[0076] Exemplarily, for example, the acquisition circuit 201 acquires a signal notifying the departure relay (also called a relay signal) and sends it to the main control circuit 1022. The main control circuit 1022 can receive the relay signal sent by the acquisition circuit 201 and send it to the relay logic control circuit 2022. The relay logic control circuit 2022 can determine that the type of the train status signal is a request for departure signal based on the signal, and then determine the relay module required to build an analog logic circuit based on the train status signal type. For example, the relay modules required to build an analog logic circuit may include FDJ relays, FUJ relays, BSJ relays, FSBJ relays, KTJ relays, XZJ relays and ZDJ relays. Then, the connection relationship between the relay modules can be determined based on the adsorption state or initialization state of each relay module, and the analog logic circuit can be built based on the connection relationship.
[0077] Specifically, Figure 4 In the relay module shown, D1 and D2 can be power interfaces, A is the front node of the relay, B is the middle node, and C is the rear node. When D1 and D2 have no power input, all the middle nodes are connected to the rear node, and the front node is suspended. When D1 and D2 have power input, all the middle nodes are connected to the front node, and the rear node is suspended.
[0078] Based on the above description, the relay modules required for building analog logic circuits can determine the connection relationship based on similar principles, so that the following can be built according to the connection relationship: Figure 6 The analog logic circuit shown.
[0079] In some possible implementations, the acquisition circuit 201 can be specifically used to determine the suction state of the relay module according to the level of the signal of each interface. Specifically, the a1 interface can be connected to the power supply 3.3V of the relay logic control circuit, and the b1 interface can be connected to the power ground of the relay logic control circuit. C, a2, a3, b2, and b3 are acquisition interfaces. The acquisition circuit can determine whether the relay state is suction state or drop state according to the signals collected by each interface, and the specific logical judgment can be shown in Table 1 and Table 2.
[0080] Table 1
[0081]
[0082] Table 2
[0083]
[0084] As shown in Table 1, when the signal of the c interface is high level, when the signal of the a1 interface is high level, when the signal of the a2 interface is high level, when the signal of the a3 interface is high level, when the signal of the b1 interface is low level, when the signal of the b2 interface is low level and when the signal of the b3 interface is low level, the state of the relay is the attracted state, or, when the signal of the c interface is low level, when the signal of the a1 interface is high level, when the signal of the a2 interface is low level, when the signal of the a3 interface is low level, when the signal of the b1 interface is low level, when the signal of the b2 interface is high level and when the signal of the b3 interface is high level, the state of the relay is the attracted state.
[0085] When the signal of the C interface is high, when the signal of the A1 interface is high, when the signal of the A2 interface is low, when the signal of the A3 interface is low, when the signal of the B1 interface is low, when the signal of the B2 interface is high, and when the signal of the B3 interface is high, the state of the relay is the falling state, or, when the signal of the C interface is low, when the signal of the A1 interface is high, when the signal of the A2 interface is low, when the signal of the A3 interface is low, when the signal of the B1 interface is low, when the signal of the B2 interface is high, and when the signal of the B3 interface is high, the state of the relay is the suction state. It should be noted that the C interface inputs a dynamic signal, such as a square wave signal, then the C interface will input a regular high and low level alternating signal, and other acquisition ports should judge the high and low levels of the interface signal in real time according to the alternating signal. If it meets the logic requirements, it is judged whether the relay is sucked up or dropped. Inputting dynamic signals at the C interface is to prevent the acquisition circuit from malfunctioning, failing to identify, and judging the relay node as a state for a long time.
[0086] Among the possible implementations, Figure 2 As shown, the system of the present application also includes a driving circuit 203, and the driving circuit 203 is used to control the lighting of the corresponding signal light or the sounding of the electric bell according to the constructed analog logic circuit, wherein the signal light may include a red light for picking up a vehicle, a yellow light for picking up a vehicle, a green light for picking up a vehicle, a red light for departure, a yellow light for departure, and a green light for departure, etc. For example, the logic circuit is constructed according to the request for departure signal, and the driving circuit can control the lighting of the corresponding green light for departure according to the constructed analog logic circuit.
[0087] In some possible implementations, the structure of the driving circuit can be as follows: Figure 7As shown, the optocoupler includes a light emitting diode (LED), a photosensitive element (such as a phototransistor, a photosensitive diode, etc.) and a coil (for providing energy).
[0088] The cathode of the light-emitting diode is connected to a 3.3V power supply, and the cathode is connected to a signal input interface (for example, the D interface). The D interface is controlled by the main control circuit. When a low level is given, the N1 optocoupler is turned on, the transistor Q1 is turned on, and the indicator light is lit with an external 24V power supply. When the D interface is controlled to a high level, the indicator light goes out.
[0089] The positive electrode of the photosensitive element is connected to the base of the transistor Q1, and the negative electrode of the photosensitive element is grounded.
[0090] The resistors R1 and R2 are used to limit current and divide voltage or to provide necessary resistance values. The diode D1 is used to prevent reverse connection and protect the optocoupler from being burned out by reverse current.
[0091] Transistor Q1 is identified as a switch, which is located between R3 and ground and can be used to manually or automatically switch the control state of N2.
[0092] The train detection system in the present application includes: a logic control circuit and an acquisition circuit, wherein the acquisition circuit is used to receive a relay signal and send the relay signal to the control circuit, the control circuit is used to determine the type of train status signal according to the relay signal or the received control signal and determine the relay module required to build an analog logic circuit according to the type of train status signal, determine the connection relationship between relay modules according to the adsorption state or initialization state of each relay module and build an analog logic circuit for interlocking between stations according to the connection relationship. In this way, a software-based logic circuit is used to replace a physical hardware circuit, which is relatively easy to maintain compared to the hardware circuit in the prior art, and can save a certain amount of labor costs.
[0093] The above are some specific implementations of the train detection system provided in the embodiments of the present application. Based on this, the present application also provides a corresponding method. The train detection method provided in the embodiments of the present application is introduced below, and the method and the system described above can be referred to each other.
[0094] Figure 8 The flowchart of the method provided in the embodiment of the present invention is referred to as the second specific implementation mode, and the Figure 8 , which may include:
[0095] S801: Receive relay signal.
[0096] S802: Determine the type of the train status signal according to the relay signal or the received control signal and determine the relay module required to build the analog logic circuit according to the type of the train status signal.
[0097] S803: Determine the connection relationship between the relay modules according to the adsorption state or initialization state of each relay module and build an analog logic circuit according to the connection relationship.
[0098] S804: Using the analog logic circuit to perform blocking between stations.
[0099] Optionally, determining the connection relationship between the relay modules according to the adsorption state or initialization state of each relay module includes:
[0100] When a reset signal is received, it is determined that the rear node of each group of nodes of the relay module is connected to the middle node, and the front node is disconnected from the middle node;
[0101] When the reset signal is not received and the relay is powered or the relay is in the attracted state, it is determined that the rear node of each group of nodes of the relay module is connected to the middle node and the front node is disconnected from the middle node;
[0102] When the reset signal is not received and the relay is powered or in a dropped state, it is determined that the rear node of each group of nodes of the relay module is disconnected from the middle node and the front node is connected to the middle node, and the relay module corresponds to the relay.
[0103] Optionally, determining the connection relationship between the relay modules according to the suction state or initialization state of each relay module includes:
[0104] According to the level status of the signal of each interface, the pickup status of the relay module is determined;
[0105] The connection relationship between the relay modules is determined according to the pickup state or initialization state of each relay module.
[0106] The embodiments of the present application also provide corresponding devices and computer storage media for implementing the solutions provided by the embodiments of the present application.
[0107] The device includes a memory and a processor, the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the device executes the method described in any embodiment of the present application.
[0108] The computer storage medium stores codes, and when the codes are executed, a device executing the codes implements the method described in any embodiment of the present application.
[0109] The "first" and "second" in the names such as "first" and "second" (if any) mentioned in the embodiments of the present application are only used as name identifiers and do not represent the first or second in order.
[0110] Through the description of the above implementation methods, it can be known that those skilled in the art can clearly understand that all or part of the steps in the above-mentioned embodiment method can be implemented by means of software plus a general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a storage medium, such as a read-only memory (ROM) / RAM, a magnetic disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network communication device such as a router) to execute the methods described in each embodiment of the present application or some parts of the embodiments.
[0111] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0112] The above description is merely an exemplary embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A train detection system, characterized in that: include: Logic control circuit and acquisition circuit; The acquisition circuit is used to receive the relay signal and send the relay signal to the control circuit; The control circuit is used to determine the type of the train status signal according to the relay signal or the received control signal and determine the relay module required to build the analog logic circuit according to the type of the train status signal; The connection relationship between the relay modules is determined according to the adsorption state or initialization state of each relay module, and an analog logic circuit is built according to the connection relationship. The analog logic circuit is used to handle blocking between stations.
2. The system according to claim 1, characterized in that The control circuit includes a relay logic control circuit and a main control circuit; The main control circuit is used to receive the relay signal or the control signal sent by the acquisition circuit and send the relay signal or the control signal to the relay logic control circuit; The relay logic control circuit is used to determine the type of the train status signal according to the relay signal or the control signal and determine the relay module required to build the analog logic circuit according to the type of the train status signal; The connection relationship between the relay modules is determined according to the suction state or initialization state of each relay module, and an analog logic circuit is constructed according to the connection relationship.
3. The system according to claim 2, characterized in that The relay logic control circuit is specifically used for: When a reset signal is received, it is determined that the rear node of each group of nodes of each relay module is connected to the middle node, and the front node is disconnected from the middle node; When the reset signal is not received and the relay is powered or the relay is in the attracted state, it is determined that the rear node of each group of nodes of the relay module is connected to the middle node and the front node is disconnected from the middle node; When the reset signal is not received and the relay is powered or in a dropped state, it is determined that the rear node of each group of nodes of the relay module is disconnected from the middle node and the front node is connected to the middle node, and the relay module corresponds to the relay.
4. The system according to claim 1, characterized in that The acquisition circuit is specifically used for: The pickup state of the relay module is determined according to the level state of the signal of each interface.
5. The system according to claim 1, characterized in that The system also includes a driving circuit, which is used to control the lighting of a corresponding signal light or the sounding of an electric bell according to the constructed analog logic circuit.
6. The system according to claim 1, characterized in that The acquisition circuit includes: a plurality of optical couplers, wherein the positive electrode of the light emitting diode in each of the optical couplers is connected to an external power supply, and the photosensitive element in each of the optical couplers is connected to a corresponding acquisition signal interface.
7. The system according to claim 1, characterized in that The driving circuit comprises: an optical coupler, wherein the cathode of the light emitting diode in the optical coupler is connected to a 3.3V power supply, and the cathode of the light emitting diode is connected to a signal input interface; The positive electrode of the photosensitive element in the optocoupler is connected to the base of the transistor Q1, and the negative electrode of the photosensitive element in the optocoupler is grounded.
8. A train detection method, characterized in that: include: Receive relay signal; Determine the type of the train status signal according to the relay signal or the received control signal and determine the relay module required to build the analog logic circuit according to the type of the train status signal; Determine the connection relationship between the relay modules according to the adsorption state or initialization state of each relay module and build an analog logic circuit according to the connection relationship; The analog logic circuit is used to carry out blocking between stations.
9. The method according to claim 8, characterized in that The step of determining the connection relationship between the relay modules according to the adsorption state or initialization state of each relay module includes: When a reset signal is received, it is determined that the rear node of each group of nodes of the relay module is connected to the middle node, and the front node is disconnected from the middle node; When the reset signal is not received and the relay is powered or the relay is in the attracted state, it is determined that the rear node of each group of nodes of the relay module is connected to the middle node and the front node is disconnected from the middle node; When the reset signal is not received and the relay is powered or in a dropped state, it is determined that the rear node of each group of nodes of the relay module is disconnected from the middle node and the front node is connected to the middle node, and the relay module corresponds to the relay.
10. The method according to claim 8, characterized in that The step of determining the connection relationship between the relay modules according to the suction state or initialization state of each relay module comprises: According to the level status of the signal of each interface, the pickup status of the relay module is determined; The connection relationship between the relay modules is determined according to the pickup state or initialization state of each relay module.
