Time consistency verification method and device based on PESSRAL double-channel safety data
By introducing a master-slave clock reference and timestamp mechanism into the PESSRAL dual-channel safety system, time consistency verification and short-time sampling verification are performed, solving the problem of false difference misjudgment caused by clock asynchrony, and achieving efficient operation and safety assurance for elevators.
Patent Information
- Application Number
- CN202611267002.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-20
- Publication Date
- 2026-11-27
AI Technical Summary
In the existing PESSRAL dual-channel safety system, false differences caused by the asynchronous clocks of the two channels are misjudged as safety faults, leading to unnecessary elevator stops. Furthermore, the system lacks time-dimensional identification methods and the ability to classify and process different types of anomalies, affecting the availability and safety of the elevator.
By establishing a master-slave clock reference and introducing a timestamp mechanism, time consistency verification and short-term sampling verification are performed. By combining dual verification in both time and numerical dimensions, real security faults and timing deviations are distinguished, and differentiated response strategies are adopted to handle different anomaly types.
Effectively identify and distinguish between false differences and real faults, reduce the rate of false elevator stops, improve elevator operating efficiency and availability, and meet the requirements of SIL 3 safety level and T/CEA 0060-2025 standard.
Smart Images

Figure CN123184773A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of elevator time verification technology, and in particular to a time consistency verification method and device based on PESSRAL dual-channel safety data. Background Technology
[0002] Elevator safety systems are critical infrastructure for ensuring passenger safety. According to the international standard ISO 22201, elevator safety-related programmable electronic systems (PESSRAL) must meet Safety Integrity Level 3 (SIL 3) requirements. To achieve this safety level, PESSRAL systems generally employ a dual-channel redundancy architecture: two independent microprocessor units acquire the same set of safety switch signals (such as hall door lock contacts, car door lock contacts, upper and lower limit switches, emergency stop buttons, etc.), perform independent calculations, and then cross-check the signals via a safety bus. The core design principle is that "when one channel fails, the other channel puts the system into a safe state." In this architecture, the electronic safety board contains two logic processing units that receive the safety switch signals uploaded from the acquisition board and cross-check the same safety switch signals. If the signals are consistent and both are normal, the elevator is controlled to run; otherwise, the elevator is stopped.
[0003] In the existing PESSRAL dual-channel safety system, the two microprocessor units operate independently using their local clocks. Due to physical factors such as differences in crystal oscillator accuracy and temperature drift, clock deviations between the two processors are inevitable. When the safety switch signal is on a transition edge (e.g., when the door lock contact is actuating), the signal values acquired by the two channels may show a brief inconsistency because the sampling times of the two channels are different (e.g., channel A samples at t=0ms and channel B samples at t=0.5ms). This inconsistency is not a real safety fault, but rather a pseudo-difference in timing caused by the clock asynchrony in the dual-channel redundant architecture. However, the existing system lacks an effective mechanism to identify and distinguish such situations, treating them the same as real safety faults, leading to unnecessary false elevator stops.
[0004] Regarding dual-channel safety data verification, several related technical solutions exist. For example, CN115021866B (CASCO Signal Co., Ltd.) discloses a data timeliness verification method applied to safety coding software. This method determines the timeliness verification word and performs consistency verification by using redundant codes of the system timestamp, verification timestamp, and received verification timestamp, ensuring high data security, reliability, and timeliness. However, this solution addresses the timeliness verification of a single data stream in rail transit safety coding software, not the time inconsistency caused by clock asynchrony when two channels in a PESSRAL dual-channel architecture acquire the same physical signal. It also does not provide a mechanism to distinguish between false differences and real safety faults. CN118651738A (KONE Corporation) discloses an elevator safety system that detects single-channel faults in dual-channel safety nodes through safety diagnostics and determines the integrity of safety-related information. If the safety-related information is complete, the elevator car is allowed to proceed with rescue operations. However, this solution focuses on rescue operation control after a single-channel failure, without addressing the time consistency verification issue caused by the asynchronous clocks of the two channels, nor does it propose technical means such as timestamp synchronization, dual-dimensional verification, or short-time resampling verification. CN109071166A (Kone Electric Machinery Co., Ltd.) discloses a dual-channel overspeed monitoring method for verifying elevator car speed data. This method acquires continuous speed data and regional speed data through two channels and compares them to generate dual-channel verified speed information. However, this solution only addresses the dual-channel comparison of speed values, without introducing a timestamp dimension, and cannot distinguish false differences caused by different sampling sequences.
[0005] The existing technology has the following drawbacks: 1. Dual-channel safety data verification relies solely on binary judgment of signal values to determine "consistency / inconsistency," failing to distinguish the root cause of signal inconsistency. The existing system lacks time-dimensional identification methods, leading to false differences caused by clock asynchrony between the two channels at signal transition edges being misjudged as safety faults. This results in unnecessary elevator stoppages and reduced elevator availability.
[0006] 2. The time consistency problem of "redundant acquisition of the same signal" in the PESSRAL dual-channel architecture is ignored. The two microprocessor units run their own clocks independently. The transient value difference caused by the different sampling times at the signal transition edge is not effectively marked by timestamps and time deviation quantification mechanisms in the current technology. It is impossible to distinguish "transient inconsistency caused by sampling timing deviation" from "continuous inconsistency caused by real hardware failure" from the technical level.
[0007] 3. Lack of ability to classify and handle dual-channel data anomalies. Existing technology adopts a uniform elevator shutdown handling strategy for all types of data inconsistencies, failing to take differentiated responses for different anomaly types (real safety failures, clock synchronization anomalies, and pseudo-differences in time inconsistencies), thus failing to ensure elevator availability while ensuring safety. Summary of the Invention
[0008] In existing PESSRAL dual-channel safety systems, clock asynchrony between the two channels leads to "false differences" in the same safety switch signal, causing erroneous elevator stops. Furthermore, current technology lacks a mechanism to incorporate the time dimension into safety data verification and the ability to classify and process different types of data anomalies. To address these problems, this invention aims to provide a time consistency verification method and device based on PESSRAL dual-channel safety data. This method maximizes elevator availability while ensuring SIL 3 safety integrity and meets the requirements of T / CEA 0060-2025 for safety bus data integrity.
[0009] To achieve the above objectives, the present invention adopts the following technical solution: A time consistency verification method based on PESSRAL dual-channel safety data, applied to the elevator PESSRAL safety system, includes: Establish master-slave clock references for the first and second channels to synchronize the time of the first and second channels; When the first and second channels acquire the same set of safety switch signals, they read their respective current local clock stamps and write them into the safety data packet. A secure data packet is sent to the peer channel, the secure data packet further including: channel identifier and signal value; When any channel receives a security data packet from the peer channel, it performs a time consistency check on the security data packet. A short-time sampling verification mechanism is initiated based on the time consistency check results; Output processing strategy based on time consistency verification results and short-time sampling verification results.
[0010] As a further improvement of the present invention, the step of establishing master-slave clock references for the first channel and the second channel to synchronize the time of the first channel and the second channel includes: A negotiation mechanism is used to determine one channel between the first and second channels as the master clock and the other channel as the slave clock. When the master clock broadcasts a time synchronization message, it receives a synchronization message from the clock to calibrate the local clock. When the time deviation between the local clock and the master clock exceeds the first threshold, the synchronization process of the first and second channels is retried.
[0011] As a further improvement of the present invention, the time consistency verification includes: Validation based on time and numerical dimensions; A comprehensive judgment is made based on the verification results of time-dimensional verification and numerical-dimensional verification.
[0012] As a further improvement of the present invention, the time dimension verification includes: Calculate the difference in local timestamps when the first and second channels acquire the same security signal; If the difference between local timestamps is less than or equal to the preset second threshold, the time synchronization is considered normal; otherwise, the time synchronization is considered abnormal.
[0013] As a further improvement of the present invention, the numerical dimension verification includes: If the signal values of the first channel and the second channel are equal, they are considered to be consistent; otherwise, they are considered to be inconsistent.
[0014] As a further improvement of the present invention, the comprehensive determination includes: If time synchronization is normal and the values are consistent, then the data is considered to be consistent and normal. If time synchronization is normal but the values are inconsistent, it is judged as a suspected false difference; If time synchronization is abnormal, it is determined to be a clock synchronization failure; If time synchronization is abnormal and the values are inconsistent, it is judged as a comprehensive anomaly.
[0015] As a further improvement of the present invention, the step of initiating the short-time sampling verification mechanism based on the time consistency verification result includes: When the time synchronization judgment result is suspected false difference, within the preset window, the first channel and the second channel will repeatedly sample the same safety switch signal multiple times based on the synchronized clock. If the values of the two channels are consistent after resampling at least a preset number of times within the preset window, it is determined to be a false difference caused by time inconsistency; if the values of the two channels are inconsistent after multiple resamplings within the preset window, it is determined to be a real safety fault.
[0016] As a further improvement of the present invention, the steps of the output processing strategy based on the time consistency verification result and the short-time sampling verification result include: If time synchronization is normal but the values are consistently inconsistent, and this is determined to be a real safety fault during short-term sampling verification, the safety protection will be triggered to stop the elevator. If the clock synchronization is abnormal, the clock will be quickly synchronized without triggering the elevator to stop. If the clock synchronization abnormality occurs more than a set number of times within a set time period, it will be determined that there is a continuous fault in the communication link or clock hardware, and the elevator will be switched to safety protection mode and stopped. If time synchronization is normal and the values are briefly inconsistent, the discrepancy will be judged as a false difference caused by time inconsistency during short-term sampling verification. No protection action will be triggered, and only the log will be recorded.
[0017] As a further improvement of the present invention, the present invention also includes: Calculate the drift rate based on the changing trend of local timestamp differences; When the drift rate exceeds the third threshold, active compensation from the clock is triggered.
[0018] In addition, the present invention also provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; The memory is used to store computer programs; When the processor executes the program stored in the memory, it implements the above-described time consistency verification method.
[0019] Compared with existing technologies, this invention has the following advantages: By establishing a master-slave clock reference and introducing a timestamp mechanism, this invention effectively solves the problem of asynchronous sampling timing caused by crystal oscillator differences in dual channels. It can accurately identify false differences at signal transition edges, avoiding misjudging transient inconsistencies as safety faults, thereby significantly reducing the elevator's false stop rate and improving operating efficiency. Combining time consistency verification and short-time sampling verification mechanisms, the system can verify data from both time and signal stability dimensions. This achieves accurate differentiation between real safety faults and timing deviations, filling the gap in time consistency verification in existing technologies. Based on the output processing strategy of time consistency verification results and short-time sampling verification results, it changes the traditional single strategy of stopping the elevator upon inconsistency, and adopts differentiated responses for different anomaly types. Under the premise of strictly meeting the SIL 3 safety level, it maximizes the balance between elevator comfort and availability. Attached Figure Description
[0020] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments.
[0021] Figure 1 This is a flowchart of the time consistency verification method described in this invention; Figure 2 This is another flowchart of the time consistency verification method described in this invention; Figure 3 This is a flowchart of step S1 as described in this invention; Figure 4 This is a schematic diagram of the structure of the secure data packet described in this invention; Figure 5 This is a flowchart of steps S4 to S6 of the present invention. Detailed Implementation
[0022] To make the technical problems solved by the present invention, the technical solutions adopted, and the technical effects achieved clearer, the technical solutions of the embodiments of the present invention will be further described in detail below. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0023] This invention discloses a time consistency verification method based on PESSRAL dual-channel security data, such as... Figure 1 and Figure 2 As shown, the PESSRAL safety system applied to elevators includes: S1. Establish master-slave clock references for the first and second channels to synchronize the time of the first and second channels, such as... Figure 3 As shown.
[0024] During startup and operation of the PESSRAL dual-channel security system, high-precision time synchronization between the first microprocessor unit (first channel) and the second microprocessor unit (second channel) is achieved via a security bus. At system startup, a negotiation mechanism determines one channel as the master clock and the other as the slave clock. The master clock periodically broadcasts time synchronization messages via the security bus, containing the master clock's current timestamp, message sequence number, and checksum. Upon receiving the synchronization message, the slave clock calibrates its local clock using linear interpolation or a PID control algorithm, ensuring that the time deviation between the slave and master clocks is within a preset accuracy threshold. Each channel continuously monitors the time deviation ΔT between its own clock and the peer clock. When the time deviation ΔT exceeds a preset first threshold, a resynchronization process for both the first and second channels is triggered.
[0025] When S2, the first channel, and the second channel acquire the same set of safety switch signals, they read their respective current local clock stamps and write them into the security data packet, such as... Figure 4 As shown.
[0026] Specifically, the first and second channels independently acquire the same set of elevator safety switch signals. These safety switch signals include one or more of the following: hall door lock contact signals, car door lock contact signals, upper and lower limit switch signals, and emergency stop button signals. Each channel immediately reads the current local clock value at the moment of hardware interruption during safety switch signal acquisition, and uses this value as the local clock stamp T_collect for safety switch signal acquisition.
[0027] S3. Send a security data packet to the peer channel. The security data packet also includes: channel identifier and signal value (0 / 1).
[0028] S4. When any channel receives a security data packet from the peer channel, it performs a time consistency check on the security data packet, including: time dimension verification, numerical dimension verification, and comprehensive judgment, such as... Figure 5 As shown.
[0029] Time dimension verification: Calculate the local timestamp difference ΔT = |T_collect_A - T_collect_B| when the first channel and the second channel collect the same security signal. If the local timestamp difference ΔT is less than or equal to the preset second threshold T_sync_th, it is determined that the time synchronization is normal; otherwise, it is determined that the time synchronization is abnormal.
[0030] Numerical dimension verification: Compare the signal values V_A and V_B of the same security signal in the first and second channels. If V_A = V_B, the values are considered to be consistent; otherwise, they are considered to be inconsistent.
[0031] Comprehensive judgment: If time synchronization is normal and the values are consistent, the data is judged to be consistent and normal; if time synchronization is normal but the values are inconsistent, it is judged to be a suspected false difference and proceed to step S5; if time synchronization is abnormal, it is judged to be a clock synchronization abnormality; if time synchronization is abnormal and the values are inconsistent, it is judged to be a comprehensive abnormality.
[0032] S5. If the discrepancy is determined to be a suspected false difference in step S4, a short-time sampling verification mechanism is initiated based on the time consistency verification result.
[0033] Specifically, within a preset time window, the first channel and the second channel repeatedly sample the same safety switch signal based on a synchronized clock. If the values of the two channels are consistent after at least a preset number of resamplings within the time window, it is determined to be a false difference caused by time inconsistency. If the values of the two channels are inconsistent after multiple resamplings within the time window, it is determined to be a real safety fault.
[0034] Preferably, the preset time window is 10ms to 100ms, and the preset number of times is 3 to 5.
[0035] S6. Output processing strategy based on time consistency verification results and short-time sampling verification results: Real safety fault: If time synchronization is normal but the values are consistently inconsistent, and the fault is determined to be a real safety fault during short-term sampling verification, the safety protection is triggered to stop the elevator.
[0036] Clock synchronization anomaly: If time synchronization is abnormal, a fast clock synchronization will be triggered, but the elevator will not be stopped. Furthermore, if clock synchronization anomalies occur more than 3 times within 60 consecutive seconds, it will be determined that there is a persistent fault in the communication link or clock hardware, and the elevator will immediately switch to safety protection mode and stop to prevent the safety monitoring function from becoming substantially ineffective due to repeated resynchronization.
[0037] False discrepancies caused by time inconsistency: If time synchronization is normal and the values are briefly inconsistent, they will be judged as false discrepancies caused by time inconsistency during short-term sampling verification. No protection action will be triggered, and only the log will be recorded.
[0038] To differentiate and ensure the time synchronization accuracy and system stability of a dual-channel system during long-term operation, this invention also includes: S7. Clock Drift Compensation: During system operation, the changing trend of the time deviation ΔT(t) between the two channels is continuously monitored. A sliding window is used to perform linear regression on ΔT(t) to calculate the drift rate α = d(ΔT) / dt. A hysteresis comparison mechanism is adopted, setting an upper threshold of 0.1ms / min and a lower threshold of 0.05ms / min for the drift rate. When the drift rate α exceeds the upper threshold, active compensation is triggered. The compensation coefficient of the local clock is dynamically adjusted based on the drift rate α to continuously maintain the time deviation between the two channels within the accuracy threshold. The compensation state is only deactivated when the drift rate falls below the lower threshold, avoiding repeated triggering of the compensation mechanism due to frequent fluctuations in the drift rate near the threshold, thus ensuring the stability of the method operation.
[0039] The time consistency verification method of the present invention will be explained in the following way, with reference to a practical scenario: Normal working scenarios The elevator is operating normally, the hall door lock contacts are closed, and channels A and B respectively collect the door lock contact signals. High-precision time synchronization was completed upon system startup. The master clock (channel A) broadcasts a time synchronization message every 100ms via the security bus, and the slave clock (channel B) calibrates its local clock using a linear interpolation algorithm. The current dual-channel time deviation ΔT = 0.3ms (less than the accuracy threshold of 1ms, synchronization is normal). Channel A collects the door lock signal at T=1000.0ms, signal value V_A=0, timestamp T_A=1000.0ms; Channel B collects the door lock signal at T=1000.4ms, signal value V_B=0, timestamp T_B=1000.4ms. Time dimension verification: ΔT = |1000.0 - 1000.4| = 0.4ms ≤ 1ms, time synchronization is normal; numerical dimension verification: V_A = V_B = 0, values are consistent; overall judgment: data is consistent, normal. Decision: No safety protection actions are triggered; the elevator continues to operate normally.
[0040] Scenario of pseudo-differences caused by time inconsistency The door lock contacts are in operation (signal is on a transition edge). Channel A samples V_A=1 before the transition edge, and channel B samples V_B=0 after the transition edge. Channel A samples V_A=1 at T=2000.0ms, timestamp T_A=2000.0ms; channel B samples V_B=0 at T=2000.5ms, timestamp T_B=2000.5ms. Time dimension verification: ΔT = 0.5ms ≤ 1ms, time synchronization is normal; numerical dimension verification: V_A=1, V_B=0, values are inconsistent; comprehensive judgment: suspected false difference caused by time inconsistency, proceed to short-time resampling verification. Within a 50ms time window, the two channels are resampled three times synchronously based on the synchronized clock (sampling interval 10ms): the first resampling V_A=0, V_B=0, consistent; the second resampling V_A=0, V_B=0, consistent; the third resampling V_A=0, V_B=0, consistent. All three resamplings are consistent, verification passed, and the result is determined to be Type C: False difference caused by time inconsistency. The decision is: no safety protection actions are triggered, the log is recorded, and the elevator continues to operate normally. Compared with existing technologies, which directly determine a fault and stop the elevator when V_A≠V_B, this invention successfully identifies false differences through time consistency verification and short-time resampling verification, avoiding erroneous elevator stops.
[0041] Real-world security failure scenarios The door lock contacts in the hall are experiencing poor contact due to oxidation, resulting in a persistently unstable signal (V_A=1) from channel A, while the signal from channel B is normal (V_B=0). Channel A acquired V_A=1 at T=3000.0ms (timestamp T_A=3000.0ms); channel B acquired V_B=0 at T=3000.3ms (timestamp T_B=3000.3ms). Time dimension verification: ΔT = 0.3ms ≤ 1ms, time synchronization is normal; numerical dimension verification: V_A=1, V_B=0, values are inconsistent; overall judgment: suspected false difference, short-term resampling verification is initiated. Three resampling operations are performed within a 50ms time window: all three resampling results are V_A=1, V_B=0, consistently inconsistent, verification fails. The fault is classified as Type A: genuine safety fault. Action decision: immediately trigger safety protection, stop the elevator, and ensure passenger safety.
[0042] Clock synchronization failure scenarios Due to interference in the safety bus communication, the slave clock (channel B) failed to receive the synchronization message in a timely manner, resulting in a time deviation of ΔT = 3.5ms between the two channels, exceeding the accuracy threshold of 1ms. Time dimension verification: ΔT = 3.5ms > 1ms, indicating a time synchronization anomaly. Overall judgment: Type B – Clock synchronization anomaly. Handling decision: Trigger the clock fast resynchronization process. The master clock immediately broadcasts a synchronization message, and the slave clock recalibrates its local clock. Before resynchronization is complete, the system maintains the previous effective safety state and does not trigger elevator shutdown. After resynchronization is completed, the time deviation between the two channels recovers to 0.4ms, and the system resumes the normal verification process. If this anomaly occurs more than 3 times within 60 consecutive seconds, a persistent fault in the communication link is determined, the elevator is immediately stopped, and a fault code is reported.
[0043] Clock drift compensation scenario After 72 hours of continuous system operation, the clock drift compensation module performed linear regression on the dual-channel time deviation ΔT(t) using a 30-minute sliding window. It detected a drift rate α = 0.15 ms / min, exceeding the upper threshold of 0.1 ms / min. The clock drift compensation module then dynamically adjusted the local clock compensation coefficient based on the calculated drift rate α, adding the compensation amount to the slave clock's clock source to bring the dual-channel time deviation back to within 0.3 ms. Once the drift rate fell below the lower threshold of 0.05 ms / min, the compensation state was deactivated to prevent frequent start-stop of the compensation function. The compensation process is transparent to the security data acquisition and verification process and does not affect normal operation. This mechanism effectively prevents the increase in the frequency of time synchronization anomalies due to accumulated clock drift, improving the long-term operational stability of the system.
[0044] Compared with the prior art, the present invention has the following beneficial technical effects: (1) Upgrading single-dimensional value comparison to dual verification of time consistency and value consistency effectively avoids erroneous elevator stops. This invention introduces a timestamp dimension on the basis of traditional signal value comparison. By calculating the local timestamp difference ΔT during dual-channel acquisition and comparing it with the accuracy threshold, it can fundamentally distinguish between transient inconsistencies caused by sampling timing deviations and continuous inconsistencies caused by hardware failures, thus avoiding unnecessary erroneous elevator stops caused by clock asynchrony and significantly improving elevator availability.
[0045] (2) The short-time resampling verification mechanism provides a reliable basis for distinguishing between false differences and real faults. In the case of suspected false differences, the present invention performs multiple synchronous resampling of the same safety switch signal within a preset time window to verify the persistence of inconsistency in a statistical manner, thereby distinguishing between transient differences in signal transition edges and real safety faults with high confidence, and achieving accurate judgment while ensuring the SIL 3 safety integrity.
[0046] (3) The high-precision time synchronization protocol provides a unified time reference for dual-channel data verification. This invention controls the dual-channel time deviation within the accuracy threshold through master-slave clock negotiation, periodic synchronization message broadcasting on the security bus, and slave clock linear interpolation / PID calibration algorithm, providing a reliable basis for timestamp difference calculation and eliminating the risk of systematic misjudgment caused by clock asynchrony from the root.
[0047] (4) The active clock drift compensation mechanism ensures the long-term stability of the system. This invention uses sliding window linear regression to continuously monitor the time deviation drift trend of the dual channels, and actively adjusts the clock compensation coefficient when the drift rate exceeds the threshold to prevent the clock deviation from accumulating over time, thus ensuring that the system maintains a high-precision time synchronization state throughout its entire life cycle.
[0048] (5) The three-category differentiated handling strategy for anomalies achieves the optimal balance between safety and availability. This invention subdivides dual-channel data anomalies into three categories: real safety faults, clock synchronization anomalies, and false differences, which correspond to three differentiated response strategies: stopping the elevator, triggering resynchronization, and logging only. This avoids the excessive damage to elevator availability caused by the one-size-fits-all elevator stop handling of existing technologies, while ensuring that real safety faults are responded to in a timely manner.
[0049] (6) Fully compliant with the requirements of T / CEA 0060-2025 for the integrity of safety bus data. The timestamp synchronization mechanism of this invention meets the communication real-time requirements of the standard, the dual-dimensional verification mechanism meets the data integrity requirements, and the anomaly classification and differentiated processing mechanism meets the fault diagnosis and fault tolerance requirements, providing complete technical support for the elevator PESSRAL system to comply with the T / CEA0060-2025 standard.
[0050] Based on the same inventive concept, the present invention also provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; the memory is used to store computer programs; and the processor is used to implement the above-mentioned time consistency verification method when executing the program stored in the memory.
[0051] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.
[0052] The communication interface is used for communication between the aforementioned terminal and other devices.
[0053] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0054] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0055] Furthermore, it should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This narrative style of the specification is merely for clarity. Those skilled in the art should consider the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.
[0056] The technical principles of the present invention have been described above with reference to specific embodiments. These descriptions are merely for explaining the principles of the invention and should not be construed as limiting the scope of protection of the invention in any way. Based on this explanation, those skilled in the art can readily conceive of other specific embodiments of the invention without inventive effort, and these embodiments will all fall within the scope of protection of the present invention.
Claims
1. A time consistency verification method based on PESSRAL dual-channel security data, characterized in that, Applications in the PESSRAL safety system for elevators include: Establish master-slave clock references for the first and second channels to synchronize the time of the first and second channels; When the first and second channels acquire the same set of safety switch signals, they read their respective current local clock stamps and write them into the safety data packet. A secure data packet is sent to the peer channel, the secure data packet further including: channel identifier and signal value; When any channel receives a security data packet from the peer channel, it performs a time consistency check on the security data packet. A short-time sampling verification mechanism is initiated based on the time consistency check results; Output processing strategy based on time consistency verification results and short-time sampling verification results.
2. The time consistency verification method according to claim 1, characterized in that, The step of establishing master-slave clock references for the first and second channels to synchronize the time of the first and second channels includes: A negotiation mechanism is used to determine one channel between the first and second channels as the master clock and the other channel as the slave clock. When the master clock broadcasts a time synchronization message, it receives a synchronization message from the clock to calibrate the local clock. When the time deviation between the local clock and the master clock exceeds the first threshold, the synchronization process of the first and second channels is retried.
3. The time consistency verification method according to claim 1, characterized in that, The time consistency check includes: Validation based on time and numerical dimensions; A comprehensive judgment is made based on the verification results of time-dimensional verification and numerical-dimensional verification.
4. The time consistency verification method according to claim 3, characterized in that, The time dimension verification includes: Calculate the difference in local timestamps when the first and second channels acquire the same security signal; If the difference between local timestamps is less than or equal to the preset second threshold, the time synchronization is considered normal; otherwise, the time synchronization is considered abnormal.
5. The time consistency verification method according to claim 4, characterized in that, The numerical dimension verification includes: If the signal values of the first channel and the second channel are equal, they are considered to be consistent; otherwise, they are considered to be inconsistent.
6. The time consistency verification method according to claim 5, characterized in that, The comprehensive judgment includes: If time synchronization is normal and the values are consistent, then the data is considered to be consistent and normal. If time synchronization is normal but the values are inconsistent, it is judged as a suspected false difference; If time synchronization is abnormal, it is determined to be a clock synchronization failure; If time synchronization is abnormal and the values are inconsistent, it is judged as a comprehensive anomaly.
7. The time consistency verification method according to claim 6, characterized in that, The steps for initiating the short-time sampling verification mechanism based on the time consistency check result include: When the time synchronization judgment result is suspected false difference, within the preset window, the first channel and the second channel will repeatedly sample the same safety switch signal multiple times based on the synchronized clock. If the values of the two channels are consistent after resampling at least a preset number of times within the preset window, it is determined to be a false difference caused by time inconsistency; if the values of the two channels are inconsistent after multiple resamplings within the preset window, it is determined to be a real safety fault.
8. The time consistency verification method according to claim 7, characterized in that, The steps of the output processing strategy based on time consistency verification results and short-time sampling verification results include: If time synchronization is normal but the values are consistently inconsistent, and this is determined to be a real safety fault during short-term sampling verification, the safety protection will be triggered to stop the elevator. If the clock synchronization is abnormal, the clock will be quickly synchronized without triggering the elevator to stop. If the clock synchronization abnormality occurs more than a set number of times within a set time period, it will be determined that there is a continuous fault in the communication link or clock hardware, and the elevator will be switched to safety protection mode and stopped. Time synchronization is normal, but the values are briefly inconsistent. During short-term sampling verification, the discrepancy is judged to be a false difference caused by time inconsistency. No protection action is triggered, and only the log is recorded.
9. The time consistency verification method according to claim 1, characterized in that, Also includes: Calculate the drift rate based on the changing trend of local timestamp differences; When the drift rate exceeds the third threshold, active compensation from the clock is triggered.
10. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; The memory is used to store computer programs; When the processor executes the program stored in the memory, it implements the time consistency verification method as described in any one of claims 1-9.
Citation Information
Patent Citations
A method, a safety control unit, and an elevator system for verifying speed data of an elevator car for overspeed monitoring of the elevator car
CN109071166A
Data timeliness verification method and system applied to secure coding software
CN115021866B
Elevator safety system, elevator system and elevator car rescue operation method
CN118651738A
