CN111003030A - Method and device for generating temporary speed limit message test case of train control system - Google Patents

Method and device for generating temporary speed limit message test case of train control system Download PDF

Info

Publication number
CN111003030A
CN111003030A CN201911374772.0A CN201911374772A CN111003030A CN 111003030 A CN111003030 A CN 111003030A CN 201911374772 A CN201911374772 A CN 201911374772A CN 111003030 A CN111003030 A CN 111003030A
Authority
CN
China
Prior art keywords
test
information
speed limit
generating
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911374772.0A
Other languages
Chinese (zh)
Other versions
CN111003030B (en
Inventor
宋青阳
徐建华
郭海琦
张瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casco Signal Beijing Ltd
Original Assignee
Casco Signal Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casco Signal Beijing Ltd filed Critical Casco Signal Beijing Ltd
Priority to CN201911374772.0A priority Critical patent/CN111003030B/en
Publication of CN111003030A publication Critical patent/CN111003030A/en
Application granted granted Critical
Publication of CN111003030B publication Critical patent/CN111003030B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B61RAILWAYS
    • B61LGUIDING RAILWAY TRAFFIC; ENSURING THE SAFETY OF RAILWAY TRAFFIC
    • B61L27/00Central railway traffic control systems; Trackside control; Communication systems specially adapted therefor
    • B61L27/60Testing or simulation
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B61RAILWAYS
    • B61LGUIDING RAILWAY TRAFFIC; ENSURING THE SAFETY OF RAILWAY TRAFFIC
    • B61L27/00Central railway traffic control systems; Trackside control; Communication systems specially adapted therefor
    • B61L27/50Trackside diagnosis or maintenance, e.g. software upgrades

Abstract

The invention discloses a method and a device for generating a temporary speed limit message test case of a train control system, relates to the technical field of railway control system maintenance, and aims to automatically generate the temporary speed limit message test case of the train control system, reduce the repeated labor of data producers and ensure that the process of generating the test case is safe and efficient. The main technical scheme of the invention is as follows: reading an engineering data table, wherein the engineering data table at least comprises: a route information meter, a split-phase information meter, a transponder position meter, a signal point track section data meter, a line slope meter, an odometer information meter, a line mileage broken link detail meter and a line speedometer; when a test scene generation request triggered by a user is received, generating a test scene by calling the engineering data table; when an expected result calculation request triggered by a user is received, calculating an expected result corresponding to the test scene by calling a preset rule; and generating a test case according to the test scene and the corresponding expected result and feeding back the test case to the user.

Description

Method and device for generating temporary speed limit message test case of train control system
Technical Field
The invention relates to the technical field of railway control system maintenance, in particular to a method and a device for generating a temporary speed limit message test case of a train control system.
Background
The CTCS-2 level train control system is a control system widely applied in China at present, a train control center is the core of the CTCS-2 level train control system, and one important function of the train control center is to control an active transponder to send a message to a vehicle-mounted device so as to transmit information such as line data, positioning information, temporary speed limit and the like to the vehicle-mounted device. In order to ensure the safety of the train control system, in engineering application, the function of each train control center for sending messages to the transponders needs to be carefully tested. In various messages, the temporary speed limit message has the most influence factors and the most time consumed in the test because the calculation process of the temporary speed limit message is the most complex.
At present, factors influencing the temporary speed limit message mainly include a route state and temporary speed limit information. For an active transponder, the route state determines whether to send a temporary speed limit message and what type of temporary speed limit message to send, and when testing the temporary speed limit message of a transponder, all relevant routes are traversed, and the route types are various. Under the condition that the type of the route is determined, temporary speed limit information is matched to construct a test scene, but the temporary speed limit information comprises a line number, a speed limit starting point, a speed limit end point and a speed limit value, so that the temporary speed limit information has infinite possibility.
When testing temporary rate-limiting messages, the active transponders are typically tested one by one. For a station, the types and the number of the installed active transponders are various, and in addition, different access states and various temporary speed limit information are matched, so that the test cases of temporary speed limit messages required by the test are different from hundreds to thousands. However, the inefficiency and insecurity of the test scenario, which is basically constructed manually by testers and further calculated manually according to the test scenario, cannot meet the growing industry requirements.
Disclosure of Invention
In view of the above, the invention provides a method and a device for generating a temporary speed-limiting message test case of a train control system, and mainly aims to automatically generate the temporary speed-limiting message test case of the train control system, so that the repeated labor of data producers is greatly reduced, and the process of generating the test case becomes safe and efficient.
In order to achieve the above purpose, the present invention mainly provides the following technical solutions:
in a first aspect, the present invention provides a method for generating a temporary speed limit message test case for a train control system, the method includes:
reading an engineering data table, wherein the engineering data table at least comprises: a route information meter, a split-phase information meter, a transponder position meter, a signal point track section data meter, a line slope meter, an odometer information meter, a line mileage broken link detail meter and a line speedometer;
when a test scene generation request triggered by a user is received, generating a test scene by calling the engineering data table;
when an expected result calculation request triggered by a user is received, calculating an expected result corresponding to the test scene by calling a preset rule;
and generating a test case according to the test scene and the corresponding expected result and feeding back the test case to the user.
Optionally, when a test scenario generation request triggered by a user is received, generating a test scenario by calling the engineering data table includes:
after station information input by a user is received, determining a target station to be tested;
determining an active transponder installed in the target station by searching the transponder position table;
determining an access which is associated with the active responder by searching the access information table to obtain target scene information which is formed by the active responder and the corresponding access;
obtaining a target test critical point corresponding to target scene information by searching a preset mapping relation between pre-constructed scene information and the test critical point;
and generating a test scene corresponding to the target scene information by using the target test critical point and preset parameter information, wherein the preset parameter information at least comprises preset speed limit value information.
Optionally, the generating a test scenario corresponding to the target scenario information by using the target test critical point and preset parameter information includes:
selecting an inner preset threshold and an outer preset threshold of the target test critical point to obtain a temporary speed-limiting interval which crosses the target test critical point and is composed of the inner preset threshold and the outer preset threshold;
determining a line direction according to the target scene information;
determining a speed limit starting point and a speed limit end point corresponding to the temporary speed limit interval according to the line direction;
and forming a test scene corresponding to the target scene information according to the route, the speed limit starting point and the speed limit end point contained in the scene information and the preset speed limit value information.
Optionally, the preset parameter information further includes: the number of block sections for each line in the forward and reverse directions, which is reduced from the highest code to the red-yellow code, is related to the highest speed of the railway line allowed to run.
Optionally, after reading the engineering data table, the method further includes:
verifying the logic relationship between the attribute fields in the engineering data table; and/or the presence of a gas in the gas,
and verifying the legality of the data stored in the engineering data table.
In a second aspect, the present invention further provides a device for generating a temporary speed-limiting message test case for a train control system, where the device includes:
the reading unit is used for reading an engineering data table, and the engineering data table at least comprises: a route information meter, a split-phase information meter, a transponder position meter, a signal point track section data meter, a line slope meter, an odometer information meter, a line mileage broken link detail meter and a line speedometer;
the first generating unit is used for generating a test scene by calling the engineering data table read by the reading unit when a test scene generating request triggered by a user is received;
the calculation unit is used for calculating an expected result corresponding to the test scene by calling a preset rule when an expected result calculation request triggered by a user is received;
and the second generating unit is used for generating a test case according to the test scene generated by the first generating unit and the corresponding expected result calculated by the calculating unit and feeding back the test case to the user.
Optionally, the first generating unit includes:
the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a target station to be tested after receiving station information input by a user;
the determining module is further configured to determine an active transponder installed at the target station by looking up the transponder location table;
the determining module is further configured to determine a route associated with the active transponder by looking up the route information table, so as to obtain target scene information formed by the active transponder and the corresponding route;
the acquisition module is used for searching a preset mapping relation between pre-constructed scene information and a test critical point to obtain a target test critical point corresponding to the target scene information;
and the generating module is used for generating a test scene corresponding to the target scene information by using the target test critical point and preset parameter information, wherein the preset parameter information at least comprises preset speed limit value information.
Optionally, the generating module includes:
the selection submodule is used for selecting an inner preset threshold and an outer preset threshold of the target test critical point to obtain a temporary speed-limiting interval which crosses the target test critical point and is composed of the inner preset threshold and the outer preset threshold;
the determining submodule is used for determining the line direction according to the target scene information;
the determining submodule is also used for determining a speed limit starting point and a speed limit terminal point corresponding to the temporary speed limit interval according to the line direction;
and the forming submodule is used for forming a test scene corresponding to the target scene information according to the route, the speed limit starting point and the speed limit end point contained in the scene information and the preset speed limit value information.
Optionally, the preset parameter information further includes: the number of block sections for each line in the forward and reverse directions, which is reduced from the highest code to the red-yellow code, is related to the highest speed of the railway line allowed to run.
Optionally, the apparatus further comprises:
and the verification unit is used for verifying the logic relationship between the attribute fields in the engineering data table after the engineering data table is read, and/or verifying the legality of the data stored in the engineering data table.
In a third aspect, the present invention further provides a storage medium, where the storage medium includes a stored program, and when the program runs, the device where the storage medium is located is controlled to execute the method for generating the temporary speed limit packet test case of the train control system.
In a fourth aspect, the present invention also provides an electronic device, comprising at least one processor, and at least one memory, a bus connected to the processor;
the processor and the memory complete mutual communication through the bus;
the processor is used for calling the program instruction in the memory to execute the method for generating the temporary speed limit message test case of the train control system.
By the technical scheme, the technical scheme provided by the invention at least has the following advantages:
the invention provides a method and a device for generating a temporary speed limit message test case of a train control system. Compared with the prior art, the method solves the problems of low efficiency and low safety of manually compiling the temporary speed limit message test case, can greatly reduce the repeated labor of data production personnel, and ensures that the process of generating the test case becomes safe and efficient.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flow chart of a train control system temporary speed limit message test case method provided by an embodiment of the invention;
FIG. 2 is a diagram of the types of routes provided by an embodiment of the present invention;
FIG. 3 is an active transponder of the type provided by embodiments of the present invention;
fig. 4 is a tool for automatically generating a temporary speed limit message test case of a train control system according to an embodiment of the present invention;
fig. 5 is a flowchart of another example of a temporary speed limit message test case method for a train control system according to an embodiment of the present invention;
FIG. 6 illustrates an exemplary transponder range of embodiments of the present invention;
fig. 7 is a block diagram of a temporary speed-limiting message test case device of a train control system according to an embodiment of the present invention;
fig. 8 is a block diagram of another example of a temporary speed-limiting message test case device of a train control system according to an embodiment of the present invention;
fig. 9 is an electronic device of a temporary speed limit message test case of a train control system according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The embodiment of the invention provides a temporary speed limit message test case method for a train control system, as shown in figure 1, the method constructs a tool for automatically generating the temporary speed limit message test case for the train control system, and can process a pre-input railway engineering data table to automatically generate a temporary speed limit message test scene and an expected result by receiving a touch instruction of a user on an interface where the tool interacts with the user, and the method provides the following specific steps for the embodiment of the invention:
101. reading an engineering data table, wherein the engineering data table at least comprises: the system comprises a route information meter, a split-phase information meter, a transponder position meter, a signal point track section data meter, a line slope meter, an odometer information meter, a line mileage broken link detail meter and a line speedometer.
In the embodiment of the invention, a tool for automatically generating a temporary speed limit message test case of a train control system is constructed, and the step of inputting an engineering data table into the tool at least comprises the following steps: the system comprises a route information meter, a split-phase information meter, a transponder position meter, a signal point track section data meter, a line slope meter, an odometer information meter, a line mileage broken link detail meter and a line speedometer.
For the route information table, the route is a railway driving term, and the route refers to a path on which a train, a shunting locomotive or a train runs from one place to another place in a station. The route comprises a train route and a shunting route, wherein the train route comprises a receiving route, an departure route and a passing route. Specifically, for the embodiment of the present invention, the route types included in the route information table input to the tool, as shown in fig. 2, include: departure, reverse lateral receiving-3, reverse lateral receiving-2, positive line receiving, lateral receiving-1 and reverse lateral receiving-1. In the embodiment of the invention, test scenes are mainly generated for the route types.
The split-phase information table is used for defining split-phase zone information on a railway line, and the split-phase zone is a non-power zone of an electrified railway and is used for isolating different phases of electricity supplied by different substations through two split-phase switches so as to prevent the short circuit of the different phases of electricity and cause the fusing of a contact network.
The transponder position table is a point type device for ground train information transmission, and is divided into a fixed (passive) transponder and a variable (active) transponder, and the transponder position table is mainly used for providing reliable ground fixed information and variable information for train control vehicle-mounted equipment. In the embodiment of the present invention, the transponder information table records the active transponder location information, and as shown in fig. 3, the types of active transponders recorded in the transponder location information table may include, but are not limited to: DD (large-size turnout responder group), JL (inbound responder group), FCZ (reverse outbound responder group), CZ (outbound responder group), FJZ (reverse inbound responder group), ZJ (relay responder group), and JZ (inbound responder group).
In the embodiment of the present invention, there is an association between the input multiple engineering data tables, such as: according to the same field information stored in the two tables, the two tables are logically associated, and when one table is searched, more associated information can be searched according to the other table.
102. And when a test scene generation request triggered by a user is received, generating a test scene by calling the engineering data table.
In the embodiment of the present invention, since the factors affecting the temporary speed limit packet mainly include the route state and the temporary speed limit information, the route state and the temporary speed limit information need to be determined in order to construct a test scenario applicable to the temporary speed limit packet. This route state is acquired based on the data information included in the inputted project data table.
The temporary speed limit information comprises the following steps: the system comprises a line number, a speed limit starting point, a speed limit terminal and a speed limit value. In the embodiment of the invention, the test method is a critical point test method, namely a series of speed limits from the lowest speed limit value to the highest speed limit value are issued in the interval of the fixed range of the inner side and the outer side of the critical point and the interval of the fixed range of the crossing critical point, the starting point and the end point of the speed limit are two points of the interval of the fixed range of the inner side and the outer side of the critical point respectively, and the speed limit values are a plurality of preset speed values for completing the test.
Specifically, in the embodiment of the present invention, according to the above-mentioned method for acquiring the route state and the temporary speed limit information, a control program for implementing the method is edited in advance, so that when the constructed tool receives a test scenario generation request triggered by a user, a test scenario can be automatically generated in a background of the tool according to the control program.
103. And when an expected result calculation request triggered by a user is received, calculating an expected result corresponding to the test scene by calling a preset rule.
And the expected result corresponding to the test scene is the temporary speed limit message correspondingly generated.
In the embodiment of the invention, after the automatic creation of the test scenario is completed, according to the conventional method for manually calculating the expected result for the test scenario, the control program for calculating the expected result is edited in advance, which is equivalent to the preset rule for obtaining the expected result, which is designed in advance by the user. It should be noted here that according to different test scenarios, different preset rules for calculating expected results may be edited in advance to obtain mapping relationships between the different test scenarios and the expected results, so that when an expected result calculation request triggered by a user is received at the tool, the mapping relationships are searched to obtain the preset rules matched with the test scenarios, and the data information is recorded in combination with the engineering data table to implement automatic calculation and generate the expected results corresponding to the test scenarios.
104. And generating a test case according to the test scene and the corresponding expected result and feeding back the test case to the user.
In the embodiment of the present invention, according to steps 101-104, a tool for automatically generating a temporary speed limit message test case of a train control system is constructed, as shown in fig. 4, the tool includes: the system comprises a user interface function module, a file reading function module, a test scene generation function module, an expected result calculation function module and a file output function module. The tool replaces manual editing of test scenes and calculation of expected results, the generation accuracy is high, possible omission and errors of the existing manual writing test cases are overcome, the generation speed is high, and the problem that the existing manual writing test cases are low in efficiency is solved. In addition, by using a user interface function module of the tool, a user can clearly see the generation process, the prompt information is detailed, the user can check the intermediate result calculated in the generation process on the interface, and the error analysis is facilitated.
The embodiment of the invention provides a method for generating a temporary speed limit message test case of a train control system. Compared with the prior art, the method solves the problems of low efficiency and low safety of manually compiling the temporary speed limit message test case, can greatly reduce the repeated labor of data production personnel, and ensures that the process of generating the test case becomes safe and efficient.
In order to describe the above embodiment in more detail, as shown in fig. 5, the embodiment of the present invention further details a specific implementation method for generating a test scenario in a tool, and the following specific steps are provided for the embodiment of the present invention:
201. and after receiving the station information input by the user, determining a target station to be tested.
In the embodiment of the invention, a user can input station information through a human-computer interaction interface of the tool, and the tool automatically determines the target station to be tested according to the station information.
202. And determining the active transponder installed in the target station by searching the transponder position table.
On the tool side, after a target station to be detected is determined, the information of an active transponder installed in the target station is acquired by searching a transponder position table pre-stored in an engineering data table, and the method at least comprises the following steps: active transponder type and active transponder location information.
203. And determining the route associated with the active transponder by searching the route information table to obtain the target scene information formed by the active transponder and the corresponding route.
On the tool side, according to the logical association relation among a plurality of data tables in the engineering data table, a plurality of routes associated with the searched active transponder are obtained by searching the route information table, and the active transponder and the corresponding route form target scene information.
It should be noted that, in the embodiment of the present invention, since the constructed test scenarios may also exist differently due to different routes and different types of active transponders, the target scenario information is constructed based on these two main factors. In addition, the test method according to the embodiment of the invention adopts a critical point test method, namely a series of speed limits from the lowest speed limit value to the highest speed limit value are issued in the interval of the fixed range of the inner side and the outer side of the critical point and the interval of the fixed range of the crossing critical point, and the critical points are selected to have difference for different target scene information.
204. And obtaining a target test critical point corresponding to the target scene information by searching a preset mapping relation between the pre-constructed scene information and the test critical point.
In the embodiment of the invention, in order to realize the automation of generating the test case side by using a tool, a preset mapping relation between scene information and a test critical point is constructed in advance, so that for each group of different scene information, the position of the critical point is not required to be calculated manually, but after the target scene information is determined in step 203, the preset mapping relation is called and the corresponding test critical point is found by using a pre-edited control program, so that the core key (namely, the test critical point) of the critical point test method is found by using automatic replacement manual processing.
205. And generating a test scene corresponding to the target scene information by using the target test critical point and preset parameter information, wherein the preset parameter information at least comprises preset speed limit value information.
Wherein, the preset parameter information comprises: the number of block partitions for each line from the highest code to the red-yellow code in the forward and reverse directions is related to the highest speed of the railway line allowed to run.
For example: and the highest code in the forward direction and the reverse direction of a certain line is the code L5, the number of the block partitions which are reduced from the highest code to the red-yellow code is 8(L5- > L4- > L3- > L2- > L- > LU- > U- > HU), and the number of the block partitions is related to the highest speed of the railway line allowed to operate. Wherein, the L code permits the train to run according to the regulated speed, the locomotive signal machine displays a green light; the LU code is that the train is permitted to operate according to the specified speed, and the locomotive signal displays a half green and half yellow light (only suitable for getting on station and getting off the train); the U code requires the train to pay attention to the operation, and the locomotive signal machine displays a yellow light; HU code requires timely taking parking measure, and the locomotive signal machine displays a half red and half yellow light. The track circuit encoding is referenced to a cab signal information definition and assignment criterion (TB/T3060).
The preset parameter information further includes: and setting a temporary speed limit value in the test case, wherein the temporary speed limit value is lower than the maximum speed allowed by the railway line, such as: positive line speed limit value: 45. 75, 80, 120, 200km/h. side line speed limit: 45. 80 km/h. These temporary speed limit values are speed limit values set at critical points, and thus the critical point test method is adopted in the embodiment of the present invention.
In the embodiment of the invention, the preset parameter information is input into the tool in advance according to the test requirement, and the number of the block subareas in the preset parameter information and the preset temporary speed limit are combined, so that the temporary speed limit is set in the railway range of the block subareas to construct the test scene.
Specifically, for the step 205, the test scenario refinement statement corresponding to the target scenario information generated by using the target test critical point and the preset parameter information is as follows:
firstly, selecting an inner preset threshold and an outer preset threshold of a target test critical point to obtain a temporary speed-limiting interval crossing the target test critical point and consisting of the inner preset threshold and the outer preset threshold.
In the embodiment of the present invention, the obtained route scenarios are different according to different target scenario information, so that the transponder jurisdiction ranges determined according to the information content recorded in the engineering data table are also different, and in the embodiment of the present invention, a target test critical point is selected from the transponder jurisdiction ranges, for example, a route scenario and the transponder jurisdiction range determined in the scenario are listed, as shown in fig. 6:
the train control center one-way temporary speed limit jurisdiction range is to increase a braking distance from the station entrance to the station exit (or the second active transponder group of the relay station) in front, and the braking distance covers all block partitions from the highest allowable code of the line to the HU code and extends for 100 m. For this jurisdiction, active transponder locations are selected as target test critical points.
In the embodiment of the invention, the corresponding obtained transponder management ranges are different in different access scenarios, and the temporary speed limit technical specifications are specifically found in a Q-CR 662 and 2018 train control system issued by a railway department.
The key point of the embodiment of the invention lies in how to specifically realize the adoption of the critical point test method, and the key point is to select the temporary speed limit interval, namely, select the inner preset threshold and the outer preset threshold of the target test critical point to obtain the temporary speed limit interval which crosses the target test critical point and consists of the inner preset threshold and the outer preset threshold.
For example: respectively selecting the range of 1 meter inside and the range of 1 meter outside the target test critical point, and obtaining the temporary speed limit intervals of 1 meter inside and outside ranges by crossing the target test critical point.
Secondly, according to the target scene information, determining the line direction, such as: and the line is forward or reverse, so that the speed limit starting point and the speed limit end point corresponding to the temporary speed limit section are determined according to the line direction.
And finally, forming a test scene corresponding to the target scene information according to the route, the speed limit starting point and the speed limit end point contained in the scene information and the preset speed limit value information.
In the embodiment of the invention, the generated test scene comprises the route information (route number, signal machine switch state and signal machine color) and the temporary speed limit information (line number, speed limit starting point, speed limit end point and speed limit value). Wherein the route information is obtained from the target scene information and the project data table. For the speed limit information, the speed limit starting point and the speed limit end point are determined according to the temporary speed limit interval, and the speed limit value is a temporary speed limit value contained in the preset parameter information.
Further, the following supplementary description is provided for an application of the tool for automatically generating the temporary speed limit message test case of the train control system according to the embodiment of the present invention, and the specific statement is as follows:
in the embodiment of the present invention, after inputting the engineering data table into the tool, the tool needs to automatically check the engineering data table, for example: and verifying the logic relation between attribute fields in the engineering data table, or verifying the validity of data stored in the engineering data table, and the like. If the engineering data table has errors, the process of automatically generating the test case of the embodiment of the invention cannot be executed.
After the tool generates the test case containing the test scene and the expected result, the calculation and output process of the test case is output on a human-computer interaction interface of the tool, the prompt information is detailed, a user can clearly see the generated process, the user can check the intermediate result calculated in the generation process on the interface, error analysis is facilitated, and finally the test case is output in an xls file format.
Further, as an implementation of the method shown in fig. 1 and fig. 5, an embodiment of the present invention provides a device for generating a temporary speed-limiting message test case of a train control system. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. The device is applied to automatically generating a test scenario and an expected result for testing a temporary speed limit message, and specifically as shown in fig. 7, the device comprises:
a reading unit 31, configured to read an engineering data table, where the engineering data table at least includes: a route information meter, a split-phase information meter, a transponder position meter, a signal point track section data meter, a line slope meter, an odometer information meter, a line mileage broken link detail meter and a line speedometer;
the first generating unit 32 is configured to generate a test scenario by calling the engineering data table read by the reading unit 31 when a test scenario generation request triggered by a user is received;
the calculating unit 33 is configured to calculate an expected result corresponding to the test scenario by invoking a preset rule when receiving an expected result calculation request triggered by a user;
and the second generating unit 34 is configured to generate a test case according to the test scenario generated by the first generating unit 32 and the corresponding expected result calculated by the calculating unit 33, and feed back the test case to the user.
Further, as shown in fig. 8, the first generating unit 32 includes:
the determining module 321 is configured to determine a target station to be tested after receiving station information input by a user;
the determining module 321 is further configured to determine an active transponder installed at the target station by looking up the transponder location table;
the determining module 321 is further configured to determine, by looking up the route information table, a route associated with the active transponder, and obtain target scene information formed by the active transponder and the route corresponding to the active transponder;
the obtaining module 322 is configured to obtain a target test critical point corresponding to target scene information by searching a preset mapping relationship between pre-constructed scene information and the test critical point;
a generating module 323, configured to generate a test scenario corresponding to the target scenario information by using the target test critical point and preset parameter information, where the preset parameter information at least includes preset speed limit value information.
Further, as shown in fig. 8, the generating module 323 includes:
a selecting submodule 3231, configured to select an inner preset threshold and an outer preset threshold of the target test critical point, to obtain a temporary speed-limiting interval that spans the target test critical point and is composed of the inner preset threshold and the outer preset threshold;
a determining submodule 3232, configured to determine a line direction according to the target scene information;
the determining submodule 3232 is further configured to determine a speed limit starting point and a speed limit ending point corresponding to the temporary speed limit interval according to the line direction;
and a forming sub-module 3233, configured to form a test scene corresponding to the target scene information according to the route, the speed limit starting point and the speed limit ending point included in the scene information, and the preset speed limit value information.
Further, as shown in fig. 8, the preset parameter information further includes: the number of block sections for each line in the forward and reverse directions, which is reduced from the highest code to the red-yellow code, is related to the highest speed of the railway line allowed to run.
Further, as shown in fig. 8, the apparatus further includes:
the verification unit 35 is configured to verify a logical relationship between attribute fields in the engineering data table after the engineering data table is read, and/or verify the validity of data stored in the engineering data table.
In summary, the embodiments of the present invention provide a method and an apparatus for generating a train control system temporary speed limit message test case, and the embodiments of the present invention construct a tool for automatically generating a train control system temporary speed limit message test case, and can automatically generate a temporary speed limit message test scenario and an expected result by receiving a user touch instruction on a tool and user interaction interface and processing a pre-input railway engineering data table. Compared with the prior art, the method solves the problems of low efficiency and low safety of manually compiling the temporary speed limit message test case, can greatly reduce the repeated labor of data production personnel, and ensures that the process of generating the test case becomes safe and efficient.
The generating device of the train control system temporary speed limit message test case comprises a processor and a memory, wherein the reading unit, the first generating unit, the calculating unit, the second generating unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. One or more than one kernel can be set, and the temporary speed limit message test case of the train control system is automatically generated by adjusting kernel parameters, so that the repeated labor of data production personnel is greatly reduced, and the process of generating the test case becomes safe and efficient.
The embodiment of the invention provides a storage medium, wherein a program is stored on the storage medium, and the program is executed by a processor to realize the generation method of the temporary speed limit message test case of the train control system.
The embodiment of the invention provides a processor, which is used for running a program, wherein the generation method of the temporary speed limit message test case of the train control system is executed when the program runs.
An embodiment of the present invention provides an electronic device 40, as shown in fig. 9, the device includes at least one processor 401, and at least one memory 402 and a bus 403 connected to the processor 401; the processor 401 and the memory 402 complete communication with each other through the bus 403; the processor 401 is configured to call the program instruction in the memory 402 to execute the method for generating the temporary speed limit message test case of the train control system.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
the present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for generating a temporary speed limit message test case of a train control system is characterized by comprising the following steps:
reading an engineering data table, wherein the engineering data table at least comprises: a route information meter, a split-phase information meter, a transponder position meter, a signal point track section data meter, a line slope meter, an odometer information meter, a line mileage broken link detail meter and a line speedometer;
when a test scene generation request triggered by a user is received, generating a test scene by calling the engineering data table;
when an expected result calculation request triggered by a user is received, calculating an expected result corresponding to the test scene by calling a preset rule;
and generating a test case according to the test scene and the corresponding expected result and feeding back the test case to the user.
2. The method of claim 1, wherein generating a test scenario by invoking the engineering data table when a user-triggered test scenario generation request is received comprises:
after station information input by a user is received, determining a target station to be tested;
determining an active transponder installed in the target station by searching the transponder position table;
determining an access which is associated with the active responder by searching the access information table to obtain target scene information which is formed by the active responder and the corresponding access;
obtaining a target test critical point corresponding to target scene information by searching a preset mapping relation between pre-constructed scene information and the test critical point;
and generating a test scene corresponding to the target scene information by using the target test critical point and preset parameter information, wherein the preset parameter information at least comprises preset speed limit value information.
3. The method according to claim 2, wherein the generating a test scenario corresponding to the target scenario information by using the target test critical point and preset parameter information comprises:
selecting an inner preset threshold and an outer preset threshold of the target test critical point to obtain a temporary speed-limiting interval which crosses the target test critical point and is composed of the inner preset threshold and the outer preset threshold;
determining a line direction according to the target scene information;
determining a speed limit starting point and a speed limit end point corresponding to the temporary speed limit interval according to the line direction;
and forming a test scene corresponding to the target scene information according to the route, the speed limit starting point and the speed limit end point contained in the scene information and the preset speed limit value information.
4. The method of claim 1, wherein after the reading the engineering data table, the method further comprises:
verifying the logic relationship between the attribute fields in the engineering data table; and/or the presence of a gas in the gas,
and verifying the legality of the data stored in the engineering data table.
5. A device for generating a temporary speed limit message test case of a train control system is characterized by comprising:
the reading unit is used for reading an engineering data table, and the engineering data table at least comprises: a route information meter, a split-phase information meter, a transponder position meter, a signal point track section data meter, a line slope meter, an odometer information meter, a line mileage broken link detail meter and a line speedometer;
the first generating unit is used for generating a test scene by calling the engineering data table read by the reading unit when a test scene generating request triggered by a user is received;
the calculation unit is used for calculating an expected result corresponding to the test scene by calling a preset rule when an expected result calculation request triggered by a user is received;
and the second generating unit is used for generating a test case according to the test scene generated by the first generating unit and the corresponding expected result calculated by the calculating unit and feeding back the test case to the user.
6. The apparatus of claim 5, wherein the first generating unit comprises:
the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a target station to be tested after receiving station information input by a user;
the determining module is further configured to determine an active transponder installed at the target station by looking up the transponder location table;
the determining module is further configured to determine a route associated with the active transponder by looking up the route information table, so as to obtain target scene information formed by the active transponder and the corresponding route;
the acquisition module is used for searching a preset mapping relation between pre-constructed scene information and a test critical point to obtain a target test critical point corresponding to the target scene information;
and the generating module is used for generating a test scene corresponding to the target scene information by using the target test critical point and preset parameter information, wherein the preset parameter information at least comprises preset speed limit value information.
7. The apparatus of claim 6, wherein the generating module comprises:
the selection submodule is used for selecting an inner preset threshold and an outer preset threshold of the target test critical point to obtain a temporary speed-limiting interval which crosses the target test critical point and is composed of the inner preset threshold and the outer preset threshold;
the determining submodule is used for determining the line direction according to the target scene information;
the determining submodule is also used for determining a speed limit starting point and a speed limit terminal point corresponding to the temporary speed limit interval according to the line direction;
and the forming submodule is used for forming a test scene corresponding to the target scene information according to the route, the speed limit starting point and the speed limit end point contained in the scene information and the preset speed limit value information.
8. The apparatus of claim 5, further comprising:
and the verification unit is used for verifying the logic relationship between the attribute fields in the engineering data table after the engineering data table is read, and/or verifying the legality of the data stored in the engineering data table.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein, when the program runs, the device where the storage medium is located is controlled to execute the method for generating the train control system temporary speed limit message test case according to any one of claims 1-4.
10. An electronic device, comprising at least one processor, and at least one memory, bus connected to the processor;
the processor and the memory complete mutual communication through the bus;
the processor is used for calling the program instructions in the memory to execute the method for generating the temporary speed limit message test case of the train control system according to any one of claims 1 to 4.
CN201911374772.0A 2019-12-27 2019-12-27 Method and device for generating temporary speed limit message test case of train control system Active CN111003030B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911374772.0A CN111003030B (en) 2019-12-27 2019-12-27 Method and device for generating temporary speed limit message test case of train control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911374772.0A CN111003030B (en) 2019-12-27 2019-12-27 Method and device for generating temporary speed limit message test case of train control system

Publications (2)

Publication Number Publication Date
CN111003030A true CN111003030A (en) 2020-04-14
CN111003030B CN111003030B (en) 2022-02-22

Family

ID=70118752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911374772.0A Active CN111003030B (en) 2019-12-27 2019-12-27 Method and device for generating temporary speed limit message test case of train control system

Country Status (1)

Country Link
CN (1) CN111003030B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111585664A (en) * 2020-05-08 2020-08-25 北京交大思诺科技股份有限公司 Active message checking system of transponder
CN111645731A (en) * 2020-08-03 2020-09-11 湖南中车时代通信信号有限公司 Automatic generation method, system and device of responder message
CN111994138A (en) * 2020-09-08 2020-11-27 卡斯柯信号(北京)有限公司 Test method and device for train control center track circuit coding
CN112429049A (en) * 2020-12-28 2021-03-02 卡斯柯信号(北京)有限公司 Method and device for generating code sequence table of railway line
CN112579720A (en) * 2020-12-22 2021-03-30 交控科技股份有限公司 Method and device for determining gradient section based on logic section path
CN112810668A (en) * 2021-04-19 2021-05-18 卡斯柯信号(北京)有限公司 Method and device for generating speed limit test data
CN113641592A (en) * 2021-10-15 2021-11-12 卡斯柯信号(北京)有限公司 Test sequence generation method and device
CN113859330A (en) * 2021-12-02 2021-12-31 卡斯柯信号(北京)有限公司 Method and system for testing lateral line route speed limit by train control center
CN115118627A (en) * 2022-08-29 2022-09-27 卡斯柯信号(北京)有限公司 Temporary speed limiting server testing method and device
CN115134819A (en) * 2022-09-01 2022-09-30 卡斯柯信号(北京)有限公司 Test method and device for train control wireless block system
CN116108702A (en) * 2023-04-11 2023-05-12 卡斯柯信号(北京)有限公司 Novel test method and device for receiving temporary speed limit in complete mode of train control system
CN116319446A (en) * 2023-05-22 2023-06-23 卡斯柯信号(北京)有限公司 Test method and device for temporary speed limiting server train session state management

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174921A (en) * 2007-10-29 2008-05-07 北京佳讯飞鸿电气股份有限公司 Dynamic message encoding method of train control system
US20150007138A1 (en) * 2013-06-26 2015-01-01 Sap Ag Method and system for incrementally updating a test suite utilizing run-time application executions
CN109088864A (en) * 2018-07-31 2018-12-25 北京交大思诺科技股份有限公司 Transponder data generates and management system
CN109298648A (en) * 2018-11-28 2019-02-01 卡斯柯信号有限公司 A kind of train control center emulation Auto-Test System
CN109933786A (en) * 2019-02-13 2019-06-25 卡斯柯信号有限公司 The construction method of transponder message tool based on compiling rule

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174921A (en) * 2007-10-29 2008-05-07 北京佳讯飞鸿电气股份有限公司 Dynamic message encoding method of train control system
US20150007138A1 (en) * 2013-06-26 2015-01-01 Sap Ag Method and system for incrementally updating a test suite utilizing run-time application executions
CN109088864A (en) * 2018-07-31 2018-12-25 北京交大思诺科技股份有限公司 Transponder data generates and management system
CN109298648A (en) * 2018-11-28 2019-02-01 卡斯柯信号有限公司 A kind of train control center emulation Auto-Test System
CN109933786A (en) * 2019-02-13 2019-06-25 卡斯柯信号有限公司 The construction method of transponder message tool based on compiling rule

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈倩佳: "列控中心软件测试技术的研究与应用", 《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》 *

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111585664B (en) * 2020-05-08 2023-10-03 北京交大思诺科技股份有限公司 Transponder active message checking system
CN111585664A (en) * 2020-05-08 2020-08-25 北京交大思诺科技股份有限公司 Active message checking system of transponder
CN111645731A (en) * 2020-08-03 2020-09-11 湖南中车时代通信信号有限公司 Automatic generation method, system and device of responder message
CN111994138A (en) * 2020-09-08 2020-11-27 卡斯柯信号(北京)有限公司 Test method and device for train control center track circuit coding
CN112579720A (en) * 2020-12-22 2021-03-30 交控科技股份有限公司 Method and device for determining gradient section based on logic section path
CN112579720B (en) * 2020-12-22 2024-04-26 交控科技股份有限公司 Logic section path-based gradient section determination method and device
CN112429049A (en) * 2020-12-28 2021-03-02 卡斯柯信号(北京)有限公司 Method and device for generating code sequence table of railway line
CN112810668A (en) * 2021-04-19 2021-05-18 卡斯柯信号(北京)有限公司 Method and device for generating speed limit test data
CN112810668B (en) * 2021-04-19 2021-08-31 卡斯柯信号(北京)有限公司 Method and device for generating speed limit test data
CN113641592A (en) * 2021-10-15 2021-11-12 卡斯柯信号(北京)有限公司 Test sequence generation method and device
CN113859330A (en) * 2021-12-02 2021-12-31 卡斯柯信号(北京)有限公司 Method and system for testing lateral line route speed limit by train control center
CN113859330B (en) * 2021-12-02 2022-05-13 卡斯柯信号(北京)有限公司 Method and system for testing lateral line route speed limit by train control center
CN115118627B (en) * 2022-08-29 2022-12-09 卡斯柯信号(北京)有限公司 Temporary speed limiting server testing method and device
CN115118627A (en) * 2022-08-29 2022-09-27 卡斯柯信号(北京)有限公司 Temporary speed limiting server testing method and device
CN115134819A (en) * 2022-09-01 2022-09-30 卡斯柯信号(北京)有限公司 Test method and device for train control wireless block system
CN115134819B (en) * 2022-09-01 2022-12-09 卡斯柯信号(北京)有限公司 Test method and device for train control wireless block system
CN116108702A (en) * 2023-04-11 2023-05-12 卡斯柯信号(北京)有限公司 Novel test method and device for receiving temporary speed limit in complete mode of train control system
CN116319446A (en) * 2023-05-22 2023-06-23 卡斯柯信号(北京)有限公司 Test method and device for temporary speed limiting server train session state management
CN116319446B (en) * 2023-05-22 2023-07-28 卡斯柯信号(北京)有限公司 Test method and device for temporary speed limiting server train session state management

Also Published As

Publication number Publication date
CN111003030B (en) 2022-02-22

Similar Documents

Publication Publication Date Title
CN111003030B (en) Method and device for generating temporary speed limit message test case of train control system
JP2019128934A (en) Abnormality determination device, abnormality detection model creation server, and program
CN110758493B (en) Train arrival time prediction method and system
CN109582943B (en) Method for automatically generating engineering data table
CN112208590B (en) Train route control method and device based on static route table
CN109561387A (en) Adjust the method, apparatus and server of fence
CN113562025B (en) Computer interlocking table generation method and device, electronic equipment and storage medium
CN112686466B (en) Subway passenger path confirmation method and device
CN109088864B (en) Transponder data generation and management system
CN110618994B (en) Method for rearranging serial numbers and transmitting pile numbers of road network data road sections
CN111776017B (en) Method and device for controlling temporary speed limit of train
CN110758476A (en) Train positioning method and system
CN114771610B (en) Method and device for testing guide mode conversion
CN109733440A (en) Train operation state monitoring method, device and electronic equipment
CN109649307A (en) Auxiliary drives method and apparatus, machine readable storage medium and the processor of vehicle
CN103738364B (en) A kind of section searching method and system
CN112329277B (en) Indoor roadster test sequence compiling method and device based on CTCS-2
CN114435433B (en) Method and device for verifying automatic trigger route conflict
CN113407568B (en) Method and system for automatically generating LKJ path data based on LKJ monitoring intersection data
Zhao et al. Estimating the frequency of trains approaching red signals: a case study for improving the understanding of SPAD risk
CN113781018B (en) Automatic classification monitoring operation method and device of railway traffic safety monitoring system
CN113342782B (en) Data monitoring method, device and medium based on expressway
CN112637783B (en) Rail transit safety management method and device based on visible light positioning technology
CN115049756A (en) Method, device and medium for converting route map into plan map
CN115186137A (en) Data model construction method and device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant