Rail transit vehicle-mounted signal system log recording method and device

By employing a reference time offset and text template variables in the rail transit vehicle signaling system, the log file format was optimized, solving the hardware cost problem caused by increased storage capacity and achieving efficient log storage and transmission.

CN120930619APending Publication Date: 2025-11-11BEIJING URBAN CONSTR INTELLIGENT CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510975123.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-15
Publication Date
2025-11-11

AI Technical Summary

Technical Problem

Increasing the storage capacity of existing rail transit vehicle-mounted signal system log recording devices requires additional hardware configuration or costs. Furthermore, existing compression methods consume a lot of CPU and RAM, affecting recording or requiring hardware replacement.

Method used

By obtaining the base time of the log file, modifying the date and time to an offset relative to the base time, and modifying the log information to a variable relative to the text template, redundant information storage is reduced.

Benefits of technology

Without increasing hardware performance, it improves log storage capacity and compression ratio, saves storage space, and reduces transmission time and bandwidth requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120930619A_ABST
    Figure CN120930619A_ABST
Patent Text Reader

Abstract

The invention relates to a rail transit vehicle-mounted signal system log recording method and device.The method comprises the steps that a log file of a vehicle-mounted signal system is obtained, the log file comprises a plurality of log records, and each log record comprises date, time and log information; recording the reference time of the log file, and modifying the date and time in each log record into an offset relative to the reference time; and recording a character template of the log file, and modifying log information in each log record into a variable relative to the character template. By means of the log recording method and device, the problem that hardware configuration or cost is increased due to the fact that the storage capacity of a log recording device of a rail transit vehicle-mounted signal system is increased in the related technology is solved, the log compression ratio is increased on the premise that the hardware performance does not need to be increased and improved, and the log storage capacity is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of rail transit technology, and in particular to a method and apparatus for logging rail transit vehicle-mounted signaling systems. Background Technology

[0002] The log recording device of the rail transit vehicle signaling system is installed on the rail transit vehicle to record and store the logs and communication data generated during the operation of the ATP and ATO systems. It is used for future fault analysis, statistics on the operating status of the vehicle system, etc., and is the "black box" of the vehicle system operation.

[0003] Existing logging devices typically employ embedded computer systems to receive log data from ATP and ATO systems and monitor data on the communication bus, storing this data in the device's own memory. After operation ceases each night, the logs are either transmitted to ground equipment or used to overwrite the oldest log entries.

[0004] The log data generated by a vehicle in a single day of operation is enormous, potentially exceeding 20GB. However, due to the vibrations caused by vehicle operation, commonly used high-capacity, removable storage devices such as external hard drives, USB flash drives, and SD cards are unsuitable for use in in-vehicle systems. Therefore, it is necessary to compress the data as much as possible without losing logs, in order to increase the amount of logs that the logging device can store and save the bandwidth and time required for transmission to the ground. Existing technologies generally use the following two methods to solve the problem of log storage in logging devices:

[0005] 1. Log content is stored as is, increasing the memory capacity of the log recording device.

[0006] This approach increases the cost and size of the logging device. Furthermore, the stored log data typically requires a wireless network to transmit to the ground, but wireless network bandwidth is limited. During the few hours after operations end each day, all vehicles simultaneously transmit data via the wireless network, competing for bandwidth, resulting in long processing times and low efficiency.

[0007] 2. The stored log data is compressed using common compression methods (such as zip, rar, 7z, etc.) before being stored in the log recording device.

[0008] This method uses a common compression method, which consumes a lot of CPU resources and RAM space. Embedded systems typically have low CPU and RAM configurations, and the compression process may affect log recording, causing log loss or requiring the replacement of hardware with higher-end configurations, thus increasing costs.

[0009] 3. The stored log data can be transmitted to the ground for storage using 5G communication technology at any time.

[0010] This approach is problematic for subways operating in underground tunnels and trains running in remote areas, where current 5G signal coverage is insufficient, resulting in logs not being transmitted in a timely manner. Furthermore, the cost of 5G communication equipment and data traffic will increase overall expenses.

[0011] In summary, regardless of which method is used, all related technologies can only increase the storage capacity of the log recording device by increasing hardware configuration or cost.

[0012] Currently, no effective solution has been proposed to address the issue that increasing the storage capacity of the log recording device in the rail transit vehicle signaling system would lead to increased hardware configuration or costs. Summary of the Invention

[0013] The purpose of this application is to address the shortcomings of the prior art by providing a method, apparatus, computer device, and computer-readable storage medium for logging in a rail transit vehicle signaling system, so as to at least solve the problem that increasing the storage capacity of the logging device for a rail transit vehicle signaling system would lead to increased hardware configuration or cost in the related art.

[0014] To achieve the above objectives, the technical solution adopted in this application is as follows:

[0015] In a first aspect, embodiments of this application provide a method for logging a rail transit vehicle-mounted signaling system, including:

[0016] Obtain the log file of the vehicle signal system, wherein the log file includes multiple log records, and each log record includes: date and time, and log information;

[0017] Record the base time of the log file, and modify the date and time in each log record to an offset relative to the base time;

[0018] Record the text template of the log file, and modify the log information in each log record to a variable relative to the text template.

[0019] In some embodiments, recording the text template of the log file and modifying the log information in each log record to a variable relative to the text template includes:

[0020] When a target log operation is detected in the first log record of the log file, the log information in the first log record is modified into the form of a text template and variables, wherein the first log record is the record in the log file where the target log operation first appears;

[0021] When the target log operation is detected to be recorded in the second log record of the log file, the log information in the second log record is modified to a variable relative to the text template in the first log record, wherein the second log record is a record in the log file in which the target log operation reappears.

[0022] In some embodiments, when the target log operation is detected in a second log record in the log file, modifying the log information in the second log record to a variable relative to the text template in the first log record includes:

[0023] The location identifier of the first log record is recorded in the log information of the second log record;

[0024] The second log record records variables relative to the text template in the first log record.

[0025] In some embodiments, recording the base time of the log file and modifying the date and time in each log record to an offset relative to the base time includes:

[0026] The date and time in the first log record in the log file are used as the base time, wherein the log file records the multiple log records in chronological order;

[0027] Record the offset relative to the base time at the beginning of each log entry.

[0028] Secondly, embodiments of this application provide a log recording device for a rail transit vehicle-mounted signaling system, comprising:

[0029] The acquisition unit is used to acquire the log file of the vehicle signal system, wherein the log file includes multiple log records, and each log record includes: date and time and log information;

[0030] The first recording unit is used to record the base time of the log file and modify the date and time in each log record to an offset relative to the base time;

[0031] The second recording unit is used to record the text template of the log file and modify the log information in each log record to a variable relative to the text template.

[0032] In some embodiments, the second recording unit includes:

[0033] The first recording module is used to modify the log information in the first log record into the form of text templates and variables when it is detected that the first log record in the log file records a target log operation. The first log record is the record in the log file where the target log operation appears for the first time.

[0034] The modification module is used to modify the log information in the second log record to a variable relative to the text template in the first log record when the target log operation is detected in the second log record of the log file, wherein the second log record is a record in the log file in which the target log operation reappears.

[0035] In some embodiments, the modification module includes:

[0036] The first recording submodule is used to record the location identifier of the first log record in the log information of the second log record;

[0037] The second recording submodule is used to record variables relative to the text template in the first log record in the log information of the second log record.

[0038] In some embodiments, the first recording unit includes:

[0039] The determination module is used to determine the date and time in the first log record in the log file as the base time, wherein the log file records the multiple log records in chronological order;

[0040] The second recording module is used to record the offset relative to the reference time at the beginning position of each log record.

[0041] Thirdly, embodiments of this application provide a computer device, 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, it implements the rail transit vehicle signal system log recording method as described in the first aspect above.

[0042] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the rail transit vehicle-mounted signal system log recording method as described in the first aspect above.

[0043] This application adopts the above technical solution. Compared with the prior art, the log recording method for rail transit vehicle signaling systems provided in this application obtains the log file of the vehicle signaling system. The log file includes multiple log records, each log record including: date and time, and log information; records the base time of the log file and modifies the date and time in each log record to an offset relative to the base time; records the text template of the log file and modifies the log information in each log record to a variable relative to the text template. This solves the problem in related technologies that increasing the storage capacity of the log recording device for rail transit vehicle signaling systems would cause an increase in hardware configuration or cost. It achieves an improved log compression ratio and increased log storage capacity without increasing or improving hardware performance.

[0044] Details of one or more embodiments of this application are set forth in the following drawings and description to make other features, objects and advantages of this application more readily apparent. Attached Figure Description

[0045] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0046] Figure 1 This is a structural block diagram of a mobile terminal according to an embodiment of this application;

[0047] Figure 2 This is a flowchart of a method for logging a rail transit vehicle-mounted signaling system according to an embodiment of this application;

[0048] Figure 3 This is a schematic diagram of the original log file of the vehicle signal system according to an embodiment of this application;

[0049] Figure 4 This is a schematic diagram of a compressed log file of an on-board signal system according to an embodiment of this application;

[0050] Figure 5 This is a structural block diagram of a log recording device for a rail transit vehicle-mounted signal system according to an embodiment of this application;

[0051] Figure 6 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of this application. Detailed Implementation

[0052] To make the objectives, technical solutions, and advantages of this application clearer, the application is described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments provided in this application without inventive effort are within the scope of protection of this application.

[0053] Obviously, the accompanying drawings described below are merely some examples or embodiments of this application. Those skilled in the art can apply this application to other similar scenarios based on these drawings without any inventive effort. Furthermore, it is understood that although the efforts made in this development process may be complex and lengthy, for those skilled in the art related to the content disclosed in this application, any changes to design, manufacturing, or production based on the technical content disclosed in this application are merely conventional technical means and should not be construed as insufficient disclosure of the content of this application.

[0054] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment that is mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0055] Unless otherwise defined, the technical or scientific terms used in this application shall have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms “a,” “an,” “an,” “the,” and similar words used in this application do not indicate quantity limitation and may indicate singular or plural. The terms “comprising,” “including,” “having,” and any variations thereof used in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units not listed, or may include other steps or units inherent to these processes, methods, products, or devices. The terms “connected,” “linked,” “coupled,” and similar words used in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. “Multiple” used in this application refers to two or more. “And / or” describes the relationship between related objects, indicating that three relationships may exist; for example, “A and / or B” can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following objects are in an "or" relationship. The terms "first," "second," and "third" used in this application are merely to distinguish similar objects and do not represent a specific ordering of the objects.

[0056] First, the technical terms and abbreviations appearing in the embodiments of this application will be explained:

[0057] ATP: Automatic Train Protection subsystem, which monitors the train to ensure it operates at a safe speed and ensures that braking is applied immediately if the train exceeds the prescribed speed.

[0058] ATO: Automatic Train Operation Subsystem, a device that controls the automatic operation of trains. Under the protection of the ATP system, it realizes automatic train operation, automatic speed adjustment, and train door control according to the instructions of ATS.

[0059] This embodiment provides a mobile terminal. Figure 1 This is a structural block diagram of a mobile terminal according to an embodiment of this application. Figure 1 As shown, the mobile terminal includes: a radio frequency (RF) circuit 110, a memory 120, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a wireless fidelity (WiFi) module 170, a processor 180, and a power supply 190, among other components. Those skilled in the art will understand that... Figure 1 The mobile terminal structure shown does not constitute a limitation on the mobile terminal and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0060] The following is combined with Figure 1 A detailed introduction to each component of a mobile terminal:

[0061] RF circuit 110 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and processes it with processor 180; additionally, it transmits uplink data to the base station. Typically, RF circuitry includes, but is not limited to, antennas, at least one amplifier, transceiver, coupler, low-noise amplifier (LNA), duplexer, etc. Furthermore, RF circuit 110 can also communicate wirelessly with networks and other devices. The aforementioned wireless communication can use any communication standard or protocol, including but not limited to Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.

[0062] The memory 120 can be used to store software programs and modules. The processor 180 executes various functional applications and data processing of the mobile terminal by running the software programs and modules stored in the memory 120. The memory 120 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile terminal (such as audio data, phone book, etc.). In addition, the memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0063] The input unit 130 can be used to receive input numerical or character information, and to generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the input unit 130 may include a touch panel 131 and other input devices 132. The touch panel 131, also known as a touch screen, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel 131), and drive the corresponding connection devices according to a pre-set program. Optionally, the touch panel 131 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch panel 131 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 131, the input unit 130 may also include other input devices 132. Specifically, other input devices 132 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc.

[0064] Display unit 140 can be used to display information input by the user or information provided to the user, as well as various menus of the mobile terminal. Display unit 140 may include a display panel 141, optionally configured as a Liquid Crystal Display (LCD), Organic Light-Emitting Diode (OLED), or similar display panel 141. Further, touch panel 131 may cover display panel 141. When touch panel 131 detects a touch operation on or near it, it transmits the information to processor 180 to determine the type of touch event. Subsequently, processor 180 provides corresponding visual output on display panel 141 based on the type of touch event. Although in Figure 1 In this embodiment, the touch panel 131 and the display panel 141 are two separate components to realize the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 131 and the display panel 141 can be integrated to realize the input and output functions of the mobile terminal.

[0065] The mobile terminal may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 141 according to the ambient light level, and the proximity sensor can turn off the display panel 141 and / or backlight when the mobile terminal is moved to the ear. As a type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that identify the mobile terminal's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometers, taps), etc. Other sensors that may be configured in the mobile terminal, such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.

[0066] The speaker 161 and microphone 162 in the audio circuit 160 provide an audio interface between the user and the mobile terminal. The audio circuit 160 can convert the received audio data into electrical signals and transmit them to the speaker 161, where the speaker 161 converts them into sound signals for output. On the other hand, the microphone 162 converts the collected sound signals into electrical signals, which are received by the audio circuit 160, converted into audio data, and then output to the processor 180 for processing. After processing, the audio data is transmitted via the RF circuit 110 to, for example, another mobile terminal, or the audio data is output to the memory 120 for further processing.

[0067] WiFi is a short-range wireless transmission technology. Mobile terminals using a WiFi module 170 can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 1 WiFi module 170 is shown, but it is understood that it is not a necessary component of a mobile terminal and can be omitted or replaced with other short-range wireless transmission modules, such as Zigbee modules or WAPI modules, as needed without changing the nature of the invention.

[0068] The processor 180 is the control center of the mobile terminal. It connects various parts of the mobile terminal via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 120, and by calling data stored in the memory 120, it performs various functions and processes data of the mobile terminal, thereby providing overall monitoring of the mobile terminal. Optionally, the processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 180.

[0069] The mobile terminal also includes a power supply 190 (such as a battery) that supplies power to various components. Preferably, the power supply can be logically connected to the processor 180 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.

[0070] Although not shown, mobile terminals may also include cameras, Bluetooth modules, etc., which will not be elaborated here.

[0071] In this embodiment, the processor 180 is configured as follows:

[0072] Obtain the log file of the vehicle signal system, wherein the log file includes multiple log records, and each log record includes: date and time, and log information;

[0073] Record the base time of the log file, and modify the date and time in each log record to an offset relative to the base time;

[0074] Record the text template of the log file, and modify the log information in each log record to a variable relative to the text template.

[0075] In some embodiments, the processor 180 is further configured to:

[0076] When a target log operation is detected in the first log record of the log file, the log information in the first log record is modified into the form of a text template and variables, wherein the first log record is the record in the log file where the target log operation first appears;

[0077] When the target log operation is detected to be recorded in the second log record of the log file, the log information in the second log record is modified to a variable relative to the text template in the first log record, wherein the second log record is a record in the log file in which the target log operation reappears.

[0078] In some embodiments, the processor 180 is further configured to:

[0079] The location identifier of the first log record is recorded in the log information of the second log record;

[0080] The second log record records variables relative to the text template in the first log record.

[0081] In some embodiments, the processor 180 is further configured to:

[0082] The date and time in the first log record in the log file are used as the base time, wherein the log file records the multiple log records in chronological order;

[0083] Record the offset relative to the base time at the beginning of each log entry.

[0084] This embodiment provides a method for logging onboard signaling systems in rail transit vehicles. Figure 2 This is a flowchart of a log recording method for a rail transit vehicle-mounted signaling system according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps:

[0085] Step S201: Obtain the log file of the vehicle signal system, wherein the log file includes multiple log records, and each log record includes: date and time, and log information;

[0086] Step S202: Record the base time of the log file, and modify the date and time in each log record to an offset relative to the base time;

[0087] Step S203: Record the text template of the log file, and modify the log information in each log record to a variable relative to the text template.

[0088] In step S201 above, the log file of the vehicle signal system may include multiple log records, arranged in chronological order, with the first log record being the oldest. Each log record may include: date and time, where the date and time indicate the recording time of the log record, and the log information indicates the log operation content, including but not limited to the operation content and the operation object. Each log record occupies one line. The original log file of the vehicle signal system can be as follows: Figure 3 As shown, each line records one log record, and each log record includes: date, time, and log information.

[0089] This application embodiment follows the format characteristics of the log file of the vehicle signal system, and optimizes and adjusts the date and time and log information components respectively to achieve the purpose of compressing the log file. The compression optimization for the date and time can be achieved through step S202, and the compression optimization for the log information can be achieved through step S203.

[0090] In step S202 above, this embodiment of the application may first record the base time of the log file, and then modify the date and time in each log record to an offset relative to the base time, so as to achieve compression optimization of the date and time of the log record.

[0091] In some embodiments, step S202, which records the base time of the log file and modifies the date and time in each log record to an offset relative to the base time, may include:

[0092] The date and time in the first log record in the log file are used as the base time, wherein the log file records the multiple log records in chronological order;

[0093] Record the offset relative to the base time at the beginning of each log entry.

[0094] like Figure 3 As shown, the date and time recorded in each log line are similar or the same, and each log line's date and time occupies 19 bytes. This embodiment optimizes this by storing only one base time in a log file, and each subsequent line only records the offset of that log record's time from the base time of the log file, such as... Figure 4 As shown. This offset occupies 2 bytes and can represent an offset from 0 to 65535 seconds, meaning each log file can store up to 18.2 hours of logs. This optimization compresses the date and time of each log entry from 19 bytes to 2 bytes, saving over 89% of storage space.

[0095] In step S203 above, this embodiment of the application may first record the text template of the log file, and then modify the log information in each log record to a variable relative to the text template, so as to achieve compression and optimization of the log information of the log record.

[0096] In some embodiments, step S203, which records the text template of the log file and modifies the log information in each log record to a variable relative to the text template, may include:

[0097] When a target log operation is detected in the first log record of the log file, the log information in the first log record is modified into the form of a text template and variables, wherein the first log record is the record in the log file where the target log operation first appears;

[0098] When the target log operation is detected to be recorded in the second log record of the log file, the log information in the second log record is modified to a variable relative to the text template in the first log record, wherein the second log record is a record in the log file in which the target log operation reappears.

[0099] It should be noted that the target log operation can include, but is not limited to, adding, modifying, and deleting. The first log record is the record in the log file where the target log operation first appears, and the second log record is the record in the log file where the target log operation appears again. There can be one or more second log records.

[0100] Optionally, when the target log operation is detected in a second log record in the log file, modifying the log information in the second log record to a variable relative to the text template in the first log record may include:

[0101] The location identifier of the first log record is recorded in the log information of the second log record, wherein the location identifier can be a line number;

[0102] The second log record records variables relative to the text template in the first log record.

[0103] The log information portion of the vehicle signal system log record in this application embodiment is generally in the form of fixed text or text template plus variables. The fixed text or text template portion typically contains only a limited number of entries in a log file. When it first appears in the log file, it is stored verbatim, i.e., stored in the form of text template plus variables. When it appears again in the log file, only the text template of this log record is recorded as matching that of the previous log record, the line number of the previous log record is referenced, and the variable is recorded only in that log record, such as... Figure 4 As shown, this avoids repeatedly storing this text template in the log, thereby improving the compression rate of the log file.

[0104] by Figure 3 The log file shown is an example. The log file optimized with the above date, time, and log information is as follows: Figure 4 As shown, this log file is for illustrative purposes only. In actual use, to save storage space, all values ​​are stored in binary format.

[0105] exist Figure 4 In the log file, the first line is the base time, and all subsequent lines use this time as the base.

[0106] Lines 2 through 17 correspond to lines 1 through 16 of the original log file. The 0 or 9 at the beginning of each line indicates the offset of the log record based on the time of line 1. 0 means the time of the log line is still 2024-3-5 11:25:11; 9 means adding 9 seconds to that time, i.e., 2024-3-5 11:25:20.

[0107] The COM%d %d %d%c%d in line 2 is the original text template COM2 38400 8N1. The numerical parts 2,38400, 8, N, 1 are represented at the end of the line and are variables.

[0108] Lines 3, 4, and 9 are the same as line 2, using text templates plus variables for storage.

[0109] The ^3 in lines 5-8 indicates that the text template for this line is the same as that in line 3, namely “Add dev %d %X:%d %s svrfd=%d, conn_type=%d”. The “46 102 1 111.111.3.101:3000 11 1” is the numerical variable that needs to be substituted into the text template.

[0110] The ^9 in lines 10-17 is the same as above, indicating that the text template in line 9 is used and substituted into the numerical variable that follows.

[0111] This application's embodiments develop a specific compression algorithm tailored to the characteristics of vehicle signal system log files without requiring additional hardware performance upgrades, providing a high compression ratio. Taking the log file excerpted above as an example, the original file was 857 bytes, compressed to 451 bytes, saving 47% of space. The effect is even more pronounced when the log is long; for example, the original log segment being extracted was 8,194,308 bytes long, compressed using the above method to only 2,226,479 bytes, saving nearly 79% of space and fully utilizing storage space. This solution has a simple algorithm, is easy to implement, and requires no additional hardware configuration specifications for the log acquisition device. This solution only stores redundant parts once; the decompressed log data is identical to the original log, and no log information is lost.

[0112] This application embodiment addresses the characteristics of log files in rail transit vehicle signaling systems by storing only one copy of redundant information (date, time, and text template). The deviation of each log record from the reference time and the different parameter variables of the corresponding text template significantly reduce redundant information, shrink the size of the log file, and improve memory utilization efficiency without expanding hardware resources.

[0113] It should be noted that the steps shown in the above process or in the flowchart of the accompanying figures can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0114] This embodiment provides a log recording device for a rail transit vehicle-mounted signaling system. This device is used to implement the above embodiments and preferred embodiments, and details already described will not be repeated. As used below, the terms "module," "unit," "subunit," etc., 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.

[0115] Figure 5 This is a structural block diagram of a log recording device for a rail transit vehicle-mounted signal system according to an embodiment of this application, such as... Figure 5 As shown, the device includes:

[0116] The acquisition unit 51 is used to acquire the log file of the vehicle signal system, wherein the log file includes multiple log records, and each log record includes: date and time and log information;

[0117] The first recording unit 52 is used to record the base time of the log file and modify the date and time in each log record to an offset relative to the base time;

[0118] The second recording unit 53 is used to record the text template of the log file and modify the log information in each log record to a variable relative to the text template.

[0119] In some embodiments, the second recording unit 53 includes:

[0120] The first recording module is used to modify the log information in the first log record into the form of text templates and variables when it is detected that the first log record in the log file records a target log operation. The first log record is the record in the log file where the target log operation appears for the first time.

[0121] The modification module is used to modify the log information in the second log record to a variable relative to the text template in the first log record when the target log operation is detected in the second log record of the log file, wherein the second log record is a record in the log file in which the target log operation reappears.

[0122] In some embodiments, the modification module includes:

[0123] The first recording submodule is used to record the location identifier of the first log record in the log information of the second log record;

[0124] The second recording submodule is used to record variables relative to the text template in the first log record in the log information of the second log record.

[0125] In some embodiments, the first recording unit 52 includes:

[0126] The determination module is used to determine the date and time in the first log record in the log file as the base time, wherein the log file records the multiple log records in chronological order;

[0127] The second recording module is used to record the offset relative to the reference time at the beginning position of each log record.

[0128] It should be noted that the above modules can be functional modules or program modules, and can be implemented through software or hardware. For modules implemented through hardware, the above modules can reside in the same processor; or the above modules can be located in different processors in any combination.

[0129] An embodiment provides a computer device. The method for logging a rail transit vehicle-mounted signaling system, as described in this embodiment, can be implemented using a computer device. Figure 6 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of this application.

[0130] The computer device may include a processor 61 and a memory 62 storing computer program instructions.

[0131] Specifically, the processor 61 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0132] The memory 62 may include a large-capacity storage device for data or instructions. For example, and not limitingly, the memory 62 may include a hard disk drive (HDD), a floppy disk drive, a solid-state drive (SSD), flash memory, an optical disk drive, a magneto-optical disk drive, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 62 may include removable or non-removable (or fixed) media. Where appropriate, the memory 62 may be internal or external to a data processing device. In a particular embodiment, the memory 62 is non-volatile memory. In a particular embodiment, the memory 62 includes read-only memory (ROM) and random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), an electrically alterable read-only memory (EAROM), or flash memory, or a combination of two or more of these. Where appropriate, the RAM can be Static Random-Access Memory (SRAM) or Dynamic Random-Access Memory (DRAM). DRAM can be Fast Page Mode Dynamic Random-Access Memory (FPMDRAM), Extended Data Out Dynamic Random-Access Memory (EDODRAM), Synchronous Dynamic Random-Access Memory (SDRAM), etc.

[0133] The memory 62 can be used to store or cache various data files that need to be processed and / or communicated, as well as possible computer program instructions executed by the processor 61.

[0134] The processor 61 reads and executes computer program instructions stored in the memory 62 to implement any of the rail transit vehicle signal system log recording methods in the above embodiments.

[0135] In some embodiments, the computer device may further include a communication interface 63 and a bus 60. For example, Figure 6 As shown, the processor 61, memory 62, and communication interface 63 are connected through bus 60 and complete communication with each other.

[0136] The communication interface 63 is used to enable communication between the various modules, devices, units, and / or equipment in the embodiments of this application. The communication interface 63 can also enable data communication with other components such as external devices, image / data acquisition devices, databases, external storage, and image / data processing workstations.

[0137] Bus 60 includes hardware, software, or both, that couples components of a computer device together. Bus 60 includes, but is not limited to, at least one of the following: data bus, address bus, control bus, expansion bus, and local bus. For example, and not as a limitation, bus 60 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, bus 60 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application considers any suitable bus or interconnection.

[0138] Furthermore, in conjunction with the rail transit vehicle-mounted signaling system log recording method in the above embodiments, this application embodiment can provide a computer-readable storage medium for implementation. This computer-readable storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the rail transit vehicle-mounted signaling system log recording methods in the above embodiments.

[0139] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0140] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A method for logging a signaling system on a rail transit vehicle, characterized in that, include: Obtain the log file of the vehicle signal system, wherein the log file includes multiple log records, and each log record includes: date and time, and log information; Record the base time of the log file, and modify the date and time in each log record to an offset relative to the base time; Record the text template of the log file, and modify the log information in each log record to a variable relative to the text template.

2. The method according to claim 1, characterized in that, The process of recording the text template of the log file and modifying the log information in each log record to a variable relative to the text template includes: When a target log operation is detected in the first log record of the log file, the log information in the first log record is modified into the form of a text template and variables, wherein the first log record is the record in the log file where the target log operation first appears; When the target log operation is detected to be recorded in the second log record of the log file, the log information in the second log record is modified to a variable relative to the text template in the first log record, wherein the second log record is a record in the log file in which the target log operation reappears.

3. The method according to claim 2, characterized in that, When the target log operation is detected in a second log record in the log file, modifying the log information in the second log record to a variable relative to the text template in the first log record includes: The location identifier of the first log record is recorded in the log information of the second log record; The second log record records variables relative to the text template in the first log record.

4. The method according to claim 1, characterized in that, The process of recording the base time of the log file and modifying the date and time in each log record to an offset relative to the base time includes: The date and time in the first log record in the log file are used as the base time, wherein the log file records the multiple log records in chronological order; Record the offset relative to the base time at the beginning of each log entry.

5. A log recording device for a rail transit vehicle-mounted signaling system, characterized in that, include: The acquisition unit is used to acquire the log file of the vehicle signal system, wherein the log file includes multiple log records, and each log record includes: date and time and log information; The first recording unit is used to record the base time of the log file and modify the date and time in each log record to an offset relative to the base time; The second recording unit is used to record the text template of the log file and modify the log information in each log record to a variable relative to the text template.

6. The apparatus according to claim 5, characterized in that, The second recording unit includes: The first recording module is used to modify the log information in the first log record into the form of text templates and variables when it is detected that the first log record in the log file records a target log operation. The first log record is the record in the log file where the target log operation appears for the first time. The modification module is used to modify the log information in the second log record to a variable relative to the text template in the first log record when the target log operation is detected in the second log record of the log file, wherein the second log record is a record in the log file in which the target log operation reappears.

7. The apparatus according to claim 6, characterized in that, The modification module includes: The first recording submodule is used to record the location identifier of the first log record in the log information of the second log record; The second recording submodule is used to record variables relative to the text template in the first log record in the log information of the second log record.

8. The apparatus according to claim 5, characterized in that, The first recording unit includes: The determination module is used to determine the date and time in the first log record in the log file as the base time, wherein the log file records the multiple log records in chronological order; The second recording module is used to record the offset relative to the reference time at the beginning position of each log record.

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, it implements the method as described in any one of claims 1 to 4.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1 to 4.