A state migration type non-disruptive upgrade control method of a CBTC zone controller

By establishing a migration dependency graph and time anchors during the CBTC area controller upgrade process, generating state closure packages and performing synchronous calculations, the problem of inconsistent state dependencies during the CBTC area controller upgrade process is solved, achieving reliability and security for non-disruptive upgrades.

CN123150797APending Publication Date: 2026-11-24SHANGHAI RAIL TRANSIT MAINTENANCE SUPPORT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611376559.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-07
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

During the upgrade process of existing CBTC area controllers, it is difficult to guarantee the consistency of dependencies and the reliability of control transfer during state replication or device switching, which can easily lead to state discontinuity and control authority mismatch, and lacks a reversible recovery mechanism.

Method used

By acquiring the line configuration, train location, and communication session status of the existing area controller, a migration dependency graph is established and migration time anchors are generated. A state closure package is generated and loaded into the target area controller to achieve synchronous calculation and permission transfer, and to establish a continuous and consistent evidence chain and rollback mechanism.

Benefits of technology

It improves state dependency integrity and timing consistency during the upgrade process, reduces communication interruptions and control mismatches, and enhances recoverability and operational security under abnormal conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123150797A_ABST
    Figure CN123150797A_ABST
Patent Text Reader

Abstract

The application discloses a state migration type non-disturbance upgrade control method of a CBTC area controller. The method acquires line configuration, train position, mobile authorization calculation intermediate state and communication session state of an existing area controller, establishes a migration dependency graph and generates a migration time anchor point, extracts state objects satisfying a dependency closure condition to form a state closure package and loads the state closure package to a target area controller; controls the existing area controller and the target area controller to synchronize calculation, generates a continuous consistency evidence chain according to control output difference, state evolution trajectory difference and safety constraint violation quantity; generates a takeover token sequence and gradually transfers control communication authority when a switching condition is satisfied, and simultaneously establishes a connection back-off anchor point; when the takeover stage fails, the authority transfer is reversed according to the takeover token sequence, and the control state of the existing area controller is restored by using a corresponding back-off anchor point, so that state continuous migration, smooth takeover and reversible back-off in the area controller upgrade process are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer software upgrade control technology, and in particular to a state-transition-based non-disruptive upgrade control method for CBTC area controllers. Background Technology

[0002] Communication-based train control systems (CBTC) typically use area controllers to centrally process train location, track status, movement authorization, and related safety control information within their jurisdiction. These area controllers periodically communicate with computer interlocking systems, automatic train monitoring systems, onboard control equipment, and neighboring area controllers. With long-term line operation and software / hardware platform iterations, existing area controllers often require processor platform replacement, software version upgrades, interface adaptation, or functional expansion. Current upgrade methods primarily include shutdown for replacement, primary / backup switching, copying configuration and operational data, parallel testing of equipment before and after the upgrade, and overall switching after verification, to enable the upgraded area controller to resume its original control functions.

[0003] However, CBTC area controllers are characterized by real-time periodic control and multi-state coupling. There are continuous read / write dependencies and temporal correlations between train position, intermediate states of movement authorization calculation, line configuration states, and communication session states. Existing technologies, when performing state replication or device switching, typically focus on the integrity of configuration data, communication connectivity, or the consistency of output results at the time of switching. This makes it difficult to guarantee that the migrated state originates from a matching control cycle, and also difficult to confirm the consistency of the evolutionary relationship of the controller's internal states during continuous operation before and after the upgrade. Simultaneously, the area controller has different control dependencies with multiple external communication objects. When using a holistic control handover, if some communication objects or control states become abnormal, there is often a lack of reversible recovery mechanisms corresponding to each takeover stage, easily leading to state discontinuity, control authority switching mismatch, or loss of operational state during the rollback process.

[0004] Therefore, it is necessary to propose a new non-disruptive upgrade control method suitable for CBTC area controller upgrade scenarios. Summary of the Invention

[0005] This application provides a state-transition-based, non-disruptive upgrade control method for CBTC area controllers to improve upgrade reliability.

[0006] This application provides a state-transition-based, non-disruptive upgrade control method for CBTC area controllers, including: Obtain the existing area controller's line configuration, train position, intermediate state of movement authorization calculation, and communication session state. Establish a migration dependency graph based on the read / write dependencies between each state object, and generate migration time anchors based on the current communication cycle number and train control cycle number. Extract the state objects that satisfy the dependency closure condition at the migration time anchor point according to the migration dependency graph, generate the state closure package and load it into the target area controller running in bypass mode; The existing area controller and the target area controller are synchronously calculated based on the same field input and state closure, and a continuous and consistent evidence chain is generated based on the differences in their control outputs, state evolution trajectories, and safety constraint violations. When the continuous and consistent evidence chain meets the switching conditions, a takeover token sequence is generated according to the control dependency relationship between external communication objects. The corresponding control communication permissions are transferred to the target area controller in sequence. After each permission transfer, the current control state is recorded and a fallback anchor point associated with the corresponding takeover token is generated. The rollback determination result is generated based on the control output, state evolution trajectory, and communication continuity of the target area controller after the permission transfer. When the rollback determination result indicates that the current takeover phase has failed, the executed permission transfer is revoked in reverse order of the takeover token sequence, and the corresponding control state of the existing area controller is restored step by step according to the rollback anchor points associated with each revoked takeover token.

[0007] The beneficial effects of the technical solution provided in this application include: (1) By organizing state data through migration dependency graphs and migration time anchors, the integrity of dependencies and temporal consistency between different control states are ensured, reducing the risk of state loss or mismatch during migration. (2) By synchronously calculating between the existing area controller and the target area controller, and forming a continuous and consistent evidence chain based on control output, state evolution trajectory and security constraints, the reliability of pre-takeover verification is improved. (3) By generating a takeover token sequence according to the control dependency relationship of external communication objects and transferring permissions step by step, communication interruption and control mismatch caused by overall switching are reduced, achieving smooth takeover. (4) By establishing fallback anchors associated with takeover tokens, permissions are revoked in reverse order and control states are restored step by step when takeover fails, improving recoverability and operational safety in abnormal upgrade situations. Attached Figure Description

[0008] Figure 1 This is a flowchart of a state-transition-based non-disruptive upgrade control method for a CBTC area controller provided in the first embodiment of this application.

[0009] Figure 2 This is a schematic diagram illustrating the change in control cycle difference during the target area controller catch-up calculation process provided in this application embodiment.

[0010] Figure 3 This is a schematic diagram of the change in the remaining margin of the safety boundary and the identification of the approach of the safety boundary provided in the embodiments of this application.

[0011] Figure 4This is a timing diagram illustrating the continuous handover of message sequence numbers during the control communication authority takeover process provided in an embodiment of this application. Detailed Implementation

[0012] Many specific details are set forth in the following description to provide a full understanding of this application. However, this application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this application; therefore, this application is not limited to the specific embodiments disclosed below.

[0013] The first embodiment of this application provides a state-transition-based, non-disruptive upgrade control method for CBTC area controllers. Please refer to... Figure 1 This figure is a schematic diagram of the first embodiment of this application. The following is in conjunction with... Figure 1 The first embodiment of this application provides a detailed description of a state-transition-based non-disruptive upgrade control method for a CBTC area controller.

[0014] Step S101: Obtain the existing area controller's line configuration, train position, intermediate state of movement authorization calculation, and communication session state. Establish a migration dependency graph based on the read / write dependencies between each state object, and generate migration time anchors based on the current communication cycle number and train control cycle number.

[0015] In step S101, operational data for state transition is first obtained from the existing area controller currently responsible for train operation control. The existing area controller refers to the area controller that was online and responsible for train control functions in its assigned control area before the upgrade switch. The target area controller is the area controller used to receive the operational status of the existing area controller, perform bypass verification, and serve as the target for control permission migration. Both can use different processor platforms, operating system versions, or application software versions, but both can acquire the same type of field input and execute corresponding train control functions.

[0016] The acquired data includes track configuration, train position, intermediate status of movement authorization calculation, and communication session status. Track configuration includes track section numbers and connections, correspondence between turnouts and signaling equipment, control area boundaries, speed limit parameters, and inter-area interface configurations. Train position includes train identification, track section, direction of travel, front and rear positions, and position validity status. Intermediate status of movement authorization calculation is data generated by the area controller during the formation of movement authorization and affects the calculation of the current or subsequent control cycles, including track occupancy status, path search results, danger point status, authorization endpoint, and related calculation flags. Communication session status includes communication object identification, message sequence number, reception confirmation status, most recent valid communication cycle, timeout count, and connection status.

[0017] The aforementioned data is divided into state objects according to their granularity—enough to be independently identifiable, establish dependencies, and be migrated. Each state object is assigned an object identifier, its data type, current period identifier, and version identifier. For example, the location and direction of travel of a train can be considered a train location state object, the path search result of that train can be considered a movement authorization calculation intermediate state object, and the corresponding message sequence number and acknowledgment status can be considered a communication session state object. Similarly, the boundary of a control area and its interface configuration can be considered a line configuration state object, and the speed limit parameters of a track section can be considered another line configuration state object. Line configuration state objects are typically only read by other state objects during operation; therefore, in the migration dependency graph described later, they are usually represented as source nodes with outbound dependencies and migrated along with related dynamic state objects.

[0018] The division of state objects is not limited to one object per of the four data categories mentioned above. The same data category can be further divided into multiple state objects according to functional modules. For example, the line occupancy state T, the path search state R, and the mobility authorization state M can all belong to the broad category of intermediate states in mobility authorization calculation, but they correspond to different calculation stages and thus participate in dependency analysis as different nodes.

[0019] The read-write dependency relationship refers to a situation where the generation or update of one state object requires reading another state object, or the update result of one state object will serve as the input for the current or next control cycle of another state object. In practice, this relationship can be determined based on the input / output interfaces, data access configurations, and read / write records of each functional module in the area controller software. When the generation of state object B reads state object A, a directed dependency relationship is established from A to B. By treating each state object as a node and the aforementioned dependency relationship as directed edges, a migration dependency graph is constructed.

[0020] For example, if the train position state P and the track occupancy state T are read by the path search state R, and the path search state R is then read by the movement authorization state M, then dependencies are established in the migration dependency graph: P points to R, T points to R, and R points to M. When M needs to be migrated, R, P, and T can be determined as its predecessor states along the migration dependency graph to prevent only migrating the result state while omitting its computational context. If this context is incomplete, the first control cycle after the target area controller takes over may produce movement authorization results that are discontinuous with the existing area controller, which may cause the onboard control equipment to take braking measures due to abnormal authorization changes, affecting the non-intrusiveness of the upgrade process.

[0021] Since the current results of some state objects will also serve as inputs for the next control cycle of other state objects, directed cycles may appear in the migration dependency graph. For a group of state objects forming a directed cycle, a strongly connected component identification algorithm, such as Tarjan's algorithm, can be used to identify and merge mutually reachable nodes into an indivisible migration unit. The state objects within this migration unit are selected as a whole during subsequent migrations, and partial migration is not allowed. The migration dependency graph after merging forms a dependency structure without loops. This allows the determination of the complete set of predecessors required for a given state object to be migrated along the direct and indirect predecessor relationships of the nodes, providing a clear basis for determining dependency closure in step S102.

[0022] Step S101 also generates a migration time anchor point based on the current communication cycle number and the train control cycle number. The communication cycle number is used to identify the consecutive communication rounds between the area controller and onboard equipment, interlocking system, ATS system, or adjacent area controllers; the train control cycle number is used to identify the calculation rounds in which the area controller continuously performs train status updates and movement authorization calculations. The migration time anchor point is used to constrain dynamic state objects to a consistent operating time base.

[0023] When the communication cycle and train control cycle have different lengths but are in a fixed multiple relationship, record the last communication cycle number that has completed transmission and reception processing before the end of the current train control cycle, and associate this communication cycle number with the current train control cycle number. For example, if a train control cycle contains two communication cycles, and when train control cycle 12540 is completed, if the corresponding second communication cycle 25081 has already completed transmission and reception processing, then control cycle 12540 and communication cycle 25081 together constitute the migration time anchor point.

[0024] When the two types of cycles do not have a fixed integer multiple relationship, the communication cycle that has most recently completed transmission and reception processing before the completion time of the current train control cycle status update is taken as the corresponding communication cycle. At the same time, the time offset of the completion time of this communication cycle relative to the start time of the current train control cycle is recorded. This offset serves as auxiliary information for the migration time anchor point, enabling the target area controller to determine the actual communication stage of the communication session after loading, and avoiding message sequence number duplication, jumps, or misaligned acknowledgment status in the first communication cycle after takeover.

[0025] For the train control cycle corresponding to the migration time anchor point, state objects belonging to that cycle can be directly used as candidate migration objects. For state objects belonging to earlier control cycles, they are only identified as allowed predecessor states of the migration time anchor point if they are direct or indirect predecessors of the current cycle's state objects in the migration dependency graph and do not exceed the preset maximum allowable cycle span. The maximum allowable cycle span can be set according to the longest valid duration of cross-cycle states in the area controller, for example, set to one to three train control cycles. Data exceeding this range and no longer dependent on the current state is not included in this migration and is regenerated by the target area controller during subsequent bypass synchronization calculations.

[0026] Thus, step S101 ultimately forms a migration dependency graph and migration time anchors for use in step S102. The migration dependency graph determines the object dependency boundaries that need to be maintained during state transitions, and the migration time anchors determine the temporal boundaries that need to be satisfied during state transitions, thereby enabling the subsequent extraction of state objects with complete dependencies and consistent temporal order.

[0027] Furthermore, the process of acquiring the existing area controller's line configuration, train position, intermediate state of movement authorization calculation, and communication session state, establishing a migration dependency graph based on the read / write dependencies between each state object, and generating migration time anchors based on the current communication cycle number and train control cycle number includes: Obtain the write cycle, read cycle, and reader for each state object within a continuous train control cycle, form a state version identifier for each write, and establish a cross-cycle state access chain according to the state version actually read by the reader. Delete historical dependency edges that are not referenced by subsequent control calculations along the cross-cycle state access chain, merge mutually circularly referenced state versions into indivisible migration units, and generate a migration dependency graph with state versions and migration units as nodes. Obtain the last valid transmission and reception communication cycle before the end of the current train control cycle, determine the start and end positions of the communication cycle within the current train control cycle, and encode the train control cycle number, communication cycle number, and the start and end positions as a dual-cycle phase anchor point. The migration dependency graph is retrieved in reverse using the dual-cycle phase anchor point to verify that all valid predecessors of each target state version exist and that the sequence number of the most recent acknowledgment message of the communication session state corresponds to the communication cycle; when the verification is successful, the dual-cycle phase anchor point is determined as the migration time anchor point.

[0028] This embodiment further refines the method for generating the migration dependency graph and migration time anchor points in step S101. The previous embodiment established the migration dependency graph using state objects as nodes, suitable for situations where the version relationship of the same state object between adjacent control cycles is relatively simple. When multiple versions of the same state object are formed in different control cycles and are referenced by different functional modules, or when the same functional module references different versions in different cycles, this embodiment establishes the migration dependency graph using state versions as the basic analysis unit to more accurately express the actual causal transmission relationship across cycles. The migration dependency graph formed according to this embodiment also serves as the basis for dependency closure determination and state closure extraction in the subsequent step S102.

[0029] First, the write cycle, read cycle, and reader of each state object in the existing area controller within a continuous train control cycle are obtained. The write cycle refers to the train control cycle corresponding to when a state object is created or its content is updated; the read cycle refers to the train control cycle corresponding to when any functional module actually reads the state object; and the reader refers to the functional module or control calculation process that performs the read operation. Each time a valid write occurs to a state object, a unique state version identifier is generated for that write. The state version identifier can at least identify the state object and the write cycle; for example, it can be formed by combining the object identifier, the write cycle number, and the update sequence number within the cycle.

[0030] Subsequently, a cross-cycle state access chain is established based on the actual state version read by the reader. This access chain is not inferred from static call relationships in the program, but determined based on the actual read and write relationships that occur during operation. For example, if the train position state P is updated to version PN in control cycle N, and the path search process reads PN and the line occupancy state T-N+1 in control cycle N+1 and generates the path search state R-N+1, then a dependency relationship is established between PN and R-N+1, and between T-N+1 and R-N+1. If the movement authorization calculation process subsequently reads R-N+1 to form the intermediate movement authorization state M-N+1, then a dependency relationship is further established between R-N+1 and M-N+1. The access chain formed in this way can clearly indicate which historical state versions a certain control result actually originates from.

[0031] The process checks whether dependencies along the cross-cycle state access chain still affect control computation after the migration time. If a historical state version is only read in a completed historical cycle and no functional module continues to reference it afterward, the dependency edge corresponding to that historical reference is deleted. Here, dependencies that have lost their meaning for subsequent computation are deleted, not the state object itself. After the above processing, the dependency edges retained in the migration dependency graph all correspond to state relationships that the target area controller still needs to use for continued computation, making the predecessor set obtained from the graph form a self-consistent state set required for continued computation. If expired historical dependencies are retained, the target area controller may reference expired states in subsequent computations, resulting in move authorization results inconsistent with existing area controllers; if still-referenced dependencies are omitted, the target area controller will lack the necessary computation context.

[0032] After completing the dependency filtering described above, a validity check should also be performed based on the maximum allowable cycle span defined in step S101. For state versions that are still referenced in subsequent control calculations, but whose write cycle is more than the maximum allowable cycle span from the control cycle corresponding to the migration time anchor, these versions are considered unsuitable as direct migration states and are not included in the migration set. They will be regenerated based on new field inputs during subsequent catch-up calculations. Therefore, the reference relationship is used to determine whether a historical state is still "needed," and the cycle span is used to further determine whether the state is still "reliable."

[0033] For circular relationships between state versions, it's necessary to distinguish between version-level representation and state object-level representation. Version-level dependencies established simply based on chronological order typically point from earlier versions to later versions and are inherently acyclic. However, when consecutive versions of the same state object are folded back into their corresponding state objects for migration organization, circular dependencies may arise between objects. For example, the path search state R-N+1 in control period N+1 reads the authorized endpoint held in the movement authorization state MN in control period N, while the movement authorization state M-N+1 in control period N+1 reads R-N+1. When this relationship repeats in consecutive periods, it manifests as a mutual dependency between the path search state and the movement authorization state at the state object level. For such a group of mutually dependent state versions, the corresponding state versions within the relevant period range are grouped into indivisible migration units and selected as a whole during subsequent migrations to avoid breaking cross-period reference relationships after splitting.

[0034] Using state versions or indivisible migration units as nodes and filtered valid dependencies as directed edges, a migration dependency graph is generated in this embodiment. If subsequent processing needs to be done at the state object granularity, valid state versions of the same state object can be mapped back to the corresponding state object, but the closure determination is still based on version-level dependencies. The valid predecessors mentioned in this embodiment have the same meaning as the necessary predecessors in the previous embodiments, both referring to direct or indirect predecessors whose state values ​​will still participate in the control calculation after the migration time. The only difference is that this embodiment uses specific state versions as the judgment unit.

[0035] After forming the migration dependency graph, the last communication cycle that completed effective transmission and reception processing before the end of the current train control cycle is further obtained. Effective transmission and reception refers to the completion of reception of predetermined key inputs and processing of key messages requiring transmission and confirmation within that communication cycle, rather than simply relying on the end of the communication timer. Subsequently, the start and end positions of this communication cycle within the current train control cycle are determined.

[0036] The start and end positions can be represented by a time offset relative to the start of the current train control cycle, or by the communication phase sequence number within that control cycle. For example, if the current train control cycle number is 12540 and the last communication cycle number to complete effective transmission and reception is 25081, and this communication cycle begins 40 milliseconds and ends 80 milliseconds after the start of the current control cycle, then the double-cycle phase anchor point can be represented by a quadruple of <12540, 25081, 40 milliseconds, 80 milliseconds>, ​​or a fixed-length identifier can be formed by sequentially encoding according to a predetermined field length.

[0037] After obtaining the dual-cycle phase anchor point, the migration dependency graph is retrieved backwards from each target state version, based on its corresponding train control cycle and communication stage. This checks whether all valid predecessors exist and are within the allowable cycle range. Simultaneously, it checks whether the sequence number of the most recent acknowledgment message in the communication session matches the normal acknowledgment state after the completion of the communication cycle. For example, after communication cycle 25081 is completed, acknowledgment message sequence number 5682 should be generated. However, if the current communication session state remains at 5681, it indicates that the communication state has not yet closed, and in this case, the dual-cycle phase anchor point cannot be used as a valid migration reference.

[0038] The dual-cycle phase anchor point is determined as the transition time anchor point only when all valid predecessors of the target state version are fully present, the cycle span meets the requirements, and the communication session state is consistent with the corresponding communication cycle. The transition time anchor point obtained in this way is simultaneously constrained by the causal relationship of the state version and the dual-cycle communication phase, and can be directly used for subsequent state closure generation and bypass catching up.

[0039] Step S102: Extract the state objects that satisfy the dependency closure condition at the migration time anchor point according to the migration dependency graph, generate the state closure package and load it into the target area controller running in bypass mode.

[0040] In step S102, based on the migration dependency graph and migration time anchor points formed in step S101, state objects that can jointly constitute a complete running context are extracted from the state objects currently saved by the existing area controller, and after forming a state closure package, they are loaded into the target area controller in the bypass running state.

[0041] The dependency closure condition refers to the fact that the target state object to be migrated and all its predecessor state objects required for continued calculation in subsequent control cycles in the merged migration dependency graph are included in the same migration set, and the periodicity attribute of each dynamic state object conforms to the time series range defined by the migration time anchor point. The necessary predecessors refer to all direct or indirect predecessors of a target state object whose state values ​​will still be read by the target state object or its related functional modules in subsequent control cycles; predecessor states that are only used for historical calculations and are no longer referenced can be excluded. Whether they continue to be referenced can be determined based on the pre-configured input-output relationships of each functional module and the lifecycle attributes of the state objects.

[0042] The target state objects for this migration are defined as the train position state objects and movement authorization calculation intermediate state objects corresponding to all trains in a valid state within the train control cycle corresponding to the migration time anchor point, as well as the communication session state objects corresponding to all external communication objects in a valid connection state within the communication cycle corresponding to the anchor point. Line configuration state objects are typically not used as standalone target state objects, but are included in the migration set as precursor states when the target state object has a direct or indirect dependency on them.

[0043] After identifying the target state objects, starting from each target state object, the necessary predecessors are searched backwards along the migration dependency graph obtained in step S101. If the found node belongs to an indivisible migration unit formed by merging in step S101, all state objects within that migration unit are added to the candidate migration set as a whole; selecting only a portion of the state objects is not allowed. The necessary predecessors of each state object in the candidate migration set are then checked until no necessary predecessors are found to be present. At this point, the set is considered to satisfy the dependency closure condition.

[0044] For example, if the current mobility authorization state M depends on the path search state R, and R depends on the train position state P, the line occupancy state T, and the line speed limit configuration L, then when M is the target state object, at least R, P, T, and L must be extracted. If T or L is missing, even if M itself has a valid value, a complete state closure relationship cannot be formed. Only when all relevant state objects exist and meet the timing requirements of the migration time anchor point are they included in the state closure package.

[0045] For dynamic state objects, select the valid version whose train control cycle and migration time anchor point are consistent. If a predecessor state was generated in an earlier control cycle but is still read in the current cycle, it is judged according to the allowable predecessor range determined in step S101; if it meets the allowable cycle span and is still in a valid state, it is included in the migration set. For communication session states, it is also necessary to check whether its communication cycle number and time offset relative to the train control cycle match the migration time anchor point to avoid combining message sequence numbers or acknowledgment states from different communication stages.

[0046] If a necessary precursor fails, cannot be acquired, or exceeds the allowed cycle span, the target state object relying on that precursor will not be directly used as a valid transition state. For the corresponding train, its control state is regenerated by the target area controller during subsequent bypass catch-up calculations, and the train is not allowed to participate in subsequent control authority transfers until its state is regenerated and passes the consistency verification in step S103. If the number of trains that cannot form a valid state closure relationship reaches a preset abnormal threshold, the current transition is terminated, and step S101 is re-executed.

[0047] State objects that satisfy the dependency closure condition are encapsulated to form a state closure package. The state closure package includes at least a package identifier, a migration time anchor, state object data, object dependencies, indivisible migration unit identifiers, and integrity verification information. Each state object records at least an object identifier, object type, period identifier, version identifier, and specific state value. The integrity verification information allows for determination of whether the state closure package contains missing data or has undergone content changes during the transmission and loading phases.

[0048] Considering that the existing and target area controllers may use different processor architectures, operating systems, or software versions, the state closure is encapsulated using logical fields independent of specific memory addresses. For example, the existing area controller may internally store train positions using structures, pointers, or other internal data structures, while the state closure only records fields with fixed semantics, such as train identifier, track section, position, direction of travel, and validity flags. The target area controller, according to a pre-established field mapping, converts these fields and writes them into its corresponding data structure, thus avoiding direct migration limitations due to differences in word length, memory layout, or software architecture.

[0049] When the target area controller is in bypass operation, it can receive data and perform internal control calculations, but it has not yet obtained actual control output permissions to onboard equipment, interlocking systems, ATS systems, or other external communication objects. After receiving a state closure packet, the target area controller first checks the packet identifier, migration time anchor point, number of objects, and integrity verification results. Only after the verification passes will the state be loaded.

[0050] The loading order is determined based on migration dependencies. Generally, source nodes such as line configuration are loaded first, followed by basic dynamic states such as train position and line occupancy. Then, intermediate states for path search and movement authorization calculation are loaded, and finally, the communication session state is restored. For indivisible migration units, the entire migration unit is treated as a whole in determining the loading order, and its loading level is determined according to the state object with the highest dependency level within the unit. After entering the corresponding loading stage, all state objects within the unit should be written at once, and the corresponding functional module should not enter an effective running state before all are successfully written.

[0051] After the state is loaded, the time difference between the migration time anchor point and the current real-time operating cycle also needs to be processed. Since the generation, transmission, verification, and loading of the state closure packet takes a certain amount of time, the existing area controller has usually been running for several control cycles after the migration time anchor point when the loading is completed. Therefore, starting from the generation of the state closure packet, the existing area controller continuously caches the field input data of each train control cycle after the migration time anchor point, as well as the corresponding communication cycle data, forming an incremental input sequence arranged in cycles.

[0052] After the target area controller completes state loading and dependency integrity verification, it does not directly connect to the current real-time input. Instead, it reads the incremental input sequence in cyclic order and performs control calculations cycle by cycle, starting from the state corresponding to the migration time anchor point. Upon completion of each control cycle catch-up calculation, it updates its own train control cycle number and the corresponding communication cycle state. When the target area controller's train control cycle number catches up to the current cycle of the existing area controller, and the corresponding communication cycle number and time offset satisfy the alignment relationship determined in step S101, the catch-up is considered complete, and the target area controller then receives real-time field input.

[0053] For example, if the migration time anchor point corresponds to train control cycle 12540, and the existing area controller has already reached cycle 12546 when the state closure package is loaded, then the target area controller starts from the closed state corresponding to 12540 and sequentially reads the cached field input and communication data from 12541 to 12546 for catch-up calculation. After completing the 12546 cycle calculation and confirming that both types of cycle states are aligned, the target area controller enters the real-time bypass operation state. If it is still unable to catch up to the current operating cycle within the preset maximum number of catch-up cycles, or if data loss, invalid state, or abnormal safety constraints occur during the catch-up process, then the current state migration is terminated, and step S101 is re-executed to generate a new migration time anchor point.

[0054] Thus, step S102 ultimately enables the target area controller to obtain a control state with complete dependencies, consistent timing, and that has caught up with the current operating cycle, providing a consistent initial operating benchmark for the existing area controller and the target area controller to perform synchronous calculations based on the same real-time field input in step S103.

[0055] Furthermore, the step of extracting state objects that satisfy the dependency closure condition at the migration time anchor point according to the migration dependency graph, generating a state closure package, and loading it into the bypass-running target area controller includes: Using the train position state, intermediate state of motion authorization calculation, and communication session state corresponding to the migration time anchor point as the target state version, all valid predecessors are extracted in reverse along the migration dependency graph, and the indivisible migration units corresponding to cross-cycle circular references are included as a whole to form a candidate closed set. Perform cycle span, predecessor integrity and subsequent computability checks on each state version in the candidate closed set. State versions that lack a valid predecessor but can be regenerated based solely on the field input after the migration time anchor are marked as regenerable states. The state regeneration boundary is determined by its nearest complete predecessor node, and an executable closed set is generated. According to the state regeneration boundary and dependency level, the executable closed set is encapsulated into a state closed package containing migration time anchor point, state version, dependency relationship, regenerable state identifier and regeneration order, and loaded into the target area controller in the order of predecessor before successor and indivisible migration unit as a whole. Since the state closure is generated, the field input and communication data after the migration time anchor point are cached to form an incremental input sequence. After the target area controller is loaded, the directly migrated state is locked to prevent it from being covered by real-time input. Then, the regenerable state is reconstructed using the incremental input sequence according to the regeneration order. After each control cycle is completed, the lock of the corresponding reconstructed state is released. When the train control cycle number, communication cycle number, and communication phase of the target area controller are consistent with those of the existing area controller, and all regenerable states are reconstructed by incremental input, the remaining state lock is released and the system switches to receiving real-time field input to confirm that the state closure package loading is complete.

[0056] In this embodiment, the extraction, loading, and catch-up reconstruction process of the state closure package are further defined, so that the target area controller can maintain the integrity of the dependency relationship during the state transition, and avoid runtime context mismatch caused by missing historical states, early entry of real-time input, or changes in reconstruction order.

[0057] First, the train position state, intermediate state of movement authorization calculation, and communication session state corresponding to the migration time anchor point are used as the target state version. The target state version refers to the state version that needs to be maintained or restored by the target area controller within the train control cycle and communication phase defined by the migration time anchor point. Starting from each target state version, its effective predecessor is searched backward along the migration dependency graph. All direct or indirect predecessors whose state values ​​will still participate in the calculation of the target state version or subsequent control cycles are included in the extraction scope. If an indivisible migration unit formed by the aforementioned merging is found, all state versions in that migration unit are included as a whole, forming a candidate closed set consisting of the target state version, effective predecessors, and indivisible migration units.

[0058] After forming a candidate closed set, each state version is checked for cycle span, predecessor integrity, and subsequent computability. The cycle span check is used to determine whether the state version is still within the allowed historical cycle range; the predecessor integrity check is used to confirm whether the input states required for the state to continue to function can be obtained; the subsequent computability check is used to determine whether, if a state version cannot be directly migrated, it can be recalculated solely based on the actual field inputs generated after the migration time anchor point and the already fully obtained predecessor states.

[0059] For state versions lacking effective predecessors but meeting subsequent computability requirements, they are marked as reproducible states. A reproducible state refers to a state obtained by the target area controller from a complete predecessor state, re-executing the corresponding control calculations by replaying the actual inputs after the migration time anchor point, without directly using historical state values ​​from the existing area controller. The relevant train control calculations of the area controller employ deterministic state transition logic under the given conditions of the same predecessor state, the same field inputs, and the same input sequence. Therefore, the corresponding state can be re-formed through incremental input replay without needing to read the historical state from the existing area controller again or interrupting the operation of the existing area controller.

[0060] For example, if a version of the path search state R at a migration time anchor point cannot be used directly, but the corresponding train position state P, track occupancy state T, and track configuration L are all fully present, and the field inputs for each control cycle after the anchor point have been recorded, then R can be marked as a regenerable state, and the target area controller can re-execute the path search process to generate R based on P, T, L, and subsequent field inputs.

[0061] For each regenerable state, the node or indivisible migration unit that is closest to the state and whose predecessors required for further computation are complete and valid is found by traversing the migration dependency graph. This node is then defined as the state regeneration boundary. The state regeneration boundary is used to determine where the reconstruction process begins. For example, the movement authorization state M depends on the path search state R, and R depends on the train position state P and the track occupancy state T. If neither M nor R can be directly migrated, but P and T are complete and valid, then the dependency levels corresponding to P and T are used as the state regeneration boundary, and R and M are regenerated sequentially from this boundary.

[0062] States that cannot be directly migrated and cannot be regenerated based on the actual input after the anchor point are not considered valid states for this migration. If the state is essential for maintaining train safety control, the generation of the current state closure package is terminated and a new migration time anchor point is selected. After the above screening, states that can be directly migrated, indivisible migration units, regenerable states, and their state regeneration boundaries together constitute an executable closed set.

[0063] The regeneration order is then determined based on the dependency hierarchy and state regeneration boundaries in the migration dependency graph. Precursor states read by other states are placed before successor states, and indivisible migration units participate in the overall sorting. This regeneration order is pre-determined by the existing region controller based on its migration dependency graph when generating the state closure package, and is sent to the target region controller along with the state closure package, rather than being derived automatically by the target region controller after loading. Since the target region controller may use different software versions or processing platforms, having the existing region controller determine the regeneration order ensures that the reconstruction process maintains consistency with the original causal order of the actual computation, avoiding discrepancies in subsequent synchronous computations caused by different reconstruction orders.

[0064] The executable closed set is encapsulated to form a state closure package, which records at least the migration time anchor point, the state version of the direct migration, state dependencies, indivisible migration units, regenerable state identifiers, state regeneration boundaries, and regeneration order. After receiving the state closure package, the target area controller loads the direct migration states in the order of predecessor before successor; all states in the indivisible migration units are not allowed to be used by control calculations until all are written.

[0065] From the moment the state closure packet is generated, the existing area controller caches the field inputs and corresponding communication data after the migration time anchor point according to the control cycle sequence, forming an incremental input sequence. Each incremental input unit is associated with at least the train control cycle number and the communication cycle number, enabling the target area controller to replay the data in the actual order of occurrence.

[0066] After the target area controller completes the direct migration state loading, a locking flag is set for all state versions directly written by the state closure package. This locking means that during the catch-up calculus, these state versions can only be read and updated periodically by the catch-up calculations executed according to the incremental input sequence. Local control calculations triggered by current real-time field inputs are not allowed to read or rewrite them, thus preventing the state corresponding to the migration time anchor point from mixing with the current real-time state, which is not yet aligned. Locking does not affect the state being read as input for the catch-up calculus, nor does it affect its normal updating as the catch-up cycle progresses.

[0067] Subsequently, the incremental input sequence is read according to the regeneration order recorded in the state closure package, and catch-up calculations are performed cycle by cycle starting from the regeneration boundaries of each state. Upon completion of each control cycle, for regenerable states that have been generated in that cycle and whose entire predecessor has been updated to the same catch-up cycle, they are marked as rebuilt successfully for that cycle. For direct migration states that have been updated to the current catch-up cycle with the catch-up calculation, the corresponding lock for that cycle can be released, allowing them to continue evolving normally according to the catch-up calculation. A regenerable state is unlocked after all its regeneration sequences have been executed and it has finally caught up to the current cycle of the existing area controller.

[0068] For example, if the migration time anchor point corresponds to control cycle 12540, and the existing area controller has already reached cycle 12545 when the state closure is loaded, where R and M are determined to be regenerable states, then the target area controller starts from the state regeneration boundary corresponding to P and T, and sequentially replays the incremental inputs from 12541 to 12545. In each cycle, R is generated first, and then M is generated using R from the same cycle. If the existing area controller has already continued to run to 12547 during the replay process, then it continues to read the incremental inputs corresponding to 12546 and 12547, instead of stopping the catch-up at 12545.

[0069] During the catch-up process, the train control cycle number, communication cycle number, and communication phase of the target area controller are continuously compared with those of the existing area controller. Only when all three are consistent and all regenerable states have been reconstructed in the regeneration sequence are the remaining state locks released, causing the target area controller to stop incremental input replay and switch to the current real-time field input. If the cycle number has been caught up but there are still regenerable states that have not been reconstructed, the catch-up state is maintained, and the state closure package is not considered to be loaded successfully.

[0070] In this way, the target area controller can restore the complete operating context without directly copying all historical intermediate states, through state regeneration boundaries, predetermined regeneration sequence, full migration state locking, and incremental input catch-up, and ensure that the internal state, train control cycle, and communication phase are consistent with the existing area controller when the catch-up ends.

[0071] Step S103: Enable the existing area controller and the target area controller to perform synchronous calculations based on the same field input and state closure package, and generate a continuous and consistent evidence chain based on the differences in their control outputs, state evolution trajectories, and safety constraint violations.

[0072] In step S103, after step S102 has enabled the target area controller to complete state closure loading, catch-up calculation, and align with the existing area controller to the same operating cycle, the existing area controller and the target area controller receive the same field input and execute train control calculations respectively. The first real-time control cycle entered by the target area controller after completing the catch-up is used as the starting cycle of the synchronization calculation, and the consistency record generated in this cycle is used as the starting record of the continuous consistency evidence chain.

[0073] The "same field input" refers to external input data, with identical source and content, provided to two area controllers within the same train control cycle. This includes train position reports, track occupancy status, interlocking equipment status, turnout status, temporary speed limit information, and communication data from the ATS system, onboard control equipment, and adjacent area controllers. In practice, the data distribution module can append a train control cycle number and a communication cycle number to the received field data and provide the same data to both area controllers. Only when the corresponding train control cycle number and communication cycle number satisfy the alignment relationship determined in step S101 are the two inputs considered to be the same field input, thereby avoiding input cycle errors caused by network transmission delays.

[0074] During the synchronous calculation phase, the target area controller remains in bypass operation, meaning it performs complete internal control calculations but does not directly output effective control commands to external devices. To avoid both the existing area controller and the target area controller becoming effective control sources simultaneously, output gates can be set on the external communication output paths of the area controllers, with gate states set separately for external communication objects such as vehicle control equipment, computer interlocking systems, ATS systems, and adjacent area controllers. In this step, the output gate corresponding to the target area controller remains closed, and its generated control messages are only sent to the local comparison interface, not entering the actual control communication link; the output gate corresponding to the existing area controller remains active, and it continues to undertake actual control. The state of the output gate is preferably maintained by a communication management unit separate from the target area controller's control application, so that the target area controller cannot automatically open control outputs when its own software malfunctions. This output gate also serves as the execution object for the step-by-step transfer of control communication permissions in step S104.

[0075] After each train control cycle, the control outputs of the two area controllers are extracted and their differences are calculated. Control outputs include the movement authorization endpoint, authorization path, speed limit, train control status, and safety-related communication responses. For discrete states such as permitted or prohibited, valid or invalid, consistency is directly compared. For continuous quantities such as position, distance, and speed, the difference between the two values ​​is calculated and compared with the corresponding allowable deviation threshold. The allowable deviation threshold is determined based on the measurement or positioning uncertainty of the data itself and the maximum error that will not substantially change the onboard control behavior. For example, if the uncertainty range of train positioning is 0.5 meters, the allowable comparison deviation for movement authorization-related position quantities can be set to no more than 0.5 meters. If the existing area controller calculates the authorization endpoint as 3560.2 meters and the target area controller calculates it as 3560.4 meters, this can be considered within the allowable deviation; if the target area controller outputs 3561.0 meters, then this output is considered to exceed the allowable deviation.

[0076] In addition to control outputs, the state evolution trajectories of the two area controllers are compared. The state evolution trajectory is a time series consisting of the state values ​​and state transition order of selected state objects in continuous control cycles. The objects used for trajectory comparison are defined as state objects with subsequent dependencies in the migration dependency graph and which will continue to be read by the movement authorization calculation module or communication control module in subsequent cycles, such as train position status, path search status, danger point status, authorization endpoint status, and communication confirmation status. This avoids meaningless comparisons of temporary variables unrelated to subsequent control.

[0077] The state evolution trajectory is compared using a sliding window consisting of several consecutive control cycles. The window length should be sufficient to cover a complete update process of the critical state being compared; for example, it can be set to five to twenty train control cycles. Upon entering a new control cycle, the earliest cycle is removed from the window and added to the current cycle's state. For numerical states, the differences between cycles and the direction of these differences are compared; for enumerated and logical states, the cycles and order of state transitions are compared. For example, if the existing area controller's path states are sequentially "searching, confirming, locked," while the target area controller shows "searching, searching, confirming," it can be determined that the target area controller has a one-cycle state evolution lag. Even if the current movement authorization output is temporarily consistent, the corresponding trajectory difference is recorded.

[0078] Simultaneously, safety constraint violation quantities are calculated. These safety constraint violation quantities characterize the degree to which the state or control result of the target area controller deviates from the predetermined safety limits of the CBTC. Safety constraints include provisions such as movement authorization not exceeding the danger point ahead, unlocked turnout sections not being included in the authorized path, movement authorization not being extended when the train position is invalid, and entering the corresponding safety state after a communication timeout. For constraints with both satisfied and unsatisfied states, satisfaction is recorded as no violation, and non-satisfied constraints are recorded as one violation. For constraints with safety boundaries such as distance and time, the actual value exceeding the safety boundary is recorded. For example, if a movement authorization endpoint is required to be at least 5 meters from a danger point, a violation of 7 meters is recorded as zero, while a violation of only 3 meters is recorded as 2 meters.

[0079] At the end of each control cycle, the control output difference, the current state evolution trajectory difference, and the safety constraint violation are combined with the corresponding train control cycle number, communication cycle number, and state object identifier to form a consistency record unit. Based on the record results, this unit is determined as consistent, permissible deviation, or inconsistent. When the critical control outputs are consistent or within the permissible deviation range, the state evolution does not have unacceptable periodic misalignment, and the safety constraint violation is zero, it is marked as consistent; when there are only slight instantaneous differences that do not affect safety control, it is marked as permissible deviation; when there is a movement authorization outage, an incorrect critical state transition sequence, a persistent communication state misalignment, or a violation of safety constraints, it is marked as inconsistent.

[0080] The aforementioned consistency record units are connected sequentially according to the control cycle to form a continuous consistency evidence chain. This evidence chain is not a simple collection of ordinary operation logs, but rather each record unit has a clear cyclical continuity relationship with the preceding and following control cycles, and can reflect whether the differences between the two area controllers accumulate, disappear, or amplify during operation.

[0081] A valid, continuous, and consistent chain of evidence should meet a preset minimum number of consecutive cycles. This number of cycles is determined based on the longest cycle required for the area controller to complete a full calculation and state transition in a critical state; for example, it can be set to thirty to one hundred train control cycles. Within this continuous interval, no recording units marked as inconsistent should appear, the number of recording units marked as allowing deviation should not exceed a preset proportion, and the allowable deviation should not occur consecutively more than a preset number of times to avoid continuous accumulation of deviations in the same direction even when all single cycles are within the allowable range. If an inconsistent recording unit appears, the consecutive count is reset to zero and accumulation restarts.

[0082] For example, if the differences in the movement authorization endpoints of two area controllers are within the allowable range for multiple consecutive cycles, and path searching and hazard point state transitions remain synchronized without any violation of safety constraints, then the corresponding records constitute evidence of continuity and consistency. If, in a certain cycle, the communication confirmation status of the target area controller lags behind that of the existing area controller for two consecutive communication cycles, then the record is marked as inconsistent and the continuity count is reset to zero. If a lag occurs only once in a single communication cycle and synchronization is restored in the next communication cycle, then it can be marked as an allowable deviation, and the continuous consistency requirement can be further determined according to the aforementioned rules.

[0083] Therefore, step S103 generates a continuous consistency evidence chain that can simultaneously reflect the consistency of control output, the consistency of continuous evolution of internal state, and the satisfaction of security constraints, and uses it as the direct basis for step S104 to determine whether the target area controller has the conditions for control communication takeover.

[0084] Furthermore, the step of enabling the existing area controller and the target area controller to perform synchronous calculations based on the same field input and state closure package, and generating a continuous and consistent evidence chain based on the differences in their control outputs, state evolution trajectories, and safety constraint violations, includes: For field inputs in the same train control cycle, an input fingerprint is generated according to the source object, message sequence number, communication cycle number and input status version. Only field inputs with the same input fingerprint are sent to the existing area controller and the target area controller respectively to obtain the first state evolution sequence and the second state evolution sequence. Extract the state version propagation path triggered by the same input fingerprint and ultimately affecting the mobile authorization output along the migration dependency graph. Encode the state object, predecessor version and state transition order in each propagation path to generate the first causal path signature and the second causal path signature, and form a state causal alignment sequence accordingly. Based on the state causal alignment sequence, the differences caused by input asynchrony, predecessor state misalignment and target area controller internal calculation offset are distinguished. Only the control output difference caused by internal calculation offset and the state difference that expands in the same direction in a continuous period are generated into a cumulative deviation sequence. The cumulative deviation sequence is mapped along the corresponding causal propagation path to the moving authorization endpoint, the distance to the danger point, the turnout locking condition, and the communication timeout boundary. The remaining margin from each deviation state to the corresponding safety boundary is determined, and a safety boundary approach mark is generated based on the changing direction of the remaining margin within a continuous period. The consistency of causal path signatures, cumulative deviation sequences, safety boundary approach markers, and safety constraint violations are associated with train control cycle numbers and communication cycle numbers to form periodic evidence units. Only when there are no safety constraint violations, safety boundary approach, or non-attributable causal path changes within a continuous cycle are the periodic evidence units sequentially connected to form a continuous consistency evidence chain.

[0085] In this embodiment, the synchronization calculation and difference analysis method between the existing area controller and the target area controller in step S103 is further refined. The focus is on determining the source of difference based on the state propagation process of the same field input within the two area controllers, and identifying state deviations that have not yet resulted in a violation of safety constraints but are continuously developing towards the safety boundary. The continuous consistency evidence chain generated in this embodiment also serves as the basis for determining whether subsequent control communication permissions allow switching.

[0086] First, input fingerprints are generated for field inputs sent to the area controller within the same train control cycle. These input fingerprints uniquely identify the input data participating in the current control calculation and are determined by the source object, message sequence number, communication cycle number, and input status version. Specifically, the source object distinguishes between onboard control equipment, computer interlocking systems, ATS systems, or adjacent area controllers; the message sequence number distinguishes between messages generated consecutively from the same source; the communication cycle number determines the communication round in which the message is located; and the input status version identifies the specific version of the input data. These fields can be combined in a fixed order to form a fingerprint identifier. Only data with identical input fingerprints from both parties are considered the same field input for synchronous calculation, thereby eliminating input differences caused by message delays, duplication, or out-of-cycle errors.

[0087] After the existing area controller and the target area controller process the same input, they record the updated state objects, corresponding state versions, and the order of state transitions according to the train control cycle, forming a first state evolution sequence and a second state evolution sequence. The subsequent state version propagation path is determined based on the actual update order recorded in the above two state evolution sequences, combined with the dependency edges in the migration dependency graph.

[0088] Starting with the same input fingerprint, the state version triggered by that input and ultimately affecting the movement authorization output is found along the migration dependency graph. For example, if the interlocking input updates the line occupancy state T, T and the train position state P together affect the path search state R, and R further participates in the generation of the movement authorization state M, then a causal propagation path is formed from the input through T, P, R to M.

[0089] The state object identifier, the actual preceding version read, and the state transition order in the propagation path are encoded to generate a first causal path signature and a second causal path signature, respectively. The signatures described here are used to characterize the structural features of the propagation path, not to encrypt the state content. Their purpose is to determine whether the same field input undergoes the same state dependencies to form a control output in both area controllers.

[0090] When the same input triggers multiple parallel propagation branches, a causal path signature is generated for each branch. These signatures are then sorted according to the branch's initial state object identifier and combined to form the complete causal path signature corresponding to the input fingerprint. During comparison, branches are paired one by one. If the number of branches, the branch's initial object, and the propagation relationship of each corresponding branch are consistent, the causal path signatures are considered identical. If the target area controller lacks a propagation branch present in an existing area controller, or generates an additional branch not present in an existing area controller, a causal path change is determined, and the subsequent difference attribution process begins. This avoids misjudgments due to different parallel branch recording orders.

[0091] A state causal alignment sequence is formed based on the input fingerprint, predecessor state version, and causal path signature, and the source of difference is distinguished accordingly. If the input fingerprints of the two area controllers are different, the difference is attributed to input asynchrony; if the input fingerprints are the same, but the predecessor versions participating in subsequent calculations are different, it is attributed to predecessor state misalignment; if both the input fingerprint and the predecessor state version are the same, but the state values, state transition results, or control outputs generated by the target area controller are still different, it is attributed to the internal calculation offset of the target area controller. States attributed to predecessor state misalignment can be temporarily excluded from the corresponding causal path signature comparison objects before their reconstruction is completed, but the remaining normal states continue to participate in the evidence chain generation, and it is not required that all attributable differences completely disappear before the evidence chain begins to accumulate.

[0092] For internal calculation offsets, a cumulative deviation sequence is further formed. The allowable range adopts the allowable deviation threshold set for various control outputs by the aforementioned synchronous calculation. Any difference determined to originate from the internal calculation offset, regardless of whether it exceeds the allowable deviation threshold in a single period, is recorded in the cumulative deviation sequence; where a single period has exceeded the allowable deviation threshold, it is recorded as control output out of tolerance; where a single period has not exceeded the allowable range but expands in the same direction in consecutive periods, it is recorded as deviation trend.

[0093] For example, if the target area controller generates a movement authorization endpoint that moves forward by 0.1 meters, 0.2 meters, and 0.4 meters respectively for three consecutive control cycles relative to the existing area controller, even if none of these deviations exceed the allowable deviation of 0.5 meters, it can be determined that the difference has a continuously increasing trend and is retained in the cumulative deviation sequence.

[0094] Subsequently, the cumulative deviation sequence is mapped along the corresponding causal propagation path to the movement authorization endpoint, the distance to the danger point, the turnout locking condition, or the communication timeout boundary. This mapping refers to determining which safety constraint the deviation state will ultimately affect and calculating the remaining effective margin before the constraint fails.

[0095] For example, if the move authorization endpoint must be at least 5 meters before the danger point, and the current target area controller calculates the distance to the danger point to be 8 meters, then there is a 3-meter margin relative to the safety boundary. If the distance changes to 7 meters in the next cycle, the margin decreases to 2 meters. If the margin continues to decrease in consecutive cycles, a safety boundary approach marker is generated. Even if a safety constraint violation has not actually occurred, the state is considered to be trending towards the safety boundary. For communication timeout constraints, the remaining number of cycles from the maximum allowed number of consecutive unacknowledged cycles can be used as the margin.

[0096] At the end of each train control cycle, the consistency of the causal path signature, the cumulative deviation sequence, the safety boundary approach marker, and the safety constraint violation of that cycle are combined with the corresponding train control cycle number and communication cycle number to form a cycle evidence unit. Multiple cycle evidence units are arranged according to the bi-cycle sequence.

[0097] When there are no violations of security constraints, approach to security boundaries, or unattributable causal path changes within a continuous period, the corresponding periodic evidence units are sequentially connected to form a continuous and consistent evidence chain. For path differences that can be clearly attributed to input asynchrony or predecessor state misalignment, the corresponding attribution records can be retained, but they are not considered internal calculation anomalies; for predecessor states that have not yet been reconstructed, their related paths are temporarily excluded from signature consistency determination. If the internal calculation offset continues to expand, the security margin continues to shrink, or the input and predecessor are consistent but the causal propagation path undergoes an unexplained change, the current evidence chain is interrupted and continuous accumulation restarts.

[0098] Therefore, this embodiment can not only determine whether the final control outputs of the two area controllers are consistent, but also determine whether the difference arises from the input, the preceding state, or the target area controller's own calculations, and determine whether the deviation is propagating along the control causal relationship towards the safety boundary. The resulting continuous and consistent evidence chain is directly used for subsequent takeover condition judgment. Whether it is valid directly determines whether to execute the takeover token sequence and output gate switching, thereby directly determining whether the existing area controller or the target area controller sends a valid control message to external communication objects such as on-board control equipment and computer interlocking systems, so that a direct control relationship is formed between the above causal consistency analysis and the actual train control output.

[0099] Step S104: When the continuous and consistent evidence chain meets the switching conditions, generate a takeover token sequence according to the control dependency relationship between external communication objects, transfer the corresponding control communication permissions to the target area controller in sequence, record the current control state after each permission transfer, and generate a fallback anchor point associated with the corresponding takeover token.

[0100] In step S104, when the continuous consistency evidence chain generated in step S103 meets the switching conditions, the system enters the step-by-step transfer stage of control communication permissions. The switching conditions include: the continuous consistency evidence chain reaches a preset minimum number of consecutive periods; there are no inconsistent records within this continuous interval; the security constraint violation is zero; and the number of allowed deviation records and the number of consecutive occurrences do not exceed a set range. If the above conditions are not met, the target area controller continues to maintain the bypass synchronous calculation state.

[0101] The switching condition determination, takeover token generation, permission transfer, and takeover confirmation are executed by an upgrade control unit independent of the existing area controller and the target area controller's control application. This upgrade control unit can be integrated with the communication management unit used to maintain the output gate status in step S103, or it can be set up independently. The upgrade control unit obtains the control output, operating status, and security constraint determination results of both area controllers, and controls the output gates of both, preventing the target area controller from relying on its own application software to determine takeover or open control outputs, thereby avoiding the verified object from simultaneously undertaking verification and permission control functions.

[0102] The external communication objects are devices or systems that interact with the area controller to exchange train control information or operational status information. These include computer interlocking systems, onboard control equipment, ATS systems, and adjacent area controllers. They may also include maintenance and monitoring systems or disaster prevention interface equipment related to train control. The control dependency relationship between external communication objects refers to a relationship where the effective takeover of a later object requires the earlier object to have already established stable communication or effective control.

[0103] In practical implementation, external communication objects are treated as nodes, and dependencies are established based on the CBTC communication interface configuration and control business processes. When effective control of object B requires information provided by object A to have been stably connected to the target area controller, a takeover relationship is established where A takes over before B. For example, before the target area controller sends movement authorization to the onboard control equipment, it needs to stably obtain route, turnout, and track occupancy information provided by the computer interlocking system. Therefore, the computer interlocking system should take over before the onboard control equipment. During cross-regional train handover, adjacent area controllers need to obtain the authorization status and handover boundary information that have actually been sent to trains in their area. Therefore, after the onboard control equipment has completed its control rights takeover, it then takes over the relevant communication rights of the adjacent area controller.

[0104] A takeover token is generated for each external communication object requiring permission transfer. The takeover token is a data record uniquely representing the corresponding external communication object, the takeover sequence, and the current permission status. It includes at least a token identifier, an external communication object identifier, a predecessor token identifier, a corresponding output gate identifier, and a token status. The takeover tokens are arranged according to the control dependencies between external communication objects, forming a takeover token sequence. Multiple objects without dependencies can reside at the same takeover level, and their tokens have the same position in the sequence. Permission transfers can be completed sequentially or simultaneously within the same level, but only after all objects at that level have completed takeover confirmation will the next level be moved to. If any object at the same level fails to take over, the tokens already transferred at that level will be included in the subsequent rollback process.

[0105] Each permission transfer is executed at the corresponding communication cycle boundary. The upgrade control unit first confirms that all predecessor tokens of the current token have completed takeover, and checks the continuity of input communication between the target area controller and the corresponding external communication object, the correct message cycle, and the control output meeting safety constraints. Then, it closes the existing area controller's valid output gate for that object via mutual exclusion control, and opens the corresponding output gate of the target area controller after confirming the closure. Simultaneously, it records the communication cycle number and train control cycle number corresponding to this switch. By performing the switch at the communication cycle boundary, it avoids the occurrence of two valid control sources within the same communication cycle, as well as duplicate or misaligned message sequence numbers.

[0106] During the hierarchical transfer of permissions, the existing area controller remains fully operational, continuously receiving all field inputs and performing train position updates, movement authorization calculations, and communication status processing. For external communication objects whose permissions have been transferred, only the existing area controller's valid output path for that object is closed, without halting its internal calculations; for external communication objects whose permissions have not yet been transferred, the existing area controller remains a valid control source. Therefore, the internal control state of the existing area controller is continuously updated throughout the takeover process, without freezing due to partial output permission transfers, preserving a real-time and effective control foundation for rapid recovery after anomalies.

[0107] After completing the transfer of permissions for a takeover token, within a preset confirmation period, check whether the messages sent by the target area controller are received normally, whether the returned confirmations are consecutive, whether the message sequence numbers are consecutive, and whether the relevant security status is normal. If the confirmation is successful, mark the token as taken over; if the confirmation fails, stop subsequent takeovers and proceed to step S105.

[0108] After each permission transfer is completed, a fallback anchor point associated with the current takeover token is generated. This fallback anchor point represents the recoverable control boundary at the time the takeover is completed. It records at least the takeover token identifier, train control cycle number, communication cycle number, output gate status of both parties, corresponding communication session status, and the critical control status of the existing area controller at that moment. It also records the corresponding status of the target area controller as comparison information. Here, the critical control status used for subsequent recovery is explicitly defined as the status of the existing area controller, such as the current valid movement authorization, authorization version, and most recent acknowledgment message sequence number related to the onboard control equipment, or the route, turnout, and track occupancy status related to the interlocking system.

[0109] The existing area controller status in the rollback anchor point primarily serves as a verification benchmark before restoration, rather than rewriting historical status into the existing area controller. Since the existing area controller continuously performs calculations, during rollback, the current status is first confirmed to have evolved continuously from the anchor point's recorded status, and the absence of abnormal transitions between train identification, authorization version, communication session sequence number, and safety status is checked. Once verification passes, the corresponding output gate can be reopened, restoring it to a valid control source for the external communication object without reloading the complete operating status. If verification reveals that a continuous relationship cannot be established for critical control states, the corresponding output gate is not opened, further permission transfer is stopped, and the relevant control object is maintained or enters a safety state such as restricted movement authorization or prohibited extended authorization, according to existing CBTC fault-oriented safety rules.

[0110] For example, if the takeover tokens are L1, L2, and L3 in sequence, then after each level of takeover is completed, R1, R2, and R3 will be formed respectively. Each rollback anchor point records the status of the preceding token that was already in effect at the time of formation, so that step S105 can determine the permissions to be revoked and the existing area controller output paths to be restored according to the reverse relationship of L3, L2, and L1; for multiple tokens at the same level, they are revoked together as the same restoration level.

[0111] Therefore, step S104 transforms the overall control switch into a step-by-step takeover process executed by an independent upgrade control unit, constrained by control dependencies and with recoverable boundaries. Through continuous calculation of the existing area controller and association of tokens with rollback anchors, subsequent abnormal rollbacks do not require reconstructing the operating context of the existing area controller, providing a clear implementation basis for the reverse-order withdrawal and disturbance-free recovery in step S105.

[0112] Furthermore, when the continuous and consistent evidence chain satisfies the switching condition, a takeover token sequence is generated according to the control dependency relationship between external communication objects, and the corresponding control communication permissions are transferred to the target area controller in sequence. After each permission transfer, the current control state is recorded, and a fallback anchor point associated with the corresponding takeover token is generated, including: A communication takeover dependency graph is established based on the control information reference relationship of external communication objects. All objects that have completed takeover are extracted to form the current takeover front. A takeover token containing the predecessor completion identifier, the current session number and the scheduled switching dual-cycle position is generated for each object. The takeover token is matched with the periodic evidence unit of the corresponding object in the continuous consistency evidence chain, and the takeover window that allows the execution of the takeover token is determined according to the next expected message sequence number of the object. Within the takeover window, the existing area controller sends an invalid control message with the identifier of this takeover epoch, closes its corresponding output gate, and generates a handover confirmation record after obtaining confirmation of the invalid control message from the external communication object. According to the handover confirmation record, open the corresponding output gate of the target area controller, so that it sends control messages starting from the sequence number of the last valid control message, while keeping the existing area controller continuously calculating to generate a continuous record of the dual-end status after the takeover. Within a continuous preset communication cycle, after confirming that the control status is continuous and the message sequence number is not repeated or missing based on the continuous recording of the dual-end status, the takeover token is marked as taken over, and the takeover epoch identifier, the last valid control message, the gate status of both parties and the current control status of the existing area controller are associated to generate a rollback anchor point, thereby releasing the subsequent takeover token in the communication takeover dependency graph.

[0113] In this embodiment, the process of transferring control communication permissions from the existing area controller to the target area controller is further defined, ensuring that each level of takeover has clear preconditions, execution timing, message boundaries, and recoverable status. This process is preferably executed by an upgrade control unit independent of the two area controllers controlling the application, to prevent the target area controller from automatically determining and enabling its control output.

[0114] First, a communication takeover dependency graph is established based on the control information reference relationships between various external communication objects. These external communication objects include the computer interlocking system, on-board control equipment, ATS system, adjacent area controllers, and other equipment that interacts with the area controllers to exchange control information. If effective control of object B requires that object A has already completed takeover and stably provided certain control information, then a dependency relationship from A to B is established in the communication takeover dependency graph. For example, before the target area controller outputs movement authorization to the on-board control equipment, it needs to stably obtain the route, turnout, and track occupancy status provided by the computer interlocking system; therefore, the computer interlocking system constitutes a predecessor object of the on-board control equipment.

[0115] The upgrade control unit checks whether the predecessors corresponding to each object in the communication takeover dependency graph have completed takeover, and includes all objects whose predecessors are already in a takenover state in the current takeover front. The current takeover front is the set of external communication objects that currently meet the conditions for permission transfer and can enter the next takeover process. A takeover token is generated for each object in the front. The takeover token records at least the corresponding external object identifier, the completion status of each predecessor, the object's current communication session sequence number, and the train control cycle number and communication cycle number corresponding to the predetermined switch. This ensures that the takeover token not only indicates takeover eligibility but also clearly defines the specific two-cycle position where the takeover occurred.

[0116] Subsequently, each takeover token is matched with a periodic evidence unit belonging to the same external communication object in the continuous consistency evidence chain. Specifically, the object identifier, train control cycle number, and communication cycle number can be used for correspondence to confirm that the object has no security constraint violations, security boundary approach, or unattributable causal path changes in the continuous period before the token generation. After a successful match, the sequence number of the most recently confirmed message for the object by the existing area controller is read, and the next expected message sequence number is determined according to the original sequence number increment rule of the communication interface.

[0117] The takeover window is determined based on the next expected message sequence number and the predetermined handover dual-cycle position. The takeover window is a limited communication period allowing the execution of a takeover token. Its starting point is the communication cycle during which the existing area controller can send the last valid control message before this takeover, and its ending point is before the target area controller can send the first valid control message according to the subsequent sequence number. The takeover window should be smaller than the communication interruption protection threshold of the corresponding external communication object to avoid communication timeouts due to prolonged lack of valid messages during the handover process.

[0118] Upon entering the takeover window, a takeover epoch identifier is generated for this permission transfer. This epoch identifier distinguishes different control source takeover processes for the same external communication object and can be formed by combining the external object identifier, the current switching dual-cycle position, and an incrementing takeover count. The existing area controller appends this epoch identifier to its last valid control message and sends the message according to the original communication protocol. The last valid control message referred to here is the last message sent by the existing area controller to the external communication object before this takeover and recognized as a valid control output.

[0119] For example, if the last confirmed movement authorization message sequence number of a certain vehicle control device is 5681, and the current takeover window allows the existing area controller to send sequence number 5682 as a non-valid control message, then the current takeover epoch identifier is associated with message 5682. After this message is sent, the upgrade control unit closes the output gate of the existing area controller for this vehicle control device, preventing the existing area controller from sending valid control messages to this device after 5682.

[0120] After closing the output gate of the existing area controller, the output gate of the target area controller is not opened immediately. Instead, it waits for the corresponding external communication object to acknowledge the invalid control message. The acknowledgment can be an acknowledgment message in the communication protocol, a returned received sequence number, or other session status that clearly indicates that the invalid control message has been received and processed. Upon receiving acknowledgment, the takeover epoch identifier, the invalid message sequence number, the acknowledgment result, and the corresponding two-cycle position are recorded together to form a handover acknowledgment record. If no valid acknowledgment is obtained within the takeover window, the current token execution is terminated, and the existing area controller maintains or resumes valid output to that object without entering the target side takeover.

[0121] According to the handover confirmation record, the upgrade control unit opens the corresponding output gate of the target area controller. The target area controller does not restart from an arbitrary message sequence number, but continues the current communication session according to the sequence number of the last valid control message. In the example above, after 5682 has been confirmed by the external object, the first valid control message sent by the target area controller is 5683, thus maintaining the continuity of message sequence numbers before and after the control source change, preventing the same sequence number from being repeatedly sent by two controllers or the intermediate sequence number from being missing.

[0122] After the target area controller obtains valid output permission for the external communication object, the existing area controller continues to receive all field inputs and perform the same internal control calculations, with only its corresponding output gate remaining closed. The upgrade control unit synchronously records the key control states related to the object by both parties, the shadow calculation results of the existing area controller, the actual output of the target area controller, the communication session sequence numbers of both parties, and the confirmation information returned by the external object over several consecutive communication cycles, forming a continuous dual-end state record. This continuous dual-end state record serves to prove that the actual control state on the target side can maintain continuity with the state continuously calculated on the existing side after the control source switch, rather than merely proving that messages can be sent normally.

[0123] Within a preset confirmation period, the system sequentially checks whether the sequence number of messages sent by the target area controller continuously increases from the subsequent sequence number of ineffective control messages, whether there are any duplicates or missing messages, whether external communication objects return confirmations normally, and whether the key control states of the target area controller maintain a continuous relationship with the corresponding states continuously calculated by the existing area controllers within an allowable range. When all the above conditions are met, the takeover token is updated from the executing state to the takenover state.

[0124] Upon successful takeover confirmation, a fallback anchor point uniquely associated with the takeover token is generated. The fallback anchor point must at least store the takeover epoch identifier, the last valid control message and its confirmation information, the output gate status of both parties during the switchover, the corresponding dual-cycle position, the key control status continuously calculated by the existing area controller at the current moment, and the communication session status. The corresponding status of the target area controller can also be stored as comparison information, but the existing side status will not be overwritten with the target side status when the existing area controller is subsequently restored.

[0125] Finally, the takenover token and its fallback anchor are written back to the communication takeover dependency graph. Objects with that token as a predecessor, and all other predecessors having completed takeover, are released to the new current takeover frontier. Subsequent takeover tokens are generated and executed following the same process until all external communication objects requiring migration have completed their permission transfer. In this way, each takeover is based on the results of the previous takeover, evidence of continuity and consistency, confirmation of invalid messages, and the continuity of subsequent sequence numbers. Simultaneously, a fallback state strictly corresponding to that takeover is formed, providing a clear basis for restoring the control and communication permissions of the existing area controller in reverse token order under subsequent abnormal circumstances.

[0126] Step S105: Generate a rollback determination result based on the control output, state evolution trajectory, and communication continuity of the target area controller after the permission transfer; when the rollback determination result indicates that the current takeover phase has failed, cancel the executed permission transfer in reverse order of the takeover token sequence, and restore the corresponding control state of the existing area controller step by step according to the rollback anchor points associated with each canceled takeover token.

[0127] In step S105, after at least one level of control communication authority transfer has been completed in step S104, the upgrade control unit continuously monitors the operating status of the target area controller during the current takeover phase and generates a rollback determination result based on its control output, state evolution trajectory, and communication continuity. The rollback determination result indicates whether safe and continuous control can be maintained during the current takeover phase, and includes at least two states: takeover effective and takeover failed.

[0128] After the target area controller acquires control of an external communication object, it compares its actual output with the corresponding result generated by the existing area controller, which is still performing calculations, in the same control cycle. The monitored control output includes at least the movement authorization endpoint, authorization path, speed limit, train control status, and safety-related messages corresponding to the external object being taken over. The existing area controller continuously receives field inputs and performs control calculations throughout the takeover process; therefore, its current calculation results can serve as a real-time comparison benchmark, eliminating the need to restore historical operating states.

[0129] The state evolution trajectory is continuously monitored according to the state object and comparison method determined in step S103. When the critical state transition sequence of the target area controller is incorrect, the state difference with the existing area controller continuously widens, or a state change cannot be reasonably explained by changes in the current field input and its predecessor states, an abnormal state evolution is identified. For example, if the target area controller automatically reverts its path status from "confirmed" to "searching" without corresponding changes in the field line status, while the existing area controller maintains normal evolution, this state change can be considered abnormal.

[0130] Communication continuity refers to the ability of a target area controller to maintain a predetermined message transmission and reception relationship with the corresponding external communication object after obtaining control communication authority. Specifically, it checks whether message sequence numbers are consecutive, whether periodic messages are sent and received on schedule, whether acknowledgment messages return within a specified time, whether the session is unexpectedly rebuilt, and whether the number of consecutive packet losses exceeds a set range. A single brief delay that recovers normally in the next cycle can be recorded as an instantaneous deviation; if multiple consecutive cycles fail to receive valid acknowledgments, messages experience irreversible duplication or skipping of numbers, or the communication session is abnormally interrupted, then communication continuity is determined to have failed.

[0131] When the control output is still within the allowable range, the state evolution is normal, communication is continuous, and the safety constraint violation is zero, the rollback decision result remains as takeover effective; when the movement authorization crosses the safety boundary, the critical control output exceeds the tolerance, the critical state evolution is abnormal, or the communication continuity of the taken-over object fails, the rollback decision result is set to takeover ineffective.

[0132] When the current takeover phase fails, the upgrade control unit immediately stops executing any unexecuted takeover tokens and identifies the last level where takeover has been completed. Regardless of the actual level at which the anomaly occurred, the takeover tokens are revoked in reverse order, starting from the last level where takeover was completed, until the level where the token that caused the anomaly was located. Revocation is not performed across intermediate dependency levels to avoid preserving the control relationships of subsequent levels from losing their preceding control foundation. If multiple tokens exist at the same takeover level, all tokens at that level are revoked together.

[0133] Before revoking a takeover token, the associated rollback anchor point is read, and the existing area controller's key control status and communication session status recorded therein are used to perform a continuity check on the existing area controller's current status. The check includes whether the train and track status is continuous, whether the movement authorization version evolves in the normal order, whether the communication message sequence number is a reasonable successor to the anchor point record number, and whether the corresponding security status is valid. Since the existing area controller is always running, this check is only used to confirm that the current status can be continuously evolved from the anchor point record status, without rewriting the historical status in the anchor point into the existing area controller.

[0134] After successful verification, permission restoration is performed at the corresponding communication cycle boundary. The upgrade control unit first closes the output gate of the target area controller for the external communication object. After confirming that its effective output has stopped, it then opens the corresponding output gate of the existing area controller, ensuring that only one effective control source exists at any given time.

[0135] Single-level permission restoration should be completed within the communication interruption time allowed by the corresponding external communication object. This allowed time is determined based on the communication timeout protection threshold of the vehicle control equipment, computer interlocking system, or other relevant objects, and should be less than the communication interruption trigger threshold applicable to the current object, while retaining a safety margin. Since there is no need to reload the existing area controller state during the rollback process, only anchor point reading, state continuity verification, and output gate mutual exclusion switching are performed. In actual implementation, single-level rollback can be controlled within one to two communication cycles, so that the communication timeout protection of the corresponding external object will not be triggered before the control source switch is completed. When multiple levels are continuously revoked, each external communication object only experiences one output source switch during the phase of revoking its own token, and its communication interruption time does not accumulate due to the increase in the number of takeover levels.

[0136] If the rollback anchor point verification fails, the corresponding output path of the existing area controller will not be immediately opened, but the corresponding controlled object will enter a preset safety side state. For example, the extended mobility authorization of the vehicle control equipment will be suspended and the existing authorization range will be maintained or reduced until the existing area controller re-establishes a valid control state and communication session before the output is restored.

[0137] After completing the first-level rollback, the control output, state evolution, and communication continuity of the existing area controller under restored control are monitored within a preset observation period. When no anomalies occur during the continuous observation period and the safety constraint violation remains zero, the restoration level is considered to have reached a stable state, and further rollback can be stopped; if anomalies still exist, the previous level takeover token is revoked. Since the restoration target is an existing area controller that was already operating normally before the upgrade, this observation period can be shorter than the minimum number of consecutive periods used in step S103 to confirm that the target area controller is qualified for takeover.

[0138] If some external communication objects controlled by the target area controller are still retained after the rollback is stopped, a partial takeover state is formed. In this state, the upgrade control unit continues to monitor the operation of both parties and sets a maximum dwell time. If the anomaly can be eliminated within this time, a new takeover determination can be made; otherwise, the remaining takeover tokens are revoked in reverse order, returning all control authority to the existing area controller and preventing the partial takeover state from persisting for an extended period.

[0139] Once all executed takeover tokens are revoked and the existing area controller regains control over all external communication objects, the upgrade switchover is recorded as a failure. The upgrade control unit stops the target area controller from participating in this takeover, clears its currently loaded state closure and the temporary state generated by the catch-up calculation, and records the migration time anchor point, failure token, trigger rollback determination type, abnormal cycle, and related consistency records. Simultaneously, it outputs fault information to the maintenance terminal. The existing area controller continues to handle train operation control according to its original control logic. After troubleshooting or correcting the target area controller's software and configuration, step S101 can be re-executed to regenerate the migration time anchor point based on the new actual operating cycle and begin a new upgrade process. Before re-execution, it should be confirmed that the temporary state generated by the previous migration has been cleared.

[0140] Through the above processing, step S105 forms a complete closed loop from post-takeover operation monitoring, failure determination, reverse order withdrawal, anchor point verification, time-limited recovery to failure termination and re-migration. This allows abnormal takeover to preferentially revert to the existing area controller that is still running in real time, and limits the control source switching time of a single external communication object to within its communication protection threshold, thereby reducing the impact of upgrade failure on CBTC continuous control.

[0141] To further illustrate the technical effects of the state transition, continuous consistency verification, and step-by-step takeover described in this embodiment, the following is a combination of... Figures 2 to 4 A set of exemplary operating procedures consistent with the aforementioned implementation methods are provided. The data in the figures are used to illustrate the interaction between various technical features and do not constitute a limitation on the actual line control cycle, communication cycle, security threshold, or message sequence number.

[0142] like Figure 2As shown, taking the example of the existing area controller having already moved to a subsequent cycle when the migration time anchor point corresponds to train control cycle 12540 and the state closure packet loading is completed, the target area controller performs catch-up calculations according to the incremental input sequence, and the control cycle difference between it and the existing area controller gradually decreases from the initial six cycles to zero. Only after the train control cycle number, communication cycle number, and communication phase are all aligned, and the regenerable state is reconstructed, does the target area controller switch to real-time field input. This eliminates the time lag caused by the generation, transmission, and loading of the state closure packet, and avoids the misalignment of the movement authorization calculation context caused by the mixing of the anchor point state and the current real-time input.

[0143] like Figure 3 As shown, during the continuous consistency verification process, even if the control result of the target area controller has not yet crossed the safety constraint boundary, a safety boundary approach marker can be generated based on the trend of the safety boundary margin continuously decreasing within the continuous control cycle. In the illustrated example, the margin is always greater than zero, but the continuous downward trend can interrupt the continuous consistency evidence chain before the actual violation of the safety constraint. This prevents the control communication authority from being transferred prematurely when the internal calculation offset continues to develop towards the danger point, turnout locking boundary, or communication timeout boundary, thus improving the takeover decision's ability to identify cumulative deviations.

[0144] like Figure 4 As shown, during the takeover of control communication authority, the existing area controller sends an invalid control message 5682 with a takeover epoch identifier, and closes the corresponding output gate after the external communication object confirms the message; the target area controller then sends valid control messages starting from the subsequent message 5683. This ensures that the message sequence numbers before and after the control source switch remain continuous and without duplication or missing information, and guarantees that only one valid control source exists at any given time through the mutual exclusion of the output gates of both parties. Simultaneously, the existing area controller continues to receive field inputs and perform continuous calculations after the output authority transfer, enabling the rollback anchor point associated with the takeover token to be used to verify the continuous evolution of its current state. In the event of an abnormal takeover by the target area controller, the corresponding output authority can be restored without reloading the historical state, thereby shortening the rollback time and reducing the impact of the upgrade process on continuous train control.

[0145] A second embodiment of this application provides an electronic device, the electronic device comprising: processor; The memory is used to store a program, which, when read and executed by the processor, executes a state-transition-based non-disruptive upgrade control method for a CBTC area controller provided in the first embodiment of this application.

[0146] The third embodiment of this application provides a computer-readable storage medium storing a computer program thereon. When the program is executed by a processor, it performs a state-transition-based non-disruptive upgrade control method for a CBTC area controller provided in the first embodiment of this application.

[0147] Although this application discloses preferred embodiments as described above, it is not intended to limit this application. Any person skilled in the art can make possible changes and modifications without departing from the spirit and scope of this application. Therefore, the scope of protection of this application should be determined by the scope defined in the claims of this application.

Claims

1. A state-transfer, disturbance-free upgrade control method for a CBTC area controller, characterized in that, include: Obtain the existing area controller's line configuration, train position, intermediate state of movement authorization calculation, and communication session state. Establish a migration dependency graph based on the read / write dependencies between each state object, and generate migration time anchors based on the current communication cycle number and train control cycle number. Extract the state objects that satisfy the dependency closure condition at the migration time anchor point according to the migration dependency graph, generate the state closure package and load it into the target area controller running in bypass mode; The existing area controller and the target area controller are synchronously calculated based on the same field input and state closure, and a continuous and consistent evidence chain is generated based on the differences in their control outputs, state evolution trajectories, and safety constraint violations. When the continuous and consistent evidence chain meets the switching conditions, a takeover token sequence is generated according to the control dependency relationship between external communication objects. The corresponding control communication permissions are transferred to the target area controller in sequence. After each permission transfer, the current control state is recorded and a fallback anchor point associated with the corresponding takeover token is generated. The rollback determination result is generated based on the control output, state evolution trajectory, and communication continuity of the target area controller after the permission transfer. When the rollback determination result indicates that the current takeover phase has failed, the executed permission transfers are revoked in reverse order of the takeover token sequence, and the corresponding control states of the existing area controllers are restored step by step according to the rollback anchor points associated with each revoked takeover token.

2. The state-transition, disturbance-free upgrade control method for CBTC area controllers according to claim 1, characterized in that, The process of acquiring the existing area controller's line configuration, train position, intermediate state of movement authorization calculation, and communication session state, establishing a migration dependency graph based on the read / write dependencies between each state object, and generating migration time anchors based on the current communication cycle number and train control cycle number includes: Obtain the write cycle, read cycle, and reader for each state object within a continuous train control cycle, form a state version identifier for each write, and establish a cross-cycle state access chain according to the state version actually read by the reader. Delete historical dependency edges that are not referenced by subsequent control calculations along the cross-cycle state access chain, merge mutually circularly referenced state versions into indivisible migration units, and generate a migration dependency graph with state versions and migration units as nodes. Obtain the last valid transmission and reception communication cycle before the end of the current train control cycle, determine the start and end positions of the communication cycle within the current train control cycle, and encode the train control cycle number, communication cycle number, and the start and end positions as a dual-cycle phase anchor point. The migration dependency graph is retrieved in reverse using the dual-cycle phase anchor point to verify that all valid predecessors of each target state version exist and that the sequence number of the most recent acknowledgment message of the communication session state corresponds to the communication cycle; when the verification is successful, the dual-cycle phase anchor point is determined as the migration time anchor point.

3. The state-transfer-based, non-disruptive upgrade control method for CBTC area controllers according to claim 2, characterized in that, The step of extracting state objects that satisfy the dependency closure condition at the migration time anchor point according to the migration dependency graph, generating a state closure package, and loading it into the bypass-running target region controller includes: Using the train position state, intermediate state of motion authorization calculation, and communication session state corresponding to the migration time anchor point as the target state version, all valid predecessors are extracted in reverse along the migration dependency graph, and the indivisible migration units corresponding to cross-cycle circular references are included as a whole to form a candidate closed set. Perform cycle span, predecessor integrity and subsequent computability checks on each state version in the candidate closed set. State versions that lack a valid predecessor but can be regenerated based solely on the field input after the migration time anchor are marked as regenerable states. The state regeneration boundary is determined by its nearest complete predecessor node, and an executable closed set is generated. According to the state regeneration boundary and dependency level, the executable closed set is encapsulated into a state closed package containing migration time anchor point, state version, dependency relationship, regenerable state identifier and regeneration order, and loaded into the target area controller in the order of predecessor before successor and indivisible migration unit as a whole. Since the state closure is generated, the field input and communication data after the migration time anchor point are cached to form an incremental input sequence. After the target area controller is loaded, the directly migrated state is locked to prevent it from being covered by real-time input. Then, the regenerable state is reconstructed using the incremental input sequence according to the regeneration order. After each control cycle is completed, the lock of the corresponding reconstructed state is released. When the train control cycle number, communication cycle number, and communication phase of the target area controller are consistent with those of the existing area controller, and all regenerable states are reconstructed by incremental input, the remaining state lock is released and the system switches to receiving real-time field input to confirm that the state closure package loading is complete.

4. The state-transition-based non-disruptive upgrade control method for CBTC area controllers according to claim 3, characterized in that, The process of enabling existing and target area controllers to perform synchronous calculations based on the same field input and state closure package, and generating a continuous and consistent evidence chain based on the differences in their control outputs, state evolution trajectories, and safety constraint violations, includes: For field inputs in the same train control cycle, an input fingerprint is generated according to the source object, message sequence number, communication cycle number and input status version. Only field inputs with the same input fingerprint are sent to the existing area controller and the target area controller respectively to obtain the first state evolution sequence and the second state evolution sequence. Extract the state version propagation path triggered by the same input fingerprint and ultimately affecting the mobile authorization output along the migration dependency graph. Encode the state object, predecessor version and state transition order in each propagation path to generate the first causal path signature and the second causal path signature, and form a state causal alignment sequence accordingly. Based on the state causal alignment sequence, the differences caused by input asynchrony, predecessor state misalignment and target area controller internal calculation offset are distinguished. Only the control output difference caused by internal calculation offset and the state difference that expands in the same direction in a continuous period are generated into a cumulative deviation sequence. The cumulative deviation sequence is mapped along the corresponding causal propagation path to the moving authorization endpoint, the distance to the danger point, the turnout locking condition, and the communication timeout boundary. The remaining margin from each deviation state to the corresponding safety boundary is determined, and a safety boundary approach mark is generated based on the changing direction of the remaining margin within a continuous period. The consistency of causal path signatures, cumulative deviation sequences, safety boundary approach markers, and safety constraint violations are associated with train control cycle numbers and communication cycle numbers to form periodic evidence units. Only when there are no safety constraint violations, safety boundary approach, or non-attributable causal path changes within a continuous cycle are the periodic evidence units sequentially connected to form a continuous consistency evidence chain.

5. The state-transfer-based non-disruptive upgrade control method for CBTC area controllers according to claim 4, characterized in that, When the continuous and consistent evidence chain satisfies the switching conditions, a takeover token sequence is generated according to the control dependency relationship between external communication objects. The corresponding control communication permissions are then transferred sequentially to the target area controller. After each permission transfer, the current control state is recorded, and a fallback anchor point associated with the corresponding takeover token is generated, including: A communication takeover dependency graph is established based on the control information reference relationship of external communication objects. All objects that have completed takeover are extracted to form the current takeover front. A takeover token containing the predecessor completion identifier, the current session number and the scheduled switching dual-cycle position is generated for each object. The takeover token is matched with the periodic evidence unit of the corresponding object in the continuous consistency evidence chain, and the takeover window that allows the execution of the takeover token is determined according to the next expected message sequence number of the object. Within the takeover window, the existing area controller sends an invalid control message with the identifier of this takeover epoch, closes its corresponding output gate, and generates a handover confirmation record after obtaining confirmation of the invalid control message from the external communication object. According to the handover confirmation record, open the corresponding output gate of the target area controller, so that it sends control messages starting from the sequence number of the last valid control message, while keeping the existing area controller continuously calculating to generate a continuous record of the dual-end status after the takeover. Within a continuous preset communication cycle, after confirming that the control status is continuous and the message sequence number is not repeated or missing based on the continuous recording of the dual-end status, the takeover token is marked as taken over, and the takeover epoch identifier, the last valid control message, the gate status of both parties and the current control status of the existing area controller are associated to generate a rollback anchor point, thereby releasing the subsequent takeover token in the communication takeover dependency graph.