Automatic train monitoring system ATS interface automated testing method and device

The automatic test method and device for ATS interfaces in automatic train monitoring systems integrate different interfaces for unified testing, addressing labor-intensive and costly issues by enhancing efficiency and accuracy through real-time result generation.

CN113590468BActive Publication Date: 2024-12-27TRAFFIC CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110745258.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-01
Publication Date
2024-12-27
Estimated Expiration
2041-07-01

AI Technical Summary

Technical Problem

Current methods for testing ATS interfaces in automatic train monitoring systems are labor-intensive, have long test cycles, high costs, and lack real-time result accuracy.

Method used

An automatic test method and device that determines configuration information, initiates communication, processes data, and matches test messages with data objects to obtain test results, integrating different ATS peripheral interfaces for unified testing, reducing workload and improving efficiency and accuracy.

Benefits of technology

The method and device achieve standardized testing, reduce testing costs, obtain results in real-time, and enhance accuracy by integrating various ATS interfaces, thereby improving testing efficiency and reducing labor requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113590468B_ABST
    Figure CN113590468B_ABST
Patent Text Reader

Abstract

The present invention provides an automatic test method and device for an ATS interface of an automatic train monitoring system, the method comprising: determining configuration information of a first ATS peripheral interface, the configuration information comprising a data parsing format, an interface type, a protocol type, and a test message path; enabling communication between the ATS and the first ATS peripheral interface; processing data received by the first ATS peripheral interface according to the data parsing format, the interface type, and the protocol type to obtain a first data object; obtaining a first test message corresponding to the first ATS peripheral interface based on the test message path, matching the first test message with the first data object, and obtaining a test result. The present invention can integrate different types of ATS peripheral interfaces to realize unified automatic testing, standardize the test process, reduce workload, improve test efficiency, reduce test costs, obtain test results in real time, and improve the accuracy of test results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of rail transit technology, and in particular to an automatic testing method and device for an ATS interface of an automatic train monitoring system. Background Art

[0002] The Automatic Train Supervision (ATS) system is a distributed real-time monitoring system that integrates modern data communication, network and signal technologies. ATS coordinates with other subsystems in the Automatic Train Control (ATC) system to jointly manage and control urban rail operating trains and signal equipment.

[0003] At present, for the various interface types of ATS, the different protocol versions corresponding to the interfaces, and the complex interface field contents, testers need to monitor multiple interface data at the same time. This manual testing method consumes a lot of labor, has a long testing cycle, high testing costs, and cannot obtain test results in real time to ensure the accuracy of the test results.

[0004] In summary, the related technologies consume a lot of labor, have a long test cycle, high test costs, and cannot obtain test results in real time. The problem of low accuracy of test results needs to be solved urgently. Summary of the invention

[0005] The present invention provides an automatic test method and device for an ATS interface of an automatic train monitoring system, which are used to solve the problems in the related technology of consuming a large amount of labor, long test cycle, high test cost, inability to obtain test results in real time, and low accuracy of test results.

[0006] In a first aspect, the present invention provides an automatic test method for an ATS interface of an automatic train monitoring system, comprising:

[0007] Determine configuration information of the first ATS peripheral interface, the configuration information including data parsing format, interface type, protocol type and test message path;

[0008] Initiate communication between the ATS and the first ATS peripheral interface;

[0009] Processing the data received by the first ATS peripheral interface according to the data parsing format, interface type and protocol type to obtain a first data object;

[0010] A first test message corresponding to the first ATS peripheral interface is acquired based on the test message path, and the first test message is matched with a first data object to obtain a test result.

[0011] Optionally, matching the first test message with the first data object to obtain a test result includes:

[0012] Parsing and storing field information in the first test message, the field information including fields and field attributes;

[0013] The fields in the first test message are matched with the fields of the first data object. If the fields are matched successfully, field attributes are matched to obtain a test result.

[0014] Optionally, the automatic train monitoring system ATS interface automatic testing method further includes:

[0015] Obtain a second test message corresponding to the second ATS peripheral interface;

[0016] Parsing and storing field information in the second test message, the field information including fields and field attributes;

[0017] The fields in the second test message are matched with the fields of the first data object. When the fields are matched successfully, field attributes are matched to obtain a test result.

[0018] Optionally, the configuration information further includes a test report template format, and the method further includes:

[0019] Based on the test results, a test report is generated according to the test report template format.

[0020] Optionally, the configuration information further includes an abnormality judgment parameter, and the method further includes:

[0021] Based on the abnormality judgment parameter, determining whether the data received by the first ATS peripheral interface is abnormal;

[0022] In case of abnormality, an alarm will be issued.

[0023] Optionally, the type of the first ATS peripheral interface includes at least one of a dedicated radio system RADIO interface, a rail transit integrated monitoring system ISCS interface, a passenger information system PIS interface and a broadcasting system PA interface.

[0024] Optionally, the first test message or the second test message is obtained based on a log file corresponding to an event in which the ATS sends data.

[0025] In a second aspect, the present invention further provides an automatic test device for an ATS interface of an automatic train monitoring system, comprising:

[0026] A configuration unit, used to determine configuration information of the first ATS peripheral interface, wherein the configuration information includes a data parsing format, an interface type, a protocol type, and a test message path;

[0027] A startup unit, used to start the communication between the ATS and the first ATS peripheral interface;

[0028] A data processing unit, configured to process the data received by the first ATS peripheral interface according to the data parsing format, interface type and protocol type to obtain a first data object;

[0029] The first test unit is used to obtain a first test message corresponding to the first ATS peripheral interface based on the test message path, match the first test message with a first data object, and obtain a test result.

[0030] In a third aspect, the present invention further provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the automatic testing method for the ATS interface of the automatic train monitoring system as described in the first aspect are implemented.

[0031] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the automatic testing method for the ATS interface of the automatic train monitoring system as described in the first aspect.

[0032] The present invention provides an automatic testing method and device for an ATS interface of an automatic train monitoring system. The method and device determine configuration information of a first ATS peripheral interface, wherein the configuration information includes a data parsing format, an interface type, a protocol type, and a test message path. The communication between the ATS and the first ATS peripheral interface is started. The data received by the first ATS peripheral interface is processed according to the data parsing format, the interface type, and the protocol type to obtain a first data object. A first test message corresponding to the first ATS peripheral interface is obtained based on the test message path. The first test message is matched with the first data object to obtain a test result. The method and device can integrate different types of ATS peripheral interfaces to realize unified automatic testing, standardize the testing process, reduce workload, improve testing efficiency, reduce testing costs, obtain test results in real time, and improve the accuracy of test results. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0034] Figure 1 This is one of the flow charts of the automatic test method of the ATS interface of the automatic train monitoring system provided by the present invention;

[0035] Figure 2 This is the second flow chart of the automatic test method of the ATS interface of the automatic train monitoring system provided by the present invention;

[0036] Figure 3 It is a schematic diagram of a scenario of an automated test of the estimated arrival or departure time of a train provided by the present invention;

[0037] Figure 4 It is a schematic diagram of a scenario of automated testing of train entry, arrival and departure states provided by the present invention;

[0038] Figure 5 It is a schematic diagram of the framework of the automatic train monitoring system ATS interface automatic test system provided by the present invention;

[0039] Figure 6 This is a schematic diagram of a scenario of an automatic train monitoring system ATS interface automatic test system provided by the present invention;

[0040] Figure 7 It is a structural schematic diagram of a train automatic monitoring system ATS interface automated testing method device provided by the present invention;

[0041] Figure 8 This is a schematic structural diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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 scope of protection of the present invention.

[0043] In order to solve the problems in the related art that a lot of labor is consumed, the test cycle is long, the test cost is high, and the test results cannot be obtained in real time, and the accuracy of the test results is low, the embodiment of the present invention provides an automatic test method for the ATS interface of a train automatic monitoring system, Figure 1 FIG. 1 is one of the flow charts of the automatic test method of the ATS interface of the train automatic monitoring system provided by the embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0044] Step 100: Determine configuration information of the first ATS peripheral interface, wherein the configuration information includes a data parsing format, an interface type, a protocol type, and a test message path.

[0045] Optionally, the configuration information includes data parsing format, interface type, protocol type, abnormality judgment parameters, test message path and test report template format.

[0046] Optionally, the abnormality judgment parameter includes an allowable range of time jump.

[0047] Optionally, the type of the first ATS peripheral interface includes at least one of a dedicated radio system RADIO interface, a rail transit integrated monitoring system ISCS interface, a passenger information system PIS interface and a broadcasting system PA interface.

[0048] Optionally, the fields of the RADIO interface include train number, service number, train number, destination code, station number, centralized station number, expected arrival / arrival / departure status, activation end, running direction, in-and-out identification, whether the position is lost, logical section, physical section, train sequence, number of train sets, driver number, whether there is a parking timeout, expected arrival time, departure time, driving mode, door status, parking status, operation control level, emergency braking status, full load rate and speed.

[0049] Optionally, the content of the urban rail transit integrated supervision and control system (ISCS) interface includes train location information, platform arrival train information, power supply information, fire information and flood prevention door information.

[0050] Among them, the fields of train location information include train set number, service number, train number, destination code, station number, centralized station number, expected arrival / arrival / departure status, activation end, running direction, in-and-out identification, whether the position is lost, logical section, physical section, train sequence, number of train sets, driver number, whether there is a stop timeout, expected arrival time, departure time, driving mode, door status, stop status, operation control level, emergency braking status, full load rate and speed.

[0051] Among them, the fields of platform arrival train information include station number, platform number, train number, service number, train number, destination code, expected arrival / arrival / departure status, expected arrival time, departure time, passenger clearance status, skip stop status, train detention status, number of trains and cab number.

[0052] The fields of the power supply information include the number of power supply sections, the power supply section number and the power supply section status.

[0053] Among them, the fields of fire information include the number of fire intervals, the fire interval number and the fire interval status.

[0054] The fields of the flood control gate information include the number of flood control gate sections, the flood control gate section number and the flood control gate section status.

[0055] Optionally, the content of the Passenger Information System (PIS) interface includes first and last train information, platform arrival train information and train arrival information.

[0056] Among them, the fields of the first and last train information include station number, platform number, destination code, service number, expected arrival time, departure time and first and last train status.

[0057] Among them, the fields of platform arrival train information include station number, platform number, train number, service number, train number, destination code, expected arrival / arrival / departure status, expected arrival time, departure time, passenger clearance status, skip stop status, train detention status, number of trains and cab number.

[0058] Among them, the fields of train arrival information include train number, station number, platform number, expected arrival time, departure time and skip stop status.

[0059] Optionally, the content of the broadcast system (Public Addressing, PA) interface includes platform arrival train information and train arrival information.

[0060] Among them, the fields of platform arrival train information include the number of anti-flooding door sections, the anti-flooding door section number and the anti-flooding door section status.

[0061] Among them, the detailed fields of train arrival include train number, station number, platform number, expected arrival time, departure time and skip stop status.

[0062] In one implementation, the test system determines configuration information of the first ATS peripheral interface according to the item to be tested, wherein the configuration information includes data parsing format, interface type, protocol type, test message path, abnormality judgment parameters and test report template format.

[0063] Step 101: Start communication between the ATS and the first ATS peripheral interface.

[0064] In one implementation, the communication between the ATS and the first ATS peripheral interface is enabled, and after confirming that the communication is normal, the ATS sends data to the first ATS peripheral interface.

[0065] Step 102: Process the data received by the first ATS peripheral interface according to the data parsing format, interface type and protocol type to obtain a first data object.

[0066] The first data object includes fields and field attributes.

[0067] In one embodiment, after enabling communication between the ATS and the first ATS peripheral interface and confirming that the communication is normal, the first ATS peripheral interface receives data sent by the ATS, and the test system parses the data based on the data parsing format, interface type and protocol type pre-configured by the first ATS peripheral interface to obtain a first data object.

[0068] Step 103: Acquire a first test message corresponding to the first ATS peripheral interface based on the test message path, match the first test message with a first data object, and obtain a test result.

[0069] The first test message is obtained based on a log file corresponding to an event in which the ATS sends data to the first ATS peripheral interface.

[0070] In one implementation, the test system obtains a first test message corresponding to the first ATS peripheral interface through a test message path, matches the first test message with a first data object, and obtains a test result.

[0071] If the first test message matches the first data object successfully, the test passes; if the first test message matches the first data object unsuccessfully, the test fails.

[0072] The automatic testing method for the ATS interface of the train automatic monitoring system provided in an embodiment of the present invention determines the configuration information of the first ATS peripheral interface, wherein the configuration information includes a data parsing format, an interface type, a protocol type and a test message path, starts the communication between the ATS and the first ATS peripheral interface, processes the data received by the first ATS peripheral interface according to the data parsing format, the interface type and the protocol type to obtain a first data object, obtains a first test message corresponding to the first ATS peripheral interface based on the test message path, matches the first test message with the first data object to obtain a test result, and can integrate different types of ATS peripheral interfaces to realize unified automatic testing, standardize the testing process, reduce workload, improve testing efficiency, reduce testing costs, obtain test results in real time, and improve the accuracy of test results.

[0073] Combination Figure 2 Specifically describe the process of the automatic test method of the train automatic monitoring system ATS interface. Figure 2FIG. 2 is a flow chart of the automatic test method of the ATS interface of the train automatic monitoring system provided by the embodiment of the present invention. Figure 2 As shown, the automatic test method for the ATS interface of the train automatic monitoring system includes the following steps:

[0074] Step 200: Setting the configuration information of the ATS peripheral interface;

[0075] Step 201, start the communication between the ATS and the ATS peripheral interface;

[0076] Step 202: Obtain the test message corresponding to the ATS peripheral interface;

[0077] Step 203: Receive data sent by ATS;

[0078] Step 204: Perform a matching test on the test message and the data;

[0079] Step 205: Generate a test report based on the matching results to complete the test.

[0080] Based on the content of the above embodiment, matching the first test message with the first data object to obtain a test result includes:

[0081] Parsing and storing field information in the first test message, the field information including fields and field attributes;

[0082] The fields in the first test message are matched with the fields of the first data object. If the fields are matched successfully, field attributes are matched to obtain a test result.

[0083] In one implementation, the test system obtains a first test message corresponding to the first ATS peripheral interface through a test message path, parses the first test message, obtains fields and field attributes of the first test message, and stores the fields and field attributes of the first test message.

[0084] Furthermore, the test system obtains the fields and field attributes of the stored first test message and matches them with the first data object. The matching process includes: matching the fields of the first test message with the fields of the first data object. If the field match is successful, matching the field attributes of the first test message with the field attributes of the first data object to obtain a test result.

[0085] An automatic testing method for an automatic train monitoring system ATS interface provided by an embodiment of the present invention, the testing system obtains a first test message corresponding to a first ATS peripheral interface through a test message path, parses and stores fields and field attributes in the first test message, matches the fields of the first test message with the fields of the first data object, and if the field match is successful, matches the field attributes of the first test message with the field attributes of the first data object, and obtains a test result based on the matching result, thereby realizing automatic testing of data of different interface types, standardizing the testing process, reducing workload, improving testing efficiency, reducing testing costs, obtaining test results in real time, and improving the accuracy of test results.

[0086] Based on the content of the above embodiment, the automatic test method for the ATS interface of the automatic train monitoring system further includes:

[0087] Obtain a second test message corresponding to the second ATS peripheral interface;

[0088] Parsing and storing field information in the second test message, the field information including fields and field attributes;

[0089] The fields in the second test message are matched with the fields of the first data object. When the fields are matched successfully, field attributes are matched to obtain a test result.

[0090] It should be noted that since ATS peripheral interfaces of different interface types may contain the same field information, in order to ensure the consistency of the same field information in ATS peripheral interfaces of different interface types, the embodiment of the present application also provides a linkage testing method, that is, performing linkage testing on multiple ATS peripheral interfaces of different interface types.

[0091] Optionally, the type of the second ATS peripheral interface includes at least one of a dedicated radio system RADIO interface, a rail transit integrated monitoring system ISCS interface, a passenger information system PIS interface and a broadcasting system PA interface.

[0092] The second ATS peripheral interface is of a different interface type than the first ATS peripheral interface.

[0093] The second test message is obtained based on a log file corresponding to an event in which the ATS sends data to the second ATS peripheral interface.

[0094] In one implementation, when the first data object successfully matches the first test message, the test system obtains the second test message corresponding to the second ATS peripheral interface through the test message path, parses the second test message, obtains the fields and field attributes of the second test message, and stores the fields and field attributes of the second test message in a storage medium.

[0095] Further, the fields in the second test message are matched with the fields of the first data object. If the match is successful, the field attributes in the second test message are matched with the field attributes of the first data object. If the match is successful, the test passes; if the match is unsuccessful, the test fails.

[0096] Optionally, the test system processes the data received by the second ATS peripheral interface according to the data parsing format, interface type and protocol type to obtain a second data object, matches the field of the first test message with the field of the second data object, and when the field match is successful, matches the field attributes of the first test message with the field attributes of the second data object. If the match is successful, the test passes; if the match is unsuccessful, the test fails.

[0097] Optionally, the test system processes the data received by the third ATS peripheral interface according to the data parsing format, interface type and protocol type to obtain a third data object, obtains a fourth test message corresponding to the fourth ATS peripheral interface, parses and stores the fields and field attributes in the fourth test message, matches the fields in the fourth test message with the fields of the third data object, and when the field match is successful, matches the field attributes in the fourth test message with the field attributes of the third data object; if the match is successful, the test passes; if the match is unsuccessful, the test fails.

[0098] Optionally, the third ATS peripheral interface type includes at least one of a dedicated radio system RADIO interface, a rail transit integrated monitoring system ISCS interface, a passenger information system PIS interface and a broadcasting system PA interface.

[0099] Optionally, the fourth ATS peripheral interface type includes at least one of a dedicated radio system RADIO interface, a rail transit integrated monitoring system ISCS interface, a passenger information system PIS interface and a broadcasting system PA interface.

[0100] The third ATS peripheral interface and the fourth ATS peripheral interface are of different interface types.

[0101] The fourth test message is obtained based on a log file corresponding to an event in which the ATS sends data to the fourth ATS peripheral interface.

[0102] The automatic testing method for the ATS interface of the train automatic monitoring system provided by the embodiment of the present invention obtains the second test message corresponding to the second ATS peripheral interface when the first data object successfully matches the first test message, parses and stores the field information in the second test message, matches the field in the second test message with the field of the first data object, and matches the field attributes when the field matches successfully to obtain the test result, further realizing the automatic testing between the ATS peripheral interfaces of different interface types, standardizing the test process, reducing the workload, improving the test efficiency, reducing the test cost, obtaining the test results in real time, and improving the accuracy of the test results.

[0103] Based on the content of the above embodiment, the configuration information also includes a test report template format, and the method further includes:

[0104] Based on the test results, a test report is generated according to the test report template format.

[0105] Optionally, the test result includes at least one of the following:

[0106] The match is successful and the test passes;

[0107] The match fails and the test fails;

[0108] The data is normal and the test passes;

[0109] The data is abnormal, an alarm message is generated, and the test fails.

[0110] In one implementation, the test system generates a test report based on the test results and in accordance with a test report template format.

[0111] If the test passes, the test report will show that the test passed; if the test fails, the test report will show that the test failed.

[0112] The embodiment of the present invention provides an automatic test method for the train automatic monitoring system ATS interface. The test system generates a test report based on the test results in accordance with the test report template format, standardizes the test process, can obtain the test results in real time, improves test efficiency, and reduces workload.

[0113] Based on the content of the above embodiment, the configuration information also includes an abnormality judgment parameter, and the method further includes:

[0114] Based on the abnormality judgment parameter, determining whether the data received by the first ATS peripheral interface is abnormal;

[0115] In case of abnormality, an alarm will be issued.

[0116] Optionally, the abnormality judgment parameter includes an allowable range of time jump.

[0117] In one implementation, the test system determines whether there is an abnormality in the data received by the first ATS peripheral interface based on pre-set abnormality judgment parameters, and if there is an abnormality, an alarm is issued.

[0118] The following is an application scenario in which an embodiment of the present invention determines whether data received by an ATS peripheral interface is abnormal based on abnormality judgment parameters and issues an alarm prompt through a specific example. Figure 3 It is a schematic diagram of a scenario for automated testing of the estimated arrival or departure time of a train provided in an embodiment of the present invention.

[0119] like Figure 3 As shown, in the application scenario of train expected arrival or departure, the ATS periodically sends the train expected arrival or departure time to the PIS interface.

[0120] The process of automated testing of train estimated arrival or departure time includes:

[0121] Step 300: Obtain the estimated arrival or departure time of the train received by the PIS interface for the first time;

[0122] Step 301: storing the estimated arrival or departure time of a train received for the first time in a storage medium;

[0123] Step 302: Obtain the estimated arrival or departure time of the train received by the PIS interface for the second time;

[0124] Step 303: Calculate the time difference between the estimated arrival or departure time of the train received for the first time and the estimated arrival or departure time of the train received for the second time in the storage medium;

[0125] Step 304: determine whether the time difference is within the time jump threshold range. If so, execute step 300; if not, execute step 305;

[0126] Step 305: Output alarm information and end the test.

[0127] Figure 4 It is a schematic diagram of a scenario for automated testing of train entry, arrival and departure states provided by an embodiment of the present invention.

[0128] like Figure 4 As shown, in the application scenario of train entering, arriving and leaving the station, the ATS sends the status of train entering, arriving and leaving the station to the PA interface in real time.

[0129] The process of automated testing of train entry, arrival and departure status includes:

[0130] Step 400: Obtain the train entry, arrival or departure status received by the PA interface for the first time;

[0131] Step 401: storing the first received train entry, arrival or departure status in a storage medium;

[0132] Step 402: Obtain the train entry, arrival or departure status received by the PA interface for the second time;

[0133] Step 403: Based on the two received train entry, arrival or departure statuses, determine whether the train entry sequence is normal. If so, execute step 400; if not, execute step 404;

[0134] Step 404: Output alarm information and end the test.

[0135] The embodiment of the present invention provides an automated testing method for the ATS interface of an automatic train monitoring system. The testing system determines whether there is an abnormality in the data received by the first ATS peripheral interface based on pre-set abnormality judgment parameters. If there is an abnormality, an alarm prompt is issued, thereby realizing automated testing of ATS peripheral interfaces of different interface types, improving the comprehensiveness of the test, standardizing the test process, reducing workload, improving test efficiency, reducing test costs, obtaining test results in real time, and improving the accuracy of test results.

[0136] Based on the content of the above embodiment, the first test message or the second test message is obtained based on a log file corresponding to an event in which the ATS sends data.

[0137] In one implementation, the first test message is obtained based on a log file corresponding to an event in which the ATS sends data to the first ATS peripheral interface.

[0138] In one implementation, the second test message is obtained based on a log file corresponding to an event in which the ATS sends data to the second ATS peripheral interface.

[0139] An automatic testing method for the ATS interface of an automatic train monitoring system provided by an embodiment of the present invention comprises the following steps: a first test message is obtained based on a log file corresponding to an event in which the ATS sends data to a first ATS peripheral interface; a second test message is obtained based on a log file corresponding to an event in which the ATS sends data to a second ATS peripheral interface; and then, based on the first test message or the second test message, automatic testing of ATS peripheral interfaces of different interface types is implemented, the testing process is standardized, the workload is reduced, the testing efficiency is improved, the testing cost is reduced, the test results are obtained in real time, and the accuracy of the test results is improved.

[0140] Figure 5 Schematic diagram of the framework of the ATS interface automatic test system for train automatic monitoring system provided by the embodiment of the present invention. Figure 5 As shown, an embodiment of the present invention provides an automatic test system for an ATS interface of an automatic train monitoring system, the test system comprising a parameter configuration module 500, a data analysis module 501, a logic function module 502, a test report module 503 and an abnormal alarm module 504, wherein:

[0141] The parameter configuration module 500 is used to determine the configuration information of the first ATS peripheral interface, the configuration information including the data parsing format, interface type, protocol type and test message path;

[0142] The data parsing module 501 is used to parse the data received by the first ATS peripheral interface according to the data parsing format to obtain the parsed data, and is also used to parse the first test message and the second test message to obtain the fields and field attributes of the first test message, and the fields and field attributes of the second test message respectively;

[0143] The logic function module 502 is used to process the parsed data according to the interface type and the protocol type to obtain a first data object, obtain a first test message corresponding to the first ATS peripheral interface based on the test message path, parse the first test message based on the data parsing module to obtain fields and field attributes of the first test message, match the fields in the first test message with the fields of the first data object, and match the field attributes to obtain a test result when the field match succeeds, and also to obtain a second test message corresponding to the second ATS peripheral interface when the first data object test passes, parse the second test message based on the data parsing module to obtain fields and field attributes of the second test message, match the fields in the second test message with the fields of the first data object, and match the field attributes to obtain a test result when the field match succeeds, and also to determine whether there is an abnormality in the data received by the first ATS peripheral interface based on an abnormality judgment parameter;

[0144] A test report module 503 is used to generate a test report according to a test report template format based on the test result, wherein the test result includes an unsuccessful match of the data received by the first ATS peripheral interface and an abnormal data received by the first ATS peripheral interface and an alarm message is prompted;

[0145] The abnormality alarm module 504 is used to issue an alarm prompt when the data received by the first ATS peripheral interface is abnormal.

[0146] Combination Figure 6 Specifically describe the application scenario of the train automatic monitoring system ATS interface automatic test system for automatic testing of ATS peripheral interfaces. Figure 6It is a scenario diagram of an automatic test system for an automatic train monitoring system ATS interface provided by an embodiment of the present invention.

[0147] like Figure 6 As shown, the embodiment of the present invention implements an automatic train monitoring system ATS interface automatic testing method based on the automatic train monitoring system ATS interface automatic testing system.

[0148] Among them, the automatic train monitoring system ATS interface automatic test system is used to perform automatic testing on the ATS peripheral interfaces, which include RADIO interface, ISCS interface, PIS interface and PA interface.

[0149] Furthermore, the test functions of the test system include automatic matching results, automatic determination of time jumps, automatic determination of station announcement information, and automatic generation of test reports.

[0150] The automatic matching result is used to perform a matching test on the data received by each subsystem interface respectively, or the automatic matching result is used to perform a data matching test between multiple subsystem interfaces.

[0151] Automatically determine the time jump to test whether the time data received by the subsystem interface is abnormal.

[0152] Automatically determine the station announcement information to test whether the station announcement data received by the subsystem interface is abnormal.

[0153] The automatically generated test report is a test report generated based on the test results according to the pre-configured test report template.

[0154] The automatic train monitoring system ATS interface automatic testing device provided by the present invention is described below. The automatic train monitoring system ATS interface automatic testing device described below and the automatic train monitoring system ATS interface automatic testing method described above can refer to each other.

[0155] Figure 7 Schematic diagram of the automatic test device for the ATS interface of the train automatic monitoring system provided by the embodiment of the present invention. Figure 7 As shown, the automatic train monitoring system ATS interface automatic test device includes: a configuration unit 710, a start unit 720, a data processing unit 730 and a first test unit 740, wherein:

[0156] The configuration unit 710 is used to determine the configuration information of the first ATS peripheral interface, wherein the configuration information includes a data parsing format, an interface type, a protocol type, and a test message path;

[0157] A start-up unit 720, configured to start communication between the ATS and the first ATS peripheral interface;

[0158] A data processing unit 730 is used to process the data received by the first ATS peripheral interface according to the data parsing format, interface type and protocol type to obtain a first data object;

[0159] The first testing unit 740 is configured to obtain a first test message corresponding to the first ATS peripheral interface based on the test message path, and match the first test message with a first data object to obtain a test result.

[0160] The automatic test device for the ATS interface of the train automatic monitoring system provided in an embodiment of the present invention determines the configuration information of the first ATS peripheral interface, wherein the configuration information includes a data parsing format, an interface type, a protocol type and a test message path, starts the communication between the ATS and the first ATS peripheral interface, processes the data received by the first ATS peripheral interface according to the data parsing format, the interface type and the protocol type to obtain a first data object, obtains a first test message corresponding to the first ATS peripheral interface based on the test message path, matches the first test message with the first data object to obtain a test result, and can integrate different types of ATS peripheral interfaces to realize unified automatic testing, standardize the testing process, reduce workload, improve testing efficiency, reduce testing costs, obtain test results in real time, and improve the accuracy of test results.

[0161] Optionally, the first testing unit 740 is further configured to:

[0162] Parsing and storing field information in the first test message, the field information including fields and field attributes;

[0163] The fields in the first test message are matched with the fields of the first data object. If the fields are matched successfully, field attributes are matched to obtain a test result.

[0164] Optionally, the automatic train monitoring system ATS interface automatic testing device further includes:

[0165] An acquiring unit, configured to acquire a second test message corresponding to a second ATS peripheral interface;

[0166] A parsing unit, configured to parse and store field information in the second test message, wherein the field information includes fields and field attributes;

[0167] The second test unit is used to match the field in the second test message with the field of the first data object, and when the field match succeeds, match the field attributes to obtain a test result.

[0168] Optionally, the configuration information also includes a test report template format;

[0169] The automatic train monitoring system ATS interface automatic testing device also includes:

[0170] A test report generating unit is used to generate a test report according to the test report template format based on the test result.

[0171] Optionally, the configuration information also includes an abnormality judgment parameter;

[0172] The automatic train monitoring system ATS interface automatic testing device also includes:

[0173] An abnormality judgment unit, used for determining whether the data received by the first ATS peripheral interface is abnormal based on the abnormality judgment parameter;

[0174] The alarm unit is used to issue an alarm prompt in the event of an abnormality.

[0175] Optionally, the type of the first ATS peripheral interface includes at least one of a dedicated radio system RADIO interface, a rail transit integrated monitoring system ISCS interface, a passenger information system PIS interface and a broadcasting system PA interface.

[0176] Optionally, the first test message or the second test message is obtained based on a log file corresponding to an event in which the ATS sends data.

[0177] The automatic train monitoring system ATS interface automatic test device provided by the present invention can realize Figures 1 to 4 The various processes implemented by the method embodiment and achieving the same technical effect are not described here to avoid repetition.

[0178] Figure 8 A schematic diagram of the structure of an electronic device provided by the present invention, such as Figure 8 As shown, the electronic device may include: a processor 810, a communications interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communications interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the automatic test method of the train automatic monitoring system ATS interface, the method comprising:

[0179] Determine configuration information of the first ATS peripheral interface, the configuration information including data parsing format, interface type, protocol type and test message path;

[0180] Initiate communication between the ATS and the first ATS peripheral interface;

[0181] Processing the data received by the first ATS peripheral interface according to the data parsing format, interface type and protocol type to obtain a first data object;

[0182] A first test message corresponding to the first ATS peripheral interface is acquired based on the test message path, and the first test message is matched with a first data object to obtain a test result.

[0183] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the 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, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0184] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, and when the program instructions are executed by a computer, the computer can execute the automatic train monitoring system ATS interface automatic testing method provided by the above methods, the method comprising:

[0185] Determine configuration information of the first ATS peripheral interface, the configuration information including data parsing format, interface type, protocol type and test message path;

[0186] Initiate communication between the ATS and the first ATS peripheral interface;

[0187] Processing the data received by the first ATS peripheral interface according to the data parsing format, interface type and protocol type to obtain a first data object;

[0188] A first test message corresponding to the first ATS peripheral interface is acquired based on the test message path, and the first test message is matched with a first data object to obtain a test result.

[0189] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for automatically testing an ATS interface of an automatic train monitoring system provided in the above embodiments is implemented, and the method includes:

[0190] Determine configuration information of the first ATS peripheral interface, the configuration information including data parsing format, interface type, protocol type and test message path;

[0191] Initiate communication between the ATS and the first ATS peripheral interface;

[0192] Processing the data received by the first ATS peripheral interface according to the data parsing format, interface type and protocol type to obtain a first data object;

[0193] A first test message corresponding to the first ATS peripheral interface is acquired based on the test message path, and the first test message is matched with a first data object to obtain a test result.

[0194] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0195] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0196] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A train automatic monitoring system ATS interface automatic testing method, characterized in that: include: Determine configuration information of a first ATS peripheral interface, the configuration information including a data parsing format, an interface type, a protocol type, and a test message path, the type of the first ATS peripheral interface including at least one of a dedicated radio system RADIO interface, a rail transit integrated monitoring system ISCS interface, a passenger information system PIS interface, and a broadcasting system PA interface; Initiate communication between the ATS and the first ATS peripheral interface; Processing the data received by the first ATS peripheral interface according to the data parsing format, interface type and protocol type to obtain a first data object; Acquire a first test message corresponding to the first ATS peripheral interface based on the test message path, match the first test message with a first data object, and obtain a test result, wherein the first test message is obtained based on a log file corresponding to an event in which the ATS sends data to the first ATS peripheral interface; In the case where the first data object successfully matches the first test message, a linkage test is further performed on ATS peripheral interfaces of different interface types, wherein the linkage test comprises: Obtain a second test message corresponding to a second ATS peripheral interface, where the type of the second ATS peripheral interface includes at least one of a dedicated radio system RADIO interface, a rail transit integrated monitoring system ISCS interface, a passenger information system PIS interface, and a broadcasting system PA interface, and the interface type of the second ATS peripheral interface is different from that of the first ATS peripheral interface, and the second test message is obtained based on a log file corresponding to an event in which the ATS sends data to the second ATS peripheral interface; Parsing and storing field information in the second test message, the field information including fields and field attributes; The fields in the second test message are matched with the fields of the first data object. When the fields are matched successfully, field attributes are matched to obtain a test result.

2. The automatic test method for the ATS interface of the automatic train monitoring system according to claim 1 is characterized in that: The matching the first test message with the first data object to obtain a test result includes: Parsing and storing field information in the first test message, the field information including fields and field attributes; The fields in the first test message are matched with the fields of the first data object. If the fields are matched successfully, field attributes are matched to obtain a test result.

3. The automatic test method for the ATS interface of the automatic train monitoring system according to claim 1 is characterized in that: The configuration information also includes a test report template format, and the method further includes: Based on the test results, a test report is generated according to the test report template format.

4. The automatic test method for the ATS interface of the automatic train monitoring system according to claim 1, characterized in that: The configuration information also includes an abnormality judgment parameter, and the method further includes: Based on the abnormality judgment parameter, determining whether the data received by the first ATS peripheral interface is abnormal; In case of abnormality, an alarm will be issued.

5. An automatic test device for the ATS interface of an automatic train monitoring system, characterized in that: include: a configuration unit, configured to determine configuration information of a first ATS peripheral interface, wherein the configuration information includes a data parsing format, an interface type, a protocol type, and a test message path, wherein the type of the first ATS peripheral interface includes at least one of a dedicated radio system RADIO interface, a rail transit integrated monitoring system ISCS interface, a passenger information system PIS interface, and a broadcasting system PA interface; A startup unit, used to start the communication between the ATS and the first ATS peripheral interface; A data processing unit, configured to process the data received by the first ATS peripheral interface according to the data parsing format, interface type and protocol type to obtain a first data object; A first test unit, configured to obtain a first test message corresponding to the first ATS peripheral interface based on the test message path, match the first test message with a first data object, and obtain a test result, wherein the first test message is obtained based on a log file corresponding to an event in which the ATS sends data to the first ATS peripheral interface; In the case where the first data object successfully matches the first test message, a linkage test is further performed on ATS peripheral interfaces of different interface types, wherein the linkage test comprises: Obtain a second test message corresponding to a second ATS peripheral interface, where the type of the second ATS peripheral interface includes at least one of a dedicated radio system RADIO interface, a rail transit integrated monitoring system ISCS interface, a passenger information system PIS interface, and a broadcasting system PA interface, and the interface type of the second ATS peripheral interface is different from that of the first ATS peripheral interface, and the second test message is obtained based on a log file corresponding to an event in which the ATS sends data to the second ATS peripheral interface; Parsing and storing field information in the second test message, the field information including fields and field attributes; The fields in the second test message are matched with the fields of the first data object. When the fields are matched successfully, field attributes are matched to obtain a test result.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the automatic testing method for the ATS interface of the automatic train monitoring system as described in any one of claims 1 to 4 are implemented.

7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the automatic test method for the ATS interface of the automatic train monitoring system as claimed in any one of claims 1 to 4 are implemented.