A railway safety protocol configuration method, device, equipment, medium and product
By uniformly configuring protocol stack parameter files within the railway train operating section, the problem of burning errors caused by individual configuration for each train was solved, thus improving the reliability and security of communication.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA SHENHUA ENERGY CO LTD
- Filing Date
- 2025-03-18
- Publication Date
- 2026-07-03
AI Technical Summary
In existing technologies, the railway signal security protocol stack parameters of each train need to be configured individually, which is prone to programming errors and affects the reliability and security of train communication.
By uniformly configuring the protocol stack parameter file within the train operating section, all trains within the same section can use the same protocol stack parameters, and a railway signal safety protocol array can be configured to establish connections with communication equipment within the section.
This reduces the error rate of programming protocol stack parameters, improves the stability and security of train communication, and reduces the occurrence of errors.
Smart Images

Figure CN119996057B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of rail transit technology, and in particular to a railway safety protocol configuration method, apparatus, equipment, and storage medium. Background Technology
[0002] The Railway Signal Safety Protocol (RSSP) is a secure communication protocol used in the interfaces of railway signal safety equipment. RSSP is mainly used to ensure the safety and reliability of railway signaling systems during communication and is suitable for communication between various railway signaling devices.
[0003] Protocol stack parameters are required for configuring RSSP and need to be pre-programmed into the train's main control system. Each train uses different communication equipment, resulting in unique protocol stack parameters for each train. Therefore, protocol stack parameters need to be written and configured individually for each train. This method is prone to errors in programming the protocol stack parameters, affecting normal train communication. Summary of the Invention
[0004] This invention provides a railway safety protocol configuration method, apparatus, equipment, medium, and product to solve the problem that programming errors can easily occur when configuring protocol stack parameters separately for different trains.
[0005] According to one aspect of the present invention, a railway safety protocol configuration method is provided, applied to an on-board automatic train protection system (ATP), comprising:
[0006] Read the protocol stack parameters of each communication device in the train operating section from the protocol stack parameter file;
[0007] At least one train associated with the same train operating section uses the same protocol stack parameter file, which contains the protocol stack parameters of all communication devices in the train operating section.
[0008] Configure a railway signal safety protocol array based on the aforementioned protocol stack parameters;
[0009] The railway signal safety protocol array is used to establish communication connections with communication equipment in the train operating section.
[0010] According to another aspect of the present invention, a railway safety protocol configuration device is provided, configured in an on-board automatic train protection system (ATP), comprising:
[0011] The protocol stack parameter reading module is used to read the protocol stack parameters of each communication device in the train operating section from the protocol stack parameter file.
[0012] At least one train associated with the same train operating section uses the same protocol stack parameter file, which contains the protocol stack parameters of all communication devices in the train operating section.
[0013] The railway safety protocol configuration module is used to configure the railway signal safety protocol array based on the protocol stack parameters.
[0014] The railway signal safety protocol array is used to establish communication connections with communication equipment in the train operating section.
[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0016] At least one processor; and
[0017] A memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to execute the railway safety protocol configuration method according to any embodiment of the present invention.
[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the railway safety protocol configuration method according to any embodiment of the present invention.
[0020] According to another aspect of the present invention, a computer program product is provided, including a computer program that, when executed by a processor, implements the railway safety protocol configuration method of any embodiment of the present disclosure.
[0021] The technical solution of this invention involves the onboard ATP (Automatic Train Protection) reading a pre-programmed protocol parameter file to obtain the protocol stack parameters of all communication devices in the train's operating section. Based on these protocol stack parameters, a railway signal safety protocol array is configured to establish communication connections with other communication devices in the train's operating section. By pre-programming a unified protocol stack parameter file into each train associated with the train's operating section, the onboard ATP of each train can configure railway signal safety protocol data based on the protocol stack parameter file, providing parameter basis for establishing communication between the train and other communication devices. Compared to the method of programming different protocol stack parameter files for each train, this solution can reduce the error rate of programming protocol stack parameters.
[0022] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 This is a flowchart of a railway safety protocol configuration method provided in Embodiment 1 of the present invention;
[0025] Figure 2a This is a flowchart of a railway safety protocol configuration method according to Embodiment 2 of the present invention;
[0026] Figure 2b This is a schematic diagram of the communication device type provided in Embodiment 2 of the present invention;
[0027] Figure 2c This is the content of the protocol stack parameter file before compression, as provided in Embodiment 2 of the present invention;
[0028] Figure 2d This is the content of the compressed protocol stack parameter file provided according to Embodiment 2 of the present invention;
[0029] Figure 3 This is a schematic diagram of the structure of a railway safety protocol configuration device according to Embodiment 3 of the present invention;
[0030] Figure 4 This is a schematic diagram of the structure of an electronic device that implements the railway safety protocol configuration method of this invention. Detailed Implementation
[0031] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0032] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0033] Example 1
[0034] Figure 1 This is a flowchart of a railway safety protocol configuration method provided in Embodiment 1 of the present invention. This embodiment is applicable to situations where a unified protocol stack parameter file is pre-programmed into all trains associated with a train operating section. This method can be executed by a railway safety protocol configuration device, which can be implemented in hardware and / or software. This railway safety protocol configuration device can be configured in various general-purpose computing devices, for example, in an Automatic Train Protection (ATP) system. Figure 1 As shown, the method includes:
[0035] S110. Read the protocol stack parameters of each communication device in the train operating section from the protocol stack parameter file; the protocol stack parameter files used by at least one train associated with the same train operating section are the same, and all contain the protocol stack parameters of all communication devices in the train operating section.
[0036] A train operating section is a specific area within a railway transportation network that a train traverses from its origin to its destination. A train operating section includes multiple communication devices, such as multiple ground control centers (GCCs) deployed at intervals along the section, onboard communication equipment on at least one train passing through the section, and other communication equipment within the section. Each train contains at least two communication devices, including onboard ATP (Automatic Train Protection) and onboard tail-end communication equipment.
[0037] The protocol stack parameter file is a parameter file used by the train's ATP (Automatic Train Protection) system when establishing communication with other communication devices within the train's operating section. The protocol stack parameter file needs to be pre-burned into the non-volatile memory associated with the train ATP for use when establishing communication connections with other communication devices.
[0038] In existing technologies, the protocol stack parameter file required for each train is written based on the other communication devices that the train needs to establish communication with, and contains the protocol stack parameters of the other communication devices that the train needs to establish communication connections with. Since the communication devices that each train needs to establish communication connections with are different, the protocol stack parameter file for each train is unique and needs to be written and burned separately.
[0039] For example, if Train 1's onboard ATP1 needs to establish communication with Train 2's onboard ATP2, onboard tail section, ground GCC1, and ground GCC2 within the same train operating section, then a protocol stack parameter file containing the protocol stack parameters of the aforementioned communication devices needs to be written and burned into the flash memory of onboard ATP1. Similarly, if Train 2's onboard ATP2 needs to establish communication with Train 1's onboard ATP1, onboard tail section, ground GCC1, and ground GCC3 within the same train operating section, then a protocol stack parameter file containing the protocol stack parameters of the aforementioned communication devices needs to be written and burned into the flash memory of onboard ATP1. Clearly, the protocol stack parameter files required for the onboard ATP of Train 1 and Train 2 are different.
[0040] When there are a large number of trains, the above method is complex and error-prone in both programming and burning, and errors can only be detected when the train establishes a communication connection, which seriously affects the normal communication of the train.
[0041] To reduce programming and flashing errors, in this embodiment of the invention, at least one train associated with the same train operating section flashes the same protocol stack parameter file, which contains the protocol stack parameters of all communication devices in the train operating section. When establishing a communication connection, the train can selectively use the protocol stack parameters contained in the protocol stack parameter file.
[0042] During the initialization of the onboard ATP, the protocol stack parameters of each communication device in the train's operating section are first read from the protocol stack parameter file. Specifically, the protocol stack parameters of each communication device can be read from the protocol stack parameter file based on its identification code. The protocol stack parameters of each communication device include its device layer parameters and the session layer parameters between the communication device and the current onboard ATP.
[0043] S120. Configure the railway signal safety protocol array based on the protocol stack parameters; the railway signal safety protocol array is used to establish communication connections with communication equipment in the train operating section.
[0044] In this embodiment of the invention, based on the parameter composition principles of Railway Signal Safety Protocol-1 (RSSP-1), the system further configures the railway signal safety protocol array associated with the current onboard ATP based on the read protocol stack parameters, providing the onboard ATP with the parameter basis for establishing a communication connection. When the onboard ATP needs to establish a communication connection with a target communication device, it needs to read the protocol stack parameters associated with the target communication device from the railway signal safety protocol array.
[0045] The railway signaling safety protocol array includes Safety Function Management Layer (SFM) data and Communication Function Management Layer (CFM) data. The SFM array is formed by the SFM data corresponding to each communication device, and the CFM array is formed by the CFM data corresponding to each communication device.
[0046] The technical solution of this invention involves the onboard ATP (Automatic Train Protection) reading a pre-programmed protocol parameter file to obtain the protocol stack parameters of all communication devices in the train's operating section. Based on these protocol stack parameters, a railway signal safety protocol array is configured to establish communication connections with other communication devices in the train's operating section. By pre-programming a unified protocol stack parameter file into each train associated with the train's operating section, the onboard ATP of each train can configure railway signal safety protocol data based on the protocol stack parameter file, providing parameter basis for establishing communication between the train and other communication devices. Compared to the method of programming different protocol stack parameter files for each train, this solution can reduce the error rate of programming protocol stack parameters.
[0047] Example 2
[0048] Figure 2a This is a flowchart of a railway safety protocol configuration method provided in Embodiment 2 of the present invention. This embodiment further refines the above embodiment, providing specific steps for configuring a railway signaling safety protocol array based on protocol stack parameters, and specific steps following the configuration of the railway signaling safety protocol array based on protocol stack parameters. Figure 2a As shown, the method includes:
[0049] S210. Read the protocol stack parameters of each communication device in the train operating section from the protocol stack parameter file; the protocol stack parameter files used by at least one train associated with the same train operating section are the same, and all contain the protocol stack parameters of all communication devices in the train operating section.
[0050] Optionally, the protocol stack parameter file includes a protocol stack data packet consisting of session layer parameters associated with each type of communication device in the current onboard ATP and the device layer parameters of each communication device in the current operating section.
[0051] When a train operating section contains a large number of communication devices, each device has corresponding device-level parameters and session-level parameters between that device and the current onboard ATP (Automatic Train Protection). This results in the protocol stack parameters of all communication devices occupying a significant amount of storage space.
[0052] To reduce the space occupied by the protocol stack parameter file, the protocol stack parameters need to be compressed for storage. In this optional embodiment, the compression principle is based on the classification of common and unique attributes in the protocol stack parameters. Specifically, communication devices belonging to the same device type have the same session layer parameters in their protocol stack parameters, while the device layer parameters of each communication device are different. Therefore, the parameters with the same characteristics can be compressed. That is, for multiple communication devices belonging to the same device type, the corresponding session layer parameters are stored only once. The final protocol stack data packet consists of the session layer parameters associated with each type of communication device in the current onboard ATP and the device layer parameters of each communication device in the current operating section. The protocol stack data packet is a part of the protocol stack parameter file.
[0053] Optionally, the protocol stack parameter file is a binary file consisting of a file header, file length, file version, protocol stack data packets, and file checksum.
[0054] In a specific example, the types of communication equipment in the train operating section are as follows: Figure 2b As shown, it includes onboard ATP at the train end, onboard train tail and other onboard equipment, as well as ground GCC and other ground equipment.
[0055] To ensure that all trains connected to the same operating section can have a unified protocol stack parameter file burned into it, the protocol stack parameters of all communication devices within the train operating section are centrally compiled into this protocol stack parameter file. Specifically, as follows... Figure 2c As shown, the train operating section includes onboard ATP1, onboard tail 1, ground GCC1, onboard ATP2, onboard tail 2, and ground GCC2. The protocol stack parameter file contains the session layer parameters and device layer parameters associated with the above communication devices.
[0056] To reduce the space occupied by the protocol stack parameter file, the protocol stack parameters need to be compressed for storage, specifically as follows: Figure 2dAs shown, the session layer parameters associated with communication devices of the same device type are stored only once. In other words, the session layer parameters stored on a per-communication-device basis are changed to stored on a per-device-type basis. The device layer parameters of each communication device are saved separately to form protocol stack data packets, saving a lot of storage space.
[0057] Furthermore, a binary file (bin file) consisting of a file header, file length, file version, protocol stack data packets, and file checksum is burned into the onboard ATP of each train in the train operating section.
[0058] Optionally, the protocol stack parameters of each communication device in the train operating section can be read from the protocol stack parameter file, including:
[0059] One communication device in the train operating section is extracted as the current communication device. Based on the identification code of the current communication device, the device layer parameters of the current communication device are extracted from the protocol stack parameter file, and the device type of the current communication device is read from the device layer parameters.
[0060] Based on the device type of the current communication device, determine the session layer parameters between the current vehicle-mounted ATP and the current communication device;
[0061] The device layer parameters of the current communication device, as well as the session layer parameters between the current onboard ATP and the current communication device, are stored in the current train's running memory as the protocol stack parameters of the current communication device. Then, the system returns to execute the operation of sequentially extracting one communication device from the train's operating section as the current communication device, until the protocol stack parameters of each communication device in the train's operating section are obtained.
[0062] In this optional embodiment, a specific scheme is provided for reading the protocol stack parameters of each communication device in the train operating section from the protocol stack parameter file: Since the protocol stack parameters in the protocol stack parameter file are compressed, during the onboard ATP initialization process, the compressed parameters need to be decompressed, and the protocol stack parameters of all communication devices need to be read again. First, one communication device in the train operating section is extracted as the current communication device. Based on the identification code of the current communication device, the device layer parameters of the current communication device are extracted from the protocol stack parameter file. Then, the device layer parameters are parsed to obtain the device type of the current communication device. Based on the device type of the current communication device, the session layer parameters between the current onboard ATP and the current communication device are determined. Finally, the device layer parameters of the current communication device and the session layer parameters between the current onboard ATP and the current communication device are stored as the protocol stack parameters of the current communication device in the running memory of the current train, and the process of extracting one communication device in the train operating section as the current communication device is returned to be executed until the protocol stack parameters of each communication device in the train operating section are obtained.
[0063] S220. Based on the session layer parameters and device layer parameters of each communication device in the protocol stack parameters, construct the security function management layer array and the communication function management layer array.
[0064] In this embodiment of the invention, based on the RSSP-1 parameter composition principle and the read protocol stack parameters, the railway signal safety protocol array associated with the current onboard ATP is configured to provide the onboard ATP with parameter basis for establishing a communication connection.
[0065] First, based on the session layer parameters and device layer parameters of each communication device in the protocol stack parameters, a security function management layer array and a communication function management layer array are constructed. These arrays pre-configure session layer parameter items and device layer parameter items associated with the security function management layer array, as well as those associated with the communication function management layer array.
[0066] Specifically, the session layer parameter items and device layer parameter items associated with the security function management layer array are extracted from the protocol stack parameters to form the security function management layer array. Then, the session layer parameter items and device layer parameter items associated with the communication function management layer array are extracted from the protocol stack parameters to form the communication function management layer array.
[0067] S230. The safety function management layer array and the communication function management layer array are combined into a railway signal safety protocol array.
[0068] In this embodiment of the invention, after extracting the safety function management layer array and the communication function management layer array, the safety function management layer array and the communication function management layer array are used together as the railway signal safety protocol array to provide parameter basis for subsequent communication between the on-board ATP and other communication devices.
[0069] S240. In response to receiving a communication connection task, read the identity identifier of the terminal to be communicated in the communication connection task.
[0070] In this embodiment of the invention, after receiving a communication connection task, the vehicle-mounted ATP first parses the communication connection task and reads the identity identifier of the terminal to be communicated contained therein, so as to obtain the protocol stack parameters associated with the terminal to be communicated based on the identity identifier.
[0071] S250. Based on the identity identifier, read the protocol stack parameters associated with the terminal to be communicated from the railway signal security protocol array.
[0072] In this embodiment of the invention, protocol stack parameters associated with the terminal to be communicated are read from the railway signaling safety protocol array based on the identity identifier of the terminal to be communicated. Specifically, based on the identity identifier, a portion of session layer parameters and device layer parameters associated with the terminal to be communicated are read from the security function management layer data of the railway signaling safety protocol array. Simultaneously, another portion of session layer parameters and device layer parameters associated with the terminal to be communicated are read from the communication function management layer data of the railway signaling safety protocol array. Finally, the resulting parameter set is used as the protocol stack parameters associated with the terminal to be communicated.
[0073] S260. Based on the protocol stack parameters associated with the terminal to be communicated, establish a communication connection with the terminal to be communicated.
[0074] In this embodiment of the invention, after obtaining the protocol stack parameters associated with the terminal to be communicated, the data to be sent is transmitted based on the obtained protocol stack parameters according to the railway signaling safety protocol. Specifically, a railway signaling safety communication protocol stack is added between the application layer and the network layer based on the protocol stack parameters to ensure communication stability and security.
[0075] The technical solution of this invention stores the protocol stack parameters of all communication devices in the train operating section by device type, which compresses the size of the protocol stack parameter file and saves the flash memory space of the onboard ATP. Furthermore, based on the protocol stack parameters, a railway signal safety communication protocol stack is added between the application layer and the network layer to ensure communication stability and security.
[0076] Example 3
[0077] Figure 3 This is a schematic diagram of a railway safety protocol configuration device provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes:
[0078] The protocol stack parameter reading module 310 is used to read the protocol stack parameters of each communication device in the train operating section from the protocol stack parameter file;
[0079] At least one train associated with the same train operating section uses the same protocol stack parameter file, which contains the protocol stack parameters of all communication devices in the train operating section.
[0080] The railway safety protocol configuration module 320 is used to configure the railway signal safety protocol array based on the protocol stack parameters;
[0081] The railway signal safety protocol array is used to establish communication connections with communication equipment in the train operating section.
[0082] The technical solution of this invention involves the onboard ATP (Automatic Train Protection) reading a pre-programmed protocol parameter file to obtain the protocol stack parameters of all communication devices in the train's operating section. Based on these protocol stack parameters, a railway signal safety protocol array is configured to establish communication connections with other communication devices in the train's operating section. By pre-programming a unified protocol stack parameter file into each train associated with the train's operating section, the onboard ATP of each train can configure railway signal safety protocol data based on the protocol stack parameter file, providing parameter basis for establishing communication between the train and other communication devices. Compared to the method of programming different protocol stack parameter files for each train, this solution can reduce the error rate of programming protocol stack parameters.
[0083] Optionally, the protocol stack parameter file includes a protocol stack data packet consisting of session layer parameters associated with each type of communication device in the current onboard ATP and the device layer parameters of each communication device in the current operating section.
[0084] Optionally, the protocol stack parameter reading module 310 is specifically used for:
[0085] One communication device in the train operating section is extracted as the current communication device. Based on the identification code of the current communication device, the device layer parameters of the current communication device are extracted from the protocol stack parameter file, and the device type of the current communication device is read from the device layer parameters.
[0086] Based on the device type of the current communication device, determine the session layer parameters between the current vehicle-mounted ATP and the current communication device;
[0087] The device layer parameters of the current communication device, as well as the session layer parameters between the current onboard ATP and the current communication device, are stored in the current train's running memory as the protocol stack parameters of the current communication device. Then, the system returns to execute the operation of sequentially extracting one communication device from the train's operating section as the current communication device, until the protocol stack parameters of each communication device in the train's operating section are obtained.
[0088] Optional, the railway safety protocol configuration module 320 is specifically used for:
[0089] Based on the session layer parameters and device layer parameters of each communication device in the protocol stack parameters, construct a security function management layer array and a communication function management layer array;
[0090] The safety function management layer array and the communication function management layer array are used together as the railway signal safety protocol array.
[0091] Optionally, the railway safety protocol configuration device also includes:
[0092] The identity reading module is used to read the identity of the terminal to be communicated in the communication connection task in response to receiving the communication connection task after configuring the railway signal safety protocol array based on the protocol stack parameters.
[0093] The protocol stack parameter acquisition module is used to read the protocol stack parameters associated with the terminal to be communicated from the railway signal safety protocol array according to the identity identifier;
[0094] The communication establishment module is used to establish a communication connection with the terminal to be communicated based on the protocol stack parameters associated with the terminal to be communicated.
[0095] Optionally, the protocol stack parameter file is a binary file consisting of a file header, file length, file version, protocol stack data packets, and file checksum.
[0096] The railway safety protocol configuration device provided in this embodiment of the invention can execute the railway safety protocol configuration method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0097] In the technical solution of this invention, the information collected is information and data authorized by the user or fully authorized by all parties. The collection, storage, use, processing, transmission, provision, disclosure and application of related data all comply with the relevant laws, regulations and standards of relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entry points for users to choose to authorize or refuse.
[0098] Example 4
[0099] According to embodiments of the present invention, the present invention also provides an electronic device, a readable storage medium, and a computer program product.
[0100] Figure 4 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, application processors, blade application processors, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0101] like Figure 4As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0102] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0103] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as railway safety protocol configuration methods.
[0104] In some embodiments, the railway safety protocol configuration method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the railway safety protocol configuration method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to execute the railway safety protocol configuration method by any other suitable means (e.g., by means of firmware).
[0105] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0106] Computer programs used to implement the methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs can be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or application.
[0107] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0108] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0109] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data application processors), or computing systems that include middleware components (e.g., application application processors), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0110] A computing system can include clients and applications. Clients and applications are generally geographically separated and typically interact via a communication network. The client-application relationship is established by computer programs running on the respective computers and having a client-application relationship with each other. An application can be a cloud application, also known as a cloud computing application or cloud server, which is a hosting product within the cloud computing application ecosystem. It addresses the shortcomings of traditional physical servers and VPS applications, such as high management difficulty and weak business scalability.
[0111] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0112] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A railway safety protocol configuration method, characterized in that, Applications in Automatic Train Protection (ATP) systems include: Read the protocol stack parameters of each communication device in the train operating section from the protocol stack parameter file; At least one train associated with the same train operating section uses the same protocol stack parameter file, which contains the protocol stack parameters of all communication devices in the train operating section. Configure a railway signal safety protocol array based on the aforementioned protocol stack parameters; The railway signal safety protocol array is used to establish communication connections with communication equipment in the train operating section; The protocol stack parameter file includes a protocol stack data packet consisting of session layer parameters associated with each type of communication device in the current onboard ATP and the device layer parameters of each communication device in the current operating section. Read the protocol stack parameters of each communication device in the train operating section from the protocol stack parameter file, including: One communication device in the train operating section is extracted as the current communication device. Based on the identification code of the current communication device, the device layer parameters of the current communication device are extracted from the protocol stack parameter file, and the device type of the current communication device is read from the device layer parameters. Based on the device type of the current communication device, determine the session layer parameters between the current vehicle-mounted ATP and the current communication device; The device layer parameters of the current communication device, as well as the session layer parameters between the current onboard ATP and the current communication device, are stored in the current train's running memory as the protocol stack parameters of the current communication device. Then, the system returns to execute the operation of sequentially extracting one communication device from the train's operating section as the current communication device, until the protocol stack parameters of each communication device in the train's operating section are obtained.
2. The method according to claim 1, characterized in that, Based on the aforementioned protocol stack parameters, configure a railway signaling safety protocol array, including: Based on the session layer parameters and device layer parameters of each communication device in the protocol stack parameters, construct a security function management layer array and a communication function management layer array; The safety function management layer array and the communication function management layer array are used together as the railway signal safety protocol array.
3. The method according to claim 1, characterized in that, After configuring the railway signaling safety protocol array based on the aforementioned protocol stack parameters, the following is also included: In response to receiving a communication connection task, the identity identifier of the terminal to be communicated in the communication connection task is read; Based on the identity identifier, read the protocol stack parameters associated with the terminal to be communicated from the railway signal safety protocol array; A communication connection is established with the terminal to be communicated based on the protocol stack parameters associated with the terminal to be communicated.
4. The method according to claim 1, characterized in that, The protocol stack parameter file is a binary file consisting of a file header, file length, file version, protocol stack data packets, and file checksum.
5. A railway safety protocol configuration device, characterized in that, The Automatic Train Protection (ATP) system configured on board includes: The protocol stack parameter reading module is used to read the protocol stack parameters of each communication device in the train operating section from the protocol stack parameter file. At least one train associated with the same train operating section uses the same protocol stack parameter file, which contains the protocol stack parameters of all communication devices in the train operating section. The railway safety protocol configuration module is used to configure the railway signal safety protocol array based on the protocol stack parameters. The railway signal safety protocol array is used to establish communication connections with communication equipment in the train operating section; The protocol stack parameter file includes a protocol stack data packet consisting of session layer parameters associated with each type of communication device in the current onboard ATP and the device layer parameters of each communication device in the current operating section. The protocol stack parameter reading module is specifically used for: One communication device in the train operating section is extracted as the current communication device. Based on the identification code of the current communication device, the device layer parameters of the current communication device are extracted from the protocol stack parameter file, and the device type of the current communication device is read from the device layer parameters. Based on the device type of the current communication device, determine the session layer parameters between the current vehicle-mounted ATP and the current communication device; The device layer parameters of the current communication device, as well as the session layer parameters between the current onboard ATP and the current communication device, are stored in the current train's running memory as the protocol stack parameters of the current communication device. Then, the system returns to execute the operation of sequentially extracting one communication device from the train's operating section as the current communication device, until the protocol stack parameters of each communication device in the train's operating section are obtained.
6. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the railway safety protocol configuration method according to any one of claims 1-4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the railway safety protocol configuration method according to any one of claims 1-4.
8. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the railway safety protocol configuration method according to any one of claims 1-4.