Log transmission method and device of signal system and train control system
Patent Information
- Application Number
- CN202311698059.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-11
- Publication Date
- 2026-09-11
- Estimated Expiration
- 2043-12-11
AI Technical Summary
[0005]CI和LC系统不使用统一格式的日志输出接口,日志解析系统需要开发两套不同的日志解析工具,开发成本高且不便于维护
[0019] This invention provides a log transmission method for signaling systems. By classifying log content into different types of data packets based on function, unlike logs ordered by time, this method increases the independence of data packets and reduces the coupling of log content. Simultaneously, it ensures that the data packets received by the log system are parsable and usable. Furthermore, by employing a universal data packet header template, it achieves a unified log format across different systems, facilitating log system development, easily expanding protocol interface methods, and reducing modifications when facing new requirements. This effectively solves the problem of high development costs for log parsing systems caused by inconsistent log formats in rail transit signaling systems, reducing development workload and simplifying maintenance.
Smart Images

Figure CN117445984B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of rail transit, and more specifically, to a log transmission method, apparatus, and train control system for a signaling system. Background Technology
[0002] Communication Based Train Control (CBTC) is a continuous automatic train control system built upon active train positioning technology, continuous vehicle-to-ground two-way data communication technology, and onboard and ground processors capable of performing safety functions, all independent of trackside occupancy detection equipment. The Line Controller (LC) calculates movement authorizations (MAs) for communication trains within its control range based on the position information reported by the communicating trains and the track occupancy / vacancy information provided by the interlocking routes and trackside equipment, ensuring the safe operation of communication trains within its control area. Computer Interlocking (CI) is a subsystem of the automatic train control system, using computer technology as its core to automatically implement control and protection technologies for routes, switches, signals, etc.
[0003] The ground system of urban rail transit signaling mainly includes LC and CI systems. The LC and CI systems cover a wide variety and large number of ground equipment within the line area, including signals, emergency stop buttons, platform screen doors, switches, physical sections, logical sections, floodgates, personnel protection switches, garage doors, train information, etc. This results in a large amount of information that the system needs to record each cycle. Therefore, the common choice of most signaling equipment manufacturers is to output information in real time each cycle via network cable.
[0004] The LC and CI systems periodically output log information to the log system in real time to record the status information of relevant devices, facilitating problem location and analysis, statistical analysis of device stability, and big data analysis. However, due to the limitations of the secure computer platform hardware and the UDP protocol communication method, the length of a single data packet (1400 bytes) necessitates the system outputting multiple log packets per cycle. The system divides all log information to be output in the current cycle into several data packets according to the UDP protocol length limit of the secure computer platform. Each data packet uses a common and fixed data packet header, which includes the cycle number, total number of packets, and packet sequence number. The cycle number and total number of packets are the same for log information in the same cycle, but the packet sequence number is different. After receiving the data, the log system first buffers it. When the cycle number and total number of packets are the same for each data packet, and the total number of packets with different sequence numbers equals the total number of packets, the log system determines that all data packets in the current cycle have been received. After removing the common header, it restores the complete data packet for recording and parsing.
[0005] CI and LC systems do not use a unified log output interface format, requiring the development of two different log parsing tools, which is costly and difficult to maintain. If a single data packet is lost, the data packets for that period become incomplete, and the log parsing system cannot record or parse the data packets already received in that period.
[0006] There is currently no effective solution to the problem of high development costs for log parsing systems caused by the inconsistent log formats in rail transit signaling systems. Summary of the Invention
[0007] This invention provides a log transmission method, device, and train control system for a signaling system.
[0008] According to one aspect of the embodiments of this application, a log transmission method for a signal system is provided, which is applied to multiple subsystems of the signal system. The method includes: acquiring log content; dividing the log content into different types of data packets according to the function recorded in the log content; determining the data packet header of each data packet based on the acquired general data packet header template and the log content; and combining the data packets and the data packet headers and sending them to the log system.
[0009] Furthermore, the log system is used to receive logs from multiple subsystems; and to obtain log content, including: obtaining log content from multiple subsystems.
[0010] Furthermore, the log content is divided into different types of data packets according to the function recorded in the log content, including: dividing the log content of all subsystems into different types of data packets according to their functions; and further dividing data packets with the same function according to the type of the signal system corresponding to their subsystem.
[0011] Furthermore, the signaling system includes at least a communication-based train control system (CBTC) and a fully automatic operation system (FAO); the subsystems include at least a line controller (LC) and a computer interlocking system (CI); the data packets must include at least: basic system information, including the hardware and software version numbers of the equipment; system operation information, including time information, equipment temperature, CPU utilization, and memory utilization; communication status of external equipment, including the status of other equipment communicating with this device; program operation logs, including the execution status and results of key program functions; interlocking I / O board status; interlocking section information; interlocking signal information; interlocking turnout information; interlocking route information; interlocking logic section information; interlocking non-route information; interlocking platform screen door information; interlocking fault code information; and interlocking emergency button information. Information; Interlocking protection zone information; Interlocking garage door information; Interlocking personnel protection switch information; LC platform screen door information; LC unmanned turnaround button information; LC unmanned turnaround light information; LC emergency stop button information; LC floodproof door information; LC logic zone information; LC signal information; LC turnout information; LC protection zone information; LC route information; LC axle counting zone information; LC temporary speed limit information; LC garage door information; LC personnel protection switch information; Local LC movement authorization information of the CBTC system; Local LC movement authorization information of the FAO system; Adjacent LC movement authorization information of the CBTC system; Adjacent LC movement authorization information of the FAO system; LC train information of the CBTC system; LC train information of the FAO system; LC event code information.
[0012] Furthermore, the general data packet header template includes at least: a fixed identifier to distinguish it from other data packets in the network; a protocol version to identify the current version of the protocol, ensuring that the interface protocol used by the subsystem and the log system is the same version; a device type to distinguish subsystems; a device number to distinguish different individuals of the same type of device in the line; a system tag to identify the device's system and primary / backup redundancy status; a period number to indicate which period the data packet belongs to; a packet type to distinguish the types of different data packets; a total number of packets to indicate the total number of packets in this period; and a packet sequence number to indicate which packet is in the current period.
[0013] Furthermore, the data packet and its header are combined and sent to the log system, including: comparing the contents of two consecutive data packets; if the difference between the contents of the two consecutive data packets is greater than a preset condition, the data packet is sent to the log system; otherwise, it is not sent to the log system.
[0014] According to another aspect of the embodiments of this application, a log transmission device for a signal system is also provided, which is applied to multiple subsystems of the signal system. The device includes: an acquisition module, used to acquire log content and divide the log content into different types of data packets according to the function recorded in the log content; a determination module, used to determine the data packet header of each data packet based on the acquired general data packet header template and the log content; and a sending module, used to combine the data packet and the data packet header and send them to the log system.
[0015] According to another aspect of the embodiments of this application, a train control system is also provided, which employs a log transmission device for a signal system as described above.
[0016] According to another aspect of the embodiments of this application, a storage medium is also provided, the storage medium including a stored program that executes the above steps when the program is run.
[0017] According to another aspect of the embodiments of this application, an electronic device is also provided, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; wherein: the memory is used to store computer programs; and the processor is used to execute the steps in the above method by running the programs stored in the memory.
[0018] This application also provides a computer program product containing instructions that, when run on a computer, cause the computer to perform the steps in the above-described method.
[0019] This invention provides a log transmission method for signaling systems. By classifying log content into different types of data packets based on function, unlike logs ordered by time, this method increases the independence of data packets and reduces the coupling of log content. Simultaneously, it ensures that the data packets received by the log system are parsable and usable. Furthermore, by employing a universal data packet header template, it achieves a unified log format across different systems, facilitating log system development, easily expanding protocol interface methods, and reducing modifications when facing new requirements. This effectively solves the problem of high development costs for log parsing systems caused by inconsistent log formats in rail transit signaling systems, reducing development workload and simplifying maintenance. Attached Figure Description
[0020] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0021] Figure 1 This is a hardware structure block diagram of a computer according to an embodiment of the present invention;
[0022] Figure 2 This is an optional schematic diagram of the log transmission process in the prior art of this invention.
[0023] Figure 3 This is an optional flowchart of a log transmission method for a signal system according to an embodiment of the present invention;
[0024] Figure 4 This is another optional flowchart of the log transmission method of the signal system in this embodiment of the invention;
[0025] Figure 5 This is an optional structural block diagram of the log transmission device of the signal system in an embodiment of the present invention. Detailed Implementation
[0026] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all of them. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present application. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of the present application can be combined with each other.
[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0028] Example 1
[0029] The method embodiment provided in Embodiment 1 of this application can be executed in a controller, server, computer, tablet, or similar computing scheduling device. Taking running on a computer as an example, Figure 1 This is a hardware structure block diagram of a computer according to an embodiment of the present invention. For example... Figure 1 As shown, a computer may include one or more ( Figure 1Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. Optionally, the computer may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the computer described above. For example, the computer may also include components that are larger than... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0030] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to a log transmission method for a signal system in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the aforementioned method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the computer via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0031] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by a computer's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.
[0032] In existing technologies, the general process of log transmission is as follows: Figure 2As shown, this includes: LC log content, packetization, and then sending it to the log system. The system divides all log information to be output in this cycle into several data packets according to the length limit in bytes of the UDP protocol of the secure computer platform. Each data packet uses a common and fixed data packet frame header, which includes information such as cycle number, total number of packets, and packet sequence number. The cycle number and total number of packets are the same for log information in the same cycle, but the packet sequence number is different. After receiving the data, the log system first buffers it. When the cycle number and total number of packets are the same for each data packet, and the total number of packets with different sequence numbers equals the total number of packets, the log system determines that all data packets in this cycle have been received. After removing the common frame header, it restores the complete data packets for recording and parsing. If a single data packet is lost, the data packets for this cycle are incomplete, and the log parsing system cannot record and parse the data packets already received in this cycle.
[0033] Simultaneously, the sending frequency of log content information cannot be flexibly controlled; even packets with extremely low probability of change need to be sent periodically, consuming communication bandwidth. The log system is not conducive to distinguishing whether consecutive packets have changed, and the storage strategy for changes in the log system is difficult to implement, resulting in a large need for data storage space.
[0034] To address the aforementioned issues, this embodiment provides a log transmission method for a signal system, applicable to multiple subsystems of the signal system. Figure 3 This is a flowchart of a log transmission method for a signal system according to an embodiment of the present invention, such as... Figure 3 As shown, the process includes the following steps:
[0035] S302, Obtain log content and divide the log content into different types of data packets according to the function of the log content recording;
[0036] S304, Based on the obtained general data packet header template, determine the data packet header of each data packet according to the log content;
[0037] S306 combines the data packet and its header and sends it to the log system.
[0038] The above embodiments provide a log transmission method for a signaling system. Log content is divided into different types of data packets through functional classification, unlike logs ordered by time. This increases the independence of data packets and reduces the coupling of log content. Simultaneously, it ensures that the data packets received by the log system are parsable and usable. Furthermore, the use of a universal data packet header template unifies the log format across different systems, facilitating log system development, easily expanding protocol interfaces, and reducing modifications when facing new requirements. This effectively solves the problem of inconsistent log formats in rail transit signaling systems, which leads to high development costs for log parsing systems, reducing development workload and simplifying maintenance.
[0039] In this invention, the signaling system has multiple subsystems, such as the LC and CI systems in rail transit, and the log system is used to receive logs from multiple subsystems; based on this, obtaining log content includes: obtaining log content from multiple subsystems.
[0040] After obtaining the log content, the log content is divided into different types of data packets according to the function recorded in the log content, including: dividing the log content of all subsystems into different types of data packets according to their functions; and further dividing data packets with the same function according to the type of the signal system corresponding to their subsystem.
[0041] In the field of rail transit, the signaling system includes at least the communication-based train control system (CBTC) and the fully automatic operation system (FAO); the subsystems include at least the line controller (LC) and the computer interlocking system (CI); the data types integrate the data types of each subsystem, and if other subsystems are added, the data types can be expanded, achieving full compatibility. Even if another type of signaling control system is added, it can be adapted with minimal changes, exhibiting good scalability. It does not require the development of different software, reducing development workload and facilitating maintenance.
[0042] The data packet types include at least the following:
[0043] Basic system information, including the hardware and software version numbers of the device;
[0044] System operating information, including time information, device temperature, CPU utilization, and memory utilization;
[0045] The communication status of external devices, including the status of other devices communicating with this device;
[0046] Program execution log, including the execution status and results of the program's key functions;
[0047] Interlock I / O board status;
[0048] Interlocking section information;
[0049] Interlocking signal information;
[0050] Interlocking turnout information;
[0051] Interlocking route information;
[0052] Interlocking logic section information;
[0053] Interlocking non-route information;
[0054] Interlocking platform screen door information;
[0055] Interlocking fault code information;
[0056] Interlock emergency button information;
[0057] Information on interlocking protection zones;
[0058] Interlocked garage door information;
[0059] Information on interlock personnel protection switches;
[0060] LC screen door information;
[0061] LC unmanned turnaround button information;
[0062] LC unmanned turnaround light information;
[0063] LC emergency stop button information;
[0064] LC floodproof door information;
[0065] LC logical section information;
[0066] LC signal information;
[0067] LC turnout information;
[0068] LC protected area section information;
[0069] LC route information;
[0070] LC axle section information;
[0071] LC temporary speed limit information;
[0072] LC garage door information;
[0073] LC personnel protection switch information;
[0074] CBTC system's LC mobile authorization information; FAO system's LC mobile authorization information;
[0075] Adjacent LC movement authorization information in the CBTC system;
[0076] Adjacent LC movement authorization information of the FAO system;
[0077] CBTC system LC train information;
[0078] LC train information from the FAO system;
[0079] LC event code information.
[0080] The following shows the general format of the data packets in this invention.
[0081] Table 1
[0082]
[0083] As shown in the table above, the general data packet header template includes at least the following: a fixed identifier, used to distinguish it from other data packets in the network; a protocol version, used to identify the current version of the protocol, ensuring that the interface protocol used by the subsystem and the log system is the same version; a device type, used to distinguish subsystems, such as LC and CI; a device number, used to distinguish different individuals of the same type of equipment on the line; a system tag, used to identify the device's system and primary / backup redundancy status; a cycle number, used to indicate which cycle the data packet belongs to. Because the train control system uses a "two-out-of-two" safety computer platform, the equipment cabinet has two systems, namely System I and System II. Because the equipment is dual-machine hot standby, only one primary system and one backup system can exist at any given time. This field is used to indicate whether the data packet belongs to System I or System II, and also indicates the current primary / backup status of the system; a packet type, used to distinguish the types of different data packets; a total number of packets, used to indicate the total number of packets in this cycle; and a packet sequence number, used to indicate which packet is in this cycle.
[0084] Different packet types require different packet content definitions. Different types of data packets have different packet contents. For example, the packet content for "LC Emergency Stop Button Information" is as follows:
[0085] Table 2
[0086]
[0087] In a preferred embodiment of the present invention, sending the data packet and its header to the log system includes: comparing the contents of two consecutive data packets; if the difference between the contents of the two consecutive data packets is greater than a preset condition, then sending the data packet to the log system; otherwise, not sending it to the log system. Data packets with different log contents allow for easy control of the packet sending frequency and easy comparison of the differences between consecutive packets. The log system's strategy of storing data only when changes occur is easy to implement, reducing storage space requirements. Simultaneously, it facilitates maintenance personnel in statistically analyzing changes, and even enables the implementation of a field equipment status playback function with a graphical interface based on this log content.
[0088] This embodiment also provides another method for log transmission in a signal system. Figure 4 This is a flowchart of a log transmission method for a signal system according to an embodiment of the present invention, such as... Figure 4 As shown, the process includes the following steps:
[0089] S401: Retrieve LC log content;
[0090] S402: Retrieve CI log content;
[0091] S403: Different types of data packets are divided according to function; based on the differences between LC and CI systems and log content, data packets of the same content type and data packets of different content types are divided. At the same time, data packets of the same content type are further subdivided according to whether the signal system is a traditional CBTC system or a FAO system; considering the two different standards of the signal system, namely the traditional CBTC system and the FAO system, the log system is fully compatible. Even if another type of signal control system is added, it can be adapted with minimal changes, and has good scalability.
[0092] S404: Design a common common packet header; design a common packet header based on the different types of data packets, unify the log content method of the signal ground LC and CI systems, define a common communication interface protocol, facilitate unified processing of the log system, avoid developing two different software, reduce development workload and facilitate maintenance;
[0093] S405: Subpackage according to the actual situation of a certain type of package;
[0094] S406: Send to the log system.
[0095] In the above implementation, the unified structured design offers convenience and flexibility. The standardized log content format facilitates log system development, and the easily extensible protocol interface minimizes modifications in response to changing requirements. Adjustments to the frequency of data packet transmission reduce storage space requirements for data output during non-essential periods. Because log content is divided into different types of data packets, data packet independence is increased, and log content coupling is reduced. Simultaneously, this ensures that the data packets received by the log system are parsable and usable, improving system stability.
[0096] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present invention.
[0097] Example 2
[0098] This embodiment also provides a log transmission device for a signal system, used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0099] The log transmission device of this signal system is applied to multiple subsystems of the signal system. Figure 5 This is a structural block diagram of a log transmission device for a signal system according to an embodiment of the present invention, such as... Figure 5 As shown, the device includes:
[0100] The acquisition module 502 is used to acquire log content and divide the log content into different types of data packets according to the function of the log content recording.
[0101] The determination module 504 is used to determine the header of each data packet based on the obtained general data packet header template and the log content.
[0102] The sending module 506 is used to combine data packets and data packet headers and send them to the log system.
[0103] The above embodiments provide a log transmission method for a signaling system. Log content is divided into different types of data packets through functional classification, unlike logs ordered by time. This increases the independence of data packets and reduces the coupling of log content. Simultaneously, it ensures that the data packets received by the log system are parsable and usable. Furthermore, the use of a universal data packet header template unifies the log format across different systems, facilitating log system development, easily expanding protocol interfaces, and reducing modifications when facing new requirements. This effectively solves the problem of inconsistent log formats in rail transit signaling systems, which leads to high development costs for log parsing systems, reducing development workload and simplifying maintenance.
[0104] The signal system has multiple subsystems, and the log system is used to receive logs from the multiple subsystems; the acquisition module 502 includes an acquisition submodule, which is used to acquire the log content of the multiple subsystems.
[0105] The determination module 504 includes: a first division submodule, used to divide the log content of all subsystems into different types of data packets according to their functions; and a second division submodule, used to further divide data packets with the same function according to the type of the signal system corresponding to their subsystem.
[0106] The signaling system includes at least a communication-based train control system (CBTC) and a fully automatic operation system (FAO); the subsystems include at least a line controller (LC) and a computer interlocking system (CI); the data packets must include at least: basic system information, including the hardware and software version numbers of the equipment; system operation information, including time information, equipment temperature, CPU utilization, and memory utilization; communication status of external equipment, including the status of other equipment communicating with this device; program execution logs, including the execution status and results of key program functions; interlocking I / O board status; interlocking section information; interlocking signal information; interlocking turnout information; interlocking route information; interlocking logic section information; interlocking non-route information; interlocking platform screen door information; interlocking fault code information; and interlocking emergency button information. Information on interlocking protection zones; information on interlocking garage doors; information on interlocking personnel protection switches; information on LC platform screen doors; information on LC unmanned turnaround buttons; information on LC unmanned turnaround lights; information on LC emergency stop buttons; information on LC floodgates; information on LC logic zones; information on LC signal machines; information on LC turnouts; information on LC protection zones; information on LC routes; information on LC axle counting zones; information on LC temporary speed limits; information on LC garage doors; information on LC personnel protection switches; information on the movement authorization of this LC in the CBTC system; information on the movement authorization of this LC in the FAO system; information on the movement authorization of adjacent LCs in the CBTC system; information on the movement authorization of adjacent LCs in the FAO system; information on LC trains in the CBTC system; information on LC trains in the FAO system; information on LC event codes.
[0107] A general data packet header template includes at least the following: a fixed identifier to distinguish it from other data packets in the network; a protocol version to identify the current protocol version, ensuring that the interface protocol used by the subsystem and the log system is the same version; a device type to distinguish subsystems; a device number to distinguish different individuals of the same type of device in the line; a system tag to identify the device's system and primary / backup redundancy status; a period number to indicate which period the data packet belongs to; a packet type to distinguish different data packet types; a total number of packets to indicate the total number of packets in the current period; and a packet sequence number to indicate which packet is in the current period.
[0108] The sending module 506 includes: a comparison submodule, used to compare the contents of two consecutive data packets; and a sending submodule, used to send the data packets to the log system if the difference between the contents of the two consecutive data packets is greater than a preset condition, otherwise, not send them to the log system.
[0109] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0110] Example 3
[0111] This embodiment also provides a train control system that uses the log transmission method of the signal system as described in Embodiment 1 above to realize the log transmission of the signal system.
[0112] The above embodiments provide a log transmission method for a signaling system. Log content is divided into different types of data packets through functional classification, unlike logs ordered by time. This increases the independence of data packets and reduces the coupling of log content. Simultaneously, it ensures that the data packets received by the log system are parsable and usable. Furthermore, the use of a universal data packet header template unifies the log format across different systems, facilitating log system development, easily expanding protocol interfaces, and reducing modifications when facing new requirements. This effectively solves the problem of inconsistent log formats in rail transit signaling systems, which leads to high development costs for log parsing systems, reducing development workload and simplifying maintenance.
[0113] Example 4
[0114] Embodiments of the present invention also provide a storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
[0115] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:
[0116] S1, retrieve log content, and divide the log content into different types of data packets according to the function recorded in the log content;
[0117] S2, based on the obtained general data packet header template, determine the data packet header of each data packet according to the log content;
[0118] S3 combines the data packet and its header and sends it to the log system.
[0119] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0120] Embodiments of the present invention also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0121] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0122] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0123] S1, retrieve log content, and divide the log content into different types of data packets according to the function recorded in the log content;
[0124] S2, based on the obtained general data packet header template, determine the data packet header of each data packet according to the log content;
[0125] S3 combines the data packet and its header and sends it to the log system.
[0126] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.
[0127] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0128] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0129] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0130] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0131] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0132] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.
[0133] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A log transmission method for a signal system, applied to multiple subsystems of the signal system, characterized in that, The signal system is used to receive logs from the multiple subsystems; the method includes: The process involves acquiring log content and classifying it into different types of data packets according to the functions recorded in the log content. Acquiring log content includes: acquiring log content from the multiple subsystems; classifying the log content into different types of data packets according to the functions recorded in the log content includes: classifying the log content of all the subsystems into different types of data packets according to their functions; further classifying data packets with the same function according to the type of the signaling system corresponding to their subsystem; wherein the signaling system includes at least a communication-based train control system (CBTC) and a fully automatic operation system (FAO). Based on the obtained generic data packet header template, the data packet header of each data packet is determined according to the log content; wherein, the generic data packet header template includes at least: fixed identifier, protocol version, device type, device number, system tag, period number, packet type, total number of packets and packet sequence number; The data packet and its header are combined and then sent to the log system.
2. The log transmission method for a signal system according to claim 1, characterized in that, The subsystem includes at least a line controller (LC) and a computer interlocking system (CI). The data packets include at least the following types: basic system information, including the hardware and software version numbers of the equipment; system operation information, including time information, equipment temperature, CPU utilization, and memory utilization; communication status of external equipment, including the status of other equipment communicating with this device; program execution logs, including the execution status and results of key program functions; interlocking I / O board status; interlocking section information; interlocking signal information; interlocking turnout information; interlocking route information; interlocking logic section information; interlocking non-route information; interlocking platform screen door information; interlocking fault code information; interlocking emergency button information; interlocking protected section information; and interlocking garage door information. Interlocking personnel protection switch information; LC platform screen door information; LC unmanned turnaround button information; LC unmanned turnaround light information; LC emergency stop button information; LC floodproof door information; LC logic section information; LC signal information; LC turnout information; LC protection section information; LC route information; LC axle counting section information; LC temporary speed limit information; LC garage door information; LC personnel protection switch information; CBTC system local LC movement authorization information; FAO system local LC movement authorization information; CBTC system adjacent LC movement authorization information; FAO system adjacent LC movement authorization information; CBTC system LC train information; FAO system LC train information; LC event code information.
3. The log transmission method for a signal system according to claim 1, characterized in that, The fixed identifier is used to distinguish other data packets in the network; the protocol version is used to identify the current version of the protocol, ensuring that the interface protocol used by the subsystem and the log system is the same version; the device type is used to distinguish the subsystem; the device number is used to distinguish different individuals of the same type of device in the line; The system tag is used to identify the system and primary / backup redundancy status of the device; the cycle number is used to indicate which cycle the data packet belongs to; the packet type is used to distinguish the types of different data packets; the total number of packets is used to indicate the total number of packets in this cycle; and the packet sequence number is used to indicate which packet is in the current cycle.
4. The log transmission method for a signal system according to claim 1, characterized in that, Sending the combined data packet and its header to the log system includes: Compare the contents of the two data packets; If the difference between the contents of the two data packets is greater than a preset condition, the data packet is sent to the log system; otherwise, it is not sent to the log system.
5. A log transmission device for a signal system, applied to multiple subsystems of the signal system, characterized in that, The signal system is used to receive logs from multiple subsystems; the device includes: The acquisition module is used to acquire log content and divide the log content into different types of data packets according to the function recorded in the log content; the acquisition module includes: an acquisition submodule, used to acquire log content from multiple subsystems; A determination module is used to determine the data packet header of each data packet based on the acquired general data packet header template and the log content. The determination module includes: a first partitioning submodule, used to partition the log content of all subsystems into different types of data packets according to their functions; and a second partitioning submodule, used to further partition data packets with the same function according to the type of the signaling system corresponding to their subsystem. The signaling system includes at least a communication-based train control system (CBTC) and a fully automatic operation system (FAO). The general data packet header template includes at least: a fixed identifier, protocol version, device type, device number, system marker, cycle number, packet type, total number of packets, and packet sequence number. The sending module is used to combine the data packet and the data packet header and send them to the log system.
6. A train control system, characterized in that, It includes a log transmission device for a signal system as described in claim 5 above.
7. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, communication interface, and memory communicate with each other through the communication bus; wherein: Memory, used to store computer programs; A processor for executing the method steps of any one of claims 1 to 4 by running a program stored in memory.
8. A storage medium, characterized in that, The storage medium includes a stored program, wherein the program, when executed, performs the method steps of any one of claims 1 to 4.
Citation Information
Patent Citations
Log management method and device of rail transit signal system and storage medium
CN114691633A
Multi-service module log recording method and system, electronic equipment and storage medium
CN115757049A