Railway dispatching centralized data storage method and system, retrieval system and electronic device
By constructing a station-wide information table and generating a fixed-format index file, the system identifies and stores changes in centralized train operation data in railway dispatching, solving the problems of large data storage volume and slow retrieval speed, and achieving efficient and accurate data storage and retrieval.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING CONSEN TRANSPORTATION TECH CO LTD
- Filing Date
- 2022-12-20
- Publication Date
- 2026-07-07
AI Technical Summary
Existing technologies are insufficient to effectively reduce the storage volume of centralized train operation data in railway dispatching and improve data retrieval efficiency, resulting in slow data retrieval speed and high network bandwidth consumption.
A site-wide information table construction method is adopted to identify the changing data in real-time train operation data, generate a fixed-format index file, update the changing data with the site-wide information table, and store the index file and data file independently. The index file is used to quickly locate the data file for retrieval.
It reduces the amount of data stored, improves the efficiency and accuracy of data retrieval, reduces dependence on hardware and software, and increases the speed of data retrieval.
Smart Images

Figure CN115658715B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of vehicle networking technology, and more specifically, it relates to a method for storing centralized train operation data in railway dispatching; this application also relates to a centralized train operation data storage system in railway dispatching; this application also relates to a retrieval method; this application also relates to a retrieval system; this application also relates to an electronic device. Background Technology
[0002] Centralized dispatching is a complex, interconnected system with numerous and varied external interfaces, serving as the core equipment for railway transportation command. This system involves a large number of terminals and interfaces and operates 24 / 7, generating massive and complex train operation data. This data forms the basis for operational behavior analysis, fault detection, and statistical analysis. Therefore, developing a complete and rapid data storage and retrieval method to achieve fast storage and retrieval of centralized dispatching train operation data is essential for its application.
[0003] Therefore, how to provide a centralized data storage method for railway dispatching that can reduce the amount of stored data and improve the efficiency of data retrieval has become a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0004] To address the aforementioned technical problems, this application provides a method for storing centralized train operation data in railway dispatching, which can reduce the amount of stored data and improve the efficiency of data retrieval.
[0005] The technical solution provided in this application is as follows:
[0006] This application provides a method for storing centralized train operation data in railway dispatching. The method includes: constructing a station-wide information table for the current station; acquiring real-time train operation data; analyzing and identifying changed data in the real-time train operation data using the station-wide information table; updating the station-wide information table using the changed data; storing the latest station-wide information table as a data file; calculating the location information and timestamp of the changed data in the data file; generating an index file with a fixed length and format using the timestamp and the location information; and storing the index file.
[0007] Furthermore, in a preferred embodiment of the present invention, the station information table is a status information table of all current stations and trains.
[0008] Furthermore, in a preferred embodiment of the present invention, the step of "analyzing and identifying the changing data in the real-time train operation data" specifically means: analyzing and identifying the changing data in the real-time train operation data on a station-by-station basis.
[0009] Furthermore, in a preferred embodiment of the present invention, the driving operation data includes changed data and unchanged data; the storage method further includes discarding the unchanged data.
[0010] Furthermore, in a preferred embodiment of the present invention, the step of "storing the latest site-wide information table in the form of a data file" includes: identifying the data time information of the latest site-wide information table and obtaining the data verification code of the latest site-wide information table; generating a data tag for the latest site-wide information table; recording the data time information, the data verification code, and the data tag together in the site-wide information table; and storing the site-wide information table in the form of a data file.
[0011] This application also provides a storage system for executing the railway dispatching centralized train operation data storage method. The storage system includes: a first construction module for constructing a station-wide information table of the current station; a first acquisition module for acquiring real-time train operation data; a first analysis module for parsing and identifying changed data in the real-time train operation data based on the station-wide information table; a first update module for updating the station-wide information table in conjunction with the changed data; a first storage module for storing the latest station-wide information table as a data file; a second analysis module for calculating the position information and time stamp of the changed data in the data file; a second construction module for generating an index file with a fixed length and format using the time stamp and the position information; and a second storage module for storing the index file.
[0012] This application also provides a retrieval method based on the railway dispatching centralized train operation data storage method, the retrieval method comprising: obtaining a retrieval instruction, the retrieval instruction including time range data for data retrieval; combining the retrieval instruction to identify the time tag in the index file and associate it with the location information; and based on the location information, identifying the corresponding station information table in the data file and reading the station information table.
[0013] Furthermore, in a preferred embodiment of the present invention, the step of "obtaining the full-site information table" specifically involves: checking the data tags in the full-site information table; obtaining a data packet containing the full-site information table from the data file according to the data protocol; performing a data check on the data packet, and if the check passes, it indicates that the accurate full-site information table has been obtained.
[0014] This application also provides a retrieval system for executing the aforementioned retrieval method. The retrieval system includes: a first acquisition module for acquiring retrieval instructions; a third analysis module for identifying the time tag in the index file and associating it with the location information in conjunction with the retrieval instructions; and a first reading module for identifying the corresponding site-wide information table in the data file and reading the site-wide information table based on the location information.
[0015] This application also provides an electronic device, comprising: a computer program for executing the railway dispatching centralized train operation data storage method, or the computer program for executing the retrieval method; a memory for storing the computer program; and a processor for calculating the computer program.
[0016] This invention provides a centralized railway dispatching data storage method, which, compared with existing technologies, includes: constructing a station-wide information table for the current station; acquiring real-time train operation data; analyzing and identifying changed data in the real-time train operation data using the station-wide information table; updating the station-wide information table using the changed data; storing the latest station-wide information table as a data file; calculating the position information and time stamp of the changed data in the data file; generating an index file with a fixed length and format using the time stamp and the position information; and storing the index file. Compared with existing technologies, the technical solution of this application can reduce the amount of stored data and improve the efficiency of data retrieval.
[0017] Compared with the prior art, the beneficial effects of this application include:
[0018] The method for centralized storage and retrieval of train operation data in railway dispatching takes existing stations as the basic unit, constructs a station-wide information table by checking changes in train operation data, and stores data by separating data and index files. It has the characteristics of low equipment and software dependence, complete data storage, and fast and accurate retrieval.
[0019] This method is based on the station's real-time operation data. It checks for changes in the real-time data by constructing a station-wide information table, which reduces the amount of data file storage while meeting the data integrity requirements during data retrieval.
[0020] This method uses the storage of the existing system as a medium to construct a fixed-size index file for data files of varying lengths, thus solving the problem of data retrieval speed without adding software or hardware. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 is a flowchart of the steps of the railway dispatching centralized train operation data storage method provided in an embodiment of the present invention;
[0023] Figure 2 A flowchart illustrating the steps of the railway dispatching centralized train operation data retrieval method provided in this embodiment of the invention;
[0024] Figure 3 This is a schematic diagram of the centralized train operation data storage process provided in an embodiment of the present invention;
[0025] Figure 4 A flowchart of the centralized operation data storage process provided in this embodiment of the invention;
[0026] Figure 5 This is a schematic diagram of the centralized train operation data retrieval process provided in an embodiment of the present invention. Detailed Implementation
[0027] To enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0028] It should be noted that when a component is referred to as being "fixed to" or "set on" another component, it can be directly on or indirectly set on the other component; when a component is referred to as being "connected to" another component, it can be directly connected to or indirectly connected to the other component.
[0029] It should be understood that the terms "length", "width", "upper", "lower", "front", "rear", "first", "second", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.
[0030] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" or "several" means two or more, unless otherwise explicitly specified.
[0031] It should be noted that the structures, proportions, sizes, etc., shown in the accompanying drawings of this specification are only for the purpose of assisting those skilled in the art in understanding and reading the content disclosed in the specification, and are not intended to limit the conditions under which this application can be implemented. Therefore, they have no substantial technical significance. Any modifications to the structure, changes in the proportions, or adjustments to the size should still fall within the scope of the technical content disclosed in this application, provided that they do not affect the effects and purposes that this application can produce.
[0032] Please Figure 1 and Figure 5 As shown in the embodiment of this application, the railway dispatching centralized train operation data storage method includes: constructing a station-wide information table for the current station; acquiring real-time train operation data; analyzing and identifying changed data in the real-time train operation data based on the station-wide information table; updating the station-wide information table based on the changed data; storing the latest station-wide information table in the form of a data file; calculating the position information and time stamp of the changed data in the data file; generating an index file with a fixed length and format based on the time stamp and the position information; and storing the index file.
[0033] This invention provides a technical solution for a centralized railway dispatching data storage method. In this solution, real-time train operation data is compared with the current station's overall information table to identify changed data and update the overall information table. For the changed data, its location and timestamp information in the data file are calculated. The timestamps and location information are combined to generate an index file with a fixed length and format, and this index file is stored separately. This method of storing the index file and data file independently optimizes the data storage structure and reduces the amount of stored data. Furthermore, by constructing a standardized index file, the efficiency of the data retrieval stage is improved. The technical solution provided by this application can reduce the amount of stored data and improve the efficiency of data retrieval.
[0034] It should be noted that in the process of acquiring and storing real-time train operation data, changed data is identified first before storage. Since the amount of changed data is smaller than the total station status data, the computational intensity of storing and calculating changed data is low, reducing the demand on the computing power of related system equipment.
[0035] Specifically, in this embodiment of the invention, the station information table is a status information table of all stations and trains at present.
[0036] It should be noted that, in this embodiment of the invention, the total station information table includes status information tables for all stations and trains, encompassing all data related to railway operations. Unified data management and calculation effectively prevent data conflicts.
[0037] Specifically, in this embodiment of the invention, the step of "analyzing and identifying the changing data in the real-time train operation data" specifically means: analyzing and identifying the changing data in the real-time train operation data on a station-by-station basis.
[0038] It should be noted that, in this embodiment of the invention, by identifying changes in real-time train operation data on a station-by-station basis, the changes in the current operating status of the station can be quickly and effectively identified, thereby improving the storage of real-time train operation data.
[0039] Specifically, in this embodiment of the invention, the driving operation data includes changed data and unchanged data; the storage method further includes discarding the unchanged data.
[0040] It should be noted that, in the embodiments of the present invention, by discarding unchanged data, the pressure on real-time data storage can be reduced and data storage efficiency can be improved.
[0041] Specifically, in this embodiment of the invention, the step of "storing the latest site-wide information table in the form of a data file" includes: identifying the data time information of the latest site-wide information table and obtaining the data verification code of the latest site-wide information table; generating a data tag for the latest site-wide information table; recording the data time information, the data verification code, and the data tag together in the site-wide information table; and storing the site-wide information table in the form of a data file.
[0042] It should be noted that, in this embodiment of the invention, when storing the latest site-wide information table in the form of a data file, storing time information, data verification code, and data tag can improve the search efficiency of the site-wide information table in the data file.
[0043] Furthermore, this application embodiment also provides a storage system for executing the railway dispatch centralized train operation data storage method. The storage system includes: a first construction module for constructing a station-wide information table of the current station; a first acquisition module for acquiring real-time train operation data; a first analysis module for parsing and identifying changed data in the real-time train operation data based on the station-wide information table; a first update module for updating the station-wide information table in conjunction with the changed data; a first storage module for storing the latest station-wide information table as a data file; a second analysis module for calculating the position information and time stamp of the changed data in the data file; a second construction module for generating an index file with a fixed length and format using the time stamp and the position information; and a second storage module for storing the index file.
[0044] In addition, this application provides a centralized railway dispatching and train operation data storage system, which also has the above-mentioned technical effects.
[0045] Furthermore, this application embodiment also provides a retrieval method based on the railway dispatching centralized train operation data storage method. The retrieval method includes: obtaining a retrieval instruction, the retrieval instruction including time range data for data retrieval; combining the retrieval instruction to identify the time tag in the index file and associate it with the location information; and based on the location information, identifying the corresponding station information table in the data file and reading the station information table.
[0046] In the technical solution of the retrieval scheme provided in this application, after obtaining the retrieval instruction, the time range data in the retrieval instruction is combined to identify the time tag in the index file and the associated location information. The corresponding full-site information table is obtained based on the location information, and the full-site information table is the information table to be retrieved. This retrieval method is based on the above storage method, which improves the convenience of retrieval, reduces the difficulty of retrieval calculation, and improves retrieval efficiency.
[0047] Specifically, in this embodiment of the invention, "obtaining the full-site information table" specifically involves: checking the data tags in the full-site information table; obtaining the data packet containing the full-site information table from the data file according to the data protocol; performing a data check on the data packet, and if it passes the check, it indicates that the accurate full-site information table has been obtained.
[0048] It should be noted that, in this embodiment of the invention, a reliable site-wide information table is obtained by checking the data tags and data verification codes, thereby improving the reliability of the data obtained from the site-wide information table and preventing data errors.
[0049] The technical solution of the retrieval method provided in this application embodiment also has the above-mentioned technical effects.
[0050] Furthermore, this application embodiment also provides a retrieval system for executing the aforementioned retrieval method. The retrieval system includes: a first acquisition module for acquiring retrieval instructions; a third analysis module for identifying the time tag in the index file and associating it with the location information in conjunction with the retrieval instructions; and a first reading module for identifying the corresponding site-wide information table in the data file based on the location information and reading the site-wide information table.
[0051] This application provides a retrieval system that also has the above-mentioned technical effects.
[0052] Furthermore, this application also provides an electronic device, comprising: a computer program for executing the railway dispatching centralized train operation data storage method, or the computer program for executing the retrieval method; a memory for storing the computer program; and a processor for calculating the computer program.
[0053] This application provides an electronic device that also has the above-mentioned technical effects.
[0054] More specifically, in this embodiment of the invention, it should be noted that the first prior art solution uses a database for data storage and retrieval. The centralized dispatching system manages real-time train operation data in the data management application server, formatting the real-time data and storing it in the database according to time, type, keywords, and original data content. When a user accesses or retrieves historical data, they send a retrieval request to the data management application server via a network channel. The server, based on the user's request information and after checking the validity of the retrieval request, performs database operations to obtain the corresponding data information. After encryption and compression, the data is sent to the user as a network data stream in chronological order to realize the client's data retrieval function.
[0055] In this first existing technical solution, the method can realize the storage of centralized train operation data, construct an index for the data based on the data time, and store the data according to the order of data generation after assisting with some data type parameters. When retrieving data, each terminal submits information such as the time range and data type of the historical operation data to be retrieved to the application server, and the data management application server retrieves the data and sends the data to the terminal in a data stream manner, thereby realizing the query of historical train operation data.
[0056] However, due to limitations in data storage, the data management application server cannot simultaneously respond to query requests from multiple terminals, nor can it concurrently process responses from multiple users. Furthermore, since querying historical operational data for each terminal requires the server to send data to the terminal via the network channel, it increases network traffic. The response speed of the querying terminal is then dependent on network bandwidth and the size of the retrieved data, making it impossible to meet the fast retrieval needs of concurrent users.
[0057] In this embodiment of the invention, it should be further explained that in the second prior art solution, real-time operation data is stored in a single file, and the data file is searched and retrieved. This method uses file storage, storing only locally relevant vehicle operation data. After receiving real-time vehicle operation data, the system adds time tags, data verification codes, and other information according to the chronological order of the data before storing the data in local storage, thus achieving data storage. When a user retrieves data, the system directly searches the data file from beginning to end to locate the file position searched by the user, thereby achieving data retrieval and acquisition of historical data.
[0058] In this second prior art solution, the method uses local storage as the medium to store real-time running data, which can reduce the dependence on third-party database software and realize the storage of local data.
[0059] However, because the length of real-time running data varies, the position of the data timestamps in the data file is irregular. This means that when performing data retrieval, the system must analyze and parse the data field by field, starting from the beginning of the file, to find the timestamps and locate the data position retrieved by the user. This significantly reduces the speed of data retrieval and degrades the user's experience.
[0060] It is important to emphasize that the purpose of this invention is to ensure the accuracy of centralized train operation data storage by caching a full-station information table, discarding redundant data, and reconstructing the original state of the station at a given moment by constructing a full-station information table for changed data. By employing file separation and constructing data index files with standard storage length and structure, data retrieval efficiency is improved, enabling rapid data retrieval and enhancing response speed.
[0061] This invention provides a method for storing and retrieving centralized train operation data in railway signal dispatching. By separating index files and data files, a standard-structured index file is constructed, which solves the problem of slow data retrieval due to excessive network bandwidth consumption during centralized train operation data retrieval.
[0062] Its main features include the following functional modules: a) a module for constructing and storing index and data files; b) a module for constructing station information tables; c) a module for checking changes in train operation data; d) a module for retrieving index files and locating data in data files; and e) a module for retrieving data files. These functional modules are called and loaded by the software to achieve efficient storage and rapid retrieval of centralized train operation data. When storing real-time train operation data, changes are first checked and judged, then a station-wide information table for real-time data is constructed before storing the station-wide information data file and index file. During data retrieval, a binary search method is used to query the index file using time as the keyword, based on the user-input search time range, to quickly obtain the location of the data corresponding to the user's search time range in the data file, thereby achieving rapid location and retrieval of the data file. Data files are always stored using the method of storing the station-wide information table to solve the problem that the data obtained during data retrieval cannot fully represent the station status.
[0063] The specific technical solution of this invention is as follows: The basic process of the centralized scheduling and data storage method for train operation is as follows: Figure 3 As shown. Without affecting the internal data flow and software processing logic of the centralized dispatching system, a station-wide information table is used for data change checking and data file storage. A fixed-format index file is stored based on the data flow information with varying lengths to improve data retrieval efficiency and provide a fast method for retrieving train operation data. The detailed data storage process is as follows: Figure 4 As shown.
[0064] The method for centralized data storage and retrieval of railway signal dispatching operation data is implemented through the following steps:
[0065] 1. On a station-by-station basis, perform change checks on the real-time train operation data received, and reduce the amount of data storage without losing data.
[0066] The data sources for the centralized dispatching system are all station-based. After receiving real-time train operation data, the terminal compares it with the information table stored at the station to check if the newly received real-time data has changed. If the data has changed, the station's information table is updated; otherwise, the unchanged real-time data is discarded to reduce the amount of train operation data stored, improve system operating efficiency, and reduce file storage operations.
[0067] 2. Taking each station as a unit, construct and update the station's overall information table when real-time operational data changes, so as to achieve the combination of all station information.
[0068] To reduce network load, the real-time data in the centralized dispatching system is mostly change data. This solution, upon receiving changed train operation data, compares the real-time data with the historically stored station information table, updates the changed information bits in the station information table, and constructs a new station information table. This addresses the problem that storing and retrieving data only contains changed data, leading to incomplete data retrieval reflecting the station's current status.
[0069] 3. Construct index files with a fixed format to improve data retrieval efficiency.
[0070] When storing changed data, the system independently stores data files and index files. The data files store the updated site-wide representation information, and add the data's timestamp, checksum, and data tag to this information.
[0071] Before storing the data file, the system calculates the position of the vehicle operation data in the data file and the timestamp of the data, and stores the index file using a combination of timestamp and fixed length and format of data position.
[0072] 4. Data retrieval
[0073] The system uses a method of separating index files and data files when storing data, and the data in the index files is stored in chronological order. Therefore, during data retrieval, a binary search method is used based on the user-inputted start and end times, employing the time parameters of the index files to quickly retrieve the positions of the data corresponding to those times within the data files. The data retrieval process is as follows: Figure 5 As shown, the system locates the corresponding position in the data file based on the start time input by the user, then checks the data tags, obtains the corresponding data packets according to the data protocol, and finally checks the checksum to ensure the integrity and accuracy of the obtained data.
[0074] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for storing centralized train operation data in railway dispatching, characterized in that, Including the following steps: Construct a station-wide information table for the current station, which is a table of status information for all stations and trains at present; Acquire real-time vehicle operation data, including both changed and unchanged data; The storage method further includes: discarding the unchanged data; By combining the station-wide information table, the changed data in the real-time train operation data is analyzed and identified; specifically, the changed data in the real-time train operation data is analyzed and identified on a station-by-station basis. The site-wide information table is updated based on the changed data. The latest site-wide information table is stored as a data file: the data time information of the latest site-wide information table is identified; the data verification code of the latest site-wide information table is obtained; and data tags are generated for the latest site-wide information table. The data time information, the data verification code, and the data tag are recorded together in the site-wide information table; The entire site information table is stored in the form of a data file; Calculate the location information and timestamp of the changed data in the data file; The time stamp is combined with the location information to generate an index file; The index file is stored; The specific steps for "obtaining the entire site information table" are as follows: Check the data tags in the site-wide information table; According to the data protocol, the data packet containing the site-wide information table is obtained from the data file; The data packet is checked for a data check code; if it passes the check, it indicates that the accurate site-wide information table has been obtained.
2. A centralized railway dispatching and train operation data storage system, characterized in that, The method for storing centralized train operation data for railway dispatching as described in claim 1 includes: The first building module used to construct the full station information table for the current station; The first acquisition module is used to acquire real-time vehicle operation data; A first analysis module for parsing and identifying the changing data in the real-time train operation data based on the station information table; A first update module for updating the site-wide information table based on the changed data; A first storage module for storing the latest site-wide information table in the form of a data file; A second analysis module is used to calculate the location information and time stamp of the changed data in the data file; A second building module is used to generate an index file with a fixed length and format by combining the time stamp with the location information. A second storage module for storing the index file.
3. A retrieval method based on the railway dispatching centralized train operation data storage method of claim 1, characterized in that, The retrieval method includes: The retrieval method includes: Obtain a search instruction, wherein the search instruction includes data within a time range for data retrieval; Based on the search command, the time tag in the index file is identified, and the location information is associated with it; Based on the location information, identify the corresponding site-wide information table in the data file and read the site-wide information table.
4. A retrieval system for performing the retrieval method according to claim 3, characterized in that, The retrieval system includes: a first acquisition module for obtaining retrieval instructions; A third analysis module is used to combine the search instructions to identify the time tag in the index file and associate it with the location information; The first reading module is used to identify the corresponding site-wide information table in the data file based on the location information and to read the site-wide information table.
5. An electronic device, characterized in that, include: A computer program, wherein the computer program is used to execute the railway dispatching centralized train operation data storage method of claim 1, or the computer program is used to execute the retrieval method of claim 3; A memory for storing the computer program; A processor for computing the computer program.