Safety goal-oriented CBTC system refinement development and verification method and device
Through the security goal-oriented refined development method of the CBTC system, combined with the Event-B formal method and the dynamic simulation detection of the ProB tool, the problems of model correctness and state space explosion in the development of the CBTC system are solved, and the security properties of the system are verified. and functional correctness.
Patent Information
- Application Number
- CN202410885607.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-07-03
AI Technical Summary
The existing formal method based on Event-B cannot guarantee the correctness of the function of the model in the development of CBTC system, and faces the problems of state space explosion and correctness of the constructed model.
Adopting the security goal-oriented CBTC system refinement development method, by analyzing the control structure, establishing a formal model, using the Event-B formal method for refinement, and proving it through the theorem prover of the Rodin platform, combined with the ProB tool for dynamic simulation , deadlock and invariant violation detection to ensure the correctness of the model.
It achieves the guarantee of the collision-free and derailment-free safety properties of the CBTC system, ensures the consistency in the development process and the correctness of function implementation, and avoids deviations between the model and the expected system functions.
Smart Images

Figure CN118426449B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of system safety assessment, and in particular to a safety goal-oriented CBTC system refinement development and confirmation method and device. Background Art
[0002] The communication-based train control (CBTC) system has become the main development direction of urban rail transit due to its advantages of high reliability and high safety. However, the CBTC system is a system with complex internal structure and strong real-time performance. If there are design defects in its internal components or functional modules, it will cause irreparable consequences. In order to timely and accurately discover possible defects in the system, before further developing the system, it is necessary to use formal methods to rigorously and correctly describe the structure and function, and verify its functional and performance requirements to ensure the reliability and safety of the CBTC system.
[0003] The Event-B-based formal method is based on rigorous mathematical theories and related reasoning. It achieves the core goal of building a trusted system by ensuring the consistency and refinement of each development activity. It is a method suitable for the development of high-quality CBTC systems. At present, there are many successful cases of Event-B-based formal methods in the field of rail transit. For example, major suppliers of rail signaling systems such as Thales and Alstom use Event-B methods to design and verify their safety-critical software deployed in rail systems around the world.
[0004] However, although the Event-B method can ensure the consistency of requirements during the development of the CBTC system, it cannot guarantee the correctness of the model in terms of functional implementation. Therefore, a method is needed to detect the Event-B model of the CBTC system to ensure the correctness of the model. At present, facing a complex safety-critical system such as CBTC, the use of formal methods based on model detection for development will lead to the problem of state space explosion. Although the formal development method using theorem proof can avoid the above problems, it cannot guarantee the correctness of the constructed model. Therefore, a method is needed to ensure the correctness of the model during the development process to avoid deviations between the model and the expected system functions. Summary of the invention
[0005] The purpose of this application is to propose a safety goal-oriented CBTC system refinement development and confirmation method and device in response to the above-mentioned technical problems.
[0006] In a first aspect, the present invention provides a safety goal-oriented CBTC system refinement development and verification method, comprising the following steps:
[0007] Analyze the CBTC system and determine the control structure of the CBTC system;
[0008] The control structure is refined and layered, and the formal model of the CBTC system is obtained by modeling;
[0009] The Event-B formal method is used to refine the formal model of the CBTC system to obtain the Event-B model. The Event-B model is proved by the theorem prover in the Rodin platform to obtain the proved Event-B model.
[0010] The ProB tool is used to perform dynamic simulation, deadlock and invariant violation detection on the proven Event-B model to obtain the CBTC system development results.
[0011] Preferably, the control structure includes an automatic train monitor, an area controller, an on-board controller and an interlocking, wherein the on-board controller forms a control loop with the train, the interlocking forms a control loop with the switch section, the area controller forms a control loop with the on-board controller, and the area controller forms a control loop with the interlocking. The area controller is used to calculate the train position information received from the on-board controller and the route status information provided by the interlocking, obtain the movement authorization range and send it to the train and area controller within its jurisdiction; the interlocking is used to control the route, switch and signal according to the route request received from the area controller to complete the setting and locking of the route, and feed back the route status information to the area controller in real time; the on-board controller is used to control the running speed of the train according to the movement authorization range and speed limit information provided by the area controller.
[0012] Preferably, the formalized model of the CBTC system includes model M0_VOBC_0, model M0_VOBC_1, model M1_CI and model M2_ZC;
[0013] Model M0_VOBC_0: Modeling the onboard controller to control the train to accelerate or brake according to the distance to the destination ahead, ensuring that the train does not exceed the destination ahead;
[0014] Model M0_VOBC_1: Introduces train movement authorization information and models the onboard controller to control the safe movement of the train within the movement authorization range to ensure that the train position does not exceed the train movement authorization range;
[0015] Model M1_CI: Modeling interlocking sends turnout control commands and turnout locking commands to the turnout, which are used to set and lock the turnout respectively;
[0016] Model M2_ZC: The modeling zone controller calculates the movement authorization range for the train, sends the movement authorization range and speed limit information to the on-board controller, and sends the turnout request command to the interlocking according to the train's operating mission.
[0017] Preferably, the Event-B formalization method is used to refine the formal model of the CBTC system to obtain the Event-B model, which specifically includes:
[0018] The modeling elements of the Event-B model include carrier sets, variables and constants. Invariants are used to represent the relationships between different variables, the relationships between different constants, and the relationships between variables and constants. The safety constraints of the formal model of the CBTC system are represented by invariants. The Event-B formal method is used to describe the events and states in the formal model of the CBTC system to obtain the Event-B model.
[0019] As a preferred method, the ProB tool is used to perform dynamic simulation, deadlock and invariant violation detection on the proven Event-B model to obtain the CBTC system development results, including:
[0020] In the proven Event-B model, the elements of the rail network and train operation tasks are instantiated to obtain the instantiation results;
[0021] Traverse all events, perform dynamic simulation based on instantiation results, determine the change results of each event on the movement authorization range of the train, enable the regional controller to correctly allocate the movement authorization range of the train, and the on-board controller can control the train to travel safely within the movement authorization range, and perform invariant violation tests during the dynamic simulation process;
[0022] Iterate over all events and check if the following conditions exist based on the instantiation results:
[0023] The regional controller cannot complete the allocation of the movement authorization range of subsequent trains, that is, after an event of allocating the movement authorization range of a train occurs, the subsequent movement authorization range allocation cannot be performed;
[0024] The onboard controller cannot control the train to complete the operation within the subsequent movement authorization range, that is, after a train operation event occurs, the onboard controller cannot control the train to continue to operate within the subsequent movement authorization range;
[0025] All events are traversed, and based on the instantiation results, it is determined whether there is a violation of the invariant in the process of allocating train movement authorization by the regional controller or a violation of the invariant in the process of controlling the train to travel within the movement authorization range by the on-board controller.
[0026] Preferably, in the proven Event-B model, the operational tasks of the track network and the train are instantiated to obtain instantiation results, including:
[0027] According to the track network, the first part of the carrier set in the proven Event-B model is refined. The first part of the carrier set includes a section resource set, a turnout section set, a turnout direction set, and the position of the turnout in the initial stage. The sections divided by the section resource set, the sections included in the turnout section set, and the positions included in the turnout direction set are defined as positioning positions or reverse positions. The position of the turnout in the initial stage should be in the positioning position. The first part of the constants in the proven Event-B model is assigned values. The first part of the constants includes the length of the section.
[0028] Trains are further introduced and specific operating tasks are assigned to them. The second part of the carrier set in the proven Event-B model is refined according to the operating tasks. The second part of the carrier set includes a train set. The specific trains included in the train set are defined. The second part of the constants in the proven Event-B model are assigned values. The second part of the constants includes positive acceleration, negative acceleration, control cycle, the running direction of each train, the length of each train, each train operating task, the continuity relationship of the sections in each train operating task, the distance from the end of each section of each train operating task to the initial position, the starting section and the ending section in each train operating task, and the direction required by the turnout in the train operating task, to obtain an instantiation result.
[0029] In a second aspect, the present invention provides a safety goal-oriented CBTC system refinement development and verification device, comprising:
[0030] A system analysis module, configured to analyze the CBTC system and determine a control structure of the CBTC system;
[0031] A modeling module is configured to refine and layer the control structure to obtain a formal model of the CBTC system;
[0032] The proof module is configured to refine the formal model of the CBTC system using the Event-B formal method to obtain the Event-B model, and complete the proof of the Event-B model through the theorem prover in the Rodin platform to obtain the proved Event-B model;
[0033] The detection module is configured to use the ProB tool to perform dynamic simulation, deadlock and invariant violation detection on the proven Event-B model to obtain the CBTC system development results.
[0034] In a third aspect, the present invention provides an electronic device comprising one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner in the first aspect.
[0035] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any implementation manner in the first aspect.
[0036] In a fifth aspect, the present invention provides a computer program product, comprising a computer program, which, when executed by a processor, implements the method described in any implementation manner in the first aspect.
[0037] Compared with the prior art, the present invention has the following beneficial effects:
[0038] (1) The safety goal-oriented CBTC system refinement development and validation method proposed in this invention analyzes and refines the CBTC system, accurately describes the control structure of each component in the CBTC system, and establishes a formal model of the CBTC system to meet the safety requirements of train operation.
[0039] (2) The safety goal-oriented CBTC system refinement development and verification method proposed in this invention adopts the Event-B formal method to refine the formal model of the CBTC system and construct the Event-B model to ensure consistency in the development process and complete the model's proof obligations to ensure that the model has collision-free and derailment-free safety properties.
[0040] (3) The safety goal-oriented CBTC system refinement development and confirmation method proposed in this invention uses the ProB tool to perform dynamic simulation of operation scenarios, deadlock and invariant violation detection on the Event-B model of the CBTC system, thereby ensuring the correctness of the Event-B model of the CBTC system in functional implementation. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 A flowchart of a safety goal-oriented CBTC system refinement development and confirmation method according to an embodiment of the present application;
[0043] Figure 2 A flowchart of a safety goal-oriented CBTC system refinement development and confirmation method according to an embodiment of the present application;
[0044] Figure 3 A control structure diagram of a safety goal-oriented CBTC system refinement development and validation method according to an embodiment of the present application;
[0045] Figure 4 A schematic diagram of a rail network for the safety goal-oriented CBTC system refinement development and validation method of an embodiment of the present application;
[0046] Figure 5 A schematic diagram of the first event in the dynamic simulation process of the safety goal-oriented CBTC system refinement development and confirmation method of an embodiment of the present application and the corresponding MA range of trains Train1 and Train2;
[0047] Figure 6 A schematic diagram of a second event in a dynamic simulation process of a safety goal-oriented CBTC system refinement development and validation method according to an embodiment of the present application and its corresponding MA range of trains Train1 and Train2;
[0048] Figure 7 A schematic diagram of a third event in a dynamic simulation process of a safety goal-oriented CBTC system refinement development and validation method according to an embodiment of the present application and its corresponding MA range of trains Train1 and Train2;
[0049] Figure 8 A result diagram of the onboard controller of the safety goal-oriented CBTC system refinement development and validation method of an embodiment of the present application controlling the train Train2 to travel within the MA range;
[0050] Fig. 9 A result diagram of invariant violation detection in an operation scenario simulation of a safety goal-oriented CBTC system refinement development and validation method according to an embodiment of the present application;
[0051] Fig.10 A result diagram of deadlock and invariant violation detection of a safety goal-oriented CBTC system refinement development and validation method according to an embodiment of the present application;
[0052] Fig.11 A schematic diagram of a safety goal-oriented CBTC system refinement development and validation device according to an embodiment of the present application;
[0053] Fig.12 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] Figure 1 A safety goal-oriented CBTC system refinement development and confirmation method provided by an embodiment of the present application is shown, comprising the following steps:
[0056] S1, analyze the CBTC system and determine the control structure of the CBTC system.
[0057] In a specific embodiment, the control structure includes an automatic train monitor, an area controller, an on-board controller and an interlocking, wherein the on-board controller forms a control loop with the train, the interlocking forms a control loop with the switch section, the area controller forms a control loop with the on-board controller, and the area controller forms a control loop with the interlocking. The area controller is used to calculate the train position information provided by the on-board controller and the route status information provided by the interlocking, obtain the movement authorization range and send it to the train and area controller within its jurisdiction; the interlocking is used to control the route, switch and signal according to the route request provided by the received area controller to complete the setting and locking of the route, and feed back the route status information to the area controller in real time; the on-board controller is used to control the running speed of the train according to the movement authorization range and speed limit information provided by the area controller.
[0058] Specifically, refer to Figure 2 ,First, we need to analyze the CBTC system, understand the working mode and control structure of the CBTC system, analyze the functions and control actions of each independent component in the CBTC system, and draw a system analysis diagram, such as Figure 3 As shown in the figure, the CBTC system consists of the following units: Automatic Train Supervision (ATS), Zone Controller (ZC), Vehicle On-Board Controller (VOBC) and Computer Based Interlocking (CI). In the CBTC system, the vehicle controller VOBC forms a control loop with the train, the interlocking CI forms a control loop with the turnout section, the zone controller ZC forms a control loop with the vehicle controller VOBC, and the zone controller ZC forms a control loop with the interlocking CI. The functions of its important components are as follows:
[0059] 1) As an important part of the ground equipment of the CBTC system, the zone controller ZC plays the role of the core safety function of the ground automatic train protection (ATP) subsystem. Its main responsibility is to regularly calculate and send appropriate movement authority (MA) ranges to trains within its jurisdiction based on the train position data from the onboard controller VOBC and the route status information provided by the interlocking CI.
[0060] 2) Interlocking CI is another key component of the ground equipment of the CBTC system. After receiving the route request command from the zone controller ZC, the interlocking CI uses its internal functions to accurately control the route, turnouts and signals to complete the setting and locking of the route. In addition, the interlocking CI is also responsible for collecting information from these devices and feeding it back to the zone controller ZC in real time.
[0061] 3) The onboard controller VOBC consists of the onboard ATP subsystem and the onboard ATO subsystem. In terms of ensuring the safety of train operation, the onboard controller VOBC plays an indispensable role in ensuring that the distance between two trains is always kept above a safe distance. Its working principle is to calculate the corresponding speed distance curve for the train based on the MA range and speed limit information sent by the zone controller ZC. When the train speed is lower than the curve limit, the train accelerates to ensure safe positioning and on-time arrival at the station; conversely, if the speed exceeds the limit, the train activates the braking mechanism to effectively prevent potential dangers.
[0062] S2, refine and layer the control structure, and model the formal model of the CBTC system.
[0063] In a specific embodiment, the formalized model of the CBTC system includes model M0_VOBC_0, model M0_VOBC_1, model M1_CI and model M2_ZC;
[0064] Model M0_VOBC_0: Modeling the onboard controller to control the train to accelerate or brake according to the distance to the destination ahead, ensuring that the train does not exceed the destination ahead;
[0065] Model M0_VOBC_1: Introduces train movement authorization information and models the onboard controller to control the safe movement of the train within the movement authorization range to ensure that the train position does not exceed the train movement authorization range;
[0066] Model M1_CI: Modeling interlocking sends turnout control commands and turnout locking commands to the turnout, which are used to set and lock the turnout respectively;
[0067] Model M2_ZC: The modeling zone controller calculates the movement authorization range for the train, sends the movement authorization range and speed limit information to the on-board controller, and sends the turnout request command to the interlocking according to the train's operating mission.
[0068] Specifically, according to the functional analysis of key components of the CBTC system in step S1, the model is divided into four layers, each layer has different requirements and specifications, and each layer has different properties to be verified. The specific layers are shown in Table 1:
[0069] Table 1 Formal model of CBTC system:
[0070]
[0071] S3, the Event-B formal method is used to refine the formal model of the CBTC system to obtain the Event-B model, and the Event-B model is proved by the theorem prover in the Rodin platform to obtain the proved Event-B model.
[0072] In a specific embodiment, the Event-B formalization method is used to refine the formal model of the CBTC system to obtain the Event-B model, which specifically includes:
[0073] The modeling elements of the Event-B model include carrier sets, variables and constants. Invariants are used to represent the relationships between different variables, the relationships between different constants, and the relationships between variables and constants. The safety constraints of the formal model of the CBTC system are represented by invariants. The Event-B formal method is used to describe the events and states in the formal model of the CBTC system to obtain the Event-B model.
[0074] Specifically, according to the refinement layering in step S2, the Event-B formal method is used to complete the refinement process of the CBTC system, and the Event-B model is obtained. The theorem prover is used on the Rodin platform to complete the proof obligation of the Event-B model. Specifically, it includes the following contents:
[0075] S31, model M0_VOBC_0 mainly focuses on the onboard controller VOBC controlling the train to accelerate and brake according to the distance to the front destination to ensure that the train does not exceed the front destination.
[0076] S32, model M0_VOBC_1 introduces the concept of track network section and stipulates that the on-board controller VOBC controls the train to travel within the MA range.
[0077] S33, the model M1_CI introduces the concept of turnout section, divides the section resource set into linear section and turnout section, and the interlocking CI sets and locks the turnout.
[0078] S34, model M2_ZC is mainly the process of the zone controller ZC calculating the MA range for the train. The zone controller ZC will request the turnout from the interlocking CI for the train according to the train's operation task and send the calculated MA information and speed limit information to the onboard controller VOBC for the onboard controller VOBC to control the train.
[0079] S35, the burden of proof arising from the proof model.
[0080] According to the above steps, the modeling elements of CBTC's Event-B model are obtained. Some of the modeling elements of the Event-B model are as follows:
[0081] Table 2 Vector collection table:
[0082]
[0083] Table 3 Variable table:
[0084]
[0085] Table 4 Constant table:
[0086]
[0087] Invariants:
[0088] ;
[0089] ;
[0090] ;
[0091] inv1_1 indicates that the body of the up train does not overlap with the body of other trains, inv1_2 indicates that the body of the down train does not overlap with the body of other trains, thus ensuring that there is no collision between trains; inv1_3 indicates that the switches within the MA range of the train in the onboard controller VOBC are locked and locked in the correct position, thus ensuring that the train does not derail. Completing the proof of these three invariants in the model completes the proof process of the collision-free and derailment-free safety properties. Indicates that, Indicates or Indicates any.
[0092] In step S35, the theorem prover of the Rodin platform is used to complete all the proof obligations generated from step S31 to step S34. The results are shown in Table 5.
[0093] Table 5 Summary of proof obligations:
[0094]
[0095] The automatic proof success rates of model M0_VOBC_1, model M0_VOBC_2, and model M1_CI all reached 80%. The main reason is that the logic of the control loop in the above three-layer model is relatively simple, so the modeling complexity is low, and the automatic proof success rate of the proof obligation is high. In model M2_ZC, it contains many control loops and the calculation logic in ZC is relatively complex, so the automatic proof success rate did not reach more than 80%. However, for the proof model, its automatic proof success rate is still relatively high, reaching 79.3%.
[0096] S4, use the ProB tool to perform dynamic simulation, deadlock and invariant violation detection on the proven Event-B model to obtain the CBTC system development results.
[0097] In a specific embodiment, the ProB tool is used to perform dynamic simulation, deadlock and invariant violation detection on the proven Event-B model to obtain the CBTC system development results, which specifically include:
[0098] In the proven Event-B model, the elements of the rail network and train operation tasks are instantiated to obtain the instantiation results;
[0099] Traverse all events, perform dynamic simulation based on instantiation results, determine the change results of each event on the movement authorization range of the train, enable the regional controller to correctly allocate the movement authorization range of the train, and the on-board controller can control the train to travel safely within the movement authorization range, and perform invariant violation tests during the dynamic simulation process;
[0100] Iterate over all events and check if the following conditions exist based on the instantiation results:
[0101] The regional controller cannot complete the allocation of the movement authorization range of subsequent trains, that is, after an event of allocating the movement authorization range of a train occurs, the subsequent movement authorization range allocation cannot be performed;
[0102] The onboard controller cannot control the train to complete the operation within the subsequent movement authorization range, that is, after a train operation event occurs, the onboard controller cannot control the train to continue to operate within the subsequent movement authorization range;
[0103] All events are traversed, and based on the instantiation results, it is determined whether there is a violation of the invariant in the process of allocating train movement authorization by the regional controller or a violation of the invariant in the process of controlling the train to travel within the movement authorization range by the on-board controller.
[0104] In a specific embodiment, the elements of the rail network and train operation tasks are instantiated in the proven Event-B model to obtain instantiation results, which specifically include:
[0105] According to the track network, the first part of the carrier set in the proven Event-B model is refined. The first part of the carrier set includes a section resource set, a turnout section set, a turnout direction set, and the position of the turnout in the initial stage. The sections divided by the section resource set, the sections included in the turnout section set, and the positions included in the turnout direction set are defined as positioning positions or reverse positions. The position of the turnout in the initial stage should be in the positioning position. The first part of the constants in the proven Event-B model is assigned values. The first part of the constants includes the length of the section.
[0106] Trains are further introduced and specific operating tasks are assigned to them. The second part of the carrier set in the proven Event-B model is refined according to the operating tasks. The second part of the carrier set includes a train set. The specific trains included in the train set are defined. The second part of the constants in the proven Event-B model are assigned values. The second part of the constants includes positive acceleration, negative acceleration, control cycle, the running direction of each train, the length of each train, each train operating task, the continuity relationship of the sections in each train operating task, the distance from the end of each section of each train operating task to the initial position, the starting section and the ending section in each train operating task, and the direction required by the turnout in the train operating task, to obtain an instantiation result.
[0107] Specifically, for example Figure 4 The track network shown is instantiated in the Event-B model after the proof. In the instantiation process, according to Figure 4 The track network is indicated, and some constants and carrier sets are processed concretely. Specifically, axm1_1 explains that the segment resource set SEC is clearly divided into segments A to K; axm1_2 details the specific segments contained in the turnout segment set Point, namely C, D, F, I and J; axm1_3 defines that the turnout direction set POS is clearly classified into two positions: normal (i.e., positioning) and reverse (i.e., reverse position); axm1_4 points out that the turnout should be in the positioning position in the initial state; finally, axm1_5 assigns a corresponding length value to each segment. As shown below:
[0108] ;
[0109] ;
[0110] ;
[0111] ;
[0112] .
[0113] After the track network layout is instantiated, trains are further introduced and specific operation tasks are assigned to them. Specifically, axm1_6 and axm1_7 clearly define the values of positive acceleration PA as 1m / s2 and negative acceleration NA as 2m / s2; axm1_8 sets the control period t to 1 second. Next, axm1_9 subdivides the train set TRN into two trains, Train1 and Train2; axm1_10 determines that both trains run in the upward direction; axm1_11 specifies that their lengths are both 300 meters. In terms of operation tasks, axm1_12 defines that the operation task of Train1 is to pass through sections A, B, C, D, and E in sequence, while the operation task of Train2 is to pass through sections A, B, C, F, J, and K in sequence. axm1_13 further defines the adjacent relationship between sections in the operation tasks; axm1_14 sets the specific distance from the end of each operation task section to the starting position of the task. In addition, axm1_15 and axm1_16 identify the starting and ending sections of the two train operation tasks respectively; finally, axm1_17 specifies the turnout direction requirements that the train must follow during the operation task. As shown below:
[0114] ;
[0115] ;
[0116] ;
[0117] ;
[0118] ;
[0119] ;
[0120] ;
[0121] ; ;
[0122] ;
[0123] ;
[0124] .
[0125] The above axm1_1~axm4_17 are instantiation results. Based on this, dynamic simulation of operation scenarios is carried out, and the results are as follows: Figure 5-9 , Figure 5 (a) Figure 6 (a) and 7 (a) are the event operation interfaces. Figure 5 (b) Figure 6 (b) and 7 (b) are diagrams showing the MA range changes of Train 1 and Train 2 after the event. Figure 5 After the event (a) is run, the MA ranges of Train1 and Train2 are as follows: Figure 5 As shown in (b), the starting position of the MA range of Train 1 is at the coordinate (A, 0), and the ending position of the MA range is at the coordinate (E, 1000). The starting position coordinate and the ending position coordinate of the MA range of Train 2 are both located at (A, 0).
[0126] Then, Train 1 moves forward, and the zone controller ZC calculates the MA range for Train 2 based on the movement of Train 1. The MA ranges of the two trains change as follows: Figure 6 As shown. Figure 6 After the event (a) is run, the MA ranges of Train1 and Train2 are as follows: Figure 6 As shown in (b), the starting position of the MA range of Train 1 is at the coordinate (C, 25), and the ending position of the MA range is at the coordinate (E, 1000). The starting position of the MA range of Train 2 is at the coordinate (A, 0), and the ending position of the MA range is at the coordinate (B, 1000).
[0127] After Train 1 leaves turnout C, interlocking CI sets and locks turnout C for Train 2, and then sets turnouts F and J in the same way. After all turnouts are set and locked, the zone controller ZC extends the end of the MA range of Train 2 to the end of the operation mission. The MA ranges of the two trains change as follows: Figure 7 As shown. Figure 7 After the event (a) is run, the MA ranges of Train1 and Train2 are as follows: Figure 7As shown in (b), the starting position of the MA range of Train 1 is at the coordinate (D, 5), and the ending position of the MA range is at the coordinate (E, 1000). The starting position of the MA range of Train 2 is at the coordinate (A, 0), and the ending position of the MA range is at the coordinate (K, 1000).
[0128] The zone controller ZC calculates the MA range for Train2 and sends it to the onboard controller VOBC of Train2. The onboard controller VOBC of Train2 will control Train2 to travel within the MA range and safely stop Train2 at the end point of the movement authorization. Figure 8 shown.
[0129] For Train 2, the value of its acceleration-related variable nta(Train2) is displayed as 0 m / s 2 , which clearly indicates that the current acceleration of the train is zero. Similarly, the value of the variable ntv(Train2) is 0m / s, which means that the speed of the train Train2 is also zero at this moment. In addition, the value of the variable ntp(Train2) is recorded as 4500m, which means that the distance that the train Train2 has currently traveled is equal to the distance specified by its operating mission (i.e., from the starting point of section A to the end point of section K), both of which are 4500m. At the same time, the two variables train_front_sec(Train2) and train_front_pos(Train2) related to the front position of the train Train2 are displayed as K and 1000 respectively, which means that the front of Train2 has reached the end of the MA range, where the section mark of the end point of the MA range is K, and the specific position is 1000. The values of all the above variables together prove that the train Train2 successfully stopped running before the end point of the MA range through braking.
[0130] besides, Fig. 9 It is shown that in the dynamic simulation test of the train Train1 and Train2 operation scenarios, the invariants in the proven Event-B model of the CBTC system are not violated. Although fewer states are covered during the dynamic simulation process, invariant violation tests are still required to ensure the correctness of the model in this operation scenario.
[0131] The results of deadlock and invariant violation detection on the proven Event-B model of the CBTC system are as follows: Fig.10As shown, the number of deadlocks and invariant violations in the model is 0. The judgment logic is that ProB will traverse the states in the Event-B model after the proof. When ProB detects that there is a deadlock state on a path or that the state on the path violates the invariant, ProB will record this state. The above results show that through ProB's directional model detection, after traversing all states and events in the Event-B model after the proof of the CBTC system, no model errors, deadlocks, and invariant violations were found, proving the correctness of the formal model of the CBTC system of this application. In the process of dynamic simulation, deadlock and invariant violation detection, if the detection passes, the corresponding formal model of the CBTC system is determined to be the CBTC system development result. If the detection fails, the control structure is refined and layered again and steps S2-S4 are repeated until the detection passes and the CBTC system development result is obtained.
[0132] The above steps S1-S4 do not necessarily represent the order between the steps, but are represented by step symbols, and the order between the steps can be adjusted.
[0133] Further references Fig.11 As an implementation of the methods shown in the above figures, the present application provides an embodiment of a safety goal-oriented CBTC system refinement development and confirmation device. The device embodiment is similar to Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0134] The embodiment of the present application provides a safety goal-oriented CBTC system refinement development and confirmation device, including:
[0135] A system analysis module 1 is configured to analyze the CBTC system and determine a control structure of the CBTC system;
[0136] Modeling module 2 is configured to refine and layer the control structure to obtain a formal model of the CBTC system;
[0137] Proof module 3 is configured to refine the formal model of the CBTC system using the Event-B formal method to obtain the Event-B model, and to prove the Event-B model using the theorem prover in the Rodin platform to obtain the proved Event-B model;
[0138] The detection module 4 is configured to use the ProB tool to perform dynamic simulation, deadlock and invariant violation detection on the proven Event-B model to obtain the CBTC system development results.
[0139] Fig.12Schematic diagram of the hardware structure of the electronic device provided by the embodiment of the present invention. Fig.12 As shown, the electronic device of this embodiment includes: a processor 1201 and a memory 1202; wherein the memory 1202 is used to store computer-executable instructions; the processor 1201 is used to execute the computer-executable instructions stored in the memory to implement the various steps performed by the electronic device in the above embodiment. For details, please refer to the relevant description in the above method embodiment.
[0140] Optionally, the memory 1202 may be independent or integrated with the processor 1201 .
[0141] When the memory 1202 is independently provided, the electronic device further includes a bus 1203 for connecting the memory 1202 and the processor 1201 .
[0142] An embodiment of the present invention further provides a computer storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the above method is implemented.
[0143] An embodiment of the present invention further provides a computer program product, including a computer program. When the computer program is executed by a processor, the above method is implemented.
[0144] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0145] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of this embodiment.
[0146] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each module may exist physically separately, or two or more modules may be integrated into one unit. The above-mentioned module-composed unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0147] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of various embodiments of the present application.
[0148] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
[0149] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.
[0150] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0151] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.
[0152] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a main control device.
[0153] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0154] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A safety goal-oriented CBTC system refinement development and validation method, characterized in that: The following steps are involved: Analyze the CBTC system and determine the control structure of the CBTC system; The control structure is refined and layered, and a formalized model of the CBTC system is obtained by modeling. The formalized model of the CBTC system includes a model M0_VOBC_0, a model M0_VOBC_1, a model M1_CI, and a model M2_ZC; Model M0_VOBC_0: Modeling the onboard controller to control the train to accelerate or brake according to the distance to the destination ahead, ensuring that the train does not exceed the destination ahead; Model M0_VOBC_1: Introduces train movement authorization information and models the onboard controller to control the safe movement of the train within the movement authorization range to ensure that the train position does not exceed the train movement authorization range; Model M1_CI: Modeling interlocking sends turnout control commands and turnout locking commands to the turnout, which are used to set and lock the turnout respectively; Model M2_ZC: Modeling zone controller calculates movement authorization range for train, sends movement authorization range and speed limit information to on-board controller, and sends turnout request command to interlocking according to train operation task; The Event-B formalization method is used to refine the formal model of the CBTC system to obtain the Event-B model, which specifically includes: The modeling elements of the Event-B model include a carrier set, variables and constants. Invariants are used to represent the relationship between different variables, the relationship between different constants and the relationship between variables and constants. The safety constraints of the formal model of the CBTC system are represented by invariants. The Event-B formal method is used to describe the events and states in the formal model of the CBTC system to obtain the Event-B model. The Event-B model is proved by the theorem prover in the Rodin platform to obtain the proved Event-B model. The ProB tool is used to perform dynamic simulation, deadlock and invariant violation detection on the Event-B model after the proof, and the CBTC system development results are obtained, including: In the Event-B model after the proof, the elements of the rail network and the train operation tasks are instantiated to obtain the instantiation results; Traversing all events, performing dynamic simulation based on the instantiation results, determining the change result of the operation of each event on the movement authorization range of the train, so that the regional controller can correctly allocate the movement authorization range of the train, and the on-board controller can control the train to travel safely within the movement authorization range, and performing invariant violation test during the dynamic simulation process; Iterate over all events and check whether the following conditions exist based on the instantiation results: The regional controller cannot complete the allocation of the movement authorization range of subsequent trains, that is, after an event of allocating the movement authorization range of a train occurs, the subsequent movement authorization range allocation cannot be performed; The onboard controller cannot control the train to complete the operation within the subsequent movement authorization range, that is, after a train operation event occurs, the onboard controller cannot control the train to continue to operate within the subsequent movement authorization range; All events are traversed, and based on the instantiation results, it is determined whether there is a violation of the invariant in the process of allocating train movement authorization by the regional controller or a violation of the invariant in the process of controlling the train to travel within the movement authorization range by the on-board controller.
2. The safety goal-oriented CBTC system refinement development and validation method according to claim 1 is characterized in that: The control structure includes an automatic train monitor, an area controller, an on-board controller and an interlocking, wherein the on-board controller forms a control loop with the train, the interlocking forms a control loop with the turnout section, the area controller forms a control loop with the on-board controller, and the area controller forms a control loop with the interlocking. The area controller is used to calculate the train position information provided by the on-board controller and the route status information provided by the interlocking, obtain the movement authorization range and send it to the train and the area controller within its jurisdiction; the interlocking is used to control the route, turnout and signal according to the route request received from the area controller to complete the setting and locking of the route, and feed back the route status information to the area controller in real time; the on-board controller is used to control the running speed of the train according to the movement authorization range and speed limit information provided by the area controller.
3. The safety goal-oriented CBTC system refinement development and validation method according to claim 1 is characterized in that: In the proven Event-B model, the operational tasks of the track network and train are instantiated to obtain instantiation results, including: According to the track network, the first part of the carrier set in the proven Event-B model is refined, the first part of the carrier set includes a section resource set, a turnout section set, a turnout direction set, and the position of the turnout in the initial stage, and the sections divided by the section resource set, the sections included in the turnout section set, and the positions included in the turnout direction set are defined as positioning positions or reverse positions, and the position of the turnout in the initial stage should be in the positioning position, and the first part of the constants in the proven Event-B model is assigned, and the first part of the constants includes the length of the section; Trains are further introduced and specific operating tasks are assigned to them. According to the operating tasks, the second part of the carrier set in the proven Event-B model is refined, and the second part of the carrier set includes a train set. The specific trains included in the train set are defined. The second part of the constants in the proven Event-B model are assigned values, and the second part of the constants includes positive acceleration, negative acceleration, control cycle, the running direction of each train, the length of each train, each train operating task, the continuity relationship of the sections in each train operating task, the distance from the end of each section of each train operating task to the initial position, the starting section and the ending section in each train operating task, and the direction required by the turnout in the train operating task, to obtain an instantiation result.
4. A safety goal-oriented CBTC system refinement development and verification device, characterized in that: include: A system analysis module, configured to analyze the CBTC system and determine a control structure of the CBTC system; A modeling module is configured to refine and layer the control structure to obtain a formalized model of the CBTC system, wherein the formalized model of the CBTC system includes a model M0_VOBC_0, a model M0_VOBC_1, a model M1_CI, and a model M2_ZC; Model M0_VOBC_0: Modeling the onboard controller to control the train to accelerate or brake according to the distance to the destination ahead, ensuring that the train does not exceed the destination ahead; Model M0_VOBC_1: Introduces train movement authorization information and models the onboard controller to control the safe movement of the train within the movement authorization range to ensure that the train position does not exceed the train movement authorization range; Model M1_CI: Modeling interlocking sends turnout control commands and turnout locking commands to the turnout, which are used to set and lock the turnout respectively; Model M2_ZC: Modeling zone controller calculates movement authorization range for train, sends movement authorization range and speed limit information to on-board controller, and sends turnout request command to interlocking according to train operation task; The proof module is configured to refine the formal model of the CBTC system using the Event-B formal method to obtain an Event-B model, which specifically includes: The modeling elements of the Event-B model include a carrier set, variables and constants. Invariants are used to represent the relationship between different variables, the relationship between different constants and the relationship between variables and constants. The safety constraints of the formal model of the CBTC system are represented by invariants. The Event-B formal method is used to describe the events and states in the formal model of the CBTC system to obtain the Event-B model. The Event-B model is proved by the theorem prover in the Rodin platform to obtain the proved Event-B model. The detection module is configured to use the ProB tool to perform dynamic simulation, deadlock and invariant violation detection on the proven Event-B model to obtain the CBTC system development results, including: In the Event-B model after the proof, the elements of the rail network and the train operation tasks are instantiated to obtain the instantiation results; Traversing all events, performing dynamic simulation based on the instantiation results, determining the change result of the operation of each event on the movement authorization range of the train, so that the regional controller can correctly allocate the movement authorization range of the train, and the on-board controller can control the train to travel safely within the movement authorization range, and performing invariant violation test during the dynamic simulation process; Iterate over all events and check whether the following conditions exist based on the instantiation results: The regional controller cannot complete the allocation of the movement authorization range of subsequent trains, that is, after an event of allocating the movement authorization range of a train occurs, the subsequent movement authorization range allocation cannot be performed; The onboard controller cannot control the train to complete the operation within the subsequent movement authorization range, that is, after a train operation event occurs, the onboard controller cannot control the train to continue to operate within the subsequent movement authorization range; All events are traversed, and based on the instantiation results, it is determined whether there is a violation of the invariant in the process of allocating train movement authorization by the regional controller or a violation of the invariant in the process of controlling the train to travel within the movement authorization range by the on-board controller.
5. An electronic device comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 3.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.
7. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.
