Engineering data testing method, device, equipment and medium
By obtaining the station topology information and interlocking path information generated by Beidou satellite data, the test sequence is generated, which solves the problems of low efficiency and high error rate of manual writing test sequences, and efficient and accurate RBC engineering data testing and verification are achieved.
Patent Information
- Application Number
- CN202411132840.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-08-19
AI Technical Summary
In the prior art, the wireless occlusion center (RBC) engineering data testing and verification based on Beidou satellite positioning data relies on manual writing of test sequences, which is inefficient and has a high error rate, and cannot reliably verify data accuracy.
By obtaining the station topology information, interlocking route information and key point code information generated by Beidou satellite data, a test sequence is generated, and the test sequence is automatically written using the target test sequence language template to avoid manual writing and ensure the accuracy of the test.
It saves a lot of manpower and time, improves test accuracy, and can reliably verify the accuracy of wireless occlusion center engineering data to meet the test verification needs.
Smart Images

Figure CN118651281B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of software technology, and in particular to an engineering data testing method, device, equipment and medium. Background Art
[0002] The Radio Block Center (RBC) is the core part of the high-speed railway signal control system. It uses wireless communication technology to monitor and control the operation of trains. RBC is responsible for sending operation permissions to trains, monitoring train speed and position, and sending control instructions to trains when necessary to ensure safe operation of trains.
[0003] Currently, RBC engineering data configured based on BeiDou satellite positioning data needs to be tested for accuracy before being released for use. However, there are some problems with using manually written test sequences to verify this data. First, this consumes a lot of manpower and time, because writing test sequences requires careful consideration of various possible situations and input data. Second, manually written test sequences are prone to errors because they may not cover all necessary test cases or contain logical errors. These errors may lead to inaccurate test results and make it impossible to reliably verify the accuracy of RBC engineering data.
[0004] In view of the above problems, how to solve the current problem of RBC engineering data testing and verification by manually writing test sequences, which is inefficient and has a high error rate, is an urgent problem to be solved by technicians in this field. Summary of the invention
[0005] The purpose of this application is to provide an engineering data testing method, device, equipment and medium to solve the problem that the current test verification of RBC engineering data is carried out by manually writing test sequences, which is inefficient and has a high error rate.
[0006] In order to solve the above technical problems, the present application provides an engineering data testing method, comprising:
[0007] Obtain station topology information generated based on Beidou satellite data, interlocking route information of each station, and key point code position information in each interlocking route;
[0008] Determine the topology information and path length corresponding to each interlocking route according to the station topology information and the interlocking route information;
[0009] Generate train positioning information corresponding to each interlocking route according to the key point code position information, the station field topology information and the interlocking route information;
[0010] Read the pre-compiled and configured target test sequence language template;
[0011] A test sequence is generated according to the topology information and the path length corresponding to each interlocking route, the train positioning information and a target test sequence language template, so as to test the radio block center engineering data using the test sequence.
[0012] On the one hand, obtaining the station field topology information generated based on Beidou satellite data includes:
[0013] Acquire key point information of each key point according to Beidou satellite data; wherein the key points include signal machines, turnouts and transponders; the key point information includes key point names and distance information between key points;
[0014] Read the station yard graphic information of the station;
[0015] Generate the station yard topology information according to the key point information and the station yard graphic information;
[0016] Determining whether the station topology information is generated successfully;
[0017] If not, a first log information file is generated and output; wherein the first log information file contains error data and missing data of both the Beidou satellite data and the station yard graphic information when the station yard topology information fails to be generated;
[0018] Modify the erroneous data in the first log information file, supplement the missing data, and return to the step of acquiring key point information of each key point according to Beidou satellite data;
[0019] If yes, the site topology information is stored so as to directly obtain the site topology information.
[0020] On the other hand, determining the topology information and path length corresponding to each interlocking route according to the station field topology information and the interlocking route information includes:
[0021] Search and calculate according to the interlocking route information of each station to obtain the path information of the corresponding interlocking route;
[0022] Search and compare each of the path information with the station field topology information to obtain the path corresponding to each interlocking route in the station field topology information, so as to determine the topology information corresponding to each interlocking route;
[0023] According to the path in the station field topology information corresponding to each interlocking route, the distances between adjacent key points passed in the path are accumulated one by one to obtain the path length corresponding to each interlocking route.
[0024] On the other hand, generating train positioning information corresponding to each interlocking route according to the key point code position information, the station field topology information and the interlocking route information includes:
[0025] Searching for the key point information corresponding to the key point code position information based on the Beidou satellite data and the station yard graphic information, and establishing a matching relationship between the key point code position information and the corresponding key point information;
[0026] Determine target key point information of target key points outside the start signal of each interlocking route according to the interlocking route information and the station field topology information;
[0027] Determine the starting signal of each interlocking route and the target distance information corresponding to the target key point according to the target key point information;
[0028] The train positioning information corresponding to each interlocking route is generated according to each target distance information.
[0029] On the other hand, compiling and configuring the target test sequence language template includes:
[0030] Read test sequence language template information;
[0031] Classifying the instruction information in the test sequence language template information to filter out fixed statements and variable statements;
[0032] The variable statements are classified and processed to generate route handling statements, train positioning statements, statements for triggering the wireless block center to send driving permission statements, and statements for comparing expected results with actual output results of the wireless block center, so as to configure the target test sequence language template.
[0033] On the other hand, generating a test sequence according to the topology information and the path length corresponding to each interlocking route, the train positioning information and the target test sequence language template includes:
[0034] Based on the target test sequence language template, the interlocking route information is converted into route handling instructions, and written in accordance with the corresponding test language;
[0035] According to the topological information corresponding to each interlocking route, the corresponding train positioning information is converted into a test language instruction, and the position of the corresponding train is set outside the starting signal of the interlocking route under test in the test sequence;
[0036] Generate instructions in the test sequence, control the simulated train to establish a communication session with the radio block center, and trigger the radio block center to send a driving permit according to each interlocking route and the corresponding train positioning information;
[0037] The path length of each interlocking route is used as the driving permission length of the radio block center corresponding to each interlocking route, and is converted into expected instructions according to the test language to generate the test sequence.
[0038] On the other hand, generating the test sequence comprises:
[0039] Naming the test sequence according to the station information and the key point information;
[0040] The time information of generating the test sequence is recorded.
[0041] In order to solve the above technical problems, the present application also provides an engineering data testing device, comprising:
[0042] The acquisition module is used to obtain the station field topology information generated based on Beidou satellite data, the interlocking route information of each station, and the key point code position information in each interlocking route;
[0043] A determination module, used to determine the topology information and path length corresponding to each interlocking route according to the station field topology information and the interlocking route information;
[0044] A first generating module is used to generate train positioning information corresponding to each interlocking route according to the key point code position information, the station field topology information and the interlocking route information;
[0045] A reading module, used for reading a target test sequence language template that is pre-compiled and configured;
[0046] The second generating module is used to generate a test sequence according to the topological information and the path length corresponding to each interlocking route, the train positioning information and the target test sequence language template, so as to test the radio block center engineering data using the test sequence.
[0047] In order to solve the above technical problems, the present application also provides an engineering data testing device, including:
[0048] Memory for storing computer programs;
[0049] A processor is used to implement the steps of the above-mentioned engineering data testing method when executing the computer program.
[0050] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above engineering data testing method are implemented.
[0051] The engineering data testing method provided in the present application obtains station field topology information generated based on Beidou satellite data, interlocking route information of each station, and key point code position information in each interlocking route; determines the topology information and path length corresponding to each interlocking route according to the station field topology information and the interlocking route information; generates the train positioning information corresponding to each interlocking route according to the key point code position information, the station field topology information and the interlocking route information; reads the target test sequence language template that has been pre-compiled and configured; generates a test sequence according to the topology information and path length corresponding to each interlocking route, the train positioning information and the target test sequence language template, so as to test the wireless block center engineering data using the test sequence. It can be seen that this scheme determines the topological relationship of the track line under test and the train positioning information based on the original Beidou satellite positioning data, station topology information, interlocking route information and key point code information; and based on the target test sequence language template, the test sequence used for testing is obtained by calculation, avoiding manual writing of test sequences, saving a lot of manpower and time, with high test accuracy, and meeting the needs of test verification of wireless block center engineering data.
[0052] In addition, the present application also provides an engineering data testing device, equipment and medium, with the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0054] FIG1 is a flow chart of an engineering data testing method provided in an embodiment of the present application;
[0055] FIG2 is a schematic diagram of Beidou line information provided in an embodiment of the present application;
[0056] FIG3 is a schematic diagram of an interlocking route search provided in an embodiment of the present application;
[0057] FIG4 is a flow chart of an engineering data testing device provided in an embodiment of the present application;
[0058] FIG5 is a schematic diagram of an engineering data testing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0060] The core of this application is to provide an engineering data testing method, device, equipment and medium to solve the problem that the current testing and verification of RBC engineering data is done by manually writing test sequences, which is inefficient and has a high error rate.
[0061] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0062] At present, RBC engineering data configured based on Beidou satellite positioning data needs to be tested and verified for accuracy before being released for use. However, there are some problems with using the method of manually writing test sequences to verify these data. First, this consumes a lot of manpower and time, because writing test sequences requires careful consideration of various possible situations and input data. Secondly, manually written test sequences are prone to errors because they may not cover all necessary test cases or contain logical errors. These errors may cause inaccurate test results and the accuracy of RBC engineering data cannot be reliably verified. In order to solve the above problems, the present application provides an engineering data testing method.
[0063] FIG1 is a flow chart of an engineering data testing method provided in an embodiment of the present application. As shown in FIG1 , the method includes:
[0064] S10: Obtain the station topology information generated based on Beidou satellite data, the interlocking route information of each station, and the key point code position information in each interlocking route.
[0065] Specifically, first obtain the station field topology information generated based on Beidou satellite data. Figure 2 is a schematic diagram of Beidou line information provided in an embodiment of the present application. As shown in Figure 2, the Beidou satellite data read by RBC obtains the longitude and latitude information of key points such as station field graphics, signal machines, switches and transponders of the track line, as well as the distance information between each key point through the steps of drone aerial photography, phased point layout, orthophoto generation, vector diagram drawing, and coordinate and distance file extraction; RBC configures engineering data based on this information. In this embodiment, there is no restriction on the specific generation process of the station field topology information, which depends on the specific implementation situation.
[0066] At the same time, the interlocking route information of each station is obtained. The interlocking route information specifically includes the following contents: route number, which is used to determine the route number and is subsequently used as a component of the generated test sequence name; the starting signal, which is used to determine the starting position of the route and is subsequently used as a component of the generated test sequence name; the terminal signal, which is used to determine the ending position of the route and is subsequently used as a component of the generated test sequence name; the turnout information, which is used to determine all the turns that the route passes through, as well as the turnout's reverse position information; the track section information, which is used to determine all the track sections that the route passes through.
[0067] Further obtain the key point code position information in each interlocking route. It should be noted that in order to trigger RBC to send a driving permit by running the test sequence, it is necessary to calculate the position of the train in the test sequence when generating the test sequence. In order to calculate the position of the train in the test sequence, it is necessary to obtain the key point code position information in each interlocking route, so as to use it as a reference point for train positioning during positioning.
[0068] S11: Determine the topology information and path length corresponding to each interlocking route based on the station topology information and interlocking route information.
[0069] S12: Generate train positioning information corresponding to each interlocking route based on key point code information, station topology information and interlocking route information.
[0070] S13: Reading a target test sequence language template that is pre-compiled and configured.
[0071] Furthermore, according to the station topology information and interlocking route information, the topology information and path length corresponding to each interlocking route are determined. It can be understood that the topology information corresponding to the interlocking route is the path information corresponding to the interlocking route in the station topology information; and the path length of the interlocking route is the length of the path from the starting signal, along the track section and turnout passed, to the end signal. In this embodiment, there is no restriction on the process of determining the topology information and path length corresponding to each interlocking route, which depends on the specific implementation situation. In addition, according to the key point code information, the station topology information and the interlocking route information, the train positioning information corresponding to each interlocking route is generated, so as to trigger the RBC to send a driving permit by running the test sequence. In this embodiment, there is no restriction on the process of generating the train positioning information, which depends on the specific implementation situation.
[0072] It should be noted that, due to different test environments and test engines, there are also multiple languages for writing test sequences. Therefore, in order to match different test environments and test languages, the target test sequence language template is directly read in this embodiment. It can be understood that the target test sequence language template used to generate the test sequence in this embodiment is a manually compiled template of the test language used by the specified test environment and test engine, and the configuration is completed in advance. When the test sequence is automatically generated, the corresponding template statement can be applied. It should be noted that in this embodiment, there is no restriction on the compilation and configuration process of the target test sequence language template, which depends on the specific implementation situation.
[0073] S14: Generate a test sequence according to the topological information and path length corresponding to each interlocking route, the train positioning information and the target test sequence language template, so as to test the radio block center engineering data using the test sequence.
[0074] Finally, a test sequence is generated based on the obtained topological information and path length corresponding to each interlocking route, train positioning information, and target test sequence language template. After the test sequence is generated, the test sequence is run in the corresponding test environment, which can trigger the RBC under test to send a driving permit corresponding to the tested route and analyze and judge its length to verify whether the data configured by the RBC is correct. In this embodiment, there is no restriction on the specific generation process of the test sequence, which depends on the specific implementation situation.
[0075] In this embodiment, the station field topology information generated based on Beidou satellite data, the interlocking route information of each station, and the key point code position information in each interlocking route are obtained; the topology information and path length corresponding to each interlocking route are determined according to the station field topology information and the interlocking route information; the train positioning information corresponding to each interlocking route is generated according to the key point code position information, the station field topology information and the interlocking route information; the target test sequence language template that is pre-compiled and configured is read; the test sequence is generated according to the topology information and path length corresponding to each interlocking route, the train positioning information and the target test sequence language template, so as to test the wireless block center engineering data using the test sequence. It can be seen that this scheme determines the topological relationship and train positioning information of the track line under test based on the original Beidou satellite positioning data, station field topology information, interlocking route information and key point code position information; and based on the target test sequence language template, the test sequence used for testing is obtained by calculation, avoiding the manual writing of the test sequence, saving a lot of manpower and time, having high test accuracy, and meeting the needs of testing and verification of wireless block center engineering data.
[0076] On the basis of the above embodiments, in some embodiments, obtaining station field topology information generated based on Beidou satellite data includes:
[0077] S100: Obtain key point information of each key point based on Beidou satellite data;
[0078] Among them, key points include signal machines, turnouts and transponders; key point information includes key point names and distance information between key points;
[0079] S101: Reading station yard graphic information of the station;
[0080] S102: generating station yard topology information according to key point information and station yard graphic information;
[0081] S103: Determine whether the station field topology information is generated successfully; if not, proceed to step S104; if yes, proceed to step S106;
[0082] S104: Generate and output a first log information file; wherein the first log information file contains error data and missing data of both Beidou satellite data and station yard graphic information when the station yard topology information generation fails;
[0083] S105: modify the erroneous data in the first log information file, supplement the missing data, and return to step S100;
[0084] S106: Storing the site topology information, so as to directly obtain the site topology information.
[0085] In the specific implementation, in order to obtain the station field topology information, the key point information of each key point is obtained according to the Beidou satellite data. It should be noted that the key points in this embodiment include signal machines, switches and transponders; the corresponding key point information includes the key point names and the distance information between the key points.
[0086] The station yard graphic information of the station is further read, and the station yard topology information is generated according to the key point information and the station yard graphic information. In order to ensure the correctness of the station yard topology information, it is necessary to determine whether the station yard topology information is generated successfully.
[0087] If the generation of the station field topology information fails, a first log information file is generated and output. It should be noted that the first log information file contains erroneous data and missing data of both Beidou satellite data and station field graphic information when the generation of the station field topology information fails. In order to regenerate the station field topology information, it is necessary to modify the erroneous data in the first log information file, supplement the missing data, and then return to the step of obtaining the key point information of each key point according to the Beidou satellite data, and re-enter the data for calculation. If the station field topology information is generated successfully, the station field topology information is stored to facilitate the subsequent direct acquisition of the station field topology information. In this way, the generation of the station field topology information is realized, so that the station field topology information can be used to determine the topology information and path length corresponding to the interlocking route in the subsequent use, thereby realizing the generation of the test sequence.
[0088] On the basis of the above embodiments, in some embodiments, according to the station topology information and the interlocking route information, the topology information and the path length corresponding to each interlocking route are determined, including:
[0089] S111: searching and calculating according to the interlocking route information of each station to obtain the path information of the corresponding interlocking route;
[0090] S112: Search and compare each path information with the station field topology information to obtain the path corresponding to each interlocking route in the station field topology information, so as to determine the topology information corresponding to each interlocking route;
[0091] S113: According to the paths corresponding to each interlocking route in the station field topology information, the distances of adjacent key points passed in the path are accumulated one by one to obtain the path length corresponding to each interlocking route.
[0092] In the specific implementation, in order to determine the topological information and path length corresponding to each interlocking route, the interlocking route information of each station of the RBC under test is first read in, and search and calculation are performed based on the interlocking route information of each station. Specifically, starting from the starting signal of the interlocking route, search and calculation are performed along the switch reverse position and track section passed through to obtain the corresponding interlocking route path information.
[0093] Further search and compare each path information with the station field topology information to obtain the path corresponding to each interlocking route in the station field topology information, so as to determine the topology information corresponding to each interlocking route, as illustrated below. Figure 3 is a schematic diagram of the interlocking route search provided in an embodiment of the present application. As shown in Figure 3, for the route from X to X3, the search and calculation will be performed according to the turnout positioning and track section passed by the interlocking route, starting from the X signal, and passing through the 1# turnout positioning, 5# turnout reversal, 9# turnout positioning, S3 signal and X3 signal in sequence. After determining the topological information of the route, the turnout, signal, and track section passed through are located for subsequent calculations.
[0094] After obtaining the paths corresponding to each interlocking route in the station field topology information, the distances of the adjacent key points passed in the path are accumulated one by one according to the paths corresponding to each interlocking route in the station field topology information to obtain the path length corresponding to each interlocking route. For example, in Figure 3, the distances between the adjacent key points from X to 1#, 1# to 5#, 5# to 9#, 9# to S3, and S3 to X3 are determined, and then added in sequence to calculate the path length of the path from route X to X3. It should be noted that when generating the test sequence, the path length of the path from X to X3 will be used as the expected length of the vehicle permit issued by RBC to verify the data configured in RBC.
[0095] It should be noted that in the process of calculating the distances between adjacent key points, if some adjacent key points are missing, the distances of the missing adjacent key points can be calculated according to the topological relationship corresponding to the interlocking route. The following example illustrates this: As shown in Figure 3, if the Beidou satellite data only provides two sets of distances from X to 5# and 1# to 5#, the distance from X to 1# can be calculated based on the topological structure of the X to X3 interlocking route and the distances from X to 5# and 1# to 5#. At the same time, the Beidou satellite data can be updated for use in subsequent calculations of other routes.
[0096] In addition, if the distances between certain adjacent key points cannot be calculated in the specific implementation, the corresponding log can be output to facilitate problem location. The designer can then check the missing key point information according to the log prompts, supplement it, and then read in the data for calculation.
[0097] In this way, the topological information and path length corresponding to each interlocking route are determined.
[0098] On the basis of the above embodiments, in some embodiments, according to the key point code information, the station topology information and the interlocking route information, the train positioning information corresponding to each interlocking route is generated, including:
[0099] S121: searching for key point information corresponding to the key point code position information based on Beidou satellite data and station yard graphic information, and establishing a matching relationship between the key point code position information and the corresponding key point information;
[0100] S122: Determine target key point information of target key points outside the start signal of each interlocking route according to the interlocking route information and the station field topology information;
[0101] S123: Determine the target distance information between the start signal of each interlocking route and the corresponding target key point according to the information of each target key point;
[0102] S124: Generate train positioning information corresponding to each interlocking route according to each target distance information.
[0103] Taking the interlocking route shown in Figure 3 as an example, in order to trigger RBC to send a driving permit from the locomotive to the terminal signal when the test sequence is running, the train position needs to be placed on the track section between the two key points N1 to X in the test sequence. This requires searching the key point code position information of the two signals N1 and X corresponding to RBC from Beidou data and station data, which is used as the reference point for train positioning. At the same time, combined with the distance information between the two key points N1 to X, the train positioning information in the test sequence is generated.
[0104] Specifically, firstly, the key point information corresponding to the key point code information is searched based on Beidou satellite data and station field graphic information, and a matching relationship between the key point code information and the corresponding key point information is established. It is worth noting that the code information is the identity identification (IDentification, ID) number of each key point agreed upon by both the ground equipment RBC and the vehicle-mounted equipment; when the two parties exchange information, the agreed ID number allows both parties to find the same key point and ensure the consistency of the information of both parties.
[0105] Further, according to the interlocking route information and the station field topology information, the target key point information of the target key point outside the starting signal of each interlocking route is determined, that is, starting from the starting signal, the target key point information of the adjacent target key point is searched in the opposite direction of the train route. For example, in Figure 3, the target key point signal N1 outside the X signal is searched.
[0106] Finally, the starting signal of each interlocking route and the target distance information of the corresponding target key point are determined according to the information of each target key point, and the train positioning information corresponding to each interlocking route is generated according to the target distance information. In this way, the generation of train positioning information is realized, so as to trigger RBC to send driving permission during testing.
[0107] In addition, if the problem of missing some adjacent key points is encountered during the calculation process, the method in the above embodiment can also be adopted to calculate the distance of the missing adjacent key points according to the topological relationship corresponding to the interlocking route and the station field data. If the distance of some adjacent key points cannot be calculated, the corresponding log can be output to facilitate locating the problem, and then the designer can check the missing key point information according to the log prompt, supplement it, and then read the data for calculation.
[0108] Based on the above embodiments, in some embodiments, the target test sequence language template is compiled and configured, including:
[0109] S131: Read test sequence language template information.
[0110] S132: Classify the instruction information in the test sequence language template information to filter out fixed statements and variable statements.
[0111] S133: Classify and process the variable statements to generate route handling statements, train positioning statements, statements for triggering the radio block center to send driving permission statements, and statements for comparing expected results with actual output results of the radio block center, so as to configure the target test sequence language template.
[0112] In the specific implementation, in order to realize the compilation and configuration of the target test sequence language template, the test sequence language template information is specifically read, and the instruction information in the test sequence language template information is classified to filter out fixed statements and variable statements. The variable statements are further classified and processed to generate route handling statements, train positioning statements, statements for triggering the wireless block center to send driving permission statements, and statements for comparing expected results with actual output results of the wireless block center, and the configuration of the target test sequence language template is completed for use in the subsequent automatic generation of test sequences.
[0113] On the basis of the above embodiments, in some embodiments, a test sequence is generated according to the topological information and path length corresponding to each interlocking route, the train positioning information and the target test sequence language template, including:
[0114] S141: based on the target test sequence language template, convert the interlocking route information into route handling instructions, and write them according to the corresponding test language;
[0115] S142: converting the corresponding train positioning information into a test language instruction according to the topological information corresponding to each interlocking route, and setting the position of the corresponding train outside the starting signal of the interlocking route under test in the test sequence;
[0116] S143: Generate instructions in the test sequence, control the simulated train to establish a communication session with the radio block center, and trigger the radio block center to send a driving permit according to each interlocking route and corresponding train positioning information;
[0117] S144: The path length of each interlocking route is used as the driving permission length of the radio block center corresponding to each interlocking route, and converted into expected instructions according to the test language to generate a test sequence.
[0118] In order to generate the test sequence, the interlocking route information is converted into route handling instructions based on the target test sequence language template, and written in the corresponding test language. According to the topological information corresponding to each interlocking route, the corresponding train positioning information is converted into test language instructions, and the position of the corresponding train is set outside the starting signal of the interlocking route under test in the test sequence. The instructions in the test sequence are generated to control the simulation train to establish a communication session with the radio block center, and trigger the radio block center to send a driving permit according to each interlocking route and the corresponding train positioning information. Finally, the path length of each interlocking route is used as the driving permit length of the radio block center corresponding to each interlocking route, and converted into the expected instruction according to the test language, so as to be compared with the driving permit length actually sent by the RBC under test in the subsequent test to verify whether the data configured by the RBC is correct.
[0119] In this way, the generation of the test sequence is completed. After the RBC test sequence is automatically generated, the test sequence is run in the corresponding test environment, triggering the RBC under test to send out the driving permit corresponding to the tested route and analyzing and judging its length to verify whether the data configured by the RBC is correct. For different test environments and test engines, as long as the read-in test language template is modified, a matching test sequence can be generated, which increases the flexibility of using the test sequence.
[0120] It should be noted that, in the process of generating the test sequence, if there are some data errors that make it impossible to generate the test sequence, the method in the above embodiment can also be used to record the error information in detail in the log, and the designer can analyze the erroneous data and then process and solve it. After the designer processes and solves the erroneous data according to the log prompt information, the previous steps are repeated to regenerate the test sequence.
[0121] In addition, in order to better manage the test sequence, when generating the test sequence, you can include:
[0122] S151: Name the test sequence according to the station information and key point information;
[0123] S152: Record the time information of generating the test sequence.
[0124] Specifically, when the test sequence is automatically generated, the test sequence can be named according to the station information and key point information. Specifically, the test sequence can be named with the initials of the station name, the starting signal, the terminal signal, and the route number, so that the interlocking route and the test sequence are matched one by one; at the same time, the time information of the test sequence generation is recorded in each test sequence to facilitate subsequent archiving and query.
[0125] In addition, when the test sequence is automatically generated, the corresponding log file can be output at the same time, which is convenient for counting the time, quantity, name and other information of the generated test sequence. In this way, effective management of the test sequence is achieved.
[0126] In the above embodiments, the engineering data testing method is described in detail, and the present application also provides corresponding embodiments of the engineering data testing device.
[0127] FIG4 is a flow chart of an engineering data testing device provided in an embodiment of the present application. As shown in FIG4 , the device includes:
[0128] The acquisition module 10 is used to obtain the station field topology information generated based on Beidou satellite data, the interlocking route information of each station, and the key point code position information in each interlocking route.
[0129] The determination module 11 is used to determine the topology information and path length corresponding to each interlocking route according to the station field topology information and the interlocking route information.
[0130] The first generating module 12 is used to generate train positioning information corresponding to each interlocking route according to key point code information, station topology information and interlocking route information.
[0131] The reading module 13 is used to read the target test sequence language template that is pre-compiled and configured.
[0132] The second generating module 14 is used to generate a test sequence according to the topological information and path length corresponding to each interlocking route, the train positioning information and the target test sequence language template, so as to test the radio block center engineering data using the test sequence.
[0133] In some embodiments, the acquisition module 10 includes:
[0134] The first acquisition submodule is used to acquire key point information of each key point according to Beidou satellite data; wherein the key points include signal machines, turnouts and transponders; the key point information includes key point names and distance information between key points;
[0135] The first reading submodule is used to read the station yard graphic information of the station;
[0136] The first generation submodule is used to generate station yard topology information according to key point information and station yard graphic information;
[0137] The first judgment submodule is used to judge whether the site topology information is generated successfully; if not, the second generation submodule is triggered; if yes, the storage submodule is triggered;
[0138] The second generation submodule is used to generate and output a first log information file; wherein the first log information file contains error data and missing data of both Beidou satellite data and station field graphic information when the station field topology information generation fails;
[0139] A first modification submodule, used to modify the erroneous data in the first log information file, supplement the missing data, and trigger the first acquisition submodule;
[0140] The storage submodule is used to store the site topology information so as to directly obtain the site topology information.
[0141] In some embodiments, the determination module 11 includes:
[0142] The first search and calculation submodule is used to perform search and calculation according to the interlocking route information of each station to obtain the path information of the corresponding interlocking route;
[0143] The first search and comparison submodule is used to search and compare each path information with the station field topology information to obtain the path corresponding to each interlocking route in the station field topology information, so as to determine the topology information corresponding to each interlocking route;
[0144] The second search calculation submodule is used to accumulate the distances of adjacent key points passed in the path one by one according to the path corresponding to each interlocking route in the station field topology information, so as to obtain the path length corresponding to each interlocking route.
[0145] In some embodiments, the first generating module 12 includes:
[0146] The third search calculation submodule is used to search for key point information corresponding to the key point code position information based on Beidou satellite data and station field graphic information, and establish a matching relationship between the key point code position information and the corresponding key point information;
[0147] The first determination submodule is used to determine the target key point information of the target key point outside the starting signal of each interlocking route according to the interlocking route information and the station field topology information;
[0148] The second determination submodule is used to determine the target distance information between the start signal of each interlocking route and the corresponding target key point according to the information of each target key point;
[0149] The third generation submodule is used to generate train positioning information corresponding to each interlocking route according to each target distance information.
[0150] In some embodiments, the target test sequence language template is compiled and configured, specifically, the test sequence language template information is read; the instruction information in the test sequence language template information is classified to filter out fixed statements and variable statements; the variable statements are classified and processed to generate route handling statements, train positioning statements, triggering the wireless block center to send a driving permit statement, and comparing the expected result with the actual output result statement of the wireless block center to configure the target test sequence language template.
[0151] In some embodiments, the second generating module 14 includes:
[0152] The first conversion and writing submodule is used to convert the interlocking route information into route handling instructions based on the target test sequence language template, and write them according to the corresponding test language;
[0153] The second conversion writing submodule is used to convert the corresponding train positioning information into a test language instruction according to the topological information corresponding to each interlocking route, and set the position of the corresponding train outside the starting signal of the interlocking route under test in the test sequence;
[0154] The fourth generation submodule is used to generate instructions in the test sequence, control the simulation train to establish a communication session with the radio block center, and trigger the radio block center to send a driving permit according to each interlocking route and the corresponding train positioning information;
[0155] The third conversion writing submodule is used to convert the path length of each interlocking route as the wireless block center driving permission length corresponding to each interlocking route into expected instructions according to the test language to generate a test sequence.
[0156] In some embodiments, a test sequence is generated, and the test sequence is specifically named according to the station information and key point information; and the time information of generating the test sequence is recorded.
[0157] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0158] FIG5 is a schematic diagram of an engineering data testing device provided in an embodiment of the present application. As shown in FIG5 , the engineering data testing device includes:
[0159] The memory 20 is used to store computer programs.
[0160] The processor 21 is used to implement the steps of the engineering data testing method mentioned in the above embodiment when executing the computer program.
[0161] The engineering data testing equipment provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer, or a desktop computer.
[0162] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0163] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the engineering data testing method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. Data 203 may include but is not limited to data related to the engineering data testing method.
[0164] In some embodiments, the engineering data testing device may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .
[0165] Those skilled in the art will appreciate that the structure shown in FIG. 5 does not constitute a limitation on the engineering data testing device, and may include more or fewer components than those shown in the figure.
[0166] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.
[0167] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0168] The above is a detailed introduction to an engineering data testing method, device, equipment and medium provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the present application.
[0169] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A method for testing engineering data, It is characterized in that include: Obtain station topology information generated based on Beidou satellite data, interlocking route information of each station, and key point code position information in each interlocking route; Determine the topology information and path length corresponding to each interlocking route according to the station topology information and the interlocking route information; Generate train positioning information corresponding to each interlocking route according to the key point code position information, the station field topology information and the interlocking route information; Read the pre-compiled and configured target test sequence language template; Generate a test sequence according to the topology information and the path length corresponding to each interlocking route, the train positioning information and a target test sequence language template, so as to test the radio block center engineering data using the test sequence; Obtaining the station field topology information generated based on Beidou satellite data, including: Acquire key point information of each key point according to Beidou satellite data; wherein the key points include signal machines, turnouts and transponders; the key point information includes key point names and distance information between key points; Read the station yard graphic information of the station; Generate the station yard topology information according to the key point information and the station yard graphic information; Determining whether the station topology information is generated successfully; If not, a first log information file is generated and output; wherein the first log information file contains error data and missing data of both the Beidou satellite data and the station yard graphic information when the station yard topology information fails to be generated; Modify the erroneous data in the first log information file, supplement the missing data, and return to the step of acquiring key point information of each key point according to Beidou satellite data; If yes, storing the site topology information so as to directly obtain the site topology information; The generating of train positioning information corresponding to each interlocking route according to the key point code position information, the station field topology information and the interlocking route information includes: Searching for the key point information corresponding to the key point code position information based on the Beidou satellite data and the station yard graphic information, and establishing a matching relationship between the key point code position information and the corresponding key point information; Determine target key point information of target key points outside the start signal of each interlocking route according to the interlocking route information and the station field topology information; Determine the starting signal of each interlocking route and the target distance information corresponding to the target key point according to the target key point information; The train positioning information corresponding to each interlocking route is generated according to each target distance information.
2. The engineering data testing method according to claim 1, It is characterized in that Determining the topology information and the path length corresponding to each interlocking route according to the station field topology information and the interlocking route information includes: Search and calculate according to the interlocking route information of each station to obtain the path information of the corresponding interlocking route; Search and compare each of the path information with the station field topology information to obtain the path corresponding to each interlocking route in the station field topology information, so as to determine the topology information corresponding to each interlocking route; According to the path in the station field topology information corresponding to each interlocking route, the distances between adjacent key points passed in the path are accumulated one by one to obtain the path length corresponding to each interlocking route.
3. The engineering data testing method according to claim 1, It is characterized in that The target test sequence language template is compiled and configured, including: Read test sequence language template information; Classifying the instruction information in the test sequence language template information to filter out fixed statements and variable statements; The variable statements are classified and processed to generate route handling statements, train positioning statements, statements for triggering the wireless block center to send driving permission statements, and statements for comparing expected results with actual output results of the wireless block center, so as to configure the target test sequence language template.
4. The engineering data testing method according to claim 1, It is characterized in that The generating of the test sequence according to the topology information and the path length corresponding to each interlocking route, the train positioning information and the target test sequence language template includes: Based on the target test sequence language template, the interlocking route information is converted into route handling instructions, and written in accordance with the corresponding test language; According to the topological information corresponding to each interlocking route, the corresponding train positioning information is converted into a test language instruction, and the position of the corresponding train is set outside the starting signal of the interlocking route under test in the test sequence; Generate instructions in the test sequence, control the simulated train to establish a communication session with the radio block center, and trigger the radio block center to send a driving permit according to each interlocking route and the corresponding train positioning information; The path length of each interlocking route is used as the driving permission length of the radio block center corresponding to each interlocking route, and is converted into expected instructions according to the test language to generate the test sequence.
5. The engineering data testing method according to claim 1, It is characterized in that Generating the test sequence comprises: Naming the test sequence according to the station information and the key point information; The time information of generating the test sequence is recorded.
6. An engineering data testing device, It is characterized in that include: The acquisition module is used to obtain the station field topology information generated based on Beidou satellite data, the interlocking route information of each station, and the key point code position information in each interlocking route; A determination module, used to determine the topology information and path length corresponding to each interlocking route according to the station field topology information and the interlocking route information; A first generating module is used to generate train positioning information corresponding to each interlocking route according to the key point code position information, the station field topology information and the interlocking route information; A reading module, used for reading a target test sequence language template that is pre-compiled and configured; A second generating module is used to generate a test sequence according to the topology information and the path length corresponding to each interlocking route, the train positioning information and a target test sequence language template, so as to test the radio block center engineering data using the test sequence; The acquisition module comprises: The first acquisition submodule is used to acquire key point information of each key point according to Beidou satellite data; wherein the key points include signal machines, turnouts and transponders; the key point information includes key point names and distance information between key points; The first reading submodule is used to read the station yard graphic information of the station; A first generating submodule, configured to generate the station yard topology information according to the key point information and the station yard graphic information; The first judgment submodule is used to judge whether the site topology information is generated successfully; if not, the second generation submodule is triggered; if yes, the storage submodule is triggered; The second generation submodule is used to generate and output a first log information file; wherein the first log information file contains error data and missing data of both the Beidou satellite data and the station field graphic information when the station field topology information fails to be generated; A first modification submodule, used to modify the erroneous data in the first log information file, supplement the missing data, and trigger the first acquisition submodule; The storage submodule is used to store the station field topology information so as to directly obtain the station field topology information; The first generating module comprises: A third search and calculation submodule is used to search for the key point information corresponding to the key point code position information based on the Beidou satellite data and the station field graphic information, and establish a matching relationship between the key point code position information and the corresponding key point information; The first determination submodule is used to determine the target key point information of the target key point outside the starting signal of each interlocking route according to the interlocking route information and the station field topology information; The second determination submodule is used to determine the starting signal of each interlocking route and the target distance information corresponding to the target key point according to the information of each target key point; The third generating submodule is used to generate the train positioning information corresponding to each interlocking route according to each target distance information.
7. An engineering data testing device, It is characterized in that include: Memory for storing computer programs; A processor, used to implement the steps of the engineering data testing method as described in any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the engineering data testing method according to any one of claims 1 to 5 are implemented.
