US 12,259,797 B2
Data synchronization method for host machine and backup machine of station application server
Yangjie Zhao, Shanghai (CN); Zhenjie Chen, Shanghai (CN); Yahui Cao, Shanghai (CN); Yingtao Lu, Shanghai (CN); and Yafei Wang, Shanghai (CN)
Assigned to CASCO SIGNAL CO., LTD., Shanghai (CN)
Appl. No. 17/792,511
Filed by CASCO SIGNAL CO., LTD., Shanghai (CN)
PCT Filed Sep. 24, 2021, PCT No. PCT/CN2021/120060
§ 371(c)(1), (2) Date Jul. 13, 2022,
PCT Pub. No. WO2022/241992, PCT Pub. Date Nov. 24, 2022.
Claims priority of application No. 202110557449.8 (CN), filed on May 21, 2021.
Prior Publication US 2024/0184675 A1, Jun. 6, 2024
Int. Cl. G06F 11/16 (2006.01); G06F 11/14 (2006.01)
CPC G06F 11/1658 (2013.01) [G06F 11/1451 (2013.01); G06F 11/1464 (2013.01)] 7 Claims
OG exemplary drawing
 
1. A data synchronization method for a host machine and a backup machine of a centralized traffic control system, the centralized traffic control system comprising a first station application server and a second station application server, wherein the data synchronization method comprises:
the first station application server serves as the host machine while the second station application server serves as the backup machine when establishing a communication between the host machine and the backup machine;
receiving, by the backup machine, initial data sent by the host machine;
storing, by the backup machine, the initial data sent by the host machine in a local file of the backup machine to realize data synchronization between the host machine and the backup machine in an initial state after establishing a communication between the host machine and the backup machine;
receiving, by the host machine, message data sent by a station terminal device in real time and storing the message data in a local file of the host machine, then sending the message data to the backup machine by way of polling;
receiving, by the backup machine, the message data and storing the message data in the local file of the backup machine to realize data synchronization between the host machine and the backup machine;
sending heartbeat data to each other in real time in a data synchronization process, by the host machine and the backup machine, to verify a connecting state of the host machine and the backup machine so as to guarantee normal communication and data transmission between the host machine and the backup machine, the heartbeat data comprising identifiers of the host machine and the backup machine of the station application servers and states of the station application servers;
detecting, by the host machine, that two host machines are present in a data synchronization process of the host machine and the backup machine, when two host machines are present, connecting the backup machine to the host machines again after being rebooted for data synchronization between the host machines and the backup machine to prevent the first station application server and the second station application server receiving the message data of the station terminal device simultaneously.