Railway interlocking analysis method and device, computer equipment and storage medium
By using the protocol conversion layer and data extraction rules for interlocking data analysis in the railway interlocking system, the problem of inefficient interlocking data analysis in the existing technology is solved, automated and accurate data analysis is realized, and the efficiency of shunting operations and system stability are improved.
Patent Information
- Application Number
- CN202411866852.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-04-29
AI Technical Summary
When deploying railway interlock data analysis at newly connected stations, the interlock interface program needs to be redeveloped and encoded, resulting in the lack of universality and reusability of the program, and the inefficient testing process, which affects the rapid deployment and stable operation of shunting operations.
By obtaining the target interlocking data to be parsed, using the protocol conversion layer for conversion, obtaining the data area interlocking data, matching the corresponding data extraction rules from the rule base for information extraction, obtaining characterization information, and using characterization information for security analysis, realizing automated and accurate interlocking data analysis.
It improves the efficiency of shunting operations, realizes the automation and accurate analysis of interlocking data, reduces the complexity of human intervention and testing, and improves the stability and rapid deployment capabilities of the system.
Smart Images

Figure CN119903295A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of railway transportation technology, and in particular to a railway interlocking analysis method, device, computer equipment and storage medium. Background Art
[0002] The railway interlocking system is one of the important systems to ensure railway operation safety. It ensures that trains run safely according to the predetermined operation plan by controlling equipment such as signal machines, switches and track circuits. The railway interlocking system needs to dynamically adjust the train control strategy according to the status of the railway interlocking signal.
[0003] In the current technical solution, when the main locomotive shunting operation safety protection system is deployed at a newly connected station, the primary task is to ensure that the analysis of the interlocking data can proceed normally. However, since the analysis of the interlocking data must be adapted according to the communication protocols of each interlocking manufacturer, and the communication protocols and interlocking equipment sequences of different interlocking manufacturers are different, this results in the need to redevelop and recode the interlocking interface program for each new station connected. As a result, the interlocking interface program loses its versatility and has poor reusability. In addition, the redeveloped and encoded program also needs to go through a complex testing process. During this testing process, not only human intervention is required, but the confirmation of the test results also relies on human visual observation, which leads to inefficiency in the entire testing and deployment process, affecting the ability of the main locomotive shunting operation safety protection system to be quickly and efficiently deployed and stably operated at different stations.
[0004] Therefore, how to automatically and accurately analyze interlocking data in order to perform shunting operations efficiently and safely has become an urgent problem to be solved. Summary of the invention
[0005] The embodiments of the present invention provide a railway interlocking analysis method, device, computer equipment and storage medium to solve the problem of how to automatically and accurately analyze interlocking data to perform shunting operations efficiently and safely.
[0006] In a first aspect, an embodiment of the present invention provides a railway interlocking analysis method, comprising: Obtain target interlocking data to be parsed, and use a protocol conversion layer to convert the target interlocking data to obtain data area interlocking data; Matching a data extraction rule corresponding to the target interlocking data from a rule base, and extracting information from the data area interlocking data using the data extraction rule to obtain representation information; Using the characterization information, a safety analysis is performed on the target interlocking data to obtain a safety analysis result.
[0007] In a second aspect, an embodiment of the present invention provides a railway interlocking analysis device, comprising: A data conversion module is used to obtain target interlocking data to be parsed, and use a protocol conversion layer to convert the target interlocking data to obtain data area interlocking data; An information extraction module, used to match a data extraction rule corresponding to the target interlocking data from a rule base, and use the data extraction rule to extract information from the data area interlocking data to obtain representation information; The analysis module is used to use the characterization information to perform safety analysis on the target interlocking data to obtain a safety analysis result.
[0008] In a third aspect, an embodiment of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned railway interlocking analysis method when executing the computer program.
[0009] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned railway interlocking analysis method is implemented.
[0010] Compared with the prior art, the present invention has the following beneficial effects: by acquiring the target interlocking data to be analyzed, using the protocol conversion layer, converting the target interlocking data to obtain the data area interlocking data, matching the data extraction rules corresponding to the target interlocking data from the rule base, using the data extraction rules, extracting information from the data area interlocking data to obtain characterization information, using the characterization information, performing safety analysis on the target interlocking data to obtain a safety analysis result. The data area interlocking data is obtained by converting the target interlocking data, and the characterization information obtained by extracting the data area interlocking data according to the data extraction rules is subjected to safety analysis, thereby automatically and accurately parsing the interlocking data, thereby improving the efficiency of the shunting operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0012] Figure 1 This is a schematic diagram of an application environment of a railway interlocking analysis method provided by the first embodiment of the present invention; Figure 2 It is a flow chart of a railway interlocking analysis method provided in the second embodiment of the present invention; Figure 3It is a flow chart of a railway interlocking analysis method provided in Embodiment 3 of the present invention; Figure 4 It is a flow chart of a railway interlocking analysis method provided by the fourth embodiment of the present invention; Figure 5 It is a flow chart of a railway interlocking analysis method provided in Embodiment 5 of the present invention; Figure 6 It is a flow chart of a railway interlocking analysis method provided by Embodiment 6 of the present invention; Figure 7 It is a flow chart of a railway interlocking analysis method provided by Embodiment 7 of the present invention; Figure 8 It is a structural schematic diagram of a railway interlocking analysis device provided by Embodiment 8 of the present invention; Fig. 9 It is a structural diagram of a computer device provided in Embodiment 9 of the present invention. DETAILED DESCRIPTION
[0013] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0014] like Figure 1 As shown, it is a schematic diagram of the application environment of a railway interlocking analysis method provided in the first embodiment of the present invention, wherein the client and the server are connected to communicate, and the user can provide the server with conditions, requirements and operation instructions for parts cleaning by operating the client, and the server is used to execute the railway interlocking analysis method of the present invention according to the relevant content sent by the client. The client includes but is not limited to various personal computers, laptops, smart phones, tablet computers, portable wearable devices and other computer devices. The computer device corresponding to the server can be implemented with an independent server or a server cluster composed of multiple servers.
[0015] like Figure 2 FIG. 1 is a flow chart of a railway interlocking analysis method provided by Embodiment 2 of the present invention, wherein the railway interlocking analysis method is applied in Figure 1 The railway interlocking analysis method may include the following steps: Step S201, obtaining target interlocking data to be parsed, using a protocol conversion layer to convert the target interlocking data to obtain data area interlocking data.
[0016] Among them, the protocol conversion layer refers to the general protocol conversion layer constructed in the system. The protocol conversion layer pre-collects and analyzes the communication protocols of multiple common interlocking manufacturers, and uniformly converts various protocol formats of different manufacturers by establishing a general data model. The specific implementation is to write a general data model class library, specify the protocol header, data area length, data area, check area, protocol tail offset and data area interlocking data usage rules of the protocols of different interlocking manufacturers in the form of configuration files. After accessing the target interlocking data, the protocol format of the manufacturer can be known according to the interlocking manufacturer data model class library, and then the data parsing function can be completed. When the interlocking data of a new station is accessed, it is no longer necessary to re-develop the coding for the protocol of each manufacturer, but directly pass the received interlocking data to the general protocol conversion layer to obtain the correct data area interlocking data.
[0017] Step S202, matching a data extraction rule corresponding to the target interlocking data from the rule base, and using the data extraction rule to extract information from the data area interlocking data to obtain representation information.
[0018] Among them, according to the determined manufacturer configuration file, the interlocking data part of the data area is extracted, and after the interlocking data of the data area is obtained, it is passed to the intelligent analysis module. The module will establish a variety of data area interlocking data usage rules in the initialization stage. After determining which rule is applicable to the target interlocking data, it can be parsed one by one in the order specified by the interlocking device sequence configuration file (the configuration file specifies the interlocking device sequence, and the association between the occupancy / locking status of the turnout equipment) to identify the key information in the interlocking data, such as the status of different devices, the logical relationship of the interlocking signal, etc., and the representation information is parsed by the intelligent analysis module by taking values by bytes or bits for the interlocking data in the data area, which can accurately parse the actual meaning contained in the interlocking data in the data area.
[0019] Step S203: Use the characterization information to perform safety analysis on the target interlocking data to obtain a safety analysis result.
[0020] Among them, in order to solve the problem of low intelligence level of the testing process in the existing technology, the present invention integrates an intelligent testing subsystem. When testing the interlocking interface program, the subsystem first converts the characterization information into a real-time status chart, and analyzes the abnormal points by intelligently comparing the original state and the converted state of the interlocking manufacturer, and outputs relevant log records for the research and development of abnormal equipment. During operation, the intelligent testing subsystem can monitor and collect various performance indicators and operating results in real time, and use intelligent analysis algorithms to automatically analyze these data to determine whether the program meets the requirements of railway transportation safety protection. The test results can be confirmed without excessive human participation, thereby realizing the intelligence of the testing process.
[0021] In the embodiment of the present application, the target interlocking data to be analyzed is obtained, the target interlocking data is converted using a protocol conversion layer to obtain data area interlocking data, a data extraction rule corresponding to the target interlocking data is matched from a rule base, information is extracted from the data area interlocking data using the data extraction rule to obtain characterization information, and the target interlocking data is safety analyzed using the characterization information to obtain a safety analysis result. The data area interlocking data is obtained by converting the target interlocking data, and the characterization information obtained by extracting the data area interlocking data according to the data extraction rule is safety analyzed, thereby automatically and accurately analyzing the interlocking data, and improving the efficiency of the shunting operation.
[0022] like Figure 3 As shown, it is a flow chart of a railway interlocking analysis method provided by Embodiment 3 of the present invention. The step S201 of obtaining the target interlocking data to be analyzed, using the protocol conversion layer to convert the target interlocking data to obtain the data area interlocking data may include the following steps: Step S301, matching the target communication protocol corresponding to the target interlocking data from the data model library, the data model library stores the interlocking information of N interlocking manufacturers and the communication protocols of the corresponding interlocking manufacturers, where N is an integer greater than zero.
[0023] Among them, the data model library is a database that stores the interlocking information of each interlocking manufacturer and its corresponding communication protocol. This library usually exists in the form of a configuration file for easy management and maintenance. The configuration file contains detailed communication protocol information of each interlocking manufacturer, such as the header, data area, checksum, tail offset and length, etc. The storage form can be a JavaScript object notation (full name in English: JavaScript Object Notation), a database table, etc. The storage content can be the interlocking information of each manufacturer and the detailed configuration of its communication protocol.
[0024] During the matching process, the file reading method can be used to read the configuration file and parse its content into an operable data structure (such as a dictionary). According to the header offset and length of each manufacturer in the configuration file, the header information is extracted from the target interlocking data. According to the extracted header information, the interlocking information of each manufacturer and the communication protocol of the corresponding manufacturer stored in the data model class library are traversed, and the header information of the target interlocking data is compared with the header information of each manufacturer in the data model class library. If the header information of the target interlocking data matches the header information of a manufacturer, the name of the manufacturer is returned and matched to the corresponding interlocking manufacturer. The matched manufacturer name is used to find and extract the communication protocol of the manufacturer from the class library.
[0025] Step S302, parsing the target interlocking data according to the target communication protocol to obtain the correct data area interlocking data in the data area.
[0026] Among them, the data area offset and length in the target communication protocol can obtain the data area interlocking data in the correct data area of the target interlocking data, and parse the extracted correct data area interlocking data content into a readable format, such as a string, dictionary, etc., and use the target communication protocol matched in step S301 to extract the content of the data area from the target interlocking data according to the offset and length of the data area to obtain the data area interlocking data in the correct data area.
[0027] In this embodiment, by matching the target communication protocol corresponding to the target interlocking data in the data model library and parsing the target interlocking data, the correct data area interlocking data in the data area is obtained, thereby providing a reliable basis for subsequent data processing and application.
[0028] like Figure 4 As shown, it is a schematic flow chart of a railway interlocking analysis method provided by the fourth embodiment of the present invention. On the basis of the above-mentioned third embodiment, after matching the target communication protocol corresponding to the target interlocking data from the data model library in step S301, the following steps may also be included: Step S401, performing data processing on the target communication protocol to obtain N communication protocols with unified structures.
[0029] Step S402, storing N communication protocols with unified structures into a data model class library, and obtaining a data model class library containing N communication protocols with unified structures.
[0030] Among them, a unified data structure is determined to store the communication protocol configuration information of each manufacturer, the communication protocol information of each manufacturer in the data model class library is traversed, the field value in the unified structure is calculated according to the original configuration information of the manufacturer's communication protocol, the communication protocol information of each manufacturer is converted into a unified structure, the configuration file is opened in write mode using the file operation method, the communication protocol converted into a unified structure is written into the configuration file, and a data model class library containing N structural unified communication protocols is obtained.
[0031] In this embodiment, the target communication protocol is processed to obtain a communication protocol with a unified structure, and is stored in a data model library, thereby obtaining a data model library containing N communication protocols with unified structures. This ensures the structural consistency of the communication protocol configuration information of all manufacturers, facilitating subsequent data analysis and processing.
[0032] like Figure 5 As shown, it is a flow chart of a railway interlocking analysis method provided by Embodiment 5 of the present invention. In step S202, matching a data extraction rule corresponding to the target interlocking data from a rule base may include the following steps: Step S501, obtaining the configuration sequence of target interlocking data according to data extraction rules.
[0033] Step S502: extract information from target interlocking data using data extraction rules according to the configuration sequence to obtain representation information.
[0034] Among them, the target data extraction rules can be parsed to obtain the data extraction rules of each field, that is, the extraction order of the fields. According to the parsed field extraction order, an extraction order list is generated to guide the subsequent data extraction operations. According to the generated order list, the information of each field in the target interlocking data is extracted in sequence. The extraction of field information can be, according to the offset and length defined in the data extraction rules, extracting the information of each field from the target interlocking data, storing the extracted information in a suitable data structure, and checking whether each extracted field information conforms to the expected format and content. For example, verify whether the string can be correctly parsed into a dictionary and whether the values of each field are within a reasonable range.
[0035] Among them, each field, according to its offset and length, extracts information from the target interlocking data, uses the extracted information to build a dictionary, stores the representation information, and checks whether each extracted field information conforms to the expected format and content.
[0036] In this embodiment, the configuration sequence of target interlocking data is extracted by data extraction rules, and information is extracted from the target interlocking data according to the configuration sequence and the data extraction rules to obtain characterization information, thereby improving the efficiency and accuracy of data extraction.
[0037] like Figure 6 As shown, it is a flow chart of a railway interlocking analysis method provided by Embodiment 6 of the present invention. In step S203, using the characterization information to perform safety analysis on the target interlocking data to obtain the safety analysis result may include the following steps: Step S601: convert the representation information into a real-time status chart.
[0038] Among them, determine the key fields contained in the representation information, select the appropriate chart type, such as bar charts, pie charts, line charts, etc., according to the nature and characteristics of the data, and use the chart library to generate real-time status charts, thereby converting the representation information into real-time status charts that are easy to understand and analyze, so as to facilitate further security analysis.
[0039] Step S602, comparing the target interlocking data with the real-time status chart to determine abnormal information.
[0040] Step S603, obtaining a security analysis result based on the abnormal information.
[0041] Among them, according to the current status information in the real-time status chart, it is assumed that after the chart is generated, the status information is stored in a variable, and the extracted status information is compared with the representation information in the target interlocking data. If the comparison result is inconsistent, it is recorded as abnormal information. According to the nature and severity of the abnormal information, the potential safety risk is determined, and the safety analysis result is generated based on the abnormal information.
[0042] Optionally, comparing the target interlocking data with the real-time status chart in step S602 to determine abnormal information may include the following steps: Convert the turnout position information into a device status diagram of the turnout position.
[0043] Compare the target interlocking data with the equipment status chart at the turnout location to determine abnormal information.
[0044] Among them, the current switch position status information is extracted from the real-time status chart, and the status information of the real-time status chart is stored in a variable. The switch position information in the target interlocking data is compared with the switch position information in the real-time status chart. If there is any inconsistency, it is recorded as abnormal information, and the abnormal information in the comparison result is recorded for further processing.
[0045] In this embodiment, the real-time status chart converted from the characterization information is used for comparison with the target interlocking data, abnormal information is found, and the abnormal information is analyzed to obtain the safety analysis result. This enables the system to process interlocking data from different manufacturers more flexibly and efficiently. This ensures the accuracy and reliability of the safety analysis of the interlocking data, timely discovers and handles potential safety risks, and improves the safety and stability of the system.
[0046] like Figure 7 FIG. 2 is a flow chart of a railway interlocking analysis method provided in Embodiment 7 of the present invention. After obtaining the safety analysis result in step S203, the railway interlocking analysis method may further include the following steps: Step S701, determining whether the security analysis result meets the preset security conditions.
[0047] Step S702, if the preset safety conditions are not met, the target interlocking data is adjusted, and the protocol conversion layer is returned to execute according to the adjusted target interlocking data to convert the target interlocking data to obtain the data area interlocking data step until the safety analysis result meets the preset safety conditions.
[0048] Among them, safety conditions may include no abnormal information, tolerance level of specific abnormal information, etc., extract abnormal information from the safety analysis results, determine the fields and values that need to be adjusted, and update the corresponding fields in the target interlocking data based on the abnormal information. The adjusted target interlocking data is re-converted and safety analyzed until the results meet the preset safety conditions.
[0049] In this embodiment, the safety analysis result is judged by the preset safety condition. If the safety condition is not met, the target interlocking data is adjusted, and the contents of the above steps S201 to S203 are returned to be executed until the safety analysis result meets the preset safety condition. This ensures that the interlocking data of the railway system is in a safe state at any time, thereby improving the reliability and safety of the system.
[0050] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0051] like Figure 8 As shown, it is a schematic diagram of a railway interlocking analysis device provided in the eighth embodiment of the present invention, and the railway interlocking analysis device corresponds to the railway interlocking analysis method in the above embodiment. The railway interlocking analysis device includes a data conversion module 81, an information extraction module 82, and an analysis module 83. The functional modules are described in detail as follows: The data conversion module 81 is used to obtain the target interlocking data to be parsed, and use the protocol conversion layer to convert the target interlocking data to obtain the data area interlocking data; An information extraction module 82 is used to match a data extraction rule corresponding to the target interlocking data from a rule base, and use the data extraction rule to extract information from the data area interlocking data to obtain representation information; The analysis module 83 is used to use the characterization information to perform safety analysis on the target interlocking data to obtain a safety analysis result.
[0052] Optionally, the data conversion module 81 includes: A storage unit, used to match a target communication protocol corresponding to the target interlocking data from a data model library, wherein the data model library stores interlocking information of N interlocking manufacturers and communication protocols of the corresponding interlocking manufacturers, where N is an integer greater than zero; The target data parsing unit is used to parse the target interlocking data according to the target communication protocol to obtain the correct data area interlocking data in the data area.
[0053] Optionally, the storage unit includes: The target protocol processing subunit is used to process the target communication protocol data to obtain N communication protocols with unified structure; The communication class library storage subunit is used to store N communication protocols with unified structures into the data model class library to obtain a data model class library containing N communication protocols with unified structures.
[0054] Optionally, the information extraction module 82 includes: A sequence acquisition unit, used to obtain the configuration sequence of the target interlocking data according to the data extraction rule; The characterization information acquisition unit is used to extract information from the target interlocking data according to the configuration sequence and adopt the data extraction rule to obtain the characterization information.
[0055] Optionally, the analysis module 83 includes: A chart formation unit for converting the representation information into a real-time status chart; An abnormality determination unit, used to compare the target interlocking data with the real-time status chart to determine abnormal information; The safety analysis unit is used to obtain safety analysis results based on abnormal information.
[0056] Optionally, the abnormality determination unit includes: A turnout status subunit, for converting turnout position information into a device status diagram of the turnout position; The comparison subunit is used to compare the target interlocking data with the equipment status diagram of the turnout position to determine the abnormal information.
[0057] Optionally, the railway interlocking parsing device further comprises: A judgment module is used to judge whether the safety analysis result meets the preset safety conditions after obtaining the safety analysis result; The return execution module is used to adjust the target interlocking data if the preset safety conditions are not met, and return to the execution using the protocol conversion layer according to the adjusted target interlocking data to convert the target interlocking data to obtain the steps of data area interlocking data until the safety analysis results meet the preset safety conditions.
[0058] The specific definition of the railway interlocking analysis device can be found in the definition of the railway interlocking analysis method above, which will not be repeated here. Each module in the above-mentioned railway interlocking analysis device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0059] like Fig. 9As shown, it is a schematic diagram of the structure of a computer device provided in Embodiment 9 of the present invention. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a railway interlocking analysis method is implemented.
[0060] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the railway interlocking analysis method in the above embodiment is implemented, for example Figures 2 to 7 Alternatively, when the processor executes the computer program, the functions of each module / unit in the railway interlocking analysis device are realized, for example Figure 8 The functions of the data conversion module 81, information extraction module 82, and analysis module 83 are not described here in detail to avoid repetition.
[0061] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the railway interlocking analysis method in the above embodiment is implemented. Figures 2 to 7 Alternatively, when the computer program is executed by the processor, the functions of each module / unit in the above-mentioned railway interlocking analysis device are realized, for example Figure 8 The functions of the data conversion module 81, the information extraction module 82, and the analysis module 83 are not described here in detail to avoid repetition. The computer-readable storage medium may be non-volatile or volatile.
[0062] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0063] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0064] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A railway interlocking analysis method, characterized in that: include: Obtain target interlocking data to be parsed, and use a protocol conversion layer to convert the target interlocking data to obtain data area interlocking data; Matching a data extraction rule corresponding to the target interlocking data from a rule base, and extracting information from the data area interlocking data using the data extraction rule to obtain representation information; Using the characterization information, a safety analysis is performed on the target interlocking data to obtain a safety analysis result.
2. The railway interlocking analysis method according to claim 1, characterized in that: A data model library is provided in the protocol conversion layer; The use protocol conversion layer converts the target interlocking data to obtain data area interlocking data, including: Matching a target communication protocol corresponding to the target interlocking data from the data model library, wherein the data model library stores interlocking information of N interlocking manufacturers and communication protocols of the corresponding interlocking manufacturers, where N is an integer greater than zero; According to the target communication protocol, the target interlocking data is parsed to obtain the correct data area interlocking data in the data area.
3. The railway interlocking analysis method according to claim 2, characterized in that: After matching the target communication protocol corresponding to the target interlocking data from the data model library, the method further includes: Performing data processing on the target communication protocol to obtain N communication protocols with unified structures; The N communication protocols with unified structures are stored in the data model class library to obtain a data model class library containing the N communication protocols with unified structures.
4. The railway interlocking analysis method according to claim 1, characterized in that: The data extraction rule corresponding to the target interlocking data is matched from the rule base, including: According to the data extraction rule, a configuration sequence of the target interlocking data is obtained; According to the configuration sequence, the target interlocking data is extracted using the data extraction rule to obtain characterization information.
5. The railway interlocking analysis method according to claim 1, characterized in that: The using the characterization information to perform safety analysis on the target interlocking data to obtain a safety analysis result includes: converting the characterization information into a real-time status graph; Comparing the target interlocking data with the real-time status chart to determine abnormal information; A safety analysis result is obtained according to the abnormal information.
6. The railway interlocking analysis method according to claim 5, characterized in that: The characterization information includes turnout position information; Comparing the target interlocking data with the real-time status chart to determine abnormal information includes: Converting the turnout position information into a device status diagram of the turnout position; The target interlocking data is compared with the equipment status diagram of the switch position to determine abnormal information.
7. The railway interlocking analysis method according to claim 1, characterized in that: After obtaining the safety analysis results, the method further includes: Determining whether the safety analysis result meets the preset safety conditions; If the preset safety conditions are not met, the target interlocking data is adjusted, and the step of returning to execute the use protocol conversion layer according to the adjusted target interlocking data to convert the target interlocking data to obtain the data area interlocking data is performed until the safety analysis result meets the preset safety conditions.
8. A railway interlocking analysis device, characterized in that: include: A data conversion module is used to obtain target interlocking data to be parsed, and use a protocol conversion layer to convert the target interlocking data to obtain data area interlocking data; An information extraction module, used to match a data extraction rule corresponding to the target interlocking data from a rule base, and use the data extraction rule to extract information from the data area interlocking data to obtain representation information; The analysis module is used to use the characterization information to perform safety analysis on the target interlocking data to obtain a safety analysis result.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the railway interlocking analysis method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the railway interlocking analysis method according to any one of claims 1 to 7 is implemented.