Vehicle operation data distribution method and device, equipment and storage medium

By using Redis clusters to store and distribute vehicle operation data in the PIS system, the problem of low interaction efficiency between the PIS system and the ATS system is solved, efficient and accurate data distribution and transmission are achieved, and data synchronization capabilities of the rail transit system are improved.

CN120343121APending Publication Date: 2025-07-18BEIJING URBAN CONSTR INTELLIGENT CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510225394.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-27
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

In the prior art, the PIS system interacts with four servers of the ATS system to obtain vehicle operation data, resulting in low data distribution efficiency, low data redundant reading, low transmission efficiency and difficult to guarantee data accuracy.

Method used

The distributed in-memory database Redis cluster is used to store the vehicle operation data read by the PIS system from the ATS system, and regularly access the Redis cluster through the station server to obtain and distribute the target vehicle operation data, reducing direct interaction with the ATS server, and using the high-performance characteristics of the Redis cluster for data sorting and filtering.

Benefits of technology

It improves the efficiency of obtaining and distributing vehicle operating data, reduces data redundant transmission, saves network resources, improves data transmission efficiency and accuracy, simplifies the data judgment logic on the station server, and enhances the real-time and accuracy of data synchronization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120343121A_ABST
    Figure CN120343121A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle operation data distribution method, device and equipment and a storage medium, and is applied to the technical field of rail transit, and the method comprises the steps: obtaining an identifier of a to-be-determined station of to-be-distributed data; accessing a distributed memory database Redis cluster regularly, and acquiring first vehicle operation data corresponding to the identifier of the to-be-determined station from the Redis cluster according to the identifier of the to-be-determined station; vehicle operation data of different stations are stored in the Redis cluster, and the vehicle operation data in the Redis cluster are stored in the Redis cluster after a passenger information system (PIS) reads the vehicle operation data from an automatic train monitoring system (ATS); and determining target vehicle operation data according to the first vehicle operation data, and distributing the target vehicle operation data to the to-be-determined station. According to the technical scheme, the distribution efficiency of the vehicle operation data can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of rail transit, and in particular, to a method, device, equipment and storage medium for distributing vehicle operation data. Background Art

[0002] The subway operation management system includes systems such as the ATS system (Automatic Train Supervision) and the PIS system (Passenger Information System). Among them, the ATS system mainly realizes the management and control of subway operation trains / vehicles and signal equipment through coordination and cooperation with other subsystems; the PIS system is divided into station services and central services, and mainly uses subway stations and on-vehicle display terminals as media to provide information services to passengers. Usually, the PIS system needs to interact with the ATS system to obtain relevant vehicle operation information, and provides relevant vehicle operation services to passengers through the obtained vehicle operation information.

[0003] In the related art, the ATS system generally includes a main system and a slave system, and both the main system and the slave system include a main server and a slave server, that is, the ATS system includes a total of four servers to monitor the operation of the vehicle. The PIS system can interact with the four servers of the ATS system through a PIS server respectively, so as to receive vehicle operation information from these four servers of the ATS system, screen out accurate data, and then broadcast or distribute it to all stations.

[0004] However, the above technology has the problem of low data distribution efficiency. Summary of the Invention

[0005] The present invention provides a method, device, equipment and storage medium for distributing vehicle operation data, which is used to solve the defect that in the prior art, the PIS system interacts with the four servers of the ATS system through a PIS server respectively to obtain vehicle operation data in the four servers and distribute it to all stations, resulting in low vehicle operation data distribution efficiency, and realizes the purpose of higher efficiency in obtaining and distributing vehicle operation data by the station server by regularly accessing the vehicle operation data stored in the Redis cluster and distributing it to the stations.

[0006] The present invention provides a method for distributing vehicle operation data, including: Obtaining the identifier of the station to be determined for the data to be distributed; Regularly access the Redis cluster of the distributed memory database, and obtain the first vehicle operation data corresponding to the identifier of the to-be-determined station in the Redis cluster; different stations' vehicle operation data are stored in the Redis cluster, and the vehicle operation data in the Redis cluster are stored in the Redis cluster after the Passenger Information System (PIS) reads the vehicle operation data from the Automatic Train Supervision System (ATS). Determine the target vehicle operation data based on the first vehicle operation data, and distribute the target vehicle operation data to the to-be-determined station.

[0007] According to a vehicle operation data distribution method provided by the present invention, the first vehicle operation data includes multiple groups of second vehicle operation data, and each group of second vehicle operation data includes at least the vehicle number of a candidate vehicle and the arrival time of the candidate vehicle at the to-be-determined station. The determining of the target vehicle operation data according to the first vehicle operation data includes: Sort the arrival times of the candidate vehicles in each group of second vehicle operation data according to the same sorting rule to obtain the first fleet sorting result of the candidate vehicles in each group of second vehicle operation data; the number of candidate vehicles included in each group of second vehicle operation data is the same. Determine the second fleet sorting result of all candidate vehicles in all second vehicle operation data according to the first fleet sorting result of the candidate vehicles in each group of second vehicle operation data; the vehicle numbers of the candidate vehicles in the second fleet sorting result are all different. Determine the target vehicle operation data from each group of second vehicle operation data according to the second fleet sorting result.

[0008] According to a vehicle operation data distribution method provided by the present invention, if the number of candidate vehicles included in the second fleet sorting result is greater than the number of candidate vehicles included in each group of second vehicle operation data, the determining of the target vehicle operation data from each group of second vehicle operation data according to the second fleet sorting result includes: Determine the first candidate vehicle in the second fleet sorting result according to the second fleet sorting result and the candidate vehicle with the shortest arrival time in each group of second vehicle operation data. Determine the second vehicle operation data corresponding to the first candidate vehicle from each group of second vehicle operation data, and delete the second vehicle operation data corresponding to the first candidate vehicle from the first vehicle operation data. Determine the target vehicle operation data according to the remaining second vehicle operation data in the first vehicle operation data.

[0009] According to a vehicle operation data distribution method provided by the present invention, if there are multiple groups of second vehicle operation data remaining in the first vehicle operation data, determining the target vehicle operation data according to the remaining second vehicle operation data in the first vehicle operation data includes: Determining the second candidate vehicle with the shortest arrival time in each remaining group of second vehicle operation data according to the first fleet sorting result of each remaining group of second vehicle operation data in the first vehicle operation data; Determining the second candidate vehicle corresponding to the arrival time with the shortest duration from the arrival times of each second candidate vehicle, and determining the second vehicle operation data corresponding to the second candidate vehicle with the shortest arrival time as the target vehicle operation data.

[0010] According to a vehicle operation data distribution method provided by the present invention, the PIS system reads vehicle operation data from the ATS system by using PIS servers with the same number as the ATS servers in the ATS system, and reads the vehicle operation data in the corresponding ATS servers in parallel one by one; wherein, each ATS server generates a group of vehicle operation data.

[0011] According to a vehicle operation data distribution method provided by the present invention, the vehicle operation data read by the PIS system each time includes the vehicle number and the arrival time of the vehicle at the corresponding station. When the Redis cluster stores the vehicle operation data read by the PIS system multiple times, it sorts and stores the data in ascending order of the arrival time of the vehicle at the corresponding station.

[0012] The present invention also provides a vehicle operation data distribution device, including the following modules: A station identifier acquisition module, configured to acquire the identifier of the pending station for the data to be distributed; A vehicle operation data acquisition module, configured to periodically access the Redis cluster, and acquire the first vehicle operation data corresponding to the identifier of the pending station in the Redis cluster according to the identifier of the pending station; different stations' vehicle operation data is stored in the Redis cluster, and the vehicle operation data in the Redis cluster is stored in the Redis cluster after the PIS system reads the vehicle operation data from the ATS system; A data distribution module, configured to determine the target vehicle operation data according to the first vehicle operation data, and distribute the target vehicle operation data to the pending station.

[0013] The present invention also provides a station server, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it implements the vehicle operation data distribution method as described in any one of the above.

[0014] The present invention also provides a train operation system, including: An ATS system, including multiple ATS servers, all of which are used to monitor the vehicles running on the track in real time and obtain the vehicle operation data of each station; A PIS system, including multiple PIS servers, used to control multiple PIS servers with the same number as the ATS servers, read the vehicle operation data in the corresponding ATS servers one by one in parallel, and store it in the Redis cluster; A Redis cluster, used to store the vehicle operation data read by each PIS server in the PIS system; different stations' vehicle operation data is stored in the Redis cluster; A station server, used to obtain the identifier of the pending station for which the data to be distributed is to be obtained; and regularly access the Redis cluster, and obtain the first vehicle operation data corresponding to the identifier of the pending station in the Redis cluster according to the identifier of the pending station; and determine the target vehicle operation data according to the first vehicle operation data, and distribute the target vehicle operation data to the pending station.

[0015] The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the vehicle operation data distribution method described in any one of the above.

[0016] The present invention also provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the vehicle operation data distribution method described in any one of the above.

[0017] The vehicle operation data distribution method, device, equipment, and storage medium provided by the present invention obtain the identifier of the pending station for the data to be distributed, regularly access the Redis cluster, and obtain the first vehicle operation data corresponding to the identifier of the pending station from the vehicle operation data of different stations stored in the Redis cluster according to the identifier of the pending station, and then determine the target vehicle operation data based on the first vehicle operation data and distribute the target vehicle operation data to the pending station; wherein, the vehicle operation data in the Redis cluster is stored in the Redis cluster after being read by the PIS system from the ATS system. In this method, since the station server can regularly access the vehicle operation data read by the PIS system from the ATS system and stored in the Redis cluster, and screen out the target vehicle operation data and distribute it to the corresponding station, the station server only needs to access this one database cluster to obtain the vehicle operation data of the required station and distribute it to the corresponding station after screening, without the need to interact with four ATS servers respectively to obtain and distribute the vehicle operation data of the station. Therefore, the data acquisition and distribution efficiency is higher; at the same time, by centrally storing the vehicle operation data in the Redis cluster, it is also possible to reduce redundant data transmission, save network resources, and further improve data transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0019] Figure 1 is one of the flow diagrams of the vehicle operation data distribution method provided by the present invention.

[0020] Figure 2 is another flow diagram of the vehicle operation data distribution method provided by the present invention.

[0021] Figure 3 is yet another flow diagram of the vehicle operation data distribution method provided by the present invention.

[0022] Figure 4 is the structural diagram of the vehicle operation data distribution device provided by the present invention.

[0023] Figure 5 is the structural diagram of the station server provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0024] To make the objectives, technical solutions, and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0025] Currently, the ATS system provides Modbus (serial communication protocol) slave services by means of a polling or failover mechanism by the primary master server and standby master server in the primary center, as well as the primary standby server and standby standby server in the standby center. When the PIS system reads the vehicle operation data of the ATS system, generally, the PIS system selects one PIS server from each center to obtain data from the four ATS servers in the dual centers of the ATS system respectively, and then the primary and standby centers transmit or broadcast to each station server through the UDP protocol (User Datagram Protocol) respectively. The station server filters out the valid data and then distributes it to the stations. However, this data transmission or distribution method has problems such as redundant data reading, low transmission efficiency, and complex data validity determination. In addition, the above method has frequent data updates and is prone to generating error codes during the transmission process. Multi-point transmission results in waste of bandwidth resources, and the real-time judgment logic complexity of the data correctness for each station is relatively high, making it difficult to ensure efficient and accurate data synchronization. In summary, the above technology has problems such as data synchronization delay, low data transmission / distribution efficiency, and difficulty in distinguishing data accuracy. Based on this, the embodiments of the present invention provide a vehicle operation data distribution method, device, equipment, and storage medium, which can solve this technical problem.

[0026] To facilitate a better understanding of the technical solutions of the present invention, the train operation system provided by the embodiments of the present invention will be described below first.

[0027] The train operation system includes an ATS system, a PIS system, a Redis cluster, a station server, and a station. Among them, the ATS system includes multiple ATS servers (generally four ATS servers), and multiple ATS servers are all used to perform real-time monitoring on the vehicles running on the track to obtain the vehicle operation data of each station. For each station, generally each ATS server will obtain a set of vehicle operation data related to this station.

[0028] The PIS system includes multiple PIS servers, which are used to control multiple PIS servers with the same number as the ATS servers, and read the vehicle operation data in the corresponding ATS servers one by one in parallel and store it in the Redis cluster. Here, four PIS servers can be selected, and each PIS server reads the vehicle operation data in one ATS server respectively. In this way, the method of four PIS servers reading the vehicle operation data in four ATS systems in parallel can reduce data synchronization latency, reduce redundant data transmission, and improve data transmission efficiency.

[0029] The Redis cluster is a distributed memory database cluster, which is used to store the vehicle operation data read by each PIS server in the PIS system; specifically, the vehicle operation data of different stations is stored in the Redis cluster.

[0030] The station server is used to obtain the identifier of the pending station for the data to be distributed; and regularly access the Redis cluster, and obtain the first vehicle operation data corresponding to the identifier of the pending station in the Redis cluster according to the identifier of the pending station; and determine the target vehicle operation data according to the first vehicle operation data, and distribute the target vehicle operation data to the pending station.

[0031] The station is used to receive the target vehicle operation data broadcast or distributed by the station server, and transmit the target vehicle operation data to devices such as terminals in the station, terminals on the vehicle, and the console in the station for users to view the vehicle operation information in real time.

[0032] It can be understood that the above train operation system may also include other devices, devices or systems required for vehicle operation, etc., which are not specifically limited here.

[0033] Based on the above train operation system, the following will be combined with Figures 1 - 3 Describe the vehicle operation data distribution method of the embodiments of the present invention.

[0034] It should be noted that the execution subject of the embodiments of the present invention can be a vehicle operation data distribution device, or an electronic device or a station server including the vehicle operation data distribution device, or it can also be a train operation system. The following embodiments will take the station server as an example as the execution subject for description.

[0035] Figure 1 It is one of the flow diagrams of the vehicle operation data distribution method provided by the present invention. As Figure 1 shown, the method includes the following steps: S102, obtain the identifier of the pending station for the data to be distributed.

[0036] Among them, generally, one station server can manage one or more stations. The station server can communicate with the servers of the stations it manages. When it is necessary to distribute or transmit relevant vehicle operation data to a certain station, the identifier of the station can be obtained by interacting with the server of the station, and this station can be recorded as the pending station for which data is to be distributed. The identifier of the station can be, for example, the station number, the location of the station, the name of the station, etc.

[0037] S104, regularly access the Redis cluster, and obtain the first vehicle operation data corresponding to the identifier of the pending station in the Redis cluster according to the identifier of the pending station; different stations' vehicle operation data is stored in the Redis cluster, and the vehicle operation data in the Redis cluster is stored in the Redis cluster after the PIS system reads the vehicle operation data from the ATS system.

[0038] In this step, generally, the train operation system uses four ATS servers to respectively monitor the vehicles running at each station in real time, and obtains the vehicle operation data of the vehicles running at each station. Each ATS server will obtain a set of vehicle operation data of the vehicles running at each station. In other words, here the four ATS systems are a redundant server architecture, and the four ATS servers will monitor the vehicles running at each station in real time, which can ensure the accuracy of the data distributed to the stations subsequently.

[0039] When the current PIS system reads data from four ATS systems, generally one PIS server is selected from each of the primary and backup centers of the PIS system to read the vehicle operation data in these four ATS systems respectively. In this way, reading the vehicle operation data in the four ATS systems by both the primary and backup centers will lead to the problems of redundant data reading and low data transmission efficiency. Based on this, as an optional embodiment, in this embodiment, the method for the PIS system to read vehicle operation data from the ATS system is designed to use the same number of PIS servers as the number of ATS servers in the ATS system, and read the vehicle operation data in the corresponding ATS servers in parallel one by one; wherein, each ATS server will generate a set of vehicle operation data. In other words, in this embodiment, the same number of PIS servers as the number of ATS servers in the ATS system can be selected from the PIS system, for example, both are four servers, and then the vehicle operation data in the four ATS servers are read simultaneously by the four PIS servers, that is, each PIS server reads the vehicle operation data in one ATS server. In other words, the PIS system here can read the vehicle operation data in the four ATS systems in parallel, and each PIS server will only read the data in one ATS system without repeating to read the data in other ATS systems. Therefore, redundant data reading can be avoided, and the data can be efficiently read through the parallel reading method, improving the data transmission efficiency.

[0040] After the four PIS servers in the PIS system respectively read the data, the vehicle operation data read by the four PIS servers can be stored in the Redis cluster. Among them, the Redis cluster is a distributed in-memory database. Due to the memory-based storage method of Redis, it can process data read and write operations at a speed of milliseconds or even microseconds, far exceeding traditional relational databases. Therefore, it is particularly suitable for handling frequent read operations in a high-concurrency environment and can significantly improve the response speed and overall performance of the system. In this embodiment, for the scenario of train operation that requires frequent writing and reading of data, the vehicle operation data read by the PIS system is stored in the Redis cluster, which can effectively reduce the latency of data transmission. Additionally, when the Redis cluster stores the vehicle operation data transmitted by the PIS system, as an optional embodiment, the vehicle operation data read by the PIS system each time includes the vehicle number and the arrival time of the vehicle at the corresponding station. When the Redis cluster stores the vehicle operation data read by the PIS system multiple times, it is sorted and stored in ascending order of the arrival time of the vehicle at the corresponding station. Specifically, the Redis cluster can store the vehicle operation data transmitted by each PIS server separately, and set corresponding station identifiers and PIS server identifiers for the vehicle operation data transmitted by each PIS system for differentiation. At the same time, the Redis cluster can perform cache management according to data timeliness. Specifically, for the vehicle operation data transmitted by each PIS system, the Redis cluster can parse the arrival time of each vehicle in each group of vehicle operation data from the vehicle operation data transmitted by each PIS server each time, and then store or cache the relevant vehicle operation data in ascending order of the arrival time of the vehicle, which can ensure that each station subsequently obtains the vehicles that are about to arrive or the last few vehicles that have arrived at the station, in line with the actual vehicle display situation at the station during the train operation process.

[0041] After storing multiple groups of vehicle operation data for each station in the Redis cluster as described above, the station server can periodically access the Redis cluster at regular intervals and match out the multiple groups of vehicle operation data corresponding to the pending station through the identifier of the pending station, which are collectively referred to as the first vehicle operation data. It can be understood that the first vehicle operation data obtained here generally includes four groups of vehicle operation data, which are the data monitored by the four ATS servers, and all the data obtained after being stored in the Redis cluster are the vehicle operation data of the vehicles that are about to arrive at the pending station.

[0042] S106, determine the target vehicle operation data according to the first vehicle operation data, and distribute the target vehicle operation data to the pending station.

[0043] In this step, after obtaining the first vehicle operation data, since there may be invalid data in the first vehicle operation data, it is necessary to screen out a set of valid vehicle operation data from the first vehicle operation data, denoted as the target vehicle operation data. After screening out a set of target vehicle operation data, the target vehicle operation data can be transmitted or distributed to the server of the to-be-determined station, and then transmitted to devices such as in-vehicle terminals or terminals in the station of the to-be-determined station through the server of the to-be-determined station for display.

[0044] In this embodiment, by obtaining the identifier of the to-be-determined station of the data to be distributed, accessing the Redis cluster regularly and obtaining the first vehicle operation data corresponding to the identifier of the to-be-determined station from the vehicle operation data of different stations stored in the Redis cluster according to the identifier of the to-be-determined station, and then determining the target vehicle operation data based on the first vehicle operation data and distributing the target vehicle operation data to the to-be-determined station; wherein, the vehicle operation data in the Redis cluster is stored in the Redis cluster after being read by the PIS system from the ATS system. In this method, since the station server can access the vehicle operation data read by the PIS system from the ATS system and stored in the Redis cluster regularly, and screen out the target vehicle operation data and distribute it to the corresponding station, the station server only needs to access this one database cluster to obtain the vehicle operation data of the required station and distribute it to the corresponding station after screening, without the need to interact with four ATS servers respectively to obtain and distribute the vehicle operation data of the station. Therefore, the efficiency of data acquisition and distribution is higher; at the same time, by centrally storing the vehicle operation data in the Redis cluster, it can also reduce the redundant transmission of data, save network resources and further improve the data transmission efficiency.

[0045] In one embodiment, the above first vehicle operation data includes multiple groups of second vehicle operation data, and each group of second vehicle operation data includes at least the vehicle number of a candidate vehicle and the arrival time of the candidate vehicle at the to-be-determined station. The following embodiments illustrate the process of screening out valid target vehicle operation data from multiple groups of second vehicle operation data of the first vehicle operation data.

[0046] Figure 2 is the second flow diagram of the vehicle operation data distribution method provided by the present invention. As Figure 2 shown, the "determining the target vehicle operation data based on the first vehicle operation data" in S106 above may include the following steps: S202, sort the arrival times of the candidate vehicles in each group of second vehicle operation data according to the same sorting rule to obtain the first fleet sorting result of the candidate vehicles in each group of second vehicle operation data; the number of candidate vehicles included in each group of second vehicle operation data is the same.

[0047] Among them, the first vehicle operation data generally includes four groups of second vehicle operation data, which are respectively obtained by four ATS servers through real-time monitoring of the operating vehicles at the to-be-determined station. Each group of second vehicle operation data may include the vehicle numbers of one or more candidate vehicles closest to the to-be-determined station and the arrival time of each candidate vehicle. The number of candidate vehicles included in each group of second vehicle operation data is generally the same. For example, there are 4 candidate vehicles, that is, the four vehicles closest to the to-be-determined station are obtained. In addition, the vehicle numbers of the above candidate vehicles may be vehicle identification numbers.

[0048] In this step, after the station server obtains multiple groups of second vehicle operation data of the first vehicle operation data from the Redis cluster, the arrival times of the candidate vehicles in each group of second vehicle operation data can be sorted in the same set order to obtain the arrival time sorting of the candidate vehicles corresponding to each group of second vehicle operation data, which are all recorded as the first fleet sorting results. For example, the first fleet sorting result of a certain group of second vehicle operation data is: vehicle No. 15, vehicle No. 13, vehicle No. 19, vehicle No. 29. Among them, from vehicle No. 15 to vehicle No. 29, the arrival times at the to-be-determined station decrease in turn.

[0049] Optionally, the above set order may be in ascending order of arrival time, so that it is convenient to obtain vehicles close to the station subsequently, which is in line with the actual display situation. The above arrival time refers to the time when the candidate vehicle is expected to arrive at the to-be-determined station, which may be an absolute time point (such as 9:10), or the duration for the candidate vehicle to arrive at the to-be-determined station (such as the candidate vehicle still has 2 minutes to arrive at the station).

[0050] S204. According to the first fleet sorting results of the candidate vehicles in each group of second vehicle operation data, determine the second fleet sorting results of all candidate vehicles in all second vehicle operation data; the vehicle numbers of the candidate vehicles in the above second fleet sorting results are all different.

[0051] In this step, after obtaining the first fleet sorting results of the candidate vehicles in each group of second vehicle operation data, the candidate vehicles with duplicates in each first fleet sorting result can be counted, and only one of the candidate vehicles with duplicates is retained. Finally, all candidate vehicles without duplicates in each first fleet sorting result are obtained. It can be understood that the vehicle numbers of the candidate vehicles without duplicates here are all different, and the vehicle numbers of the candidate vehicles with duplicates are the same.

[0052] Then, these candidate vehicles without duplicates are sorted according to their respective arrival times (such as in ascending order of arrival time) to obtain the second fleet sorting results.

[0053] S206. Determine the target vehicle operation data from the operation data of the second vehicle in each group according to the sorting result of the second vehicle fleet.

[0054] In this step, the sorting result of the second vehicle fleet generally includes multiple new candidate vehicles, and the number of these multiple new candidate vehicles can be greater than or equal to the number of candidate vehicles in the operation data of the second vehicle in each of the above groups.

[0055] After obtaining the sorting result of the second vehicle fleet, the effective target vehicle operation data can be screened from the operation data of the second vehicle in each group accordingly. For example, the operation data of the second vehicle in the group corresponding to the candidate vehicle with the shortest arrival time / minimum value in the sorting result of the second vehicle fleet can be used as the target vehicle operation data; or the candidate vehicles at both ends in the sorting result of the second vehicle fleet can be removed, and then the operation data of the second vehicle in the group corresponding to the candidate vehicle with the shortest arrival time / minimum value among the remaining candidate vehicles in the sorting result of the second vehicle fleet can be used as the target vehicle operation data; or the number of times the candidate vehicles appear in the operation data of the second vehicle in each group in the sorting result of the second vehicle fleet can be counted, the candidate vehicle with the most appearances can be selected, and the operation data of the second vehicle in the group with the shortest arrival time / minimum value of the candidate vehicle with the most appearances among the operation data of the second vehicle in each group can be found and used as the target vehicle operation data; or other methods can also be used to screen the target vehicle operation data from the operation data of the second vehicle in each group.

[0056] In this embodiment, the first vehicle fleet sorting is obtained by sorting the operation data of the second vehicle in each group according to the arrival time of the candidate vehicles, and the non-repeated candidate vehicles are obtained from it to determine the second vehicle fleet sorting. Then, the target vehicle operation data is screened according to the second vehicle fleet sorting. In this way, data is screened through a two-level sorting method, with a relatively fast speed and high accuracy. Therefore, the speed and accuracy of screening valid data can be improved, and further the accuracy and efficiency of data distribution can be improved.

[0057] The following embodiment illustrates the process of specifically screening the target vehicle operation data through the sorting result of the second vehicle fleet in the case where the number of candidate vehicles included in the sorting result of the second vehicle fleet is greater than the number of candidate vehicles included in the operation data of the second vehicle in each group.

[0058] Figure 3 It is the third flow diagram of the vehicle operation data distribution method provided by the present invention. As Figure 3 shown, the above S206 may include the following steps: S302. Determine the first candidate vehicle in the sorting result of the second vehicle fleet according to the sorting result of the second vehicle fleet and the candidate vehicle with the shortest arrival time in the operation data of the second vehicle in each group.

[0059] Among them, after obtaining the second fleet sorting result, the candidate vehicle with the shortest arrival time in the operation data of the second vehicle in each group can also be obtained, and then it can be compared whether the candidate vehicles with the shortest arrival time in the operation data of the second vehicle in each group are the same. If they are not the same, the sorting order among the candidate vehicles with the shortest arrival time in the operation data of the second vehicle in each group can be determined according to the second fleet sorting result, and then the candidate vehicle with the smallest / shortest arrival time can be found from them, which is recorded as the first candidate vehicle. For example, if the second fleet sorting result is sorted in ascending order of the arrival time of each candidate, the arrival time of the candidate ranked first is the smallest / shortest, and then the candidate ranked first can be recorded as the first candidate vehicle.

[0060] S304. Determine the operation data of the second vehicle corresponding to the first candidate vehicle from the operation data of the second vehicle in each group, and delete the operation data of the second vehicle corresponding to the first candidate vehicle from the first vehicle operation data.

[0061] In this step, after determining the first candidate vehicle, the operation data of the second vehicle where the first candidate vehicle is located can be found in the operation data of the second vehicle in each group, and the operation data of the second vehicle in the group corresponding to the first candidate vehicle is deleted. Here, the operation data of the second vehicle in the group corresponding to the first candidate vehicle can be one group or multiple groups.

[0062] S306. Determine the target vehicle operation data according to the remaining operation data of the second vehicle in the first vehicle operation data.

[0063] In this step, after deleting the operation data of the second vehicle in the group corresponding to the first candidate vehicle from the operation data of the second vehicle in each group, one group or multiple groups of operation data of the second vehicle will remain, and then the target vehicle operation data can be screened out from the remaining one group or multiple groups of operation data of the second vehicle.

[0064] Optionally, if only one group of operation data of the second vehicle remains in the first vehicle operation data, it is directly used as the target vehicle operation data.

[0065] Optionally, if there are multiple sets of second vehicle operation data remaining in the first vehicle operation data, the second candidate vehicle with the shortest arrival time in each remaining set of second vehicle operation data can be determined according to the first fleet sorting result of each remaining set of second vehicle operation data in the first vehicle operation data; the second candidate vehicle corresponding to the shortest arrival time is determined from the arrival times of each second candidate vehicle, and the second vehicle operation data corresponding to the second candidate vehicle with the shortest arrival time is determined as the target vehicle operation data. Specifically, candidate vehicles with the shortest arrival time in each set can be selected from the remaining multiple sets of second vehicle operation data, and all are recorded as second candidate vehicles. Here, the arrival times of the second candidate vehicles in each set of second vehicle operation data may be different. Then, the arrival times of the second candidate vehicles in each group can be sorted in reverse order, that is, sorted from small to large, and then the second candidate vehicle with the shortest arrival time is selected. The set of second vehicle operation data corresponding to the second candidate vehicle with the shortest arrival time is the accurate target vehicle operation data.

[0066] The following gives an example for detailed description. For example, the station server usually obtains 4 pieces of arrival data (i.e., second vehicle operation data) of vehicles arriving at or about to arrive at the pending station. The four pieces of second vehicle operation data are respectively recorded as D1, D2, D3, and D4. Each piece of data includes four vehicles, which are divided into C1, C2, C3, and C4 in the order from near to far from the pending station (i.e., the arrival time from small to large). The second vehicle operation data includes the time when the vehicle arrives at the pending station. Suppose the first fleet sorting results of the four pieces of second vehicle operation data are listed as follows: The vehicle sorting of D1 data is: vehicle No. 12, vehicle No. 15, vehicle No. 13, vehicle No. 29; The vehicle sorting of D2 data is: vehicle No. 15, vehicle No. 13, vehicle No. 19, vehicle No. 29; The vehicle sorting of D3 data is: vehicle No. 15, vehicle No. 13, vehicle No. 19, vehicle No. 29; The vehicle sorting of D4 data is: vehicle No. 15, vehicle No. 13, vehicle No. 19, vehicle No. 29.

[0067] Through the first fleet sorting results of the above four pieces of data, the second fleet sorting result can be obtained as: vehicle No. 12, vehicle No. 15, vehicle No. 13, vehicle No. 19, vehicle No. 29. The first vehicle in each piece of data is: vehicle No. 12 (D1), vehicle No. 15 (D2, D3, D4).

[0068] After that, it can be determined that the arrival time of vehicle No. 12 is the shortest according to the sorting result of the second vehicle fleet. It may be a vehicle that has already arrived at or passed the station, so the D1 data corresponding to vehicle No. 12 can be deleted. Then, according to the time of vehicle No. 15 from the undetermined station in the D2, D3, and D4 data in reverse order (i.e., from near to far), the data with the shortest time is the correct data.

[0069] In this embodiment, the incorrect vehicle operation data is deleted through the sorting result of the second vehicle fleet and the candidate vehicle with the shortest arrival time in each group of second vehicle operation data, which can narrow the range of determining the effective vehicle operation data and improve the accuracy of the finally determined effective vehicle operation data. In addition, among the remaining vehicle operation data after deleting the incorrect vehicle operation data, the vehicle operation data with the shortest arrival time of the first vehicle is selected as the final effective data, which can simplify the process of judging data correctness and improve the real-time performance and accuracy of data synchronization.

[0070] As can be seen from the description of the above embodiments, in the technical solution of the present invention, four PIS servers simultaneously read the data of four ATS servers in the main and standby centers of ATS and store these real-time data in a distributed memory database Redis cluster (which can also be called a Redis service cluster). Each station server no longer directly receives the real-time data stream of ATS, but regularly accesses the Redis cluster to obtain the required data. And the Redis cluster can perform cache management according to the data timeliness to ensure that each station server obtains the car numbers and their expected arrival time data of the nearest 4 trains (the nearest vehicle, the second nearest vehicle, the third nearest vehicle, and the fourth nearest vehicle) that are about to arrive. At the same time, each station server can first delete the incorrect data in each group of data and then screen out the data with the shortest arrival time to quickly verify and analyze the obtained data, simplify the process of judging data correctness, and improve the real-time performance and accuracy of data synchronization. In short, the embodiments of the present invention have the following technical effects: 1. Through the centralized caching to the Redis cluster and the distribution strategy, the redundant transmission of data is reduced, network resources are saved, and the transmission efficiency is improved. 2. Utilize the high-performance characteristics of the Redis cluster to achieve efficient management and real-time update of data. 3. Simplify the data judgment logic of the station server, enhance the data synchronization processing ability, and reduce the risk of system misjudgment.

[0071] Next, the vehicle operation data distribution device provided by the present invention will be described. The vehicle operation data distribution device described below can be correspondingly referred to the vehicle operation data distribution method described above.

[0072] Figure 4 It is a schematic structural diagram of the vehicle operation data distribution device provided by the present invention. Refer to Figure 4 As shown, the device may include: A station identification acquisition module 410, configured to acquire the identification of a to-be-distributed station for the to-be-distributed data; A vehicle operation data acquisition module 420, configured to periodically access a Redis cluster, and acquire first vehicle operation data corresponding to the identification of the to-be-distributed station in the Redis cluster according to the identification of the to-be-distributed station; vehicle operation data of different stations are stored in the Redis cluster, and the vehicle operation data in the Redis cluster is stored in the Redis cluster after the PIS system reads the vehicle operation data from the ATS system; A data distribution module 430, configured to determine target vehicle operation data according to the first vehicle operation data, and distribute the target vehicle operation data to the to-be-distributed station.

[0073] Optionally, the manner in which the PIS system reads vehicle operation data from the ATS system is to use PIS servers with the same number as the number of ATS servers in the ATS system to read the vehicle operation data in the corresponding ATS servers in parallel one by one; wherein, each ATS server generates a set of vehicle operation data.

[0074] Optionally, the vehicle operation data read by the PIS system each time includes the vehicle number of the vehicle and the arrival time of the vehicle at the corresponding station. When the Redis cluster stores the vehicle operation data read by the PIS system multiple times, it stores the data in ascending order of the arrival time of the vehicle at the corresponding station.

[0075] In some embodiments, the first vehicle operation data includes multiple sets of second vehicle operation data, and each set of second vehicle operation data includes at least the vehicle number of a candidate vehicle and the arrival time of the candidate vehicle at the to-be-distributed station. The data distribution module 430 may include: A first sorting unit, configured to sort the arrival times of the candidate vehicles in each set of second vehicle operation data according to the same sorting rule to obtain a first fleet sorting result of the candidate vehicles in each set of second vehicle operation data; the number of candidate vehicles included in each set of second vehicle operation data is the same; A second sorting unit, configured to determine a second fleet sorting result of all candidate vehicles in all second vehicle operation data according to the first fleet sorting result of the candidate vehicles in each set of second vehicle operation data; the vehicle numbers of the candidate vehicles in the second fleet sorting result are all different; A determination unit, configured to determine target vehicle operation data from each set of second vehicle operation data according to the second fleet sorting result.

[0076] Optionally, if the number of candidate vehicles included in the second fleet sorting result is greater than the number of candidate vehicles included in each set of second vehicle operation data, the determining unit is specifically configured to determine the first candidate vehicle in the second fleet sorting result according to the second fleet sorting result and the candidate vehicle with the shortest arrival time in each set of second vehicle operation data; determine the second vehicle operation data corresponding to the first candidate vehicle from each set of second vehicle operation data, and delete the second vehicle operation data corresponding to the first candidate vehicle from the first vehicle operation data; determine the target vehicle operation data according to the remaining second vehicle operation data in the first vehicle operation data.

[0077] Optionally, if the remaining second vehicle operation data in the first vehicle operation data is multiple sets of second vehicle operation data, the determining unit is specifically configured to determine the second candidate vehicle with the shortest arrival time in each remaining set of second vehicle operation data according to the first fleet sorting result of each remaining set of second vehicle operation data in the first vehicle operation data; determine the second candidate vehicle corresponding to the arrival time with the shortest duration from the arrival times of each second candidate vehicle, and determine the second vehicle operation data corresponding to the second candidate vehicle with the shortest arrival time of the shortest duration as the target vehicle operation data.

[0078] It should be noted here that the above device provided by the embodiment of the present invention can implement all the method steps implemented by the above method embodiment, and can achieve the same technical effect. The same parts and beneficial effects as those in the method embodiment will not be specifically described in this embodiment.

[0079] Figure 5 An example of the entity structure diagram of a station server is shown in Figure 5 As shown, the station server may include: a processor 510, a communication interface 520, a memory 530, and a communication bus 540. Among them, the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540. The processor 510 can call the logical instructions in the memory 530 to execute the vehicle operation data distribution method, and the method includes: obtaining the identifier of the pending station of the data to be distributed; accessing the Redis cluster regularly, and obtaining the first vehicle operation data corresponding to the identifier of the pending station in the Redis cluster according to the identifier of the pending station; different stations' vehicle operation data is stored in the above Redis cluster, and the vehicle operation data in the Redis cluster is stored in the Redis cluster after the PIS system reads the vehicle operation data from the ATS system; determining the target vehicle operation data according to the first vehicle operation data, and distributing the target vehicle operation data to the pending station.

[0080] In addition, when the logical instructions in the above-mentioned memory 530 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.

[0081] On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the vehicle operation data distribution method provided by the above-mentioned various methods. The method includes: obtaining the identifier of the pending station for the data to be distributed; periodically accessing the Redis cluster, and according to the identifier of the pending station, obtaining the first vehicle operation data corresponding to the identifier of the pending station in the Redis cluster; different vehicle operation data of different stations are stored in the Redis cluster, and the vehicle operation data in the Redis cluster is stored in the Redis cluster after the PIS system reads the vehicle operation data from the ATS system; determining the target vehicle operation data according to the first vehicle operation data, and distributing the target vehicle operation data to the pending station.

[0082] In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is implemented to execute the vehicle operation data distribution method provided by the above-mentioned various methods. The method includes: obtaining the identifier of the pending station for the data to be distributed; periodically accessing the Redis cluster, and according to the identifier of the pending station, obtaining the first vehicle operation data corresponding to the identifier of the pending station in the Redis cluster; different vehicle operation data of different stations are stored in the Redis cluster, and the vehicle operation data in the Redis cluster is stored in the Redis cluster after the PIS system reads the vehicle operation data from the ATS system; determining the target vehicle operation data according to the first vehicle operation data, and distributing the target vehicle operation data to the pending station.

[0083] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative work.

[0084] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0085] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features. And these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for distributing vehicle operation data, characterized in that, Including: Obtaining the identifier of the pending station for the data to be distributed; Regularly accessing the Redis cluster of the distributed memory database, and obtaining the first vehicle operation data corresponding to the identifier of the pending station in the Redis cluster according to the identifier of the pending station; The vehicle operation data of different stations are stored in the Redis cluster, and the vehicle operation data in the Redis cluster are stored in the Redis cluster after the passenger information system (PIS) reads the vehicle operation data from the automatic train supervision system (ATS); Determining the target vehicle operation data according to the first vehicle operation data, and distributing the target vehicle operation data to the pending station.

2. The vehicle operation data distribution method according to claim 1, wherein The first vehicle operation data includes multiple groups of second vehicle operation data, and each group of the second vehicle operation data includes at least the vehicle number of a candidate vehicle and the arrival time of the candidate vehicle at the pending station. Determining the target vehicle operation data according to the first vehicle operation data includes: Sorting the arrival times of the candidate vehicles in each group of the second vehicle operation data according to the same sorting rule to obtain the first fleet sorting result of the candidate vehicles in each group of the second vehicle operation data; the number of candidate vehicles included in each group of the second vehicle operation data is the same; Determining the second fleet sorting result of all candidate vehicles in all the second vehicle operation data according to the first fleet sorting result of the candidate vehicles in each group of the second vehicle operation data; the vehicle numbers of the candidate vehicles in the second fleet sorting result are all different; Determining the target vehicle operation data from each group of the second vehicle operation data according to the second fleet sorting result.

3. The vehicle operation data distribution method according to claim 2, wherein If the number of candidate vehicles included in the second fleet sorting result is greater than the number of candidate vehicles included in each group of the second vehicle operation data, determining the target vehicle operation data from each group of the second vehicle operation data according to the second fleet sorting result includes: Determining the first candidate vehicle in the second fleet sorting result according to the second fleet sorting result and the candidate vehicle with the shortest arrival time in each group of the second vehicle operation data; Determining the second vehicle operation data corresponding to the first candidate vehicle from each group of the second vehicle operation data, and deleting the second vehicle operation data corresponding to the first candidate vehicle from the first vehicle operation data; Determining the target vehicle operation data according to the remaining second vehicle operation data in the first vehicle operation data.

4. The vehicle operation data distribution method according to claim 3, wherein, If the remaining second vehicle operation data in the first vehicle operation data is multiple groups of second vehicle operation data, determining the target vehicle operation data according to the remaining second vehicle operation data in the first vehicle operation data includes: Determining the second candidate vehicle with the shortest arrival time in each remaining group of the second vehicle operation data according to the first fleet sorting result of each remaining group of the second vehicle operation data in the first vehicle operation data; Determine the second candidate vehicle corresponding to the arrival time with the shortest duration from the arrival times of each of the second candidate vehicles, and determine the second vehicle operation data corresponding to the second candidate vehicle with the shortest arrival time as the target vehicle operation data.

5. The vehicle operation data distribution method according to any one of claims 1 to 4, characterized in that The way the PIS system reads the vehicle operation data from the ATS system is to use the same number of PIS servers as the number of ATS servers in the ATS system, and read the vehicle operation data in the corresponding ATS servers in parallel one by one; wherein, each of the ATS servers generates a set of vehicle operation data.

6. The vehicle operation data distribution method according to any one of claims 1 to 4, characterized in that, The vehicle operation data read by the PIS system each time includes the vehicle number of the vehicle and the arrival time of the vehicle at the corresponding station. When the Redis cluster stores the vehicle operation data read by the PIS system multiple times, it sorts and stores the data in ascending order according to the arrival time of the vehicle at the corresponding station.

7. A vehicle operation data distribution device, characterized in that, Including: A station identification acquisition module, configured to acquire the identification of the to-be-distributed station of the to-be-distributed data; A vehicle operation data acquisition module, configured to regularly access the distributed memory database Redis cluster, and acquire the first vehicle operation data corresponding to the identification of the to-be-distributed station in the Redis cluster according to the identification of the to-be-distributed station; The Redis cluster stores vehicle operation data of different stations, and the vehicle operation data in the Redis cluster is stored in the Redis cluster after the passenger information system PIS system reads the vehicle operation data from the train automatic monitoring system ATS system; A data distribution module, configured to determine the target vehicle operation data according to the first vehicle operation data, and distribute the target vehicle operation data to the to-be-distributed station.

8. A station server, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the vehicle operation data distribution method according to any one of claims 1 to 6.

9. A train operation system, characterized in that, Including: The train automatic monitoring system ATS system includes multiple ATS servers, and the multiple ATS servers are all used to perform real-time monitoring on the rail operation vehicles to obtain the vehicle operation data of each station; The passenger information system PIS system includes multiple PIS servers, and is used to control the same number of multiple PIS servers as the number of ATS servers, read the vehicle operation data in the corresponding ATS servers in parallel one by one, and store it in the distributed memory database Redis cluster; The Redis cluster is used to store the vehicle operation data read by each PIS server in the PIS system; The Redis cluster stores vehicle operation data of different stations; The station server is used to acquire the identification of the to-be-distributed station of the to-be-distributed data; And regularly access the Redis cluster, and acquire the first vehicle operation data corresponding to the identification of the to-be-distributed station in the Redis cluster according to the identification of the to-be-distributed station; And determine the target vehicle operation data according to the first vehicle operation data, and distribute the target vehicle operation data to the to-be-distributed station.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the vehicle operation data distribution method according to any one of claims 1 to 6.