Method and device for generating off-line data of railway trackside train control equipment
By acquiring railway-related documents to generate Boolean interfaces and application data files, and using Boolean tools to generate offline data, the problem of relying on manual experience in existing technologies is solved, and the automatic generation of offline data for trackside train control equipment is realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CASCO SIGNAL (BEIJING) CO LTD
- Filing Date
- 2025-12-08
- Publication Date
- 2026-04-21
AI Technical Summary
Existing offline data preparation tools rely on the personal experience and expertise of staff, making it difficult for staff with weaker business skills to effectively generate offline data for trackside train control equipment.
By acquiring railway-related documents, Boolean interface files and application data files are generated, and Boolean application files are generated using pre-built Boolean tools. This automatically determines the application data and Boolean variable data of the trackside train control equipment, ultimately generating offline data.
The offline data preparation tool can automatically generate offline data without requiring staff to write script files, reducing the difficulty of generation and improving the efficiency of generating offline data for trackside train control equipment.
Smart Images

Figure CN121900833A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of railway trackside equipment technology, and in particular to a method and apparatus for generating offline data of railway trackside train control equipment. Background Technology
[0002] With the rapid development of high-speed rail in my country, the demand for high-speed rail transportation is constantly increasing, making the control scenarios for high-speed rail train operation control systems increasingly complex and the safety requirements for high-speed rail train operation increasingly stringent. Among these, trackside equipment, as a crucial component of the high-speed rail train operation control system, directly affects the control and safety of high-speed rail train operation, playing a vital role in ensuring the safety of high-speed rail train operation.
[0003] Among them, offline data preparation tools are of great significance in the operation and maintenance of trackside train control equipment: before the trackside train control equipment is put into use, offline data is generated through offline data preparation tools, and the trackside train control equipment is debugged and optimized based on the offline data to ensure that the trackside train control equipment can work normally in the field; after the trackside train control equipment is put into use, problems existing in the trackside train control equipment can be discovered and resolved in a timely manner through offline data, thereby ensuring the safety of train operation.
[0004] When using existing offline data preparation tools to generate offline data for trackside train control equipment on a railway line, staff need to write corresponding script files based on actual business requirements. The offline data preparation tool then generates offline data for each trackside train control device on that railway line based on these script files. However, writing script files for the offline data preparation tool heavily relies on the staff's personal work experience and understanding of professional knowledge. For staff with insufficient work experience and weak business skills, they cannot effectively write script files for the offline data preparation tool, thus failing to generate offline data for the trackside train control equipment. Summary of the Invention
[0005] This application provides a method and apparatus for generating offline data for railway trackside train control equipment. The main purpose is to eliminate the need for staff to write script files for the offline data preparation tool, which can automatically generate offline data for trackside train control equipment on a specified railway line.
[0006] To address the aforementioned technical problems, this application provides the following technical solutions: In a first aspect, this application provides a method for generating offline data of railway trackside train control equipment, the method comprising: Obtain the railway-related files corresponding to the target railway line. The railway-related files include Boolean expression files, Boolean variable tables, engineering data files, interface files, and configuration files. The target railway line includes multiple stations, and each station includes a trackside train control device. Generate a Boolean interface file corresponding to the target railway line based on the Boolean variable table and the interface file; Generate the application data file corresponding to the target railway line based on the engineering data file, the interface file, and the configuration file; The Boolean expression file and the Boolean interface file are input into a preset Boolean tool to generate the Boolean application file corresponding to the target railway line; The application data corresponding to each trackside train control device is determined based on the application data file; Based on the Boolean application file, determine multiple Boolean variable data corresponding to each of the trackside train control devices; Offline data for the target railway line is generated based on the application data corresponding to each trackside train control device and multiple Boolean variable data.
[0007] Secondly, this application also provides a device for generating offline data of railway trackside train control equipment, the device comprising: The acquisition unit is used to acquire railway-related files corresponding to the target railway line. The railway-related files include Boolean expression files, Boolean variable tables, engineering data files, interface files, and configuration files. The target railway line includes multiple stations, and each station includes a trackside train control device. The first generation unit is used to generate a Boolean interface file corresponding to the target railway line based on the Boolean variable table and the interface file. The second generation unit is used to generate an application data file corresponding to the target railway line based on the engineering data file, the interface file, and the configuration file. The third generation unit is used to input the Boolean expression file and the Boolean interface file into a preset Boolean tool to generate a Boolean application file corresponding to the target railway line; The first determining unit is used to determine the application data corresponding to each of the trackside train control devices based on the application data file; The second determining unit is used to determine multiple Boolean variable data corresponding to each of the trackside train control devices based on the Boolean application file. The fourth generation unit is used to generate offline data corresponding to the target railway line based on the application data corresponding to each trackside train control device and multiple Boolean variable data.
[0008] Thirdly, embodiments of this application provide a computer device including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method described in the first aspect.
[0009] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect.
[0010] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described in the first aspect.
[0011] By employing the above-described technical solution, the technical solution provided in this application has at least the following advantages: This application provides a method and apparatus for generating offline data for railway trackside train control equipment. After obtaining railway-related documents corresponding to a target railway line using an offline data preparation tool, the tool first generates a Boolean interface file for the target railway line based on the Boolean variable table and interface file, and then generates an application data file based on the engineering data file, interface file, and configuration file. Next, the Boolean expression file and Boolean interface file for the target railway line are input into a preset Boolean tool to generate a Boolean application file for the target railway line. Then, the application data for each trackside train control device in the target railway line is determined based on the application data file, and multiple Boolean variable data for each trackside train control device are determined based on the Boolean application file. Finally, offline data for the target railway line is generated based on the application data for each trackside train control device and the multiple Boolean variable data. In this application, when it is necessary to generate offline data for trackside train control equipment in a target railway line, staff do not need to write corresponding script files according to actual business needs. Staff only need to write configuration files and Boolean expression files containing Boolean variable expressions corresponding to each station in the target railway line. The offline data preparation tool can automatically generate offline data corresponding to the target railway line based on the existing Boolean variable table, engineering data files and interface files corresponding to the target railway line, as well as the configuration files and Boolean expression files written by the staff. This can effectively reduce the difficulty of generating offline data for trackside train control equipment in a specified railway line.
[0012] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0013] The above and other objects, features, and advantages of exemplary embodiments of this application will become readily understood by reading the following detailed description with reference to the accompanying drawings. In the drawings, several embodiments of this application are illustrated by way of example and not limitation, with the same or corresponding reference numerals denoteing the same or corresponding parts, wherein: Figure 1 This application provides a flowchart of a method for generating offline data of railway trackside train control equipment according to an embodiment of the present application. Figure 2 This application provides a flowchart of another method for generating offline data for railway trackside train control equipment, according to an embodiment of the present application. Figure 3 This illustration shows a block diagram of a device for generating offline data for railway trackside train control equipment, as provided in an embodiment of this application. Figure 4 This paper illustrates a block diagram of another device for generating offline data for railway trackside train control equipment, as provided in an embodiment of this application. Detailed Implementation
[0014] Exemplary embodiments of this application will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of this application are shown in the drawings, it should be understood that this application may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of this application and to fully convey the scope of this application to those skilled in the art.
[0015] Furthermore, the terms “first,” “second,” and similar terms used in this application do not indicate any order, quantity, or importance, but are merely used to distinguish different parts.
[0016] It should be noted that, unless otherwise stated, the technical or scientific terms used in this application shall have the ordinary meaning as understood by one of ordinary skill in the art to which this application pertains.
[0017] When using existing offline data preparation tools to generate offline data for trackside train control equipment on a railway line, staff need to write corresponding script files based on actual business requirements. The offline data preparation tool then generates offline data for each trackside train control device on that railway line based on these script files. However, writing script files for the offline data preparation tool heavily relies on the staff's personal work experience and understanding of professional knowledge. For staff with insufficient work experience and weak business skills, they cannot effectively write script files for the offline data preparation tool, thus failing to generate offline data for the trackside train control equipment.
[0018] Therefore, in order to reduce the difficulty of generating offline data for trackside train control equipment using offline data preparation tools, embodiments of this application provide a method for generating offline data for railway trackside train control equipment, such as... Figure 1 As shown.
[0019] 101. Obtain the railway-related documents corresponding to the target railway line.
[0020] In this embodiment, the execution entity in each step is an offline data preparation tool. Compared to existing offline data preparation tools, the offline data preparation tool mentioned in this embodiment does not require staff to write script files, and can automatically generate offline data for trackside train control equipment on the target railway line.
[0021] The target railway line is the railway line for which offline data needs to be generated. The target railway line can be any existing railway line, and this application embodiment does not specifically limit it. The target railway line includes multiple stations, and each station includes a trackside train control device.
[0022] The railway-related documents corresponding to the target railway line include Boolean expression files, Boolean variable tables, engineering data files, interface files, and configuration files. Specifically, the Boolean expression files for the target railway line contain Boolean variable expressions for each station on the target railway line, which are pre-written by staff. The Boolean variable tables for the target railway line may include, but are not limited to, information on external equipment systems, departure gates, block sections, platform screen doors, and track alignment and boundary information for each station on the target railway line. The engineering data files for the target railway line may include, but are not limited to, tables for ground equipment information, transponder locations, track data, track gradients, track speeds, track mileage and chain break details, large-number turnout data packet transmission condition check range, station information, and mileage system information. The interface files for the target railway line may include, but are not limited to, interfaces between the train control center and CTC, between the train control center and CBI, between the train control center and ZPW, between the train control center and TSRS, and interfaces between train control centers. The configuration files for the target railway line may include, but are not limited to, configuration information tables and interface communication configuration tables.
[0023] When it is necessary to generate offline data for trackside train control equipment in a target railway line, the offline data preparation tool needs to obtain the railway-related documents corresponding to the target railway line.
[0024] 102. Generate the Boolean interface file corresponding to the target railway line based on the Boolean variable table and interface file, and generate the application data file corresponding to the target railway line based on the project data file, interface file and configuration file.
[0025] After obtaining the railway-related files corresponding to the target railway line, the offline data preparation tool needs to generate the Boolean interface file corresponding to the target railway line based on the Boolean variable table and interface file corresponding to the target railway line, and generate the application data file corresponding to the target railway line based on the engineering data file, interface file and configuration file corresponding to the target railway line.
[0026] The Boolean interface file corresponding to the target railway line contains information on the external equipment system, departure gate, block section and platform door, and relocation and boundary information for each station on the target railway line, as well as key information and code position information for each target interface corresponding to each station. For any station, the code position information of a certain target interface corresponding to the station is used to indicate the position of the external equipment system information, departure gate information, etc. corresponding to the target interface at that station in the Boolean interface file. Multiple target interfaces can be, but are not limited to, CTC interface, CBI interface, ZPW interface, and TSRS interface.
[0027] The application data file corresponding to the target railway line may, but is not limited to, contain basic data such as line data, message data, and transponder data for each station on the target railway line.
[0028] It should be noted that, in practical applications, one can first generate a Boolean interface file corresponding to the target railway line based on the Boolean variable table and interface file corresponding to the target railway line, and then generate an application data file corresponding to the target railway line based on the engineering data file, interface file, and configuration file corresponding to the target railway line; alternatively, one can first generate an application data file corresponding to the target railway line based on the engineering data file, interface file, and configuration file corresponding to the target railway line, and then generate a Boolean interface file corresponding to the target railway line based on the Boolean variable table and interface file corresponding to the target railway line. This application embodiment does not specifically limit the execution order of these two steps.
[0029] 103. Input the Boolean expression file and Boolean interface file into the preset Boolean tool to generate the Boolean application file corresponding to the target railway line.
[0030] Specifically, the preset Boolean tool can be the Open Boolean Computer-Aided Design Tool (BOOLCAD).
[0031] After generating the Boolean interface file and application data file corresponding to the target railway line, the offline data preparation tool can input the Boolean expression file and Boolean interface file corresponding to the target railway line into the preset Boolean tool, so that the preset Boolean tool can generate the Boolean application file corresponding to the target railway line based on the Boolean expression file and Boolean interface file corresponding to the target railway line.
[0032] 104. Determine the application data corresponding to each trackside train control device based on the application data file, and determine the multiple Boolean variable data corresponding to each trackside train control device based on the Boolean application file.
[0033] After generating the Boolean application file corresponding to the target railway line, the offline data preparation tool can determine the application data corresponding to each trackside train control device in the target railway line based on the application data file corresponding to the target railway line, and determine multiple Boolean variable data corresponding to each trackside train control device in the target railway line based on the Boolean application file corresponding to the target railway line.
[0034] For any trackside train control device, its corresponding multiple Boolean variable data are the Boolean variable data corresponding to each target interface at that trackside train control device. The corresponding application data may include, but is not limited to, basic data such as line data, message data, and transponder data.
[0035] 105. Generate offline data for the target railway line based on the application data and multiple Boolean variable data corresponding to each trackside train control device.
[0036] After determining the application data and multiple Boolean variable data corresponding to each trackside train control device in the target railway line, the offline data preparation tool can generate the offline data corresponding to the target railway line based on the application data and multiple Boolean variable data corresponding to each trackside train control device. That is, first, the offline data corresponding to each trackside train control device is generated based on the application data and multiple Boolean variable data corresponding to each trackside train control device, and then the offline data corresponding to the target railway line is generated based on the offline data corresponding to multiple trackside train control devices.
[0037] This application provides a method for generating offline data for railway trackside train control equipment. After obtaining railway-related files corresponding to a target railway line using an offline data preparation tool, the tool first generates a Boolean interface file for the target railway line based on the Boolean variable table and interface file, and then generates an application data file based on the engineering data file, interface file, and configuration file. Next, the Boolean expression file and Boolean interface file for the target railway line are input into a preset Boolean tool to generate a Boolean application file for the target railway line. Then, the application data for each trackside train control device in the target railway line is determined based on the application data file, and multiple Boolean variable data for each trackside train control device are determined based on the Boolean application file. Finally, offline data for the target railway line is generated based on the application data for each trackside train control device and the multiple Boolean variable data. In this embodiment, when it is necessary to generate offline data for trackside train control equipment in a target railway line, staff do not need to write corresponding script files according to actual business needs. Instead, staff only need to write configuration files and Boolean expression files containing Boolean variable expressions corresponding to each station in the target railway line. The offline data preparation tool can automatically generate offline data for the target railway line based on the existing Boolean variable table, engineering data files, and interface files corresponding to the target railway line, as well as the configuration files and Boolean expression files written by the staff. This can effectively reduce the difficulty of generating offline data for trackside train control equipment in a specified railway line.
[0038] To provide a more detailed explanation, this application provides another method for generating offline data for railway trackside train control equipment, specifically as follows: Figure 2 As shown.
[0039] 201. Obtain the relevant railway documents corresponding to the target railway line.
[0040] Regarding step 201, obtaining the railway-related documents corresponding to the target railway line, please refer to the relevant description of step 101 above. This embodiment of the application will not repeat it here.
[0041] 202. Generate the Boolean interface file corresponding to the target railway line based on the Boolean variable table and interface file, and generate the application data file corresponding to the target railway line based on the project data file, interface file and configuration file.
[0042] After obtaining the railway-related files corresponding to the target railway line, the offline data preparation tool needs to generate the Boolean interface file corresponding to the target railway line based on the Boolean variable table and interface file corresponding to the target railway line, and generate the application data file corresponding to the target railway line based on the engineering data file, interface file and configuration file corresponding to the target railway line.
[0043] Specifically, in this step, the offline data preparation tool generates the Boolean interface file corresponding to the target railway line based on the Boolean variable table and interface file. The specific process is as follows: (1) Extract the external equipment system information, departure gate information, block section and platform door information, and reversal and boundary information of each station in the target railway line from the Boolean variable table corresponding to the target railway line; (2) Generate the Boolean variable file corresponding to the target railway line according to the connection order between multiple stations and the external equipment system information, departure gate information, block section and platform door information, and reversal and boundary information of each station; (3) Extract the interface information and code position information of each station from the interface file corresponding to the target railway line according to the first preset key field; (4) Generate the interface information file corresponding to the target railway line according to the interface information and code position information of each station; (5) Merge the Boolean variable file and interface information file corresponding to the target railway line into the Boolean interface file corresponding to the target railway line.
[0044] Specifically, in this step, the offline data preparation tool generates the application data file corresponding to the target railway line based on the engineering data file, interface file, and configuration file. The specific process is as follows: (1) Extract the engineering information corresponding to each station from the engineering data file corresponding to the target railway line according to the second preset key field. For any station, the corresponding engineering information may include, but is not limited to, the relevant information of the transponder, the relevant information of the signal, the line information of the station, etc.; (2) Generate the first basic application data file corresponding to the target railway line according to the engineering information corresponding to each station. That is, firstly, perform logical processing on the engineering information corresponding to each station according to the first preset logic, and then store the processed engineering information corresponding to each station in a variable-length vector data format to obtain the first basic application data file. The first preset logic is pre-set according to the requirements of each trackside train control device; (3) Extract the engineering information corresponding to each station from the interface file corresponding to the target railway line according to the first preset key field. (4) Generate the second basic application data file corresponding to the target railway line based on the interface information corresponding to each station; (5) Extract the configuration information corresponding to each station from the configuration file corresponding to the target railway line based on the third preset key field; (6) Generate the third basic application data file corresponding to the target railway line based on the configuration information corresponding to each station, that is, first process the configuration information corresponding to each station according to the second preset logic, and then store the processed configuration information corresponding to each station in a variable-length vector data format to obtain the third basic application data file. The second preset logic is preset according to the actual user needs; (7) Merge the first basic application data file, the second basic application data file and the third basic application data file corresponding to the target railway line into the application data file corresponding to the target railway line.
[0045] 203. Input the Boolean expression file and Boolean interface file into the preset Boolean tool to generate the Boolean application file corresponding to the target railway line.
[0046] Regarding step 203, which involves inputting the Boolean expression file and the Boolean interface file into a preset Boolean tool to generate the Boolean application file corresponding to the target railway line, please refer to the relevant description of step 203 above. This embodiment of the application will not repeat it here.
[0047] 204. Determine the application data corresponding to each trackside train control device based on the application data file, and determine the multiple Boolean variable data corresponding to each trackside train control device based on the Boolean application file.
[0048] After generating the Boolean application file corresponding to the target railway line, the offline data preparation tool can determine the application data corresponding to each trackside train control device in the target railway line based on the application data file corresponding to the target railway line, and determine multiple Boolean variable data corresponding to each trackside train control device in the target railway line based on the Boolean application file corresponding to the target railway line.
[0049] Specifically, in this step, the offline data preparation tool determines the application data corresponding to each trackside train control device on the target railway line based on the application data file corresponding to the target railway line as follows: First, determine the line data, message data, and transponder data corresponding to the target railway line based on the application data file corresponding to the target railway line; second, determine the line data, message data, and transponder data corresponding to each trackside train control device based on the line data, message data, and transponder data corresponding to the target railway line.
[0050] Specifically, in this step, the offline data preparation tool determines the multiple Boolean variable data corresponding to each trackside train control device in the target railway line based on the Boolean application file corresponding to the target railway line as follows: First, based on the Boolean application file corresponding to the target railway line, determine multiple code addresses corresponding to each trackside train control device. For any trackside train control device, its multiple code addresses are the code addresses corresponding to each target interface at that trackside train control device. For any target interface, its corresponding code address is used to indicate the storage location of the Boolean variable data corresponding to that target interface at that trackside train control device in the Boolean application file. Second, extract the multiple Boolean variable data corresponding to each trackside train control device from the Boolean application file based on the multiple code addresses corresponding to each trackside train control device.
[0051] 205. Generate offline data for the target railway line based on the application data and multiple Boolean variable data corresponding to each trackside train control device.
[0052] After determining the application data and multiple Boolean variable data corresponding to each trackside train control device in the target railway line, the offline data preparation tool can generate offline data corresponding to the target railway line based on the application data and multiple Boolean variable data corresponding to each trackside train control device. The specific process is as follows: First, offline data corresponding to each trackside train control device is generated based on the application data and multiple Boolean variable data corresponding to each trackside train control device; second, data format conversion processing is performed on the offline data corresponding to each trackside train control device, that is, the offline data corresponding to each trackside train control device is converted into binary data format; finally, the processed offline data corresponding to multiple trackside train control devices is determined as the offline data corresponding to the target railway line.
[0053] 206. Generate the log file corresponding to the target railway line and store the log file in the local storage space.
[0054] The log file corresponding to the target railway line contains the offline data for the target railway line and the generation process of the offline data.
[0055] During the execution of steps 201-205 above, the offline data preparation tool can also record the execution process of each step, thereby obtaining the generation process of the offline data corresponding to the target railway line. After generating the offline data corresponding to the target railway line, the offline data preparation tool can generate a log file containing the offline data corresponding to the target railway line and the generation process of the offline data, and store the log file in the local storage space so that staff can view the offline data and trace the generation process of the offline data later.
[0056] Since the offline data corresponding to the target railway line ultimately generated by the offline data preparation tool is in binary data format, in order to facilitate viewing by staff, when generating log files, the offline data corresponding to the target railway line can first be decrypted into binary format, and then the log files can be generated based on the decrypted offline data.
[0057] Furthermore, as a response to the above Figure 1 and Figure 2 In addition to the implementation of the method shown, another embodiment of this application also provides a device for generating offline data of railway trackside train control equipment. This device embodiment corresponds to the foregoing method embodiment. For ease of reading, this device embodiment will not repeat the details of the foregoing method embodiment, but it should be understood that the device in this embodiment can implement all the contents of the foregoing method embodiment. This device is used to generate offline data for trackside train control equipment in a specified railway line, specifically as follows... Figure 3 As shown, the device includes: The acquisition unit 31 is used to acquire railway-related files corresponding to the target railway line. The railway-related files include a Boolean expression file, a Boolean variable table, an engineering data file, an interface file, and a configuration file. The target railway line includes multiple stations, and each station includes a trackside train control device. The first generation unit 32 is used to generate a Boolean interface file corresponding to the target railway line based on the Boolean variable table and the interface file. The second generation unit 33 is used to generate an application data file corresponding to the target railway line based on the engineering data file, the interface file, and the configuration file. The third generation unit 34 is used to input the Boolean expression file and the Boolean interface file into a preset Boolean tool to generate a Boolean application file corresponding to the target railway line; The first determining unit 35 is used to determine the application data corresponding to each of the trackside train control devices according to the application data file; The second determining unit 36 is used to determine multiple Boolean variable data corresponding to each of the trackside train control devices according to the Boolean application file; The fourth generation unit 37 is used to generate offline data corresponding to the target railway line based on the application data corresponding to each trackside train control device and multiple Boolean variable data.
[0058] Furthermore, such as Figure 4 As shown, the first generation unit 32 is specifically used to: extract the external equipment system information, departure gate information, block section and platform door information, and direction and boundary information corresponding to each station from the Boolean variable table; Based on the connection order between the multiple stations and the external equipment system information, departure gate information, block section and platform door information, and relocation and boundary information of each station, a Boolean variable file corresponding to the target railway line is generated. Based on the first preset key field, extract the interface information and code position information corresponding to each station from the interface file; Generate an interface information file corresponding to the target railway line based on the interface information and code position information corresponding to each station; The Boolean variable file and the interface information file are merged into the Boolean interface file.
[0059] Furthermore, such as Figure 4 As shown, the second generation unit 33 is specifically used to: extract the engineering information corresponding to each station from the engineering data file according to the second preset key field; Generate a first basic application data file corresponding to the target railway line based on the engineering information corresponding to each station; Based on the first preset key field, extract the interface information corresponding to each station from the interface file; A second basic application data file corresponding to the target railway line is generated based on the interface information corresponding to each station. Based on the third preset key field, the configuration information corresponding to each station is extracted from the configuration file; Generate a third basic application data file corresponding to the target railway line based on the configuration information corresponding to each station; The first basic application data file, the second basic application data file, and the third basic application data file are merged into the application data file.
[0060] Furthermore, such as Figure 4 As shown, the first determining unit 35 is specifically used to: determine the line data, message data and transponder data corresponding to the target railway line according to the application data file; Based on the track data, message data, and transponder data corresponding to the target railway line, determine the track data, message data, and transponder data corresponding to each trackside train control device.
[0061] Furthermore, such as Figure 4 As shown, the second determining unit 36 is specifically used to: determine multiple code bit addresses corresponding to each of the trackside train control devices according to the Boolean application file; Based on the multiple code address corresponding to each trackside train control device, extract multiple Boolean variable data corresponding to each trackside train control device from the Boolean application file.
[0062] Furthermore, such as Figure 4 As shown, the fourth generation unit 37 is specifically used to: generate offline data corresponding to each trackside train control device based on the application data and multiple Boolean variable data corresponding to each trackside train control device; Perform data format conversion processing on the offline data corresponding to each of the trackside train control devices; The processed offline data corresponding to the multiple trackside train control devices are identified as the offline data corresponding to the target railway line.
[0063] Furthermore, such as Figure 4 As shown, the device also includes: The fifth generation unit 38 is used to generate a log file corresponding to the target railway line, wherein the log file contains offline data corresponding to the target railway line and the generation process corresponding to the offline data; The log file is stored in the local storage space.
[0064] This application provides a method and apparatus for generating offline data for railway trackside train control equipment. After obtaining railway-related files corresponding to a target railway line using an offline data preparation tool, the tool first generates a Boolean interface file for the target railway line based on the Boolean variable table and interface file, and then generates an application data file based on the engineering data file, interface file, and configuration file. Next, the Boolean expression file and Boolean interface file for the target railway line are input into a preset Boolean tool to generate a Boolean application file for the target railway line. Then, the application data for each trackside train control device in the target railway line is determined based on the application data file, and multiple Boolean variable data for each trackside train control device are determined based on the Boolean application file. Finally, offline data for the target railway line is generated based on the application data for each trackside train control device and the multiple Boolean variable data. In this embodiment, when it is necessary to generate offline data for trackside train control equipment in a target railway line, staff do not need to write corresponding script files according to actual business needs. Instead, staff only need to write configuration files and Boolean expression files containing Boolean variable expressions corresponding to each station in the target railway line. The offline data preparation tool can automatically generate offline data for the target railway line based on the existing Boolean variable table, engineering data files, and interface files corresponding to the target railway line, as well as the configuration files and Boolean expression files written by the staff. This can effectively reduce the difficulty of generating offline data for trackside train control equipment in a specified railway line. This application provides a computer device, including a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the method for generating offline data of railway trackside train control equipment as described above.
[0065] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the method for generating offline data of railway trackside train control equipment as described above.
[0066] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the method for generating offline data of railway trackside train control equipment as described above.
[0067] This application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs the following steps: Obtain the railway-related files corresponding to the target railway line. The railway-related files include Boolean expression files, Boolean variable tables, engineering data files, interface files, and configuration files. The target railway line includes multiple stations, and each station includes a trackside train control device. Generate a Boolean interface file corresponding to the target railway line based on the Boolean variable table and the interface file; Generate the application data file corresponding to the target railway line based on the engineering data file, the interface file, and the configuration file; The Boolean expression file and the Boolean interface file are input into a preset Boolean tool to generate the Boolean application file corresponding to the target railway line; The application data corresponding to each trackside train control device is determined based on the application data file; Based on the Boolean application file, determine multiple Boolean variable data corresponding to each of the trackside train control devices; Offline data for the target railway line is generated based on the application data corresponding to each trackside train control device and multiple Boolean variable data.
[0068] Furthermore, generating the Boolean interface file corresponding to the target railway line based on the Boolean variable table and the interface file includes: Extract the external equipment system information, departure gate information, block section and platform door information, and relocation and boundary information corresponding to each station from the Boolean variable table; Based on the connection order between the multiple stations and the external equipment system information, departure gate information, block section and platform door information, and relocation and boundary information of each station, a Boolean variable file corresponding to the target railway line is generated. Based on the first preset key field, extract the interface information and code position information corresponding to each station from the interface file; Generate an interface information file corresponding to the target railway line based on the interface information and code position information corresponding to each station; The Boolean variable file and the interface information file are merged into the Boolean interface file.
[0069] Furthermore, generating the application data file corresponding to the target railway line based on the engineering data file, the interface file, and the configuration file includes: Based on the second preset key field, extract the engineering information corresponding to each station from the engineering data file; Generate a first basic application data file corresponding to the target railway line based on the engineering information corresponding to each station; Based on the first preset key field, extract the interface information corresponding to each station from the interface file; A second basic application data file corresponding to the target railway line is generated based on the interface information corresponding to each station. Based on the third preset key field, the configuration information corresponding to each station is extracted from the configuration file; Generate a third basic application data file corresponding to the target railway line based on the configuration information corresponding to each station; The first basic application data file, the second basic application data file, and the third basic application data file are merged into the application data file.
[0070] Furthermore, determining the application data corresponding to each trackside train control device based on the application data file includes: The line data, message data, and transponder data corresponding to the target railway line are determined based on the application data file. Based on the track data, message data, and transponder data corresponding to the target railway line, determine the track data, message data, and transponder data corresponding to each trackside train control device.
[0071] Furthermore, determining the multiple Boolean variable data corresponding to each trackside train control device based on the Boolean application file includes: The multiple code bit addresses corresponding to each of the trackside train control devices are determined according to the Boolean application file; Based on the multiple code address corresponding to each trackside train control device, extract multiple Boolean variable data corresponding to each trackside train control device from the Boolean application file.
[0072] Furthermore, the step of generating offline data corresponding to the target railway line based on the application data and multiple Boolean variable data corresponding to each trackside train control device includes: Based on the application data and multiple Boolean variable data corresponding to each of the trackside train control devices, generate offline data corresponding to each of the trackside train control devices; Perform data format conversion processing on the offline data corresponding to each of the trackside train control devices; The processed offline data corresponding to the multiple trackside train control devices are identified as the offline data corresponding to the target railway line.
[0073] Furthermore, the method also includes: Generate a log file corresponding to the target railway line, wherein the log file contains offline data corresponding to the target railway line and the generation process corresponding to the offline data; The log file is stored in the local storage space.
[0074] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing program code with the following initialization steps: obtaining railway-related files corresponding to a target railway line, the railway-related files including a Boolean expression file, a Boolean variable table, an engineering data file, an interface file, and a configuration file, the target railway line including multiple stations, each station including a trackside train control device; generating a Boolean interface file corresponding to the target railway line based on the Boolean variable table and the interface file; generating an application data file corresponding to the target railway line based on the engineering data file, the interface file, and the configuration file; inputting the Boolean expression file and the Boolean interface file into a preset Boolean tool to generate a Boolean application file corresponding to the target railway line; determining application data corresponding to each trackside train control device based on the application data file; determining multiple Boolean variable data corresponding to each trackside train control device based on the Boolean application file; and generating offline data corresponding to the target railway line based on the application data corresponding to each trackside train control device and the multiple Boolean variable data.
[0075] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0076] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0077] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0078] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0079] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0080] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, like read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0081] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0082] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0083] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0084] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A method for generating offline data of railway trackside train control equipment, characterized in that, The method includes: Obtain the railway-related files corresponding to the target railway line. The railway-related files include Boolean expression files, Boolean variable tables, engineering data files, interface files, and configuration files. The target railway line includes multiple stations, and each station includes a trackside train control device. Generate a Boolean interface file corresponding to the target railway line based on the Boolean variable table and the interface file; Generate the application data file corresponding to the target railway line based on the engineering data file, the interface file, and the configuration file; The Boolean expression file and the Boolean interface file are input into a preset Boolean tool to generate the Boolean application file corresponding to the target railway line; The application data corresponding to each trackside train control device is determined based on the application data file; Based on the Boolean application file, determine multiple Boolean variable data corresponding to each of the trackside train control devices; Offline data for the target railway line is generated based on the application data corresponding to each trackside train control device and multiple Boolean variable data.
2. The method according to claim 1, characterized in that, The step of generating the Boolean interface file corresponding to the target railway line based on the Boolean variable table and the interface file includes: Extract the external equipment system information, departure gate information, block section and platform door information, and relocation and boundary information corresponding to each station from the Boolean variable table; Based on the connection order between the multiple stations and the external equipment system information, departure gate information, block section and platform door information, and relocation and boundary information of each station, a Boolean variable file corresponding to the target railway line is generated. Based on the first preset key field, extract the interface information and code position information corresponding to each station from the interface file; Generate an interface information file corresponding to the target railway line based on the interface information and code position information corresponding to each station; The Boolean variable file and the interface information file are merged into the Boolean interface file.
3. The method according to claim 1, characterized in that, The step of generating the application data file corresponding to the target railway line based on the engineering data file, the interface file, and the configuration file includes: Based on the second preset key field, extract the engineering information corresponding to each station from the engineering data file; Generate a first basic application data file corresponding to the target railway line based on the engineering information corresponding to each station; Based on the first preset key field, extract the interface information corresponding to each station from the interface file; A second basic application data file corresponding to the target railway line is generated based on the interface information corresponding to each station. Based on the third preset key field, the configuration information corresponding to each station is extracted from the configuration file; Generate a third basic application data file corresponding to the target railway line based on the configuration information corresponding to each station; The first basic application data file, the second basic application data file, and the third basic application data file are merged into the application data file.
4. The method according to claim 1, characterized in that, The step of determining the application data corresponding to each trackside train control device based on the application data file includes: The line data, message data, and transponder data corresponding to the target railway line are determined based on the application data file. Based on the track data, message data, and transponder data corresponding to the target railway line, determine the track data, message data, and transponder data corresponding to each trackside train control device.
5. The method according to claim 1, characterized in that, The step of determining multiple Boolean variable data corresponding to each trackside train control device according to the Boolean application file includes: The multiple code bit addresses corresponding to each of the trackside train control devices are determined according to the Boolean application file; Based on the multiple code address corresponding to each trackside train control device, extract multiple Boolean variable data corresponding to each trackside train control device from the Boolean application file.
6. The method according to claim 1, characterized in that, The step of generating offline data corresponding to the target railway line based on application data and multiple Boolean variable data corresponding to each trackside train control device includes: Based on the application data and multiple Boolean variable data corresponding to each of the trackside train control devices, generate offline data corresponding to each of the trackside train control devices; Perform data format conversion processing on the offline data corresponding to each of the trackside train control devices; The processed offline data corresponding to the multiple trackside train control devices are identified as the offline data corresponding to the target railway line.
7. The method according to any one of claims 1-6, characterized in that, The method further includes: Generate a log file corresponding to the target railway line, wherein the log file contains offline data corresponding to the target railway line and the generation process corresponding to the offline data; The log file is stored in the local storage space.
8. A device for generating offline data for railway trackside train control equipment, characterized in that, The device includes: The acquisition unit is used to acquire railway-related files corresponding to the target railway line. The railway-related files include Boolean expression files, Boolean variable tables, engineering data files, interface files, and configuration files. The target railway line includes multiple stations, and each station includes a trackside train control device. The first generation unit is used to generate a Boolean interface file corresponding to the target railway line based on the Boolean variable table and the interface file. The second generation unit is used to generate an application data file corresponding to the target railway line based on the engineering data file, the interface file, and the configuration file. The third generation unit is used to input the Boolean expression file and the Boolean interface file into a preset Boolean tool to generate a Boolean application file corresponding to the target railway line; The first determining unit is used to determine the application data corresponding to each of the trackside train control devices based on the application data file; The second determining unit is used to determine multiple Boolean variable data corresponding to each of the trackside train control devices based on the Boolean application file. The fourth generation unit is used to generate offline data corresponding to the target railway line based on the application data corresponding to each trackside train control device and multiple Boolean variable data.
9. A computer device, comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.