Secondary detection equipment fault maximum time delay calculation method, equipment and medium
By obtaining the static connection path and path length of the secondary detection equipment, combining it with the communication cycle of the trackside area controller, and using computer software coding to calculate the maximum fault delay of the secondary detection equipment, the problems of inaccurate calculation and low efficiency in the existing technology are solved, and efficient and accurate maximum fault delay calculation is achieved.
Patent Information
- Application Number
- CN202510560058.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2045-04-30
AI Technical Summary
Existing technologies make it difficult to accurately calculate the maximum delay of secondary detection equipment failures, and manual data production is inefficient, making it impossible to quickly process a large number of secondary detection devices in complex scenarios.
By inputting line data, all static connection paths of the current secondary detection equipment are obtained, the maximum path length is calculated, and the maximum fault delay is calculated in combination with the communication cycle of the trackside area controller. Computer software coding is used to realize automatic calculation.
The accurate calculation of the maximum delay of secondary detection equipment failure is achieved, the calculation efficiency is improved, the number of repeated path searches and loops is reduced, and the execution efficiency of computer software is improved.
Smart Images

Figure CN120602383A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a rail transit signal system, and in particular to a method, device and medium for calculating the maximum time delay of a secondary detection device failure. Background Art
[0002] Safety is always a primary consideration in urban rail transit. Failures during operation, resulting in line closures or even accidents, can severely impact urban transportation operations and the quality of life and safety of city residents. Therefore, fault detection and response measures must be considered in urban rail transit software design.
[0003] Secondary Detection Devices (SDDs) are used in urban rail train control systems to locate and downgrade trains. They can be used to locate trains by detecting whether they are occupied. To ensure normal train operation, train control systems typically use both the occupancy status of the SDD and the train envelope (AP) calculated within the trackside zone controller (ZC) system to ensure accurate train positioning information.
[0004] After searching, Chinese patent publication number CN118770306A discloses a fault identification method, equipment and medium for secondary detection equipment. Specifically, it discloses that after obtaining the train safety envelope and the secondary detection equipment occupancy detection information, the train position information from two different sources is compared to determine whether the secondary detection equipment corresponding to the current track section is faulty.
[0005] If a SDD on a line shows a vehicle occupied and occupied, while the ZC AP considers it unoccupied and unoccupied, the SDD is considered faulty. If two consecutive adjacent SDDs are occupied, while the ZC AP considers them unoccupied and unoccupied, the AP is considered to have miscalculated and a non-communicating train needs to be added. The condition for determining that two adjacent SDDs are consecutively occupied is that after an SDD is occupied, its adjacent SDD also appears occupied within a certain period of time. The maximum value of this time interval, i.e., the maximum delay for secondary detection equipment failure, is the time required for a train to traverse the longest path between adjacent SDDs at a speed of 5 km / h.
[0006] Therefore, how to accurately calculate the maximum fault delay in the secondary monitoring device (SDD) has become a technical problem that needs to be solved. At the same time, due to the existence of multiple complex scenarios that need to be considered and handled, and the huge number of secondary detection devices included in a line, it is very difficult to manually generate data. How to further speed up the calculation process has also become a technical problem that needs to be solved. Summary of the Invention
[0007] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide a method, device and medium for calculating the maximum delay of secondary detection equipment failure with high calculation accuracy and high calculation efficiency.
[0008] The purpose of the present invention can be achieved by the following technical solutions:
[0009] According to a first aspect of the present invention, a method for calculating a maximum delay of a secondary detection device failure is provided, the method comprising the following steps:
[0010] Step S1, input line data and obtain the secondary detection equipment that needs to be calculated;
[0011] Step S2, obtaining all static connection paths in the current secondary detection device;
[0012] Step S3, calculating the maximum length of all static connection paths in the current secondary detection device;
[0013] Step S4: Calculate the maximum delay of the current secondary detection device failure based on the maximum static connection path length and the communication cycle of the trackside area controller.
[0014] As a preferred technical solution, the line data in step S1 includes track section information and secondary detection equipment information.
[0015] As a preferred technical solution, in step S1, the secondary detection device information is obtained by traversing all secondary detection devices in the line data.
[0016] As a preferred technical solution, the static connection path in step S2 is a path that searches from a certain boundary track segment of the current secondary detection device along one direction to reach the boundary track segment of another current secondary detection device, and all track segments contained in the path are track segments contained in the current secondary detection device.
[0017] As a preferred technical solution, step S2 specifically includes the following steps:
[0018] Step S201, obtaining all track sections included in the current secondary detection equipment in the line data;
[0019] Step S202, obtaining all boundary track segments of the current secondary detection device;
[0020] Step S203: traverse each boundary track segment to obtain all static connection paths in the current secondary detection device.
[0021] As a preferred technical solution, step S203 specifically includes:
[0022] Step S2031, determine whether there are any untraversed boundary track segments, if yes, execute step S2032, otherwise end;
[0023] Step S2032: Select an untraversed boundary track segment and determine whether the boundary track segment is included in the existing static connection path. If so, skip the search calculation starting from the track segment and return to step S2031; otherwise, execute step S2033.
[0024] Step S2033: Search from the upstream and downstream directions respectively to obtain all static connection paths in the current secondary detection device.
[0025] As a preferred technical solution, step S3 specifically includes the following steps:
[0026] Step S301, obtaining all static connection paths in the current secondary detection device, and setting the maximum initial value of the path length to 0;
[0027] Step S302, traversing all static connection paths in the current secondary detection device to obtain all track segments included in the path;
[0028] Step S303, adding the lengths of the track segments included in the path to obtain the path length;
[0029] Step S304 , determining whether the path length is greater than the maximum path length; if so, assigning the path length to the maximum path length; otherwise, returning to step S302 .
[0030] As a preferred technical solution, step S302 specifically includes:
[0031] Step S3021, determine whether there are any untraversed static connection paths, if yes, execute step S3022, otherwise end;
[0032] Step S3022: Select an untraversed static connection path and obtain all track segments included in the path.
[0033] As a preferred technical solution, step S4 is specifically as follows:
[0034]
[0035] As a preferred technical solution, the method is implemented through computer software coding.
[0036] According to a second aspect of the present invention, an electronic device is provided, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the method when executing the program.
[0037] According to a third aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method described above is implemented.
[0038] Compared with the prior art, the present invention has the following advantages:
[0039] 1) The present invention can accurately calculate the maximum fault delay in secondary monitoring equipment and implement it through computer software coding, which greatly improves the efficiency compared with manual data generation;
[0040] 2) The present invention only needs to select boundary track segments as starting points for traversal, which reduces the number of loops compared to traversing every track segment. At the same time, by judging whether a track segment is included in an existing path, it is skipped, reducing meaningless repeated path searches and improving execution efficiency.
[0041] 3) The present invention determines and ensures that all track segments in the path are track segments included in the current secondary detection device when searching for the path, thereby reducing unnecessary paths during the calculation process and saving the workload of screening paths. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a specific flow chart of the present invention;
[0043] Figure 2 Obtaining a flow chart of all static connection paths in the current secondary detection device for the present invention;
[0044] Figure 3 A flow chart for calculating the maximum length of all static connection paths in the current secondary detection device according to the present invention;
[0045] Figure 4 This is a distribution diagram of track sections and secondary detection equipment of a certain line according to a specific embodiment of the present invention. DETAILED DESCRIPTION
[0046] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0047] like Figure 1 As shown, the present invention provides a method for calculating the maximum delay of a secondary detection device failure, the method comprising the following steps:
[0048] Step S1, input line data and obtain the secondary detection equipment that needs to be calculated;
[0049] Step S2, obtaining all static connection paths in the current secondary detection device;
[0050] Step S3, calculating the maximum length of all static connection paths in the current secondary detection device;
[0051] Step S4: Calculate the maximum delay of the current secondary detection device failure based on the maximum static connection path length and the communication cycle of the trackside area controller.
[0052] The calculation of the maximum fault delay in the secondary detection equipment needs to consider the paths that all trains may pass through the secondary detection equipment. Without considering shunting, it is only necessary to find the longest path running in one direction, that is, the static connection path.
[0053] like Figure 2 As shown, step S2 specifically includes the following steps:
[0054] Step S201, obtaining all track sections included in the current secondary detection equipment in the line data;
[0055] Step S202, obtaining all boundary track segments of the current secondary detection device;
[0056] Step S203: traverse each boundary track segment to obtain all static connection paths in the current secondary detection device.
[0057] The step S203 specifically includes:
[0058] Step S2031, determine whether there are any untraversed boundary track segments, if yes, execute step S2032, otherwise end;
[0059] Step S2032: Select an untraversed boundary track segment and determine whether the boundary track segment is included in the existing static connection path. If so, skip the search calculation starting from the track segment and return to step S2031; otherwise, execute step S2033.
[0060] Step S2033: Search from the upstream and downstream directions respectively to obtain all static connection paths in the current secondary detection device.
[0061] like Figure 3 As shown, step S3 specifically includes the following steps:
[0062] Step S301, obtaining all static connection paths in the current secondary detection device, and setting the maximum initial value of the path length to 0;
[0063] Step S302, traversing all static connection paths in the current secondary detection device to obtain all track segments included in the path;
[0064] Step S303, adding the lengths of the track segments included in the path to obtain the path length;
[0065] Step S304 , determining whether the path length is greater than the maximum path length; if so, assigning the path length to the maximum path length; otherwise, returning to step S302 .
[0066] The step S302 specifically includes:
[0067] Step S3021, determine whether there are any untraversed static connection paths, if yes, execute step S3022, otherwise end;
[0068] Step S3022: Select an untraversed static connection path and obtain all track segments included in the path.
[0069] The step S4 is specifically as follows:
[0070]
[0071] like Figure 4 As shown in FIG. 1 , the track section line connection of a specific embodiment of the present invention is shown in FIG. 1 , and the specific implementation process is as follows:
[0072] Step 1: Input line data and obtain the secondary detection equipment to be calculated;
[0073] Input line data diagram see Figure 4 As shown, the ZC communication cycle obtained from the line data is 336ms, wherein Table 1 is the line data information table.
[0074] Table 1
[0075] name Name of secondary testing equipment Track section length (m) B1 SDD1 30 B2 SDD1 30 B3 SDD1 30 B4 SDD1 30 B5 SDD1 45 B6 SDD1 45 B7 SDD2 30 B8 SDD2 30 B9 SDD2 27 B10 SDD2 30 B11 SDD2 30 B12 SDD2 30 B13 SDD2 30 B14 SDD2 33 B15 SDD2 45 B16 SDD2 15 B17 SDD2 15 B18 SDD2 60
[0076] Step 2: Obtain all static connection paths in the current secondary detection device;
[0077] First, calculate SDD1. Select the edge track segment B1, B6, B4, and B5 in SDD1. First, calculate the path within SDD1 starting from B1. This yields two paths: B1, B2, B3, B5, and B1, B2, B3, B4. Then, calculate the path within SDD1 starting from B6. This yields two paths: B6, B2, B3, B5, and B6, B2, B3, B4. B4 and B5 are already in the existing path, so they are skipped.
[0078] Similarly, by calculating SDD2, we can obtain all static connection paths as shown in the following table, where Table 2 is the static connection path information table:
[0079] Table 2
[0080] Secondary testing equipment name Path information SDD1 B1,B2,B3,B5 SDD1 B1,B2,B3,B4 SDD1 B6,B2,B3,B5 SDD1 B6,B2,B3,B4 SDD2 B7,B9,B10,B11 SDD2 B7,B15,B16,B14 SDD2 B8,B17,B18,B11 SDD2 B8,B15,B13,B14
[0081] Step 3: Calculate the maximum length of all static connection paths in the current secondary detection device;
[0082] Combine the result obtained in step 2 with the track segment length information in step 1 to obtain the length of each static connection path, as shown in Table 3. Table 3 is a static connection path length information table:
[0083] Table 3
[0084] Secondary testing equipment name Path information Path length (m) SDD1 B1,B2,B3,B5 135 SDD1 B1,B2,B3,B4 120 SDD1 B6,B2,B3,B5 150 SDD1 B6,B2,B3,B4 135 SDD2 B7,B9,B10,B11 117 SDD2 B7,B15,B16,B14 123 SDD2 B8,B17,B18,B11 135 SDD2 B8,B15,B13,B14 138
[0085] According to the results shown in Table 3, the longest path of SDD1 is 150m, and the longest path of SDD2 is 138m.
[0086] Step 4: Calculate the maximum length of all static connection paths in the current secondary detection device;
[0087] According to the calculation formula for the maximum delay of secondary detection equipment failure and the obtained ZC communication period, the maximum delay of secondary detection equipment failure of SDD1 is calculated to be 0.3214, and the maximum delay of secondary detection equipment failure of SDD2 is calculated to be 0.2957.
[0088] The above is an introduction to a method embodiment. The following further illustrates the solution of the present invention through an electronic device and a storage medium embodiment.
[0089] An embodiment of the present invention further provides an electronic device including a central processing unit (CPU), which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) or computer program instructions loaded from a storage unit into a random access memory (RAM). In the RAM, various programs and data required for device operation can also be stored. The CPU, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0090] Many components in a device are connected to the I / O interface, including: input units, such as a keyboard and mouse; output units, such as various types of displays and speakers; storage units, such as magnetic disks and optical disks; and communication units, such as network cards, modems, and wireless communication transceivers. The communication unit allows the device to exchange information / data with other devices via computer networks such as the Internet and / or various telecommunication networks.
[0091] The processing unit performs the various methods and processes described above, such as methods S1 to S4. For example, in some embodiments, methods S1 to S4 can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit. In some embodiments, part or all of the computer program can be loaded and / or installed on the device via a ROM and / or a communication unit. When the computer program is loaded into the RAM and executed by the CPU, one or more steps of methods S1 to S4 described above can be performed. Alternatively, in other embodiments, the CPU can be configured to execute methods S1 to S4 by any other appropriate means (for example, by means of firmware).
[0092] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0093] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. Such program code can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0094] In the context of the present invention, machine-readable medium can be a tangible medium that can contain or store a program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0095] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and such modifications or substitutions are intended to be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. A method for calculating the maximum delay of a secondary detection device failure, characterized in that: The method comprises the following steps: Step S1, input line data and obtain the secondary detection equipment that needs to be calculated; Step S2, obtaining all static connection paths in the current secondary detection device; Step S3, calculating the maximum length of all static connection paths in the current secondary detection device; Step S4: Calculate the maximum delay of the current secondary detection device failure based on the maximum static connection path length and the communication cycle of the trackside area controller.
2. The method for calculating the maximum delay of a secondary detection device failure according to claim 1, wherein: The line data in step S1 includes track section information and secondary detection equipment information.
3. The method for calculating the maximum delay of a secondary detection device failure according to claim 2, wherein: In step S1, secondary detection device information is obtained by traversing all secondary detection devices in the line data.
4. The method for calculating the maximum delay of a secondary detection device failure according to claim 1, wherein: The static connection path in step S2 is a path that searches from a certain boundary track segment of the current secondary detection device to the boundary track segment of another current secondary detection device along one direction, and all track segments included in the path are track segments included in the current secondary detection device.
5. The method for calculating the maximum delay of a secondary detection device failure according to claim 1, wherein: The step S2 specifically includes the following steps: Step S201, obtaining all track sections included in the current secondary detection equipment in the line data; Step S202, obtaining all boundary track segments of the current secondary detection device; Step S203: traverse each boundary track segment to obtain all static connection paths in the current secondary detection device.
6. A method for calculating the maximum delay of secondary detection equipment failure according to claim 5, characterized in that: The step S203 specifically includes: Step S2031, determine whether there are any untraversed boundary track segments, if yes, execute step S2032, otherwise end; Step S2032: Select an untraversed boundary track segment and determine whether the boundary track segment is included in the existing static connection path. If so, skip the search calculation starting from the track segment and return to step S2031; otherwise, execute step S2033. Step S2033: Search from the upstream and downstream directions respectively to obtain all static connection paths in the current secondary detection device.
7. The method for calculating the maximum delay of a secondary detection device failure according to claim 1, characterized in that: The step S3 specifically includes the following steps: Step S301, obtaining all static connection paths in the current secondary detection device, and setting the maximum initial value of the path length to 0; Step S302, traversing all static connection paths in the current secondary detection device to obtain all track segments included in the path; Step S303, adding the lengths of the track segments included in the path to obtain the path length; Step S304 , determining whether the path length is greater than the maximum path length; if so, assigning the path length to the maximum path length; otherwise, returning to step S302 .
8. A method for calculating the maximum delay of a secondary detection device failure according to claim 7, characterized in that: The step S302 specifically includes: Step S3021, determine whether there are any untraversed static connection paths, if yes, execute step S3022, otherwise end; Step S3022: Select an untraversed static connection path and obtain all track segments included in the path.
9. The method for calculating the maximum delay of a secondary detection device failure according to claim 1, wherein: The step S4 is specifically as follows:
10. The method for calculating the maximum delay of secondary detection equipment failure according to claim 1, characterized in that: The method is implemented through computer software coding.
11. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the program, the method according to any one of claims 1 to 10 is implemented.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Method and device for protection switching
CN103117924A
Fault tolerant transmission for a wireless link
CN111434051A
Method and device for determining redundancy judgment time, electronic equipment and storage medium
CN116985876A
Audio fault detection method for vehicle and related equipment
CN117528343A
Fault identification method and device for secondary detection device and medium
CN118770306A