Train operation data management method and system, electronic equipment and storage medium
By centrally processing train operation data on server-side devices and converting it into a format displayable by terminal devices, the problems of high hardware cost, poor scalability and low real-time performance in existing technologies are solved, and low-cost, highly flexible and low-latency data management is achieved.
Patent Information
- Application Number
- CN202511037185.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-25
- Publication Date
- 2025-09-30
AI Technical Summary
Existing train operation data management methods have problems such as high hardware cost, poor scalability, low flexibility, poor real-time performance and high latency.
The server-side equipment is used to centrally process train operation data, read the data of each carriage through the train real-time data protocol, parse it into a preset format supported by the terminal device, and send it directly to the terminal device for display, avoiding additional configuration of the terminal device.
It reduces management costs, improves flexibility and real-time performance, reduces delays, and simplifies the configuration workload of terminal devices.
Smart Images

Figure CN120716795A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of rail transportation technology, and in particular to a method, system, electronic equipment and storage medium for managing train operation data. Background Art
[0002] In modern intelligent transportation systems, real-time data monitoring and management of trains is crucial. Currently, one method for monitoring train operation data is through the Train Control and Monitoring System (TCMS), which uses dedicated hardware equipment for data collection and transmission. However, the cost of installing and maintaining dedicated hardware equipment is very high, and scalability is poor. Each new monitoring point or function requires additional hardware investment.
[0003] Other solutions transmit the train's TRDP (Train Real-time Data Protocol) data, which offers high real-time performance. However, this requires software configuration on the terminal device to enable it to parse the TRDP data. Furthermore, due to the varying hardware types of different terminal devices, each terminal device requires pre-configured software, which is labor-intensive and lacks flexibility. For example, if a terminal device's hardware changes, or if the TRDP data it reads requires adjustment, the original fixed software architecture must be adjusted. Furthermore, some solutions do not utilize TRDP data, but instead attempt to utilize wireless networks and cloud technologies for train data collection and transmission. For example, directly using LTE (Long Term Evolution) wireless communication systems for data collection and transmission, or uploading train data to a cloud platform for centralized processing and monitoring, all suffer from poor real-time performance and high latency.
[0004] In summary, how to effectively manage train operation data, reduce delays, effectively reduce management costs, and improve flexibility is a technical problem that technical personnel in this field urgently need to solve. Summary of the Invention
[0005] The purpose of the present invention is to provide a method, system, electronic device and storage medium for managing train operation data, so as to effectively manage train operation data, reduce delays, effectively reduce management costs and improve flexibility.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] In a first aspect, the present invention provides a method for managing train operation data, which is applied to a preset server device, comprising:
[0008] Based on the train real-time data protocol, read the train operation data of each carriage;
[0009] Parsing the train operation data of each carriage and converting the parsed results into data in a preset format supported by the web page of each terminal device;
[0010] When receiving a display request directed to the i-th car from any of the terminal devices, the preset format data corresponding to the i-th car is sent to the terminal device via network transmission, so that the terminal device displays a web page based on the preset format data;
[0011] Wherein, i is a positive integer.
[0012] In one embodiment, based on the train real-time data protocol, reading the train operation data of each carriage includes:
[0013] Read the configuration file that reflects the data reading range;
[0014] Based on the train real-time data protocol, the train operation data of each carriage specified by the configuration file is read.
[0015] In one embodiment, reading the train operation data of each carriage specified by the configuration file includes:
[0016] Determining each carriage specified by the configuration file;
[0017] For any car specified by the configuration file, the train operation data from the car is read based on the communication addresses belonging to the car and the communication ports of each communication address specified by the configuration file.
[0018] In one embodiment, based on the train real-time data protocol, reading the train operation data of each carriage includes:
[0019] Based on the train real-time data protocol, the train operation data of K carriages are read through K reading threads respectively;
[0020] Parsing the train operation data of each carriage and converting the parsed results into data in a preset format supported by the web page of each terminal device, including:
[0021] Parsing the train operation data of the K carriages respectively through K processing threads, and converting the parsed results into data in a preset format supported by the web page of each terminal device;
[0022] Among them, K is a preset parameter value and is the same as the number of carriages.
[0023] In one embodiment, converting the parsing result into data in a preset format supported by the web page of each terminal device includes:
[0024] Convert the parsed results into a preset standard format data supported by the web page of each terminal device;
[0025] The preset standard format data includes at least one of JSON format data, MessagePack format data, and ProtocolBuffers format data;
[0026] The method includes: transmitting the preset format data corresponding to the i-th carriage to the terminal device via a network transmission method, so that the terminal device displays a web page based on the preset format data, including:
[0027] The preset format data corresponding to the i-th carriage is sent to the terminal device via WebSocket, so that the terminal device displays a web page based on the preset standard format data.
[0028] In one embodiment, it further includes:
[0029] Receive a network transmission connection request from any terminal device;
[0030] Establishing a network transmission connection with the terminal device based on the network transmission connection request;
[0031] Verify whether the established network transmission connection is normal;
[0032] If not, re-establish the network transmission connection with the terminal device.
[0033] In one embodiment, it further includes:
[0034] Receiving a configuration adjustment request directed to a target device sent by any terminal device;
[0035] The configuration adjustment request is sent to the target device, so that the target device adjusts its own configuration based on the configuration adjustment request.
[0036] In a second aspect, the present invention provides a train operation data management system, which is applied to a preset server device, including:
[0037] Data receiving module, used to read the train operation data of each carriage based on the train real-time data protocol;
[0038] A parsing module, configured to parse the train operation data of each carriage and convert the parsed results into data in a preset format supported by the web page of each terminal device;
[0039] an output module, configured to, upon receiving a display request directed to the i-th car from any of the terminal devices, transmit the preset format data corresponding to the i-th car to the terminal device via network transmission, so that the terminal device displays a web page based on the preset format data;
[0040] Wherein, i is a positive integer.
[0041] In a third aspect, the present invention provides an electronic device, comprising:
[0042] memory for storing computer programs;
[0043] A processor is used to execute the computer program to implement the steps of the train operation data management method as described above.
[0044] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for managing train operation data as described above.
[0045] The present application scheme is considered that, can be based on train real-time data protocol, read the train operation data of each carriage, that is, what the present application scheme reads is TRDP data, and real-time is higher. In order to effectively reduce management cost, improve flexibility, in the present application scheme, it is not necessary for terminal equipment to carry out the parsing of TRDP data, but 1 server device is set to centrally process. Specifically, after the server device reads the train operation data of each carriage, the train operation data of each carriage can be parsed, and parsing result is converted into the preset format data that the network page of each terminal device supports. It can be seen that, owing to be carried out the parsing of TRDP data by the server device, and parsing result is converted into the preset format data that the network page of each terminal device supports, so that for any terminal device, it is not necessary to carry out additional settings, that is, any terminal device can all send the display request pointing to the i-th carriage, now server device can be by the mode of network transmission, the preset format data corresponding to the i-th carriage are sent to terminal device, terminal device can directly carry out network page display based on the preset format data received. It can be seen that the present application scheme does not need to be configured respectively to realize TRDP data parsing for different terminal devices, can effectively reduce workload, also has reduced management cost. In addition, the train operation data of each carriage can be read by the server-side device. If adjustment is required, for example, a new device is added to the train and the TRDP data of the device needs to be read and displayed, it is only necessary to adjust the data reading range of the server-side device without adjusting each terminal device. Therefore, the management difficulty of this application solution is low and the flexibility is high.
[0046] In summary, the present application solution can effectively manage train operation data, reduce delays, and effectively reduce management costs and improve flexibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0048] Figure 1 This is a flowchart of a method for managing train operation data provided by a specific embodiment of the present invention;
[0049] Figure 2 A schematic diagram of a system architecture in a specific embodiment of the present invention;
[0050] Figure 3 A schematic diagram of the working sequence in a specific embodiment of the present invention;
[0051] Figure 4 A schematic diagram of the structure of a train operation data management system provided by a specific embodiment of the present invention;
[0052] Figure 5 A schematic structural diagram of an electronic device provided in a specific embodiment of the present invention;
[0053] Figure 6 This is a schematic structural diagram of a computer-readable storage medium of the present invention. DETAILED DESCRIPTION
[0054] The core of the present invention is to provide a method, system, electronic device and storage medium for managing train operation data, which can effectively manage train operation data, reduce delays, effectively reduce management costs and improve flexibility.
[0055] To help those skilled in the art better understand the present invention, the present invention is further described below in conjunction with the accompanying drawings and specific embodiments. It is apparent that the embodiments described are only a portion of the present invention, not all of the embodiments. All other embodiments derived by those skilled in the art based on the embodiments of the present invention without inventive effort are also within the scope of protection of the present invention.
[0056] Please refer to Figure 1 , Figure 1This is a flowchart of a method for managing train operation data provided in a specific embodiment of the present invention. The method for managing train operation data can be applied to a preset server device, including the following steps:
[0057] Step S101: Based on the train real-time data protocol, read the train operation data of each carriage.
[0058] The train real-time data protocol is usually selected as the TRDP protocol, which has high real-time performance. Of course, in other specific implementations, it can also be set to other types of protocols with high real-time performance according to actual needs. The TRDP protocol is used as an example in the following text, that is, the train operation data read is specifically the train operation data based on the TRDP protocol, which is referred to as TRDP data in the following text for the convenience of description.
[0059] It is also understandable that for train operation data, specific content can be set and adjusted according to actual needs, such as including different types of data collected by various sensors, such as including position sensors for obtaining train position information, speed sensors for monitoring train speed, acceleration sensors for collecting train acceleration, temperature sensors for real-time monitoring of carriage and ambient temperature, vibration sensors for capturing vibration signals in train operation, these sensors convert physical quantities into electrical signals or other processable signals, and then can be used as the data source of TRDP data. In addition to various sensors, the data acquisition cards in each train carriage, network controllers, hardware devices such as acquisition and analysis devices based on FPGAs, can all output TRDP data, depending on the settings in actual applications.
[0060] The train operation data of each carriage is read based on the TRDP protocol, that is, the TRDP data output by the corresponding equipment in each carriage is read. Of course, for any carriage, the TRDP data of the equipment from which the carriage needs to be read can be set and adjusted according to actual needs.
[0061] In a specific embodiment of the present invention, step S101 may specifically include:
[0062] Read the configuration file that reflects the data reading range;
[0063] Based on the train real-time data protocol, read the train operation data of each carriage specified in the configuration file.
[0064] In this implementation manner, the data reading range can be easily managed by the configuration file. Specifically, after the server device is powered on, the configuration file can be read to determine the data reading range, that is, to determine which devices need to be read to send TRDP data.
[0065] It is also understandable that there are multiple devices in the carriage, so when reading the train operation data of each carriage specified by the configuration file, the configuration file not only specifies the carriage for which TRDP data reading is required, but also for each carriage, the configuration file specifically specifies which equipment of the carriage needs to be read TRDP data. In other words, based on the train real-time data protocol, what is read is the train operation data of the corresponding equipment of each carriage specified by the configuration file.
[0066] In a specific embodiment of the present invention, reading the train operation data of each carriage specified by the configuration file may specifically include:
[0067] Identify each carriage specified by the configuration file;
[0068] For any car specified by the configuration file, the train operation data from the car is read based on the communication addresses belonging to the car and the communication ports of each communication address specified by the configuration file.
[0069] As described above, the configuration file not only specifies the carriages that need to read TRDP data, but also specifically specifies for each carriage which devices in the carriage need to read TRDP data. This specific implementation method takes into account that the data sources of each carriage can be conveniently determined based on the communication address and the communication ports of each communication address, which is more convenient to implement.
[0070] Therefore, in this embodiment, each carriage specified by configuration file will be determined first, and for any carriage, it can be based on configuration file, determine each communication address belonging to the carriage, the communication address of carriage can have 1 or more.And 1 communication address can have one or more communication ports, therefore for each communication address, it is necessary to determine under the communication address according to configuration file, each communication port required for data reading, and then the whole train operation data from the carriage can be read.It can be seen that in this embodiment, it is possible to easily determine all TRDP data required to be read, and if new equipment is needed, corresponding communication address and / or communication port are increased in configuration file, and flexibility is very high.
[0071] The format of the configuration file can be set as needed. For example, in a specific implementation, the format of the configuration file can be expressed as follows:
[0072] Carriages:
[0073] -carriage_id_:1
[0074] trdp_ip_:192.168.1.101
[0075] comID:1001
[0076] -carriage_id_:2
[0077] trdp_ip_:192.168.1.102
[0078] comID:1002
[0079] -carriage_id_:3
[0080] trdp_ip_:192.168.1.103
[0081] comID:1003...
[0082] In this example, carriage_id refers to the carriage number, for example, carriage_id_:1 is carriage 1. trdp_ip_:192.168.1.101 is the communication address of a device in carriage 1, and comID:1001 is the ID of the communication port.
[0083] In actual applications, configuration files can use more commonly used file formats such as XML file format, YAML format, or JSON file format, which are also easy to edit and manage.
[0084] Step S102: parse the train operation data of each carriage, and convert the parsing results into data in a preset format supported by the web page of each terminal device.
[0085] For the TRDP data from any carriage, the server-side equipment of the present application's solution can all be read and parsed, that is, parsed according to the protocol rules of TRDP, so as to obtain specific data content. After parsing is completed, in order to facilitate the display of terminal equipment, parsing result will also be converted, specifically the preset format data that the network page of each terminal equipment is converted to supports, so that no matter what the specific hardware model of terminal equipment is, data display can be easily realized. Of course, in order to enable the network page of different terminal equipment to support, preset format data can be selected as the standard format data that the network page of terminal equipment can generally support, such as JSON format data. Of course, in some application scenarios, based on the consideration of aspects such as safety, each terminal equipment is the terminal equipment of unified configuration and supports custom format, then now preset format data can also be the data of custom format, in short, according to actual conditions, parsing result is converted to the preset format data that the network page of each terminal equipment can support.
[0086] In a specific embodiment of the present invention, converting the parsing result into data in a preset format supported by the web page of each terminal device may specifically include:
[0087] The parsed result is converted into a preset standard format data supported by the web page of each terminal device, wherein the preset standard format data includes at least one of JSON format data, MessagePack format data, and Protocol Buffers format data.
[0088] In this implementation, the parsing results are converted into preset standard format data, which is conducive to improving the readability of the data and facilitating processing and display by terminal devices. In practical applications, it can support cross-platform and cross-system data compatibility. Considering that the standardized JSON format is easy to display and process, the preset standard format data can include JSON format data. In addition, MessagePack format data can also be selected, which is conducive to improving the efficiency of data transmission and parsing. Protocol Buffers format data can also be selected, which can provide a more efficient serialization method.
[0089] In a specific embodiment of the present invention, based on the train real-time data protocol, reading the train operation data of each carriage includes:
[0090] Based on the train real-time data protocol, the train operation data of K carriages are read through K reading threads respectively;
[0091] Parse the train operation data of each carriage and convert the parsed results into pre-set format data supported by the web page of each terminal device, including:
[0092] Through K processing threads, the train operation data of K carriages are analyzed respectively, and the analysis results are converted into data in a preset format supported by the web page of each terminal device;
[0093] Among them, K is a preset parameter value and is the same as the number of carriages.
[0094] This implementation method takes into account that since the server-side device needs to read the TRDP data of each carriage, in order to ensure reading efficiency, K reading threads can be used for parallel reading, that is, according to the TRDP protocol, the train operation data of K carriages are read separately through K reading threads.
[0095] Similarly, when processing the TRDP data of each carriage, in order to ensure processing efficiency, K processing threads can be used for parallel processing, that is, the K processing threads are responsible for parsing and format conversion of the TRDP data of the corresponding carriage.
[0096] It can be seen that in this implementation mode, the K reading threads are independent of each other, realizing parallel reading of TRDP data of each carriage, and the K processing threads are independent of each other, realizing parallel processing of TRDP data of each carriage, so that the present application solution can effectively improve the efficiency of reading and processing TRDP data.
[0097] In addition, in other specific embodiments, in order to ensure the efficiency of reading and processing TRDP data, in addition to multithreading, multiprocessing or coroutines can also be used to improve efficiency.
[0098] Step S103: When a display request for the i-th car is received from any terminal device, the preset format data corresponding to the i-th car is transmitted to the terminal device via network transmission, so that the terminal device displays a web page based on the preset format data. Here, i is a positive integer.
[0099] Any terminal device can establish a communication connection with a server device and then send a display request to the server device for the i-th car, indicating which car's data the terminal device currently needs to display. The server device can then transmit the pre-formatted data for the i-th car requested in the display request to the terminal device via network transmission. The terminal device can then directly display the content on a web page based on the pre-formatted data.
[0100] The specific form of the communication connection established between the terminal device and the server device can be set and adjusted according to actual needs. For example, in a specific embodiment of the present invention, the preset format data corresponding to the i-th car is sent to the terminal device via network transmission, so that the terminal device displays a web page based on the preset format data. The specific form may include:
[0101] The preset format data corresponding to the i-th carriage is sent to the terminal device via WebSocket, so that the terminal device displays the network page based on the preset standard format data.
[0102] In this implementation, the server device is specifically the back-end WebSocket server device, and the terminal device is the front-end WebSocket device. The server device can send data via WebSocket. Figure 2 ,exist Figure 2In the example shown, three terminal devices establish a WebSocket connection with a server device. This implementation uses WebSocket to transmit data, ensuring the timeliness and continuity of data transmission, allowing the terminal devices to access and display the data content of each carriage in real time.
[0103] In a specific embodiment of the present invention, it also includes:
[0104] Receive a network transmission connection request from any terminal device;
[0105] Establishing a network transmission connection with the terminal device based on the network transmission connection request;
[0106] Verify whether the established network transmission connection is normal;
[0107] If not, re-establish the network transmission connection with the terminal device.
[0108] The terminal device and the server device need to establish a communication connection. In this implementation, the server device can receive a network transmission connection request from any terminal device, such as Figure 3 In the example, the server device specifically receives the WebSocket connection request from the terminal device. Based on the received network transmission connection request, the server device can establish a communication connection with the terminal device. In this embodiment, the server device can verify whether the established network transmission connection is normal. If it is not normal, the network transmission connection with the terminal device can be re-established, thereby improving the reliability of the solution of this application. Of course, if the connection is normal, the subsequent process can be continued, for example Figure 3 It shows that the server device can subsequently start multiple threads and receive TRDP data from different carriages, and then send the TRDP parsed data, that is, the data obtained by parsing the TRDP data and converting the format, to the terminal device, so that the terminal device can easily process and display the data.
[0109] In a specific embodiment of the present invention, it may further include:
[0110] Receiving a configuration adjustment request directed to a target device sent by any terminal device;
[0111] The configuration adjustment request is sent to the target device, so that the target device adjusts its own configuration based on the configuration adjustment request.
[0112] Described above is the TRDP data for receiving different compartments of service-end device and process, and then the process shown by terminal device, this embodiment is further considered, in order to facilitate the work of staff, terminal device can be under the operation of staff, send the configuration adjustment request pointing to target device to service-end device, after service-end device receives configuration adjustment request, the configuration adjustment request can be sent to target device, so that target device is made to carry out the configuration adjustment of itself based on configuration adjustment request. It can be seen that in this embodiment, the communication structure established using the application's solution is realized, two-way data transmission is achieved, both the TRDP data of compartment can be collected and process display, and the hardware device in compartment can also be configured and adjusted according to configuration adjustment request.
[0113] The present application scheme is considered that, can be based on train real-time data protocol, read the train operation data of each carriage, that is, what the present application scheme reads is TRDP data, and real-time is higher. In order to effectively reduce management cost, improve flexibility, in the present application scheme, it is not necessary for terminal equipment to carry out the parsing of TRDP data, but 1 server device is set to centrally process. Specifically, after the server device reads the train operation data of each carriage, the train operation data of each carriage can be parsed, and parsing result is converted into the preset format data that the network page of each terminal device supports. It can be seen that, owing to be carried out the parsing of TRDP data by the server device, and parsing result is converted into the preset format data that the network page of each terminal device supports, so that for any terminal device, it is not necessary to carry out additional settings, that is, any terminal device can all send the display request pointing to the i-th carriage, now server device can be by the mode of network transmission, the preset format data corresponding to the i-th carriage are sent to terminal device, terminal device can directly carry out network page display based on the preset format data received. It can be seen that the present application scheme does not need to be configured respectively to realize TRDP data parsing for different terminal devices, can effectively reduce workload, also has reduced management cost. In addition, the train operation data of each carriage can be read by the server-side device. If adjustment is required, for example, a new device is added to the train and the TRDP data of the device needs to be read and displayed, it is only necessary to adjust the data reading range of the server-side device without adjusting each terminal device. Therefore, the management difficulty of this application solution is low and the flexibility is high.
[0114] In summary, the present application solution can effectively manage train operation data, reduce delays, and effectively reduce management costs and improve flexibility.
[0115] Corresponding to the above method embodiment, an embodiment of the present invention further provides a management system for train operation data, which can be referenced in correspondence with the above.
[0116] See also Figure 4 As shown, the train operation data management system can be applied to a preset server device, including the following modules:
[0117] The data receiving module 401 is used to read the train operation data of each carriage based on the train real-time data protocol;
[0118] The parsing module 402 is used to parse the train operation data of each carriage and convert the parsed results into data in a preset format supported by the web page of each terminal device;
[0119] The output module 403 is configured to, upon receiving a display request directed to the i-th car from any of the terminal devices, send the preset format data corresponding to the i-th car to the terminal device via network transmission, so that the terminal device displays a web page based on the preset format data;
[0120] Wherein, i is a positive integer.
[0121] In a specific embodiment of the present invention, the data receiving module 401 includes:
[0122] A configuration file reading submodule is used to read a configuration file that reflects the data reading range;
[0123] The data receiving submodule is used to read the train operation data of each carriage specified by the configuration file based on the train real-time data protocol.
[0124] In a specific embodiment of the present invention, reading the train operation data of each carriage specified by the configuration file includes:
[0125] Determining each carriage specified by the configuration file;
[0126] For any car specified by the configuration file, the train operation data from the car is read based on the communication addresses belonging to the car and the communication ports of each communication address specified by the configuration file.
[0127] In a specific embodiment of the present invention, the data receiving module 401 is specifically configured to:
[0128] Based on the train real-time data protocol, the train operation data of K carriages are read through K reading threads respectively;
[0129] The parsing module 402 is specifically used for:
[0130] Parsing the train operation data of the K carriages respectively through K processing threads, and converting the parsed results into data in a preset format supported by the web page of each terminal device;
[0131] Among them, K is a preset parameter value and is the same as the number of carriages.
[0132] In a specific embodiment of the present invention, converting the parsing result into data in a preset format supported by the web page of each terminal device includes:
[0133] Convert the parsed results into a preset standard format data supported by the web page of each terminal device;
[0134] The preset standard format data includes at least one of JSON format data, MessagePack format data, and ProtocolBuffers format data;
[0135] The method includes: transmitting the preset format data corresponding to the i-th carriage to the terminal device via a network transmission method, so that the terminal device displays a web page based on the preset format data, including:
[0136] The preset format data corresponding to the i-th carriage is sent to the terminal device via WebSocket, so that the terminal device displays a web page based on the preset standard format data.
[0137] In a specific embodiment of the present invention, a transmission connection establishment detection module is further included, which is used to:
[0138] Receive a network transmission connection request from any terminal device;
[0139] Establishing a network transmission connection with the terminal device based on the network transmission connection request;
[0140] Verify whether the established network transmission connection is normal;
[0141] If not, re-establish the network transmission connection with the terminal device.
[0142] In a specific embodiment of the present invention, a configuration adjustment module is further included, which is used to:
[0143] Receiving a configuration adjustment request directed to a target device sent by any terminal device;
[0144] The configuration adjustment request is sent to the target device, so that the target device adjusts its own configuration based on the configuration adjustment request.
[0145] Corresponding to the above method and system embodiments, an embodiment of the present invention further provides an electronic device and a computer-readable storage medium, which can be referred to in correspondence with the above.
[0146] See also Figure 5As shown, the device may include:
[0147] Memory 501, used for storing computer programs;
[0148] The processor 502 is configured to execute a computer program to implement the steps of the method for managing train operation data in any of the above embodiments.
[0149] See Figure 6 The computer-readable storage medium 60 stores a computer program 61. When executed by a processor, the computer program 61 implements the steps of the train operation data management method described in any of the above embodiments. The computer-readable storage medium 60 herein includes random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or any other form of storage medium known in the art.
[0150] It should also be noted that, in this application, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0151] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0152] Specific examples are used in this application to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only intended to help understand the technical solutions and core concepts of the present invention. It should be noted that, for those skilled in the art, various improvements and modifications may be made to the present invention without departing from the principles of the present invention, and such improvements and modifications also fall within the scope of protection of the present invention.
Claims
1. A method for managing train operation data, characterized in that: Applicable to the preset server devices, including: Based on the train real-time data protocol, read the train operation data of each carriage; Parsing the train operation data of each carriage and converting the parsed results into data in a preset format supported by the web page of each terminal device; When receiving a display request directed to the i-th car from any of the terminal devices, the preset format data corresponding to the i-th car is sent to the terminal device via network transmission, so that the terminal device displays a web page based on the preset format data; Wherein, i is a positive integer.
2. The method for managing train operation data according to claim 1, characterized in that: Based on the train real-time data protocol, read the train operation data of each carriage, including: Read the configuration file that reflects the data reading range; Based on the train real-time data protocol, the train operation data of each carriage specified by the configuration file is read.
3. The method for managing train operation data according to claim 2, characterized in that: Read the train operation data of each carriage specified in the configuration file, including: Determining each carriage specified by the configuration file; For any car specified by the configuration file, the train operation data from the car is read based on the communication addresses belonging to the car and the communication ports of each communication address specified by the configuration file.
4. The method for managing train operation data according to claim 1, characterized in that: Based on the train real-time data protocol, read the train operation data of each carriage, including: Based on the train real-time data protocol, the train operation data of K carriages are read through K reading threads respectively; Parsing the train operation data of each carriage and converting the parsed results into data in a preset format supported by the web page of each terminal device, including: Parsing the train operation data of the K carriages respectively through K processing threads, and converting the parsed results into data in a preset format supported by the web page of each terminal device; Among them, K is a preset parameter value and is the same as the number of carriages.
5. The method for managing train operation data according to claim 1, characterized in that: Convert the parsed results into pre-formatted data supported by the web pages of each terminal device, including: Convert the parsed results into a preset standard format data supported by the web page of each terminal device; The preset standard format data includes at least one of JSON format data, MessagePack format data, and ProtocolBuffers format data; The method includes: transmitting the preset format data corresponding to the i-th carriage to the terminal device via a network transmission method, so that the terminal device displays a web page based on the preset format data, including: The preset format data corresponding to the i-th carriage is sent to the terminal device via WebSocket, so that the terminal device displays a web page based on the preset standard format data.
6. The method for managing train operation data according to claim 1, characterized in that: Also includes: Receive a network transmission connection request from any terminal device; Establishing a network transmission connection with the terminal device based on the network transmission connection request; Verify whether the established network transmission connection is normal; If not, re-establish the network transmission connection with the terminal device.
7. The method for managing train operation data according to any one of claims 1 to 6, characterized in that: Also includes: Receiving a configuration adjustment request directed to a target device sent by any terminal device; The configuration adjustment request is sent to the target device, so that the target device adjusts its own configuration based on the configuration adjustment request.
8. A train operation data management system, characterized in that: Applicable to the preset server devices, including: Data receiving module, used to read the train operation data of each carriage based on the train real-time data protocol; A parsing module, configured to parse the train operation data of each carriage and convert the parsed results into data in a preset format supported by the web page of each terminal device; an output module, configured to, upon receiving a display request directed to the i-th car from any of the terminal devices, transmit the preset format data corresponding to the i-th car to the terminal device via network transmission, so that the terminal device displays a web page based on the preset format data; Wherein, i is a positive integer.
9. An electronic device, characterized in that: include: memory for storing computer programs; A processor, configured to execute the computer program to implement the steps of the method for managing train operation data according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for managing train operation data according to any one of claims 1 to 7.