Automated testing method for station entry signal configuration data with optimized test time
Through automated testing methods, the green, yellow, and green yellow display configuration data of the incoming signal machine is optimized, the repeated establishment of the approach is reduced, the testing efficiency and accuracy are improved, and it is suitable for a variety of station types.
Patent Information
- Application Number
- CN202411135119.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-08-19
AI Technical Summary
In the prior art, when automated testing of the green, yellow, and green yellow display configuration data of the incoming signal machine, the test efficiency is low and the accuracy depends on manual experience. The test time is long due to the interlocking relationship, which cannot effectively reduce the repeated construction of the projection. .
Through automated testing methods, we obtain the set of signal machines to be tested, test according to the orientation classification, determine the first test signal machine, and filter out other signal machines that can be tested at the same time during the test, optimize the order of path establishment, and reduce duplication. Establish.
It improves testing efficiency and accuracy, reduces testing time, is suitable for different types of stations, and achieves more efficient automated testing.
Smart Images

Figure CN118651282B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automatic testing of railway equipment, and in particular to an automatic testing method for configuration data of a station entry signal with optimized test duration. Background Art
[0002] The interface data between the decentralized autonomous dispatching centralized system (hereinafter referred to as the CTC system) and the interlocking system is an important part of the CTC system configuration data, which ensures that the station display of the CTC system can reflect the current status of the interlocking object in real time and correctly. The station display of the CTC system is the basis of the core functions of the system, so it is particularly important to ensure the correctness of the CTC and interlocking interface data. Among the CTC system and interlocking system interface data, one type of data is directly related to the color light display of the station entry signal. This type of data enables the dispatcher to obtain the signal opening status of the current station entry signal through the CTC station interface display to ensure the smooth progress of centralized command and driving according to the map. This type of data includes the CTC and interlocking system interface configuration data of the green, yellow, and green-yellow display of the station entry signal.
[0003] Currently, the main method for verifying this type of data is for testers to build a simulation environment and manually simulate the corresponding conditions, mainly including establishing routes, occupying the interval outside the port, simulating the operation of the corresponding color of the repeat signal, so that the entry signal opens the corresponding color, and manually confirms the display consistency of CTC and interlocking.
[0004] Whether the correct conditions for the entry signal to display green, yellow, or green-yellow can be found depends mainly on the experience of the tester. Especially for multiple stations and complex station types, there will be more entry signal type entry signals. Therefore, manual testing is more laborious, and the accuracy varies from person to person, so it is necessary to transition from manual testing to automated testing.
[0005] In addition, during the automated testing process, since there is an interlocking relationship between a certain entry signal and other entry signals, if you only focus on the current entry signal being tested when testing a certain entry signal without testing other entry signals that need to be tested at the same time, and do not consider the order of testing for the signals that need to be tested simultaneously, it may cause repeated establishment of the route, which in turn leads to lengthy testing time.
[0006] According to the general interlocking rules, when the current entry signal is yellow, the previous entry signal in the same direction may be green-yellow, and the previous entry signal in the same direction may be green. Figure 1Taking scenario 1 as an example, when route 1 is established, the signal SA protecting route 1 is an entry signal and displays yellow; when route 2 is established, the signal SA is green-yellow, and the signal SB protecting route 2 is an entry signal and displays yellow; when route 3 is established, the signal SA is green, the signal SB is green-yellow, and the signal SC protecting route 3 is an entry signal and displays yellow; when route 4 is established, the signal SA is green, the signal SB is green, the signal SC is green-yellow, and the signal SD protecting route 4 is yellow. When both signal SA and signal SB need to be tested, if signal SA and SB are tested separately, it is necessary to first establish routes 1, 2, and 3, then cancel the established routes, and then establish routes 2, 3, and 4; if signal SA and SB are tested at the same time, and signal SB is tested first and then signal SA, it is also necessary to first establish routes 1, 2, and 3, then cancel the established routes, and then establish routes 2, 3, and 4. However, if the signal SB is tested at the same time as the signal SA, and the signal SA is tested first and then the signal SB, it is only necessary to establish routes 1, 2, 3, and 4 in sequence.
[0007] Therefore, during the automated test, it is still necessary to find the station entry signals and the first tested signals that can be tested simultaneously based on the interlocking relationship between the signals, so as to minimize the duplication of establishing routes. The green, green-yellow, and yellow of the first tested signal selected only depend on the signals of the same direction (same route direction) behind this signal, and not on the signals of the same direction in front of this signal. Therefore, it is only necessary to start with the first tested signal and establish routes in sequence backwards to avoid duplication of establishing routes.
[0008] In addition, although the Chinese invention patent with the authorization announcement number CN109649447B, "A method and system for automatically testing data of decentralized autonomous dispatching and centralized station autonomous machines", discloses an automatic testing scheme, it does not specify the specific testing method for the configuration data of the green, yellow, and green-yellow display of the entry signal. The Chinese invention patent with the authorization announcement number CN117325919B, "A method and system for automatically testing the configuration data of the exit signal autonomous machine", discloses the relevant testing scheme for the exit signal, but the interlocking logic of the green, green-yellow and yellow display of the entry signal is different from that of the exit signal, so it cannot be directly applied to the test of the entry signal.
[0009] In view of this, the present invention is proposed. Summary of the invention
[0010] The purpose of the present invention is to provide an automated testing method for station entry signal configuration data with optimized test duration, which can improve test efficiency and accuracy.
[0011] The objective of the present invention is achieved through the following technical solutions:
[0012] An automated testing method for station entry signal configuration data with optimized test duration, comprising:
[0013] Obtain all the station entry signals that need to establish routes to appear green, green-yellow, and yellow, and the obtained station entry signals constitute a set of station entry signals to be tested;
[0014] For station types without turns, the entrance signals in the entrance signal set to be tested are divided into two types of entrance signal sets according to their directions; each type of entrance signal set is tested in the following manner: the first entrance signal to be tested in the current type of entrance signal set is determined, and the test is started from the first entrance signal to be tested until all the entrance signals in the current type of entrance signal set are tested; during the test, all routes except the long train routes with the currently tested entrance signal as the protective signal are screened out, and divided into two types: routes to the port and routes not to the port, and the test steps are respectively performed on these two types of routes, and in the test steps, other entrance signals that can be tested simultaneously with the currently tested entrance signal are selected from the current type of entrance signal set; when the two types of entrance signal sets are tested, it indicates that the test of the entrance signal set to be tested is completed;
[0015] For stations with turns, the test is performed in the following manner: the first set of entry signals to be tested is found in the set of entry signals to be tested, and a random entry signal is selected from the first set of entry signals to start the test. The test process is the same as the test process in stations without turns. When the first set of entry signals to be tested is tested, it is determined whether the set of entry signals to be tested has been tested. If so, the test is completed. If not, the first set of entry signals to be tested is found again in the set of entry signals to be tested, and the test is continued.
[0016] It can be seen from the technical solution provided by the present invention that, on the one hand, the test process is transitioned from manual testing to automated testing, thereby improving test efficiency and accuracy; on the other hand, attention is paid to the interlocking relationship between a certain entry signal and other entry signals, and the first entry signal to be tested and other entry signals that can be tested at the same time are found among the entry signals to be tested, so as to reduce the repeated establishment of routes and save testing time; in addition, different solutions are proposed for station types without turns and station types with turns, respectively, so that the present invention can be applied to the testing of more station types. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0018] Figure 1 An example diagram of scenario 1 provided as background technology of the present invention;
[0019] Figure 2 A flow chart of an automated testing method for station entry signal configuration data with optimized test duration provided by an embodiment of the present invention;
[0020] Figure 3 An example diagram of scenario 2 provided in an embodiment of the present invention;
[0021] Figure 4 An example diagram of scenario 3 provided in an embodiment of the present invention;
[0022] Figure 5 An example diagram of scenario 4 provided in an embodiment of the present invention;
[0023] Figure 6 This is an example diagram of scenario 5 provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of 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 protection scope of the present invention.
[0025] First, the terms that may be used in this article are explained as follows:
[0026] The terms "include", "comprises", "contains", "has" or other descriptions with similar semantics should be interpreted as non-exclusive inclusion. For example, including certain technical feature elements (such as raw materials, components, ingredients, carriers, dosage forms, materials, dimensions, parts, components, mechanisms, devices, steps, procedures, methods, reaction conditions, processing conditions, parameters, algorithms, signals, data, products or products, etc.) should be interpreted as including not only certain technical feature elements explicitly listed, but also other technical feature elements known in the art that are not explicitly listed.
[0027] The term "consisting of..." means excluding any technical feature elements not explicitly listed. If this term is used in a claim, it will make the claim closed, so that it does not contain technical feature elements other than the technical feature elements explicitly listed, except for the conventional impurities related to them. If this term only appears in a clause of a claim, it only limits the elements explicitly listed in the clause, and the elements recorded in other clauses are not excluded from the overall claim.
[0028] The following is a detailed description of an automated test method for station entry signal configuration data with optimized test duration provided by the present invention. The contents not described in detail in the embodiments of the present invention belong to the prior art known to professional and technical personnel in the field. If no specific conditions are specified in the embodiments of the present invention, the conventional conditions in the field or the conditions recommended by the manufacturer shall be followed.
[0029] An embodiment of the present invention provides an automated testing method for station approach signal configuration data with optimized test duration, and proposes automated testing schemes for station types with turns and station types without turns. The main difference between the two automated testing schemes is how to determine the first station approach signal to be tested. After the first station approach signal to be tested is determined, a route is established with the first station approach signal to be tested as the starting point. If there is a route to the port that uses the current station approach signal to be tested as a protective signal, such a route is established first. If not, a route that does not reach the port is established, and while testing, the station approach signal that can be tested simultaneously is searched for. Figure 2 As shown, it is a flowchart of an automated testing method for station entry signal configuration data with optimized test duration provided by an embodiment of the present invention, which mainly includes:
[0030] (1) Obtain all the entry signals that need to establish routes to appear green, green-yellow, and yellow, and the obtained entry signals constitute the set of entry signals to be tested.
[0031] (2) For station types without turns, the entrance signals in the entrance signal set to be tested are divided into two types of entrance signal sets according to their directions; each type of entrance signal set is tested in the following manner: the first entrance signal to be tested in the current type of entrance signal set is determined, and the test is started from the first entrance signal to be tested until all the entrance signals in the current type of entrance signal set have completed the test; during the test, all routes except the long train routes with the currently tested entrance signal as the protective signal are screened out, and the routes are divided into two types: routes to the port and routes not to the port, and the test steps are performed on the two types of routes respectively, and in the test steps, other entrance signals that can be tested simultaneously with the currently tested entrance signal are selected from the current type of entrance signal set; when the two types of entrance signal sets have completed the test, it indicates that the test of the entrance signal set to be tested is completed.
[0032] (3) For stations with turns, the test is performed in the following manner: the first set of entry signals to be tested is found in the set of entry signals to be tested, and a random entry signal is selected from the first set of entry signals to be tested to start the test. The test process is the same as the test process for stations without turns. When the first set of entry signals to be tested is tested, it is determined whether the set of entry signals to be tested has been tested. If so, the test is completed. If not, the first set of entry signals to be tested is found again in the set of entry signals to be tested, and the test is continued.
[0033] In order to more clearly demonstrate the technical solution and technical effects provided by the present invention, the method provided by the embodiment of the present invention is described in detail with reference to specific embodiments below.
[0034] 1. Obtain the set of entry signals to be tested.
[0035] In the embodiment of the present invention, all the station entry signals that need to establish routes to appear green, green-yellow and yellow are obtained, and the obtained station entry signals constitute a station entry signal set to be tested.
[0036] The main plans are as follows:
[0037] (1) Read all the entry signals in the station map of the CTC system (decentralized autonomous dispatching system), which are recorded as set R1. The entry signals in set R1 may include repeat entry signals, whose green, green-yellow, and yellow cannot appear in corresponding colors after establishing one or more routes, so it is necessary to remove the repeat entry signals.
[0038] Those skilled in the art will appreciate that a repeater signal generally requires operating a specific relay on the interlocking to light up green, green-yellow or yellow, and has nothing to do with establishing a route.
[0039] (2) Read all train routes in the CTC system route file and obtain the train signals of the protected routes of each route, which are recorded as set R2. If a station entry signal is in set R1 but not in set R2, it is considered to be a repeater signal.
[0040] Those skilled in the art can understand that a train signal is composed of an exit signal and an entry signal, and a signal protecting an approach route may be an entry signal or an exit signal.
[0041] (3) Remove the repeater signals from the set R1, and the remaining entry signals are the set of entry signals to be tested.
[0042] 2. Automated testing solution for stations without turning routes.
[0043] In the embodiment of the present invention, the station entry signal machines in the station entry signal set to be tested are divided into two types of station entry signal machine sets according to their directions. Specifically, they are divided into two types according to the directions of the signal machines. One type is toward the right side, which is recorded as a set , one is facing the left side, recorded as a set This classification method can be classified by reading the angle attribute of the station entrance signal in the station diagram (CAD station diagram). Angle 0 is facing the right, and angle 180 is facing the left. After the two types of station entrance signals are divided, the two types of station entrance signals are tested in the same way. After the signal machines to be tested in both categories are tested, the test of this station can be ended. The specific test steps of each type of station entrance signal are as follows: Assume that the set of a certain type of station entrance signal to be tested is In the collection or Before the station entry signal executes step S1, for or In the collection or After the station entry signal executes step S1, The pit stop signal opportunities that have been tested are eliminated.
[0044] Step S1: Define the set , used to record the station entry signals that can be tested simultaneously, set the Empty, let k=1, determine the current class of station entry signal set The first entry signal to be tested among all the entry signals to be tested is denoted as .
[0045] The method for determining the first test entry signal is as follows: a train signal can obtain the coordinate information of four points on the CAD station map. Figure 3Take the scenario 2 shown as an example. Figure 3 The signal XN in the dashed rectangle box shows the coordinate information of the four vertices. Compare the horizontal coordinates of the four vertices of each signal. When all the traffic lights in the station are facing right, if for a certain station entry signal, the horizontal coordinate of any point of the four vertices is in the set The leftmost of all the traffic lights in the set The first signal tested in When all the traffic lights in the station are facing left, if for a station entry signal, the horizontal coordinate of any point of the four vertices is in the set The rightmost of all the traffic lights in the set The first signal to be tested.
[0046] The test starts from the first entry signal tested until all the entry signals in the current entry signal set have completed the test: a train signal at this station is recorded as (It may be an exit signal or an entry signal), For the protection signal of the route, all routes except the long train route are recorded as , k is a positive integer. When k=1, the current test entry signal is the first test entry signal. . Obtained by reading CTC route data, The first test of the station signal All routes except the long train route are protected by the signal lights. The station entry signals tested at the same time form a set , when the collection After all the entry signals in the set have completed the test, step S1 is repeated to start a new round of testing until all the entry signals in the current set of entry signals have completed the test. Starting from step S11, the test is started with the first tested signal. The general principle of the test is that if there is a route to the port with the current signal to be tested as the protection signal, such a route is established first. If not, the route that does not reach the port is established.
[0047] Those skilled in the art can understand that CTC route data belongs to existing data content, and the long train route involved is a common term in the railway field, so it will not be elaborated.
[0048] Step S11: Divided into routes to ports Paths to ports not yet reached ; For the route to the port Paths to ports not yet reached The test steps are respectively executed, in which other station entry signals that can be tested simultaneously with the station entry signal currently being tested are selected from the current type of station entry signal set; after the test steps are completed, the process proceeds to step S2.
[0049] In the embodiment of the present invention, whether the route leads to the port can be judged by the route type configured for each route in the CTC route data, for example, the route of the departure type is the route to the port.
[0050] For the route to the port The steps to perform the test are as follows:
[0051] Step S11A: If If it is empty, then go to the test step of the route that does not reach the port (i.e. go to step S11B); if it is not empty, then go to Select the route with the least number of reversed switches to establish the route, and then go to step S11A1.
[0052] Step S11A1: After establishing the route, determine the station entry signal currently being tested Is it a station entry signal? If yes, update .
[0053] When k=1, the corresponding operation is performed according to the port number to which the route is directed. The operation set corresponding to the port number can be obtained through the preset script, and each operation is recorded. The colors of all the entry signals in the station; after all operations are completed, if the current set If all the colors of the station entry signal have been measured, go to step S2; wherein, the colors have been measured means that the green, green-yellow and yellow colors of the station entry signal have been measured; if There are signals that have not been fully tested: if the collection If all routes have been established, go to the test step of the routes that have not reached the port; if the set If there are still unestablished routes in the process, it is necessary to continue to establish other unestablished routes to the port, that is, go to step S11A2.
[0054] When k>1, the train signal is judged Whether the color of the train signal changes, including the following situations: Color unchanged: If the set If all routes have been established, go to the test step of the routes that have not reached the port; if the set If there are still unestablished routes in the signal, it is necessary to continue to establish other unestablished routes to the port, that is, go to step S11A2; if the train signal Color change: Execute the corresponding operation according to the port number to which the route is directed. Each time an operation is executed, the current set is recorded. The colors of all the station signals; then if If all the signal colors have been measured, go to step S2; if If there are signals that have not been fully tested, it is necessary to continue to establish other routes to the port that have not been established, that is, go to step S11A2. If all routes to the port have been established, go to the test step of the routes that have not reached the port; among them, the train signal for The previous same-direction signal.
[0055] Step S11A2: From the collection Select the established route with the least number of reversed switches from the unestablished routes and then go to step S11A1.
[0056] For routes not to ports The steps to perform the test are as follows:
[0057] Step S11B: If If it is empty, go to step S2. If it is not empty, go to step S3. Select the route with the least number of reversed switches to establish the route, and then go to step S11B1.
[0058] Step S11B1: After establishing the route, determine the station entry signal currently being tested Is it a station entry signal? If yes, update ; After that, the station signal Whether it is yellow is divided into two categories for judgment:
[0059] If the station signal Yellow, records the current collection The colors of all the station entrance signals are then judged Whether all the signal colors in the test are fully measured, if all are measured, go to step S2; if If there is a signal machine that has not been fully tested, continue to build the next route, that is, , the next signal of the same direction protecting the signal of the currently constructed route is (Here k is k after adding 1), the next same-direction signal The set of all routes except the long train route for the protection signal of the route is (k here is also k after 1 has been added); go to step S11;
[0060] If the station signal Not yellow, if the set If there are still unestablished routes in the set The unestablished routes in the set select the established route with the least number of reverse turnouts, and go to step S11B1; if the set If all routes have been established, go to step S2.
[0061] Step S2: Update ,like If it is empty, the current type of station signal test is terminated; if it is not empty, go to step S1; wherein, Indicates that the value on the right side of the symbol is reassigned to the left side.
[0062] In the above process, it also includes: finding the next same-direction signal machine that protects the signal machine of the currently constructed route, and finding all route sets except the long train route that use the next same-direction signal machine as the protection signal machine, the steps include:
[0063] (1) The currently constructed route is recorded as route L1.
[0064] (2) If the last object of the previously built route locking is a straight line type object, the next same-direction signal cannot be determined by the terminal button, because the signal corresponding to the general terminal button is the collocated signal of the next same-direction signal. Therefore, if the last object of the route locking is a straight line type object (including no branch, track, section), first find the next object of the last object locked in route L1, record the last object as object 1 (the last object locked in route L1 can be obtained by reading the CTC route file), and judge whether other types of objects on the station map of the CTC system meet the following two conditions. If they do, the other types of objects are considered to be the next objects of the last object; the first condition is: any coordinate point of the other types of objects is within the range of the set offset in the X direction (i.e. horizontal direction) and the set offset in the Y direction (i.e. vertical direction) of a certain coordinate point of object 1; the second condition is: the other types of objects do not belong to the route objects of route L1. The set offset is recorded as E. This offset is set because the station map objects are sometimes not exactly connected and there may be a certain deviation. Therefore, its value can be set according to actual conditions or experience.
[0065] After finding the next object, the route file is read again. All routes in the route file whose first locked object is the next object, except for the long train route, are the next routes of route L1. The protective signal of any of these routes is the next same-direction signal of the entrance signal of route L1. At the same time, the set of these routes is also the set of all routes except the long train route with the next same-direction signal as the protective signal. Among them, the CTC system is a decentralized autonomous scheduling centralized system.
[0066] Taking Figure 4 Scenario 3 shown as an example, the route is S13-IIIG, the signal protecting this route is S13, the terminal button is X2LA, and the objects to be locked are the normal position of switch No. 24, the normal position of switch No. 28, and track IIIG. According to the CTC station diagram file, the coordinates of the 4 points of IIIG in the X and Y directions are respectively recorded as coordinate point 1 (X1, Y1), coordinate point 2 (X2*, Y2*), coordinate point 3 (X3, Y3), and coordinate point 4 (X4, Y4). At the same time, according to the CTC station diagram file, the coordinates of the point before the switch point of switch No. 28 are point 5 (X5, Y5), the frog point coordinates are point 6 (X6, Y6), the reverse position point coordinates are point 7 (X7, Y7), and the normal position coordinates are point 8 (X8, Y8). The coordinates of the point before the switch point of switch No. 11 are point 9 (X9, Y9), the frog point coordinates are point 10 (X10, Y10), the normal position point coordinates are point 11 (X11, Y11), and the reverse position point coordinates are point 12 (X12, Y12).
[0067] From Figure 4 it can be seen that the normal position coordinate point 8 of switch No. 28 is within the range of a certain amount of left and right offset in X and a certain amount of up and down offset in Y of coordinate point 1 of object IIIG, that is, X1 - E < X8 < X1 + E and Y1 - E < Y8 < Y1 + E. The coordinates of the point before the switch point of switch No. 11, point 9, are within the range of a certain amount of left and right offset in X and a certain amount of up and down offset in Y of coordinate point 4 of object IIIG, that is, X4 - E < X9 < X4 + E and Y4 - E < Y9 < Y4 + E. Since switch No. 28 is a locked object of route S13-IIIG, switch No. 11 is the next object of object IIIG.
[0068] Therefore, all the routes in the route file whose first locked object is switch No. 11 are the next routes of S13-IIG, and the protecting signal of any one of these routes (i.e., SIII) is the next same-direction signal of S13.
[0069] In addition, this method can also be compatible when there is a turn in the route. Taking Figure 5 Scenario 4 shown as an example, IIIG includes coordinate point A, coordinate point B, coordinate point C, coordinate point D, and coordinate point E. It can be obtained that the coordinate point F of switch No. 11 is within the range of a certain amount of left and right offset in X and a certain amount of up and down offset in Y of coordinate point E; and the coordinate point G of switch No. 28 is within the range of a certain amount of left and right offset in X and a certain amount of up and down offset in Y of coordinate point A. Since switch No. 28 is a locked object of route S13-IIIG, switch No. 11 is the next object of object IIIG.
[0070] (3) For the last object of the currently constructed route lock, which is a turnout type object: read the names of all train signal machines in the station diagram of the CTC system and the terminal button names of route L1 in the route file, thereby screening out the candidate next same-direction signal machine, recorded as signal machine 1; specifically: if the signal machine name and the terminal button name of route L1 are consistent after removing "LA", it may be the next same-direction signal machine, and it will be used as a candidate for the next same-direction signal machine. However, there may be a situation where juxtaposed signals exist, so it is necessary to determine whether there are juxtaposed signals and exclude juxtaposed signals. The method is as follows:
[0071] (3.1) If any of the four coordinate points of train signal 2 is within the range of the X left and right offset and the Y upper and lower offset of a coordinate point of the four coordinate points of signal 1, then train signal 2 and signal 1 are considered to be a pair of juxtaposed signals; if no coordinate point of any train signal is within the range of the X left and right offset and the Y upper and lower offset of a coordinate point of signal 1, then signal 1 is considered to not be a juxtaposed signal, and thus signal 1 is determined to be the next same-direction signal;
[0072] (3.2) If there are juxtaposed signals, select any route with signal 1 and train signal 2 as protective signals. If the first object locked in one of the two routes is not the last object locked in route L1, the protective signal of this route is considered to be the next same-direction signal. Read the signal configuration item of the route in the route file. The signal configuration item is the route other than the long train exit of the next same-direction signal, which is the set of all routes except the long train route with the next same-direction signal as the protective signal.
[0073] by Figure 6 Taking the scenario 5 shown as an example, the route from S1 to S2 locks the No. 24 and No. 28 turnouts, and the terminal button is X3LA. The signal machine name and the terminal button are consistent after removing LA, which is the X3 signal machine. The vertex coordinate point of the lower left corner of the dotted rectangular box of the S2 signal machine is within the range of the vertex coordinate point of the upper right corner of the dotted rectangular box of the X3 signal machine, which is offset to the left and right by a certain amount and to the upper and lower by a certain amount of Y, so it is judged that S2 and X3 are a pair of juxtaposed signals. However, since the first object locked by the route with X3 as the protective signal machine is the No. 28 turnout, which is consistent with the last object locked by S1-S2, the X3 signal machine is excluded, and the S2 signal machine is the next same-direction signal machine.
[0074] 3. Automated testing solutions for stations with turning approaches.
[0075] The introduction in the second part above is no longer applicable because it is not possible to divide the signals into two categories based on their orientation and test them separately.
[0076] With the aforementioned Figure 5 For example, the S13 signal and the SIII signal are facing left and right respectively, but SIII is the next signal of S13 in the same direction (same route direction), and there is an interlocking relationship between SIII and S13. When SIII is yellow, S13 is green-yellow, and when SIII is green-yellow, S13 is green. For stations with turns, the test steps are as follows:
[0077] The set of station entry signals to be tested is recorded as , just like the station type without turning, we also need to find the first signal for testing. The specific method is: read the route file with the type of receiving route. In the CTC route file, the route from the station entrance is usually assigned as the receiving route. The route ahead is usually a section without forks in the interval or station connection. There is no other route to this station. The station entrance signal machine that protects these receiving routes is the first signal machine for testing. The set of these station entrance signals is recorded as The process starts from step S3 for each station entry signal in the set.
[0078] Let the pit stop signal set for the first test of the current test round , It means that the value on the right side of the symbol is reassigned to the left side. From step S3 to step S4, the test starts with the first test set of the current test round. The overall principle of this part of the test is the same as when there is no turning station: if there is an approach to the port with the current approach signal as the protection signal, the corresponding approach is established first. If not, the approach that does not reach the port is established.
[0079] Step S3: Randomly select a station entrance signal from the first station entrance signal set tested in the current test round to start the test, and record the first selected station entrance signal as , with the station signal For the protection signal of the route, all routes except the long train route are recorded as , the entry signal selected for the hth time is recorded as , with the station signal For the protection signal of the route, all routes except the long train route are recorded as , h is a positive integer. When h=1, the entry signal selected for the hth time is .
[0080] And, define the set , and set it to empty, set Used to record the station approach signals that can currently be tested simultaneously.
[0081] Step S31: Divided into routes to ports Paths to ports not yet reached ; For the route to the port Paths to ports not yet reached Execute the test steps respectively, and select the signal that can be used with the station signal from the first test station signal set of the current test round in the test step. At the same time, other station entry signals are tested; after the test steps are completed, go to step S4.
[0082] For the route to the port The steps to perform the test are as follows:
[0083] Step S31A: If If it is empty, go to the test step of the route that does not reach the port (i.e. go to step S31B); if it is not empty, go to Select the route with the least number of reversed switches to establish the route, and then go to step S31A1.
[0084] Step S31A1: After establishing the route, determine the station entry signal Is it a station entry signal? If yes, update .
[0085] When h=1, the corresponding operation is performed according to the port number to which the route is directed, and each operation is recorded The colors of all the entry signals in the station; after all operations are completed, if the current set If all the colors of the station entry signals have been measured, go to step S4; if There are signals that have not been fully tested: if the collection If all routes have been established, go to the test step of the routes that have not reached the port; if the set If there are still unestablished routes in the process, it is necessary to continue to establish other unestablished routes to the port, that is, go to step S31A2.
[0086] When h>1, the train signal is judged Whether the color of the train signal changes, including the following situations: Color unchanged: If the set If all routes have been established, go to the test step of the routes that have not reached the port; if the set If there are still unestablished routes in the signal, it is necessary to continue to establish other unestablished routes to the port, that is, go to step S31A2; if the train signal Color change: Execute the corresponding operation according to the port number to which the route is directed. Each time an operation is executed, the current set is recorded. The colors of all the station signals; then if If all the signal colors have been measured, go to step S4; if If there are signals that have not been fully tested, it is necessary to continue to establish other routes to the port that have not been established, that is, go to step S31A2. If all routes to the port have been established, go to the test step of the routes that have not reached the port; among them, the train signal for The previous same-direction signal.
[0087] Step S31A2: From the collection Select the established route with the least number of reversed switches from the unestablished routes and then go to step S31A1.
[0088] For routes not to ports The steps to perform the test are as follows:
[0089] Step S31B: If If it is empty, go to step S4. If it is not empty, go to step S4. Select the route with the least number of reversed switches to establish the route, and then go to step S31B1.
[0090] Step S31B1: After establishing the route, determine the station entry signal Is it a station entry signal? If yes, update ; After that, the station signal Whether it is yellow is divided into two categories for judgment:
[0091] If the station signal Yellow, records the current collection The colors of all the station entrance signals are then judged Whether all the signal lights in the signal are fully measured, if all are measured, go to step S4; if If there is a signal machine that has not been fully tested, continue to build the next route, that is, , the next signal of the same direction protecting the signal of the currently constructed route is (h here is the h after adding 1), the next same-direction signal The set of all routes except the long train route for the protection signal of the route is (h here is also h after 1 is added); go to step S31;
[0092] If the station signal Not yellow, if the set If there are still unestablished routes in the set The unestablished routes in the set select the established route with the least number of reverse turnouts, and go to step S31B1; if the set If all routes have been established, go to step S4.
[0093] Step S4: Update the collection ;like All the entry signals in the station have been tested. When the updated set If it is not empty, it means that there are still untested entry signals, and go to step S5. Is empty, the test is complete; if If there are still entry signals that have not executed step S3, select any untested entry signal to execute and go to step S3.
[0094] The purpose of going to step S5 is to test the remaining untested station entrance signals, that is, the updated set When testing the entry signals in the station, it is impossible to determine the first signal to be tested by judging which ones are the protection signals for the train approach route, because the combination The signal in the figure is the signal that protects the train approach, but it has been tested. The remaining untested station signals do not protect the train approach. Therefore, it is necessary to re-determine the set of signals for the first test.
[0095] Step S5: After updating the set Reselect the station entry signal set for the first test of the current test round and go to step S3.
[0096] The step S5 specifically includes:
[0097] In the updated collection Reselect the first entry signal set for the current test round in the selection method: if an entry signal in the set can reach the set through one or more routes Other entry signals in the test are not the first signals tested, including:
[0098] Step (1): Define the set ,make .
[0099] Step (2), optional There is an approach signal in the set, denoted as signal A1, and the set of all routes with signal A1 as the protection signal is set B1. Find the next approach of all routes in set B1. For an approach in set B1, find the next same-direction signal of the signal protecting the approach. The set of all routes except the long train approaches with the next same-direction signal as the protection signal is the next approach of this route. The set of the next approaches of all routes in set B1 is set B2. If the train signal of the route in the protection set B2 is an approach signal and in the set In the set Remove it from the set; then find the next route of all routes in set B2, and record the set of these next routes as set B3. If the train signal of the route in the protection set B3 is an entry signal and in the set , then from the set Eliminate it, and so on, until all the paths in a certain set Bf have no next path.
[0100] Step (3), repeat step (2) until All the signal machines in the set have executed step (2); at this time, the set The signal in is the set of entry signal for the first test of the current test round that is reselected; , then go to step S3 to test the remaining untested entry signals.
[0101] For station types with turns, the method for finding the next same-direction signal that protects the signal of the currently constructed route, and the set of all routes except long train routes that use the next same-direction signal as the protective signal, is the same as the method for stations without turns, so it will not be repeated here.
[0102] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiments can be implemented by software, or by means of software plus necessary general hardware platforms. Based on such understanding, the technical solutions of the above embodiments can be embodied in the form of software products, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0103] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. An automated testing method for station entry signal configuration data with optimized test duration, characterized in that: include: Obtain all the station entry signals that need to establish routes to appear green, green-yellow, and yellow, and the obtained station entry signals constitute a set of station entry signals to be tested; For station types without turns, the entrance signals in the entrance signal set to be tested are divided into two types of entrance signal sets according to their directions; each type of entrance signal set is tested in the following manner: the first entrance signal to be tested in the current type of entrance signal set is determined, and the test is started from the first entrance signal to be tested until all the entrance signals in the current type of entrance signal set are tested; during the test, all routes except the long train routes with the currently tested entrance signal as the protective signal are screened out, and divided into two types: routes to the port and routes not to the port, and the test steps are respectively performed on these two types of routes, and in the test steps, other entrance signals that can be tested simultaneously with the currently tested entrance signal are selected from the current type of entrance signal set; when the two types of entrance signal sets are tested, it indicates that the test of the entrance signal set to be tested is completed; For a station type with a turn, the test is performed in the following manner: find the first entry signal set to be tested in the set of entry signals to be tested, and randomly select an entry signal from the first set of entry signals to be tested to start the test. The test process is the same as the test process for a station type without a turn; When the first set of station entry signal machines to be tested is tested, it is determined whether the set of station entry signal machines to be tested is tested. If so, the test is completed; if not, the first set of station entry signal machines to be tested is found again in the set of station entry signal machines to be tested, and the test is continued; The steps for testing each type of station entry signal set in the following manner include: Step S1: Define the set , used to record the station entry signals that can be tested simultaneously, set the Empty, let k=1, determine the current class of station entry signal set The first entry signal to be tested among all the entry signals to be tested is denoted as ; The test starts from the first entry signal tested until all the entry signals in the current entry signal set have completed the test; a train signal is recorded as ,Will For the protection signal of the route, all routes except the long train route are recorded as , k is a positive integer. When k=1, the current test entry signal is the first test entry signal. ; Obtained by reading CTC route data, The first test of the station signal For the protection signal of the approach, all approaches except the long train approach; the train signal is the departure signal or the arrival signal; Step S11: Divided into routes to ports Paths to ports not yet reached ; For the route to the port Paths to ports not yet reached Execute the test steps respectively, in which other station entry signals that can be tested simultaneously with the station entry signal currently being tested are selected from the station entry signal set of the current type; after the test steps are completed, proceed to step S2; Step S2: Update ,like If it is empty, the current type of station signal test is terminated; if it is not empty, go to step S1; wherein, Indicates that the value on the right side of the symbol is reassigned to the left side.
2. The method for automatically testing the configuration data of a station entry signal with optimized test duration according to claim 1, characterized in that: The step of obtaining all the station entry signals that need to be established to appear green, green-yellow, and yellow, and forming a station entry signal set to be tested from the obtained station entry signals includes: Read all the signals of the type of entry signal in the station map of the CTC system, which are recorded as set R1; wherein the CTC system is a decentralized autonomous dispatching centralized system; Read all train routes in the CTC system route file, and obtain the train signal of the protection route of each route, which is recorded as set R2; If a station entry signal is in set R1 but not in set R2, it is considered a repeater signal, where the green, green-yellow, and yellow colors of the repeater signal cannot be displayed in the corresponding colors after one or more routes are established; Remove the repeater signals from the set R1, and the remaining entry signals are the set of entry signals to be tested.
3. The method for automated testing of station entry signal configuration data with optimized test duration according to claim 1, characterized in that: For the route to the port The steps to perform the test are as follows: Step S11A: If If it is empty, it will go to the test step of the route that has not reached the port; if it is not empty, it will start from Select the route with the least number of reversed switches to establish the route, and then go to step S11A1; Step S11A1: After establishing the route, determine the station entry signal currently being tested Is it a station entry signal? If yes, update ; When k=1, the corresponding operation is performed according to the port number to which the route is directed, and each operation is recorded The colors of all the entry signals in the station; after all operations are completed, if the current set If all the colors of the station entry signals have been measured, go to step S2; if There are signals that have not been fully tested: if the collection If all routes have been established, go to the test step of the routes that have not reached the port; if the set If there are still unestablished routes in the process, it is necessary to continue to establish other unestablished routes to the port, that is, go to step S11A2; When k>1, the train signal is judged Whether the color of the train signal changes, including the following situations: Color unchanged: If the set If all routes have been established, go to the test step of the routes that have not reached the port; if the set If there are still unestablished routes in the signal, it is necessary to continue to establish other unestablished routes to the port, that is, go to step S11A2; if the train signal Color change: Execute the corresponding operation according to the port number to which the route is directed. Each time an operation is executed, the current set is recorded. The colors of all the station signals; then if If all the signal colors have been measured, go to step S2; if If there are signals that have not been fully tested, it is necessary to continue to establish other routes to the port that have not been established, that is, go to step S11A2. If all routes to the port have been established, go to the test step of the routes that have not reached the port; among them, the train signal for The previous same direction signal; Step S11A2: From the collection Select the established route with the least number of reversed switches from the unestablished routes and then go to step S11A1.
4. The method for automatically testing station entry signal configuration data with optimized test duration according to claim 1, characterized in that: For routes not to ports The steps to perform the test include: Step S11B: If If it is empty, go to step S2. If it is not empty, go to step S3. Select the route with the least number of reversed turnouts to establish, and then go to step S11B1; Step S11B1: After establishing the route, determine the station entry signal currently being tested Is it a station entry signal? If yes, update ; After that, the station signal Whether it is yellow is divided into two categories for judgment: If the station signal Yellow, records the current collection The colors of all the station entrance signals are then judged Whether all the signal colors in the test are fully measured, if all are measured, go to step S2; if If there are signals that have not been fully tested, continue to build the next route. , the next signal of the same direction protecting the signal of the currently constructed route is , with the next same-direction signal The set of all routes except the long train route for the protection signal of the route is ; Go to step S11; If the station signal Not yellow, if the set If there are still unestablished routes in the set The unestablished routes in the set select the established route with the least number of reverse turnouts, and go to step S11B1; if the set If all routes have been established, go to step S2.
5. The method for automated testing of station entry signal configuration data with optimized test duration according to claim 1, characterized in that: The steps for testing a station with turns include: The set of station entry signals to be tested is recorded as , find the first set of pit stop signals tested ; Let the pit stop signal set for the first test of the current test round , It means that the value on the right side of the symbol is reassigned to the left side, and from step S3 to step S4, the test starts with the first test entry signal set of the current test round; Step S3: Randomly select a station entrance signal from the first station entrance signal set tested in the current test round to start the test, and record the first selected station entrance signal as , with the station signal For the protection signal of the route, all routes except the long train route are recorded as , the entry signal selected for the hth time is recorded as , with the station signal For the protection signal of the route, all routes except the long train route are recorded as , h is a positive integer. When h=1, the entry signal selected for the hth time is ; And, define the set , and set it to empty, set Used to record the station entry signals that can be tested simultaneously at the moment; Step S31: Divided into routes to ports Paths to ports not yet reached ; For the route to the port Paths to ports not yet reached Execute the test steps respectively, and select the signal that can be used with the station signal from the first test station signal set of the current test round in the test step. At the same time, other station entry signals are tested; after the test steps are completed, go to step S4; Step S4: Update the collection ;like All the entry signals in the station have been tested. When the updated set If it is not empty, it means that there are still untested entry signals, and go to step S5. Is empty, the test is complete; if If there is still a station entry signal that has not executed step S3, then select any untested station entry signal to execute and go to step S3; Step S5: After updating the set Reselect the station entry signal set for the first test of the current test round and go to step S3.
6. The method for automatically testing the configuration data of a station entry signal with optimized test duration according to claim 5, characterized in that: For the route to the port The steps to perform the test include: Step S31A: If If it is empty, go to the test step of the route that does not reach the port; if it is not empty, go to Select the route with the least number of reversed switches to establish the route, and then go to step S31A1; Step S31A1: After establishing the route, determine the station entry signal Is it a station entry signal? If yes, update ; When h=1, the corresponding operation is performed according to the port number to which the route is directed, and each operation is recorded The colors of all the entry signals in the station; after all operations are completed, if the current set If all the colors of the station entry signals have been measured, go to step S4; if There are signals that have not been fully tested: if the collection If all routes have been established, go to the test step of the routes that have not reached the port; if the set If there are still unestablished routes in the process, it is necessary to continue to establish other unestablished routes to the port, that is, go to step S31A2; When h>1, the train signal is judged Whether the color of the train signal changes, including the following situations: Color unchanged: If the set If all routes have been established, go to the test step of the routes that have not reached the port; if the set If there are still unestablished routes in the signal, it is necessary to continue to establish other unestablished routes to the port, that is, go to step S31A2; if the train signal Color change: Execute the corresponding operation according to the port number to which the route is directed. Each time an operation is executed, the current set is recorded. The colors of all the station signals; then if If all the signal colors have been measured, go to step S4; if If there are signals that have not been fully tested, it is necessary to continue to establish other routes to the port that have not been established, that is, go to step S31A2. If all routes to the port have been established, go to the test step of the routes that have not reached the port; among them, the train signal for The previous same direction signal; Step S31A2: From the collection Select the established route with the least number of reversed switches from the unestablished routes and then go to step S31A1.
7. The method for automatically testing station entry signal configuration data with optimized test duration according to claim 5, characterized in that: For routes not to ports The steps to perform the test include: Step S31B: If If it is empty, go to step S4. If it is not empty, go to step S4. Select the route with the least number of reversed turnouts to establish, and then go to step S31B1; Step S31B1: After establishing the route, determine the station entry signal Is it a station entry signal? If yes, update ; After that, the station signal Whether it is yellow is divided into two categories for judgment: If the station signal Yellow, records the current collection The colors of all the station entry signals are then judged Whether all the signal lights in the signal are fully measured, if all are measured, go to step S4; if If there are signals that have not been fully tested, continue to build the next route; and , the next signal of the same direction protecting the signal of the currently constructed route is , with the next same-direction signal The set of all routes except the long train route for the protection signal of the route is ; Go to step S31; If the station signal Not yellow, if the set If there are still unestablished routes in the set The unestablished routes in the set select the established route with the least number of reverse turnouts, and go to step S31B1; if the set If all routes have been established, go to step S4.
8. The method for automatically testing station entry signal configuration data with optimized test duration according to claim 4 or 7, characterized in that: The method also includes: searching for the next same-direction signal machine that protects the signal machine of the currently constructed route, and searching for all route sets except the long train route that use the next same-direction signal machine as the protection signal machine, the steps including: The currently constructed route is recorded as route L1; For the last object locked in the currently constructed route, which is a straight line type object, first, find the next object of the last object locked in route L1, record the last object as object 1, and judge whether other types of objects on the station diagram of the CTC system meet the following two conditions. If they do, the other types of objects are considered to be the next objects of the last object; the first condition is: any coordinate point of the other types of objects is within the range of the set offset in the left and right direction of a certain coordinate point of object 1 and the set offset in the upper and lower direction; the second condition is: the other types of objects do not belong to the route object of route L1; after finding the next object, read the route file again, and all routes in the route file whose first locked object is the next object except for the long train route are the next routes of route L1, and the protective signal of any of these routes is the next same-direction signal of the station entrance signal of route L1, and the set of these routes is also the set of all routes except the long train route with the next same-direction signal as the protective signal; wherein the CTC system is a decentralized autonomous dispatching centralized system; The last object locked for the currently constructed route is a turnout type object: read the names of all train signals in the station diagram of the CTC system and the terminal button names of route L1 in the route file, thereby selecting the candidate next same-direction signal, recorded as signal 1; and determine whether there is a juxtaposed signal and exclude the juxtaposed signal; the method is as follows: If any one of the four coordinate points of the train signal 2 is within the range of the X left and right offset and the Y up and down offset of one of the four coordinate points of the signal 1, then the train signal 2 and the signal 1 are considered to be a pair of juxtaposed signals; if any one of the coordinate points of any train signal is within the range of the X left and right offset and the Y up and down offset of one of the coordinate points of the signal 1, then it is considered that there is no juxtaposed signal for the signal 1, and thus it is determined that the signal 1 is the next same-direction signal; If there are juxtaposed signals, select any route with signal 1 and train signal 2 as protective signals respectively. Among the two routes, if the first object locked in one of the routes is not the last object locked in route L1, it is considered that the protective signal of this route is the next same-direction signal. Read the signal configuration item of the route in the route file. The signal configuration item is the route other than the long train exit of the next same-direction signal, that is, the set of all routes except the long train route with the next same-direction signal as the protective signal.
9. The method for automatically testing station entry signal configuration data with optimized test duration according to claim 5, characterized in that: The step S5 comprises: In the updated collection Reselect the first entry signal set for the current test round in the selection method: if an entry signal in the set can reach the set through one or more routes Other entry signals in the test are not the first signals tested, including: Step (1): Define the set ,make ; Step (2), optional There is an approach signal in the set, denoted as signal A1, and the set of all routes with signal A1 as the protection signal is set B1. Find the next approach of all routes in set B1. For an approach in set B1, find the next same-direction signal of the signal protecting the approach. The set of all routes except the long train approaches with the next same-direction signal as the protection signal is the next approach of this route. The set of the next approaches of all routes in set B1 is set B2. If the train signal of the route in the protection set B2 is an approach signal and in the set In the set Remove it from the set; then find the next route of all routes in set B2, and record the set of these next routes as set B3. If the train signal of the route in the protection set B3 is an entry signal and in the set , then from the set Remove it from the set, and so on, until all the routes in a set Bf have no next route; Step (3), repeat step (2) until All the signal machines in the set have executed step (2); at this time, the set The signal in is the set of entry signal for the first test of the current test round that is reselected; , then go to step S3 to test the remaining untested entry signals.
