A method for enhancing the safety and reliability of a LKJ host system clock
By combining multiple clock sources for time synchronization and employing a "two-by-two" security architecture, the problem of clock anomalies in the LKJ host system was resolved, improving clock security and reliability and avoiding security risks.
Patent Information
- Application Number
- CN202410199498.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-22
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-02-22
AI Technical Summary
The existing LKJ host system clock, due to its single external time synchronization device and single RTC chip design, is prone to clock abnormalities caused by unstable power supply, inaccurate crystal oscillator frequency, memory unit failure, or processor read errors, which may pose safety hazards.
Multiple clock sources are used for joint time synchronization, including dedicated time synchronization equipment, satellite information receiving equipment and wireless switching equipment. Combined with a "two-by-two" security architecture, the clock source is ensured to be safe and reliable through interaction between two RTC chips and the CPU.
This improves the security and reliability of the LKJ host system clock, avoids temporary data control timing errors caused by single clock source failure or RTC chip malfunction, and ensures the security and reliability of the LKJ host system clock processing.
Smart Images

Figure CN118046941B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of railway signaling, and specifically to a method for enhancing the clock security and reliability of the LKJ host system, applicable to the "two-by-two" security architecture of the LKJ host. Background Technology
[0002] Before a locomotive leaves the depot, the train operation monitoring device (LKJ host) needs to be configured with an accurate system clock. An incorrect system clock will cause errors in the timing of LKJ temporary data control, creating significant safety hazards. LKJ temporary data includes: temporary speed limit data, data on switching from basic block signaling to telephone block signaling, green permit data, specific guidance data, and flood prevention warnings. These temporary data determine the control methods and warning messages with prescribed start and end times; the accuracy of the LKJ host system clock determines the correctness of the temporary data control.
[0003] In addition, the LKJ main unit records the train's operation process through the system clock, and the LKJ main unit's onboard equipment also records various information based on this clock. This clock is of great significance for daily maintenance, record analysis, and especially for fault analysis of onboard equipment.
[0004] However, existing LKJ host system clocks typically use a single external time synchronization device for time synchronization, and the LKJ host internal clock uses a single real-time clock (RTC) chip, which presents the following two problems:
[0005] 1. After the LKJ host is calibrated by a single external time synchronization device, if there is no regular time correction during train operation, it cannot be guaranteed that the clock will always be correct.
[0006] 2. The LKJ host uses a single RTC chip for internal clock timing. If this chip malfunctions, the system will not be able to identify the fault, which will lead to errors in the timing of temporary data control and cause huge safety hazards.
[0007] The following are some modes of abnormal operation of the RTC chip:
[0008] (1) Unstable power supply of real-time clock chip: When powered by battery, if the battery discharges for a long time and the voltage is too low, the crystal oscillator may not be able to start oscillating, thus causing the output time to lag; if the power is disconnected for more than a certain period of time, the internal register of the real-time clock chip will be reset back to the default time.
[0009] (2) Inaccurate real-time clock chip crystal frequency: Because crystals are greatly affected by temperature, in extreme environments, the physical properties of the crystal itself inside the crystal change, which can lead to frequency deviation. Therefore, when the ambient temperature is at the crystal's limit, time lag or lead errors exceeding the allowable range can easily occur.
[0010] (3) Failure of the internal storage unit of the real-time clock chip: The memory inside the chip that stores time information may fail randomly, resulting in an incorrect output time.
[0011] (4) Processor read time error: When the processor reads the time of the real-time clock chip through the communication interface, it may be subject to random interference, resulting in a read time error. Summary of the Invention
[0012] To address the above issues, this invention proposes a method for enhancing the security and reliability of the LKJ host system clock based on the LKJ host's "two-by-two" security architecture.
[0013] This invention provides a method to enhance the clock security and reliability of an LKJ host system. The method is characterized by providing multiple clock sources to the LKJ host for comparative calibration through a joint time synchronization system, ensuring the clock source security and reliability. Furthermore, the processing of LKJ host RTC information is incorporated into a "two-out-of-two" approach, guaranteeing the security and reliability of the clock processing process.
[0014] The clock sources provided by the joint time synchronization system include: clock sources provided by dedicated time synchronization equipment, clock sources provided by satellite information receiving equipment, and clock sources provided by wireless transposition equipment;
[0015] When a single clock source fails, the other two clock sources are switched for comparison to synchronize the LKJ system clock. When two or three clock sources fail, or when the LKJ host cannot determine the clock source failure, the LKJ host actively enters a fault state.
[0016] Each LKJ host is designed with two RTC chips, meaning that each of the two CPUs in each series is connected to one RTC chip; the two CPUs read their respective RTC information and interact with each other.
[0017] If the clock deviation of the interaction exceeds a certain range, the clock of this system is considered abnormal, and another system is switched to be the host; if the clock deviation of the interaction between the two CPUs also exceeds a certain range after switching to another system as the host, the LKJ host will actively enter a fault state.
[0018] Advantages of this invention:
[0019] By using a joint time synchronization system to provide multiple clock sources for comparison and calibration of the LKJ host, the security and reliability of the time synchronization clock source are improved.
[0020] By incorporating the processing of LKJ host RTC information into a "two-out-of-two" approach, the security and reliability of the clock processing are improved. This effectively avoids security risks caused by temporary data control timing errors due to malfunctions of a single RTC chip. Attached Figure Description
[0021] Figure 1 A schematic diagram of the existing LKJ host time synchronization system;
[0022] Figure 2 This is a schematic diagram of the LKJ host joint time synchronization system of the present invention;
[0023] Figure 3 This is a schematic diagram of the LKJ host RTC information processing. Detailed Implementation
[0024] The present invention will now be described in detail with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the invention in any way. It should be noted that those skilled in the art can make various modifications and improvements without departing from the inventive concept, and these modifications and improvements all fall within the scope of protection of the present invention.
[0025] This invention provides the LKJ host with multiple clock sources for comparison and calibration through a joint time synchronization system, ensuring the safety and reliability of the clock sources. Based on the LKJ host's "two-out-of-two" security architecture, the processing of LKJ host RTC information is included in the "two-out-of-two" scope, ensuring the safety and reliability of the clock processing process.
[0026] The clock sources provided by the joint time synchronization system include: clock sources provided by dedicated time synchronization equipment, clock sources provided by satellite information receiving equipment, and clock sources provided by wireless transcoding equipment.
[0027] Among them, the clock source provided by the dedicated time synchronization equipment is the clock source commonly used in locomotives. Before the locomotive leaves the depot or before the spare parts are put into use, the electrical personnel use the dedicated time synchronization equipment to manually synchronize the LKJ host, and the LKJ host obtains the manually synchronized clock source.
[0028] Some locomotives already have a clock source provided by the satellite information receiving equipment. When the locomotive is stopped or running, the satellite information receiving equipment collects satellite time through the GPS / BDS antenna and sends it to the LKJ host. The LKJ host then obtains the satellite positioning clock source.
[0029] The clock source provided by the wireless switching device is a new addition to this invention. Previously, the vehicle-mounted wireless switching device communicated with the ground server system via a public mobile communication network to switch LKJ host data. This invention utilizes the network channel of the LKJ host's wireless switching to achieve the interaction of clock information between the vehicle and ground systems. The wireless switching device sends the network time obtained from the ground server system to the LKJ host, and the LKJ host obtains the network clock source.
[0030] Although the existing LKJ main unit time synchronization system has a manual time synchronization clock source and some locomotives have a satellite positioning clock source, the two clock sources work independently without comparison and processing. If either clock source fails, it may cause the LKJ main unit system clock to be abnormal, creating a safety hazard.
[0031] This invention synchronizes the LKJ host clock by comparing it with multiple clock sources, including a manual clock source, a satellite positioning clock source, and a network clock source. When a single clock source fails, the other two clock sources are switched for comparison to synchronize the LKJ system clock, thus ensuring the reliability of the LKJ host system clock. When two or three clock sources fail, or when the LKJ host cannot determine the clock source failure, the LKJ host proactively enters a fault state (guided to the safety side), thereby ensuring the safety of the LKJ host system clock.
[0032] The LKJ host uses a "two-out-of-two" security architecture. "Two-out-of-two" refers to two systems with hot standby redundancy, and "two-out-of-two" means that each system has two CPUs for data interaction.
[0033] The existing LKJ host is designed with only one RTC chip per series. If the RTC chip used is abnormal, the system will not be able to identify the fault, which will lead to the timing of temporary data control errors and cause huge security risks.
[0034] The LKJ host of this invention is designed with two RTC chips per series, meaning each of the two CPUs in each series is connected to one RTC chip. The two CPUs read their respective RTC information and interact with each other. If the clock deviation during interaction exceeds a certain range, the clock of this series is considered abnormal, and the host switches to the other series, thus ensuring the reliability of the LKJ host system clock processing. If, after switching to the other series as the host, the clock deviation between the two CPUs also exceeds a certain range, the LKJ host actively enters a fault state (guided to the safety side), thus ensuring the safety of the LKJ host system clock.
[0035] This invention provides the LKJ host with multiple clock sources for comparative calibration through a joint time synchronization system. Based on the LKJ host's "two-out-of-two" security architecture, the processing of RTC information is included within the "two-out-of-two" scope.
[0036] Currently, there are two main types of clock sources for LKJ host time synchronization: clock sources provided by dedicated time synchronization equipment and clock sources provided by satellite information receiving equipment.
[0037] See Figure 1 The clock source provided by the dedicated time synchronization equipment is the clock source commonly used in locomotives. The railway bureau is equipped with two types:
[0038] Dedicated time synchronization device 1, with a built-in GPS / BDS receiving antenna, can directly acquire satellite time in open outdoor locations and then synchronize the time of the LKJ main unit. Dedicated time synchronization device 2, after receiving time from a master clock, synchronizes the time of the LKJ main unit; the master clock acquires satellite time through a GPS / BDS receiving antenna. Both dedicated time synchronization devices are collectively referred to as dedicated time synchronization devices in the description of this invention.
[0039] Before a locomotive leaves the depot or before spare parts are put into use, the electrical personnel shall, in accordance with the time synchronization operation regulations, use a dedicated time synchronization device to synchronize the LKJ main system clock of the locomotives in the depot and perform manual verification. The LKJ main system clock after this time synchronization is completed shall be the clock source for manual time synchronization.
[0040] The clock source provided by the satellite information receiving equipment is already available on some locomotives. When the locomotive is stopped or running, the on-board satellite information receiving equipment collects satellite time through the GPS / BDS antenna and sends it to the LKJ host.
[0041] The satellite information receiving device communicates with the LKJ host via cable. It acquires satellite positioning and clock information through a GPS / BDS receiving antenna installed on the top of the locomotive. The satellite information receiving device periodically sends the satellite positioning and clock information acquired from the GPS / BDS receiving antenna to the LKJ host. The clock sent by this satellite information receiving device to the LKJ host is the satellite positioning clock source.
[0042] The existing LKJ host system clock mainly uses a manually calibrated clock source, with the satellite positioning clock source only as a backup. The two clock sources work independently and their clock information is not compared. If either clock source fails, it may cause the LKJ host system clock to malfunction, creating a safety hazard.
[0043] In addition to the clock source provided by the dedicated time synchronization equipment and the clock source provided by the satellite information receiving equipment, the combined time synchronization system of the present invention also provides a clock source provided by the wireless changing equipment.
[0044] See Figure 2 The clock source provided by the wireless switching device is a new clock source added to this invention. Originally, the vehicle-mounted wireless switching device communicated with the ground server system through the public mobile communication network to realize the switching of LKJ host data. This invention utilizes the network channel of the LKJ host wireless switching to realize the interaction of clock information between the vehicle and the ground system. The wireless switching device sends the network time obtained from the ground server system to the LKJ host, and the LKJ host obtains the network clock source.
[0045] The wireless transceiver communicates with the LKJ host via cable and can communicate with the ground server through a public mobile communication network. Clock information is added to the vehicle-to-ground communication protocol for the calibration and monitoring of the LKJ host system clock. In this case, the clock sent by the wireless transceiver to the LKJ host is the network clock source.
[0046] With the gradual improvement of the LKJ wireless data transcoding system, a secure network channel has been added to LKJ. The wireless transcoding vehicle-to-ground communication is based on public mobile communication networks. To ensure data security, the system uses national cryptographic algorithms to establish an IPSec VPN vehicle-to-ground channel and encrypt and protect data. Through the national cryptographic asymmetric algorithm SM2 and hash algorithm SM3, based on digital certificate authentication, two-way identity authentication is performed between the vehicle and the ground, preventing network attackers from impersonating the vehicle or ground to launch network attacks during the transcoding process, ensuring non-repudiation of vehicle and ground identities. The national cryptographic symmetric algorithm SM4 is used to encrypt the transcoding data. Based on the concept of block cipher, symmetric encryption is applied to the vehicle-to-ground interaction data, with a key length of 128 bits, providing high security.
[0047] Therefore, higher-security data communication can be achieved on the wireless changing channel, enabling network time synchronization. The vehicle-to-ground communication protocol needs to include clock information from both sides, with periodic mutual transmission. In the wireless changing ground system, a trusted clock service is added, along with time synchronization and clock monitoring interfaces. Then, based on manual operation instructions from the ground system client, the LKJ host is notified to automatically synchronize the time, and the ground system can immediately check the synchronization results.
[0048] When the wireless changing device communicates clock information data with the ground server through the public mobile communication network, an encryption algorithm is added to fully ensure that the network clock source sent by the wireless changing device to the LKJ host is secure and reliable.
[0049] To ensure the security and availability of the clock source provided by the satellite information receiving equipment, this invention adds optional GPS and BDS joint positioning modes and BDS single-system positioning modes to the existing GPS and BDS joint positioning modes. Furthermore, to ensure the security and reliability of the timing function, the determination of satellite clock availability has been optimized.
[0050] To improve calibration success rates, existing satellite information receiving equipment is generally configured with a combined GPS and BDS positioning mode. However, considering the current international situation and to enhance system autonomy, controllability, and security, this invention adds optional GPS and BDS combined positioning mode and BDS single-system mode. As of January 2022, there were 45 BeiDou-2 and BeiDou-3 satellites in orbit providing service. Through the coordinated service of the BeiDou-2 and BeiDou-3 constellations, highly reliable time calibration functions can be provided.
[0051] In addition, to ensure the safety and reliability of the time synchronization function, the determination of satellite clock availability can be optimized in the following three aspects:
[0052] (1) The positioning status identifier output by the GNSS module GGA command is valid;
[0053] (2) The number of satellites involved in the positioning is greater than or equal to 8;
[0054] (3) The duration of the continuous detection system's time error with the satellite has been increased from 5s to 10s, i.e., 10 consecutive seconds.
[0055] The satellite information receiving device of this invention ensures the security and reliability of the acquired satellite time by selectively configuring either a GPS / BDS joint positioning mode or a BDS single system mode. By optimizing the determination of satellite clock availability, the clock source sent by the satellite information receiving device to the LKJ host is guaranteed to be secure and reliable.
[0056] Although the existing LKJ main unit time synchronization system has a manual time synchronization clock source and some locomotives have a satellite positioning clock source, the two clock sources work independently without comparison and processing. If either clock source fails, it may cause the LKJ main unit system clock to be abnormal, creating a safety hazard.
[0057] This invention calibrates the LKJ host by comparing multiple clock sources, including manual clock source, satellite positioning clock source, and network clock source.
[0058] See Figure 2 Before a locomotive leaves the depot or before spare parts are put into use, the LKJ main unit uses a dedicated time synchronization device to obtain a manually synchronized clock source. During locomotive parking or operation, a satellite positioning clock source is obtained from a GPS / BDS antenna through a satellite information receiving device, and a network clock source is obtained from a ground server system through a wireless switching device.
[0059] The CPU module of the LKJ host collects and compares clock information from three clock sources respectively:
[0060] The manual time synchronization clock source is compared with the satellite positioning clock source and the network clock source. If the deviation does not exceed the specified range (e.g., 5 seconds), the LKJ host keeps the manual time synchronization clock unchanged.
[0061] The manual time synchronization clock source is compared with the satellite positioning clock source and the network clock source respectively. If the deviation from only one of them exceeds the specified range (e.g., 5 seconds), the LKJ host keeps the manual time synchronization clock unchanged.
[0062] The manual time synchronization clock source is compared with both the satellite positioning clock source and the network clock source. If the deviation from both clocks exceeds the specified range (e.g., 5 seconds), the LKJ host is compared with the satellite positioning clock source and the network clock source. If the deviation does not exceed the specified range (e.g., 5 seconds), the LKJ host synchronizes its time using the average of the satellite positioning clock source and the network clock source. That is, the CPU module of the LKJ host sends the average of the satellite positioning clock source and the network clock source to the RTC module to update the time of the RTC module. If the deviation between the satellite positioning clock source and the network clock source also exceeds the specified range (e.g., 5 seconds), the LKJ host actively enters a fault state (guided to the safety side). That is, the CPU module, according to its own software logic, puts the LKJ host into a degraded mode, disallowing operation and benchmarking.
[0063] This invention switches to two other clock sources for comparison to synchronize the LKJ system clock when a single clock source fails, thereby ensuring the reliability of the LKJ host system clock. When two or three clock sources fail, or when the LKJ host cannot determine the clock source failure, the LKJ host actively enters a fault state (guided to the safety side), thereby ensuring the safety of the LKJ host system clock.
[0064] The LKJ host uses a "two-out-of-two" security architecture. "Two-out-of-two" refers to two systems with hot standby redundancy, and "two-out-of-two" means that each system has two CPUs for data interaction.
[0065] The existing LKJ host is designed with only one RTC chip per series. If the RTC chip used is abnormal, the system will not be able to identify the fault, which will lead to the timing of temporary data control errors and cause huge security risks.
[0066] The LKJ host of this invention is designed with two RTC chips in each series, that is, each of the two CPUs in each series is connected to an RTC chip.
[0067] See Figure 3 The LKJ mainframe is divided into two series, A and B. In series A, CPU modules A1 and A2 are connected to RTC modules A1 and A2 respectively via communication interfaces, and power supply modules A1 and A2 provide power to RTC modules A1 and A2 respectively. In series B, CPU modules B1 and B2 are connected to RTC modules B1 and B2 respectively via communication interfaces, and power supply modules B1 and B2 provide power to RTC modules B1 and B2 respectively.
[0068] CPU modules A1 and A2 of series A respectively collect clock information from RTC modules A1 and A2 and perform dual-CPU synchronous interaction. CPU modules B1 and B2 of series B respectively collect clock information from RTC modules B1 and B2 and perform dual-CPU synchronous interaction. The A and B series of the LKJ host achieve clock information exchange through dual-system synchronization.
[0069] The CPU modules (CPU modules A1, A2, B2, B2) are processor modules. After obtaining the clock through a dedicated timer or other devices, they analyze and process the clock and then send it to the RTC module for timing.
[0070] The RTC modules (RTC modules A1, A2, B2, B2) are clock timing modules. To prevent inaccurate crystal oscillator frequencies in the RTC modules, built-in crystal oscillators are used. To reduce the influence of the external environment, crystal oscillators and crystals with temperature compensation functions are selected to provide high-precision crystal oscillator input for the RTC modules.
[0071] The power supply modules (A1, A2, B2, B2) supply power to the RTC modules. To prevent power instability in the RTC modules, reliable external button battery modules are used for the power supply modules, facilitating testing and replacement. Battery replacement intervals are specified in the maintenance procedures. The RTC modules utilize ultra-low power modules, which extend battery life and improve power reliability.
[0072] The LKJ host can effectively solve the problems of RTC chip malfunction caused by unstable power supply and inaccurate crystal oscillator frequency by properly selecting RTC modules, crystal oscillators, power supplies, etc.
[0073] When the system starts up, the two CPU modules read their respective RTC module information and interact with each other. If either of the two CPU modules fails to read the RTC chip initialization due to reasons such as failure of the internal storage unit of the RTC chip, or if the time deviation of the interaction between the two CPUs exceeds the specified range (such as 5 seconds), it is considered that the clock of this system is abnormal. Otherwise, it means that the system is working normally.
[0074] If the clock of the A series is normal, then the time read by CPU module A1 of the A series is considered to be the standard time, which is used to synchronize the time of CPU module A2, and also to synchronize the time of CPU modules B1 and B2 of the B series.
[0075] If the clock of system A is abnormal and the clock of system B is normal, then the time read by CPU module B1 of system B is considered to be the standard time, and the time of CPU module B2 of system B is used for time synchronization, as well as for CPU modules A1 and A2 of system A.
[0076] If both the A-series and B-series clocks are malfunctioning, the LKJ host will display a clock error message and will not allow the vehicle to be driven for calibration.
[0077] During normal system operation, the two CPU modules read their respective RTC module information and interact with each other. If the time deviation between the two CPU modules of system A exceeds the specified range (e.g., 5 seconds) and exceeds a certain number of times (e.g., 3 times), the clock of system A is considered abnormal, and system B is switched to the host.
[0078] If the time deviation between the two CPUs in the B series also exceeds the specified range (e.g., 5 seconds) and exceeds a certain number of times (e.g., 3 times), the LKJ host will actively enter a fault state (guided to the safety side).
[0079] If the time deviation between the two CPU modules of system A does not exceed the specified range (e.g., 5 seconds), system B directly uses the RTC module information of system A for calculation and control. At the same time, it checks the time difference with system A every cycle. If the difference exceeds a certain time, it will be corrected according to system A.
[0080] By incorporating the processing of LKJ host RTC information into a "two-out-of-two" approach, issues such as RTC chip internal memory unit failures and single CPU module read time errors can be detected promptly. When one clock system malfunctions, the other system is switched to become the host, ensuring the reliability of the LKJ host system clock processing. If both clock systems malfunction, the LKJ host proactively enters a fault state (redirecting to the safety side), thereby ensuring the safety of the LKJ host system clock.
[0081] Technical advantages of the present invention:
[0082] The LKJ host system clock is calibrated by comparing multiple clock sources, which improves the security and reliability of the LKJ host system clock.
[0083] The LKJ host can effectively solve the problems of unstable power supply and inaccurate crystal oscillator frequency of the RTC chip, which lead to abnormal operation of the RTC chip, by proper selection.
[0084] The LKJ host improves the security and reliability of clock processing by incorporating RTC information processing into a "two-out-of-two" approach. This effectively solves the problem of system clock errors caused by the failure of a single RTC chip to malfunction or internal memory unit to be detected in a timely manner.
[0085] The terms and expressions used herein are for descriptive purposes only. This invention is not limited to these terms and expressions, and the use of these terms and expressions does not mean the exclusion of any illustrative and descriptive equivalent features. Various modifications, transformations and substitutions that may exist should also be included within the scope of the claims, and the claims should be regarded as covering these equivalents.
[0086] It should also be noted that although the present invention is described with reference to specific examples, the above embodiments are only used to describe the present invention. Various equivalent changes and substitutions can be made without departing from the spirit of the present invention. Therefore, any changes or modifications to the above examples within the essential spirit of the present invention will fall within the scope of the claims of this application.
Claims
1. A method for enhancing the clock security and reliability of an LKJ host system, characterized in that, This method provides multiple clock sources for comparison and calibration to the LKJ host through a joint time synchronization system, ensuring the safety and reliability of the clock sources. It also incorporates the processing of RTC information of the LKJ host into the "two-out-of-two" range, ensuring the safety and reliability of the clock processing process. The clock sources provided by the joint time synchronization system include: clock sources provided by dedicated time synchronization equipment, clock sources provided by satellite information receiving equipment, and clock sources provided by wireless transposition equipment; The wireless costume-changing device communicates clock information data with the ground server through a public mobile communication network and adds an encryption algorithm to send the network time to the LKJ host. In the vehicle-to-ground communication protocol, clock information between the two parties is added and periodically exchanged. In the wireless costume-changing ground system, a trusted clock service is added, along with time synchronization and clock monitoring interfaces. Based on manual operation instructions from the ground system client, the LKJ host is notified to automatically synchronize the time, and the ground system can promptly check the time synchronization results. The LKJ host's CPU module collects and compares clock information from three clock sources: the clock source provided by the dedicated time synchronization device is compared with the clock source provided by the satellite information receiving device and the clock source provided by the wireless transcoding device. If the deviations are all within the specified range, the LKJ host keeps the clock from the dedicated time synchronization device unchanged. If the deviation from only one of them exceeds the specified range, the LKJ host keeps the clock from the dedicated time synchronization device unchanged. If the deviations from both clocks exceed the specified range, the clock source provided by the satellite information receiving device and the clock source provided by the wireless transcoding device are compared. If the deviations of both do not exceed the specified range, the LKJ host synchronizes its time according to the average of the clock sources provided by the satellite information receiving device and the wireless transcoding device. That is, the LKJ host's CPU module sends the average of the clock sources provided by the satellite information receiving device and the wireless transcoding device to the RTC chip to update the RTC chip's time. If the deviation between the clock source provided by the satellite information receiving device and the clock source provided by the wireless transcoding device also exceeds the specified range, the LKJ host actively enters a fault state. The LKJ host adopts a "two-out-of-two" security architecture. Each LKJ host series has two RTC chips. CPU modules A1 and A2 of series A are connected to RTC chips A1 and A2 respectively via communication interfaces. Similarly, CPU modules B1 and B2 of series B are connected to RTC chips B1 and B2 respectively via communication interfaces. Within each series, the two CPU modules read information from their respective RTC chips and interact with each other. If either CPU module fails to initialize its RTC chip or the time deviation between the two CPUs exceeds a specified range and a specified number of times, the series is considered to have failed. If the clock is abnormal, it indicates that the clock of this system is normal. If the clock of system A is normal, the time read by CPU module A1 of system A is used as the standard time to calibrate the time of CPU module A2. System B directly uses the RTC chip information of system A for calculation and control. At the same time, the time difference with system A is checked every cycle. If the difference exceeds a certain time, it is corrected according to system A. If the clock of system A is abnormal but the clock of system B is normal, the time read by CPU module B1 of system B is used as the standard time to calibrate the time of CPU module B2 of system B, and the time of CPU modules A1 and A2 of system A is also calibrated. If both the clocks of system A and system B are abnormal, the LKJ host will actively enter a fault state.
2. The method according to claim 1, characterized in that, To ensure the security and availability of the clock source provided by the satellite information receiving device, optional functions of GPS and BDS joint positioning mode and BDS single system positioning mode have been added on the basis of the existing GPS and BDS joint positioning mode.
3. The method according to claim 1, characterized in that, Before a locomotive leaves the depot or before spare parts are put into use, the LKJ main unit uses a dedicated time synchronization device to obtain a clock source provided by the dedicated time synchronization device. During locomotive parking or operation, the clock source provided by the satellite information receiving device is obtained from the GPS / BDS antenna through the satellite information receiving device, and the clock source provided by the wireless switching device is obtained from the ground server system through the wireless switching device.
4. The method according to claim 1, characterized in that, The method effectively solves the problem of RTC chip malfunction caused by unstable power supply and inaccurate crystal frequency by properly selecting RTC chip, crystal oscillator and power supply.
Citation Information
Patent Citations
LKJ timing method and device based on NTP and satellite clock
CN113676278A
