Signal system testing method and device based on interface protocol

By acquiring and modifying the interface protocol configuration file between the signal system and the external system, the problem of poor flexibility and high cost of testing devices caused by changes in the interface protocol is solved, and flexible and convenient signal system testing and efficient adaptation performance are achieved.

CN113626319BActive Publication Date: 2025-04-01CRSC URBAN RAIL TRANSIT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110858337.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-28
Publication Date
2025-04-01
Estimated Expiration
2041-07-28

AI Technical Summary

Technical Problem

After the interface protocol between signal systems and other systems in the prior art changes, the program of the test device needs to be redeveloped, resulting in poor flexibility and high testing costs of the test device.

Method used

By obtaining the configuration file corresponding to the interface protocol between the signal system to be tested and the external system, the original data packet in the configuration file is displayed when the interface protocol is changed, allowing users to modify the data packet, generate configuration files that are adapted to the new interface protocol, and directly send the modified data packet for testing.

Benefits of technology

It realizes the flexibility and convenience of testing the signal system when the interface protocol changes, improves the adaptation performance and flexibility of data packet data settings, and reduces the difficulty and cost of program code development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113626319B_ABST
    Figure CN113626319B_ABST
Patent Text Reader

Abstract

The present invention provides a signal system testing method and device based on an interface protocol, the method comprising: obtaining a configuration file corresponding to the interface protocol according to the interface protocol between the signal system to be tested and an external system; in the case where the interface protocol is changed, displaying the original first data packet in the configuration file for the user to modify the original first data packet; sending the modified first data packet to the signal system to be tested, so that the signal system to be tested can execute the modified first data packet and obtain the test result of the signal system to be tested. The present invention realizes that when the interface protocol is changed, the data of the data packet in the configuration file is modified, so that the modified configuration file can be adapted to the changed interface protocol, the adaptation performance is improved, and the flexibility of the data setting in the data packet is increased; and there is no need to modify the program and redevelop the program code, which effectively reduces the difficulty and cost of program code development.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automated testing technology, and in particular to a signal system testing method and device based on an interface protocol. Background Art

[0002] Urban rail transit is composed of lines, vehicles, power supply, communication, signal, environmental control and ticketing systems. Among them, the signal system is responsible for ensuring driving safety and directing train operation. Each system in urban rail transit has a communication interface with other systems and interacts with other systems through the communication interface, and the signal system is no exception.

[0003] Among them, the ATP (Automatic Train Protection), ATO (Automatic Train Operation) or VOBC (Vehicle on board Control) in the onboard signal system has an external interface with the vehicle TCMS (Train Control and Management System); the ground signal system ATS (Automatic Train Supervision) may have an external interface with the clock system GPS (Global Positioning System), broadcasting system, passenger information system, integrated monitoring system, wireless communication system, shield door system, and vehicle TCMS. Interface communication methods may include Ethernet and multi-function vehicle bus. And the content of the interface protocol may change with the line, such as the changes in manufacturers of vehicles, platform doors, passenger information systems, etc. caused by application to different lines, as well as different owner needs.

[0004] Usually, before the on-site installation and commissioning of the signal system, the signal system must be tested through the external interface of the signal system. The existing signal system interface test requires the development of specific test devices for the interfaces between the signal system and different systems. When the interface protocol between the signal system and other systems changes due to reasons such as lines, the program of the test device needs to be modified to adapt to the new interface protocol. When the content of the interface protocol changes significantly, the program of the test device needs to be redeveloped. The test device has poor flexibility and requires a lot of development work, resulting in high testing costs. Summary of the invention

[0005] The present invention provides a signal system testing method and device based on an interface protocol, which are used to solve the defects in the prior art that after the interface protocol between the signal system and other systems changes, the program of the test device needs to be redeveloped, the flexibility of the test device is poor, and the testing cost is high. The signal system can be tested flexibly and conveniently when the interface protocol between the signal system and other systems changes.

[0006] The present invention provides a signal system testing method based on an interface protocol, comprising:

[0007] According to the interface protocol between the signal system to be tested and the external system, a configuration file corresponding to the interface protocol is obtained; wherein the interface protocol is pre-associated with the configuration file; and the external system is a system connected to the signal system to be tested through an interface module;

[0008] In the case where the interface protocol is changed, the original first data packet in the configuration file is displayed so that the user can modify the original first data packet;

[0009] The modified first data packet is sent to the signal system under test, so that the signal system under test executes the modified first data packet and obtains a test result of the signal system under test.

[0010] According to a signal system testing method based on an interface protocol provided by the present invention, the displaying of the original first data packet in the configuration file includes:

[0011] The name and value of each original data in the original first data packet are displayed so that the user can modify the value of each original data according to the name of each original data.

[0012] According to a signal system testing method based on an interface protocol provided by the present invention, sending the modified first data packet to the signal system to be tested includes:

[0013] According to the type of each modified data in the modified first data packet, converting the value of each modified data into a corresponding type;

[0014] According to the code position of each modified data, obtaining the encoding position of each modified data in the modified first data packet;

[0015] According to the encoding position of each modified data, encapsulate the converted values ​​of all modified data in the modified first data packet to obtain the encapsulated first data packet;

[0016] The encapsulated first data packet is sent to the signal system to be tested.

[0017] According to a signal system testing method based on an interface protocol provided by the present invention, sending the modified first data packet to the signal system to be tested includes:

[0018] According to the identifier of the modified first data packet in the configuration file, the preset period and the preset data length, the modified first data packet is sent to the signal system to be tested.

[0019] According to a signal system testing method based on an interface protocol provided by the present invention, after sending the modified first data packet to the signal system to be tested, the method further includes:

[0020] According to the identifier of the second data packet in the configuration file, the preset period and the preset data length, receiving the second data packet sent by the signal system to be tested;

[0021] The second data packet is parsed according to the identifier of the second data packet, and the parsed second data packet is displayed so that the user can view the test result and / or the operating status information of the signal system to be tested in the second data packet.

[0022] According to a signal system testing method based on an interface protocol provided by the present invention, the communication mode of the interface module includes one or more of serial communication, Ethernet communication, wireless communication and MVB communication.

[0023] According to a signal system testing method based on an interface protocol provided by the present invention, the signal system to be tested includes an automatic train supervision system and an on-board equipment controller.

[0024] The present invention also provides a signal system testing device based on an interface protocol, comprising:

[0025] An acquisition module, used for acquiring a configuration file corresponding to the interface protocol according to the interface protocol between the signal system to be tested and the external system; wherein the interface protocol is pre-associated with the configuration file; and the external system is a system connected to the signal system to be tested through the interface module;

[0026] A data setting module, used for displaying the original first data packet in the configuration file when the interface protocol is changed, so that the user can modify the original first data packet;

[0027] The interface module is used to send the modified first data packet to the signal system under test, so that the signal system under test executes the modified first data packet and obtains the test result of the signal system under test.

[0028] The present invention also 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 any of the above-mentioned signal system testing methods based on the interface protocol are implemented.

[0029] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the signal system testing method based on the interface protocol as described above are implemented.

[0030] The signal system testing method and device based on the interface protocol provided by the present invention configure the corresponding configuration file according to the interface protocol between the signal system to be tested and the external system. When the interface protocol is changed, the user can modify the data of the data packet in the configuration file according to the data setting interface generated by the configuration file, so that the modified configuration file can be adapted to the changed interface protocol, thereby improving the adaptation performance and increasing the flexibility of the data setting in the data packet; and there is no need to modify the program and redevelop the program code, which effectively reduces the difficulty and cost of program code development. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] 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.

[0032] Figure 1 It is a flow chart of a signal system testing method based on an interface protocol provided by the present invention;

[0033] Figure 2 It is a schematic diagram of the overall structure of the signal system testing method based on the interface protocol provided by the present invention;

[0034] Figure 3 It is a structural schematic diagram of a signal system testing device based on an interface protocol provided by the present invention;

[0035] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0036] 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.

[0037] Combine the following Figure 1 The signal system testing method based on the interface protocol of the present invention comprises: step 101, according to the interface protocol between the signal system to be tested and the external system, obtaining a configuration file corresponding to the interface protocol; wherein the interface protocol is pre-associated with the configuration file; the external system is a system connected to the signal system to be tested through an interface module;

[0038] Optionally, the signal system to be tested is a signal system that needs to be tested, including a vehicle-mounted signal system and a ground signal system. This embodiment does not specifically limit this.

[0039] The external system includes the vehicle TCMS, clock system, broadcasting system, passenger information system, integrated monitoring system, wireless communication system and platform shield door system, which are not specifically limited in this embodiment.

[0040] The signal system under test is connected to the external system through the corresponding interface module, and exchanges data with the external system according to the communication method and requirements that need to be followed between the interfaces for information exchange, that is, the signal system under test and the external system exchange data with the external system through the interface protocol inside the interface module.

[0041] The interface protocol between each signal system to be tested and each external system is different; different interface protocols correspond to different configuration files. That is, each interface protocol corresponds to a configuration file.

[0042] The identifier, receiving and sending status, and data length of the data packet configured in each configuration file are different, as well as the name, type, code point, and value of the data in the data packet. The identifier is used to distinguish different data packets, and the receiving and sending status includes the sending status and the receiving status. According to the receiving and sending status, it is distinguished whether each data packet in the configuration file is a data packet sent to the signal system or a data packet received from the signal system.

[0043] The format of the configuration file can be set according to actual needs, such as XML format, EXCEL or JSON format.

[0044] In summary, the corresponding configuration file can be obtained according to the interface protocol between the signal system to be tested and the external system.

[0045] Step 102, when the interface protocol is changed, displaying the original first data packet in the configuration file so that the user can modify the original first data packet;

[0046] Optionally, since the value of the interface protocol may vary with the route, owner's requirements, etc., if applied to different routes, the manufacturers of vehicles, platform doors, passenger information systems, etc. may change, which may change the value of the interface protocol.

[0047] When the interface protocol between the signal system under test and the external system changes, the data setting module reads the configuration file and displays the original data in the original first data packet in the configuration file in the form of a data setting interface according to the identification, receiving and sending status and data length of the original first data packet in the configuration file, as well as the name, type, code position and value of the original data in the original first data packet.

[0048] The data setting interface displays all the modifiable data items in the original first data packet.

[0049] By configuring different configuration files according to the interface protocol, the corresponding data setting interface can be generated. When the interface protocol changes, the user only needs to modify the value of the original data in the data setting interface according to the changed interface protocol, so that the modified configuration file can be adapted to the changed interface protocol, improve the adaptation performance, and increase the flexibility of data setting in the data packet; avoid program development for different interface protocols, and effectively reduce the difficulty and cost of program code development.

[0050] The first data packet is a data packet in a sending state in the configuration file, and includes data sent from an external system to the signal system to be tested.

[0051] The data contained in the first data packet includes relevant information of the vehicle. For example, if the external system is the vehicle TCMS, the first data packet includes whether the driver's cab is in an activated state, whether the train is in forward driving and reverse driving, whether the train is in traction condition, braking condition and idling condition, whether the reference speed of the train and the TCMS time are valid, the train number, the reference speed of the train, etc. This embodiment does not specifically limit the data in the first data.

[0052] Step 103: Send the modified first data packet to the signal system under test, so that the signal system under test executes the modified first data packet and obtains a test result of the signal system under test.

[0053] like Figure 2As shown, after receiving the user's instruction to modify the first data packet, the modified first data packet is sent to the signal system under test through the interface module. After receiving the modified first data packet, the signal system under test starts to parse it and execute the modified first data packet.

[0054] The user may send the instruction of completing the modification of the first data packet by operating a physical key, which is not specifically limited in this embodiment. For example, by clicking a setting button on the data setting interface.

[0055] The method of executing the modified first data packet may be to obtain the test result after executing the instructions in the modified first data packet;

[0056] Alternatively, the data in the modified first data packet may be displayed, and the modified first data packet displayed by the signal system to be tested may be compared with the modified first data packet sent by the interface module, and the test result of the signal system to be tested may be obtained according to the comparison result. This embodiment does not specifically limit this.

[0057] Optionally, if the modified first data packet displayed by the signal system under test is consistent with the modified first data packet sent by the interface module, it indicates that the signal system under test can normally receive and display data, otherwise it indicates that the signal system under test cannot normally receive and display data.

[0058] This embodiment configures the corresponding configuration file according to the interface protocol between the signal system to be tested and the external system. When the interface protocol is changed, the user can modify the data of the data packet in the configuration file according to the data setting interface generated by the configuration file, so that the modified configuration file can be adapted to the changed interface protocol, thereby improving the adaptation performance and increasing the flexibility of the data setting in the data packet. There is no need to modify the program and redevelop the program code, which effectively reduces the difficulty and cost of program code development.

[0059] Based on the above embodiment, the displaying of the original first data packet in the configuration file in this embodiment includes: displaying the name and value of each original data in the original first data packet, so that the user can modify the value of each original data according to the name of each original data.

[0060] Optionally, the value of the original data in the original first data packet may be an initial value, or may be a value after last modification;

[0061] When the data setting module is initialized or started, it reads the original first data packet in the configuration file and generates a corresponding data setting interface.

[0062] The data setting interface displays the name and value of each original data in the original first data packet.

[0063] Optionally, the display method may be that the name of each original data is displayed on the left side of the data setting interface, and the value of each original data is displayed on the right side, etc. This embodiment does not specifically limit this.

[0064] When the interface protocol is changed, it is only necessary to modify the values ​​of the original data in the data setting interface accordingly to implement the test of the signal system to be tested. The operation is simple and effectively reduces the workload of testers.

[0065] On the basis of the above-mentioned embodiments, the sending of the modified first data packet to the signal system to be tested described in this implementation includes: converting the value of each modified data into a corresponding type according to the type of each modified data in the modified first data packet; obtaining the encoding position of each modified data in the modified first data packet according to the code position of each modified data; encapsulating the converted values ​​of all modified data in the modified first data packet according to the encoding position of each modified data to obtain the encapsulated first data packet; and sending the encapsulated first data packet to the signal system to be tested.

[0066] Optionally, after receiving the user's instruction to complete the modification of the first data packet, the values ​​of each modified data in the data setting interface are converted into corresponding types according to the types of each modified data in the modified first data packet. The types of modified data include integer and Boolean, etc., which are not specifically limited in this embodiment.

[0067] and obtaining the encoding position of the modified data in the modified first data packet according to the code position of the modified data;

[0068] Finally, according to the encoding position of each modification data, the converted values ​​of all modification data are encapsulated, so as to quickly encapsulate all modification data in the modified first data packet.

[0069] Based on the above embodiments, the sending of the modified first data packet to the signal system under test in this embodiment includes: sending the modified first data packet to the signal system under test according to the identifier, preset period and preset data length of the modified first data packet in the configuration file.

[0070] Optionally, the sending channel for sending the modified first data packet may be determined according to the identifier of the modified first data packet in the configuration file; wherein different data packet identifiers correspond to different sending channels.

[0071] And the modified first data packet is sent to the signal system to be tested according to the preset period and preset data length of the modified first data packet.

[0072] The preset period and the preset data length can be set according to actual needs. In addition, the preset period and the preset data length of the modified first data packet in the configuration file can also be adaptively modified according to actual needs.

[0073] In this embodiment, by configuring the identifier, preset period and preset data length of the modified first data packet in the configuration file, the modified first data packet is sent to the signal system under test with different sending channels, different periods and different lengths. The operation is simple and has good flexibility.

[0074] On the basis of the above embodiments, this embodiment further includes, after sending the modified first data packet to the signal system to be tested: receiving the second data packet sent by the signal system to be tested according to the identifier of the second data packet in the configuration file, the preset period and the preset data length; parsing the second data packet according to the identifier of the second data packet, and displaying the parsed second data packet so that the user can view the test results in the second data packet and / or the operating status information of the signal system to be tested.

[0075] The second data packet is a data packet in a receiving state in the configuration file, and includes data sent by the signal system to be tested.

[0076] The data contained in the second data packet includes relevant information of the vehicle sent by the signal system to be tested, such as line ID (Identity Document), destination ID, ID of the next stop, target distance and distance from the station, etc., which is not specifically limited in this embodiment.

[0077] When receiving the second data packet sent by the system under test, the receiving channel for receiving the second data packet can be determined according to the identifier of the second data packet in the configuration file; wherein different data packet identifiers correspond to different receiving channels.

[0078] And receive the second data packet sent by the signal system to be tested according to the preset period and preset data length of the second data packet.

[0079] The preset period and the preset data length of the second data packet in the configuration file may be adaptively modified according to actual needs.

[0080] By configuring the identifier, preset period and preset data length of the second data packet in the configuration file, the second data packet sent by the signal system to be tested can be received with different receiving channels, different periods and different lengths, which is simple to operate and has good flexibility.

[0081] In addition, after receiving the second data packet, a corresponding parsing strategy may be obtained according to the identifier, wherein data packets with different identifiers may be parsed in different ways.

[0082] Optionally, the coding position of each data in the second data packet is obtained according to the code position of each data in the second data in the configuration file; then, according to the coding position of each data, the value of each data is obtained from the corresponding coding position, and the value of each data is converted into a corresponding type according to the type of each data in the second data in the configuration file;

[0083] The name of each data in the parsed second data and the converted value are displayed in the form of a data parsing interface.

[0084] Optionally, the display method may be that the name of each data is displayed on the left side of the data analysis interface, and the value of each data is displayed on the right side, etc. This embodiment does not specifically limit this.

[0085] The user can view the test results in the second data packet and / or the operating status information of the signal system under test in real time. The instruction data sent by the signal system under test can also be displayed, which is not specifically limited in this embodiment.

[0086] On the basis of the above embodiments, the communication mode of the interface module in this embodiment includes one or more of serial communication, Ethernet communication, wireless communication and MVB communication.

[0087] The Ethernet communication may be conventional Ethernet communication or TRDP (Train Real-time Data Protocol) communication.

[0088] The communication mode between the signal system to be tested and the external system may be one of serial communication, Ethernet communication, wireless communication and MVB communication, or may be a combination of serial communication, Ethernet communication, wireless communication and MVB communication, which is not specifically limited in this embodiment.

[0089] On the basis of the above embodiments, the signal system to be tested in this embodiment includes an automatic train supervision system and an on-board equipment controller.

[0090] Among them, the on-board equipment controllers include the automatic train protection system ATP and the automatic train driving system ATO.

[0091] The signal system to be tested may be one or more of the above-mentioned signal systems. For example, the signal system to be tested is the vehicle-mounted equipment controller VOBC, and the external system is the vehicle TCMS, which is not specifically limited in this embodiment.

[0092] The following is a description of a signal system testing device based on an interface protocol provided by the present invention. The signal system testing device based on an interface protocol described below and the signal system testing method based on an interface protocol described above can be referenced to each other.

[0093] like Figure 3 As shown, this embodiment provides a signal system testing device based on an interface protocol, the device includes an acquisition module 301, a data setting module 302 and an interface module 303, wherein:

[0094] The acquisition module 301 is used to acquire a configuration file corresponding to the interface protocol according to the interface protocol between the signal system to be tested and the external system; wherein the interface protocol is pre-associated with the configuration file; and the external system is a system connected to the signal system to be tested through an interface module;

[0095] Optionally, the signal system to be tested is a signal system that needs to be tested, including a vehicle-mounted signal system and a ground signal system. This embodiment does not specifically limit this.

[0096] The external system includes the vehicle TCMS, clock system, broadcasting system, passenger information system, integrated monitoring system, wireless communication system and platform shield door system, which are not specifically limited in this embodiment.

[0097] The signal system under test is connected to the external system through the corresponding interface module, and exchanges data with the external system according to the communication method and requirements that need to be followed between the interfaces for information exchange, that is, the signal system under test and the external system exchange data with the external system through the interface protocol inside the interface module.

[0098] The interface protocol between each signal system to be tested and each external system is different; different interface protocols correspond to different configuration files. That is, each interface protocol corresponds to a configuration file.

[0099] The identifier, receiving and sending status, and data length of the data packet configured in each configuration file are different, as well as the name, type, code point, and value of the data in the data packet. The identifier is used to distinguish different data packets, and the receiving and sending status includes the sending status and the receiving status. According to the receiving and sending status, it is distinguished whether each data packet in the configuration file is a data packet sent to the signal system or a data packet received from the signal system.

[0100] The format of the configuration file can be set according to actual needs.

[0101] In summary, the corresponding configuration file can be obtained according to the interface protocol between the signal system to be tested and the external system.

[0102] The data setting module 302 is used to display the original first data packet in the configuration file when the interface protocol is changed, so that the user can modify the original first data packet;

[0103] Optionally, since the value of the interface protocol may vary with the route, owner's requirements, etc., if applied to different routes, the manufacturers of vehicles, platform doors, passenger information systems, etc. may change, which may change the value of the interface protocol.

[0104] When the interface protocol between the signal system under test and the external system changes, the data in the original first data packet in the configuration file will be displayed in the form of a data setting interface based on the identification, receiving and sending status and data length of the original first data packet in the configuration file, as well as the name, type, code position and value of the data in the original first data packet.

[0105] Among them, all modifiable data items in the first data packet are displayed on the data setting interface.

[0106] By configuring different configuration files according to the interface protocol, the corresponding data setting interface can be generated. When the interface protocol changes, the user only needs to modify the data value in the data setting interface according to the changed interface protocol to adapt the modified configuration file to the changed interface protocol, improve the adaptation performance, and increase the flexibility of data setting in the data packet; avoid program development for different interface protocols, and effectively reduce the difficulty and cost of program code development.

[0107] The first data packet is a data packet in a sending state in the configuration file, and includes data sent from an external system to the signal system to be tested.

[0108] The data contained in the first data packet includes relevant information of the vehicle. For example, if the external system is the vehicle TCMS, the first data packet includes whether the driver's cab is in an activated state, whether the train is in forward driving and reverse driving, whether the train is in traction condition, braking condition and idling condition, whether the reference speed of the train and the TCMS time are valid, the train number, the reference speed of the train, etc. This embodiment does not specifically limit the data in the first data.

[0109] The interface module 303 is used to send the modified first data packet to the signal system under test, so that the signal system under test executes the modified first data packet and obtains the test result of the signal system under test.

[0110] Optionally, after receiving the user's instruction to modify the first data packet, the modified first data packet is sent to the signal system under test through the interface module. After receiving the modified first data packet, the signal system under test starts to parse it and executes the modified first data packet.

[0111] The user may send the instruction of the modification of the first data packet by operating a physical key, which is not specifically limited in this embodiment. The method of executing the modified first data packet may be to obtain the test result after executing the instruction in the modified first data packet;

[0112] Alternatively, the data in the modified first data packet may be displayed, and the modified first data packet displayed by the signal system to be tested may be compared with the modified first data packet sent by the interface module, and the test result of the signal system to be tested may be obtained according to the comparison result. This embodiment does not specifically limit this.

[0113] Optionally, if the modified first data packet displayed by the signal system under test is consistent with the modified first data packet sent by the interface module, it indicates that the signal system under test can normally receive and display data, otherwise it indicates that the signal system under test cannot normally receive and display data.

[0114] This embodiment configures the corresponding configuration file according to the interface protocol between the signal system to be tested and the external system. When the interface protocol is changed, the user can modify the data of the data packet in the configuration file according to the data setting interface generated by the configuration file, so that the modified configuration file can be adapted to the changed interface protocol, thereby improving the adaptation performance and increasing the flexibility of the data setting in the data packet. There is no need to modify the program and redevelop the program code, which effectively reduces the difficulty and cost of program code development.

[0115] On the basis of the above embodiment, the data setting module in this embodiment is specifically used for: displaying the name and value of each original data in the original first data packet, so that the user can modify the value of each original data according to the name of each original data.

[0116] On the basis of the above-mentioned embodiments, the interface module in this embodiment is specifically used for: converting the value of each modified data into a corresponding type according to the type of each modified data in the modified first data packet; obtaining the encoding position of each modified data in the modified first data packet according to the code position of each modified data; encapsulating the converted values ​​of all modified data in the modified first data packet according to the encoding position of each modified data to obtain the encapsulated first data packet; and sending the encapsulated first data packet to the signal system to be tested.

[0117] On the basis of the above embodiments, the interface module in this embodiment is further used to: send the modified first data packet to the signal system under test according to the identifier, preset period and preset data length of the modified first data packet in the configuration file.

[0118] On the basis of the above embodiments, the interface module in this embodiment is also used for: receiving the second data packet sent by the signal system to be tested according to the identifier of the second data packet in the configuration file, the preset period and the preset data length; a data parsing module is used to parse the second data packet according to the identifier of the second data packet, and display the parsed second data packet so that the user can view the test results in the second data packet and / or the operating status information of the signal system to be tested.

[0119] On the basis of the above embodiments, the communication mode of the interface module in this embodiment includes one or more of serial communication, Ethernet communication, wireless communication and MVB communication.

[0120] On the basis of the above embodiments, the signal system to be tested in this embodiment includes an automatic train supervision system and an on-board equipment controller.

[0121] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 complete mutual communication through the communication bus 404. The processor 401 may call the logic instructions in the memory 403 to execute a signal system test method based on an interface protocol, the method comprising: obtaining a configuration file corresponding to the interface protocol according to the interface protocol between the signal system to be tested and the external system; wherein the interface protocol is pre-associated with the configuration file; the external system is a system connected to the signal system to be tested through an interface module; in the case of a change in the interface protocol, displaying the original first data packet in the configuration file for the user to modify the original first data packet; sending the modified first data packet to the signal system to be tested, so that the signal system to be tested executes the modified first data packet and obtains the test result of the signal system to be tested.

[0122] In addition, the logic instructions in the above-mentioned memory 403 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 such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for 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: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0123] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the signal system testing method based on the interface protocol provided by the above-mentioned methods, and the method includes: according to the interface protocol between the signal system to be tested and the external system, obtaining a configuration file corresponding to the interface protocol; wherein the interface protocol is pre-associated with the configuration file; the external system is a system connected to the signal system to be tested through an interface module; when the interface protocol changes, the original first data packet in the configuration file is displayed for the user to modify the original first data packet; the modified first data packet is sent to the signal system to be tested, so that the signal system to be tested executes the modified first data packet to obtain the test result of the signal system to be tested.

[0124] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the above-mentioned signal system testing methods based on interface protocols, the method comprising: obtaining a configuration file corresponding to the interface protocol according to the interface protocol between the signal system to be tested and an external system; wherein the interface protocol is pre-associated with the configuration file; the external system is a system connected to the signal system to be tested through an interface module; in the event of a change in the interface protocol, displaying the original first data packet in the configuration file for the user to modify the original first data packet; sending the modified first data packet to the signal system to be tested, so that the signal system to be tested can execute the modified first data packet and obtain the test result of the signal system to be tested.

[0125] 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.

[0126] 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.

[0127] 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 signal system testing method based on an interface protocol, characterized in that: include: According to the interface protocol between the signal system to be tested and the external system, a configuration file corresponding to the interface protocol is obtained; wherein the interface protocol is pre-associated with the configuration file; and the external system is a system connected to the signal system to be tested through an interface module; In the case where the interface protocol is changed, the original first data packet in the configuration file is displayed so that the user can modify the original first data packet; Sending the modified first data packet to the signal system under test, so that the signal system under test executes the modified first data packet and obtains a test result of the signal system under test; The step of sending the modified first data packet to the signal system to be tested includes: According to the type of each modified data in the modified first data packet, converting the value of each modified data into a corresponding type; According to the code position of each modified data, obtaining the encoding position of each modified data in the modified first data packet; According to the encoding position of each modified data, encapsulate the converted values ​​of all modified data in the modified first data packet to obtain the encapsulated first data packet; Sending the encapsulated first data packet to the signal system to be tested; The first data packet includes data sent by the external system to the signal system to be tested. When the external system is the vehicle TCMS, the first data packet includes data used to characterize whether the driver's cab is in an activated state, data used to characterize whether the train is in forward driving and reverse driving, data used to characterize whether the train is in traction condition, braking condition and coasting condition, the reference speed of the train and data used to characterize whether the TCMS time is valid, the train number, and the reference speed of the train.

2. The signal system testing method based on the interface protocol according to claim 1 is characterized in that: The displaying of the original first data packet in the configuration file includes: The name and value of each original data in the original first data packet are displayed so that the user can modify the value of each original data according to the name of each original data.

3. The signal system testing method based on the interface protocol according to any one of claims 1-2, characterized in that: The step of sending the modified first data packet to the signal system to be tested includes: According to the identifier of the modified first data packet in the configuration file, the preset period and the preset data length, the modified first data packet is sent to the signal system to be tested.

4. The signal system testing method based on the interface protocol according to any one of claims 1-2, characterized in that: After sending the modified first data packet to the signal system to be tested, the method further includes: According to the identifier of the second data packet in the configuration file, the preset period and the preset data length, receiving the second data packet sent by the signal system to be tested; The second data packet is parsed according to the identifier of the second data packet, and the parsed second data packet is displayed so that the user can view the test result and / or the operating status information of the signal system to be tested in the second data packet.

5. The signal system testing method based on the interface protocol according to any one of claims 1-2, characterized in that: The communication mode of the interface module includes one or more of serial communication, Ethernet communication, wireless communication and MVB communication.

6. The signal system testing method based on the interface protocol according to any one of claims 1-2, characterized in that: The signal system to be tested includes an automatic train supervision system and an on-board equipment controller.

7. A signal system testing device based on an interface protocol, characterized in that: include: an acquisition module, configured to acquire a configuration file corresponding to the interface protocol according to the interface protocol between the signal system to be tested and the external system; wherein the interface protocol is pre-associated with the configuration file; and the external system is a system connected to the signal system to be tested through the interface module; A data setting module, used for displaying the original first data packet in the configuration file when the interface protocol is changed, so that the user can modify the original first data packet; An interface module, used for sending the modified first data packet to the signal system to be tested, so that the signal system to be tested executes the modified first data packet and obtains a test result of the signal system to be tested; The interface module is specifically used for: According to the type of each modified data in the modified first data packet, converting the value of each modified data into a corresponding type; According to the code position of each modified data, obtaining the encoding position of each modified data in the modified first data packet; According to the encoding position of each modified data, encapsulate the converted values ​​of all modified data in the modified first data packet to obtain the encapsulated first data packet; Sending the encapsulated first data packet to the signal system to be tested; The first data packet includes data sent by the external system to the signal system to be tested. When the external system is the vehicle TCMS, the first data packet includes data used to characterize whether the driver's cab is in an activated state, data used to characterize whether the train is in forward driving and reverse driving, data used to characterize whether the train is in traction condition, braking condition and coasting condition, the reference speed of the train and data used to characterize whether the TCMS time is valid, the train number, and the reference speed of the train.

8. 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 signal system testing method based on the interface protocol as described in any one of claims 1 to 6 are implemented.

9. 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 signal system testing method based on the interface protocol as claimed in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • TIAS function test method and system

    CN113434411A