Method and system for detecting validity of communication interface of train control center
By burning testing software into the train control center board and using a host computer to perform full-coverage testing of the communication interface, the problem of communication anomalies in the train control center was solved, improving the efficiency and safety of the train control center's factory debugging.
Patent Information
- Application Number
- CN202111598221.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-24
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2041-12-24
AI Technical Summary
The communication connection of the train control center is susceptible to hardware defects and cable errors, which can lead to communication abnormalities and affect the safe operation of the train.
The testing software is programmed into the board in the train control center. The host computer sends the testing command to test each communication interface and returns the test results to the host computer for visualization, thus achieving full coverage of interface validity testing.
It effectively avoids communication problems caused by hardware defects and cable errors, improves the efficiency of factory debugging of the train control center, accurately locates problematic cables or boards, is simple to operate and does not damage the equipment, and is easy to maintain.
Smart Images

Figure CN114281626B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of rail transit, in particular to a train control center communication interface effectiveness detection method and system. BACKGROUND
[0002] With the continuous development of China's social economy, the demand for railway transportation is also increasing. The CTCS-2 level train control system is currently widely used in domestic train control systems, among which the train control center and the track circuit are important components of the CTCS-2 level train control system and are also the core of the ground safety equipment. They play a crucial role in the stability and safety of train operation.
[0003] As shown in Figure 1 , the train control center is based on a "2 by 2 by 2" redundancy platform, each system contains 2 logical operation units (such as Figure 1 UP and DOWN in Figure 1 ) and 1 communication processing unit (such as DVCOM), the communication between the units of the train control center uses DPRAM bus communication, and the stable communication between the two systems of the train control center is an important factor for safe train operation. At the same time, the stable interface communication between the train control center and external devices is also an important factor for safe train operation. The logical operation unit (UP and DOWN) and the track circuit ZPW-2000 use CAN bus communication, the communication processing unit (DVCOM) and the CTC dispatching center and the LEU system use serial bus communication, the communication processing unit (DVCOM) and the adjacent train control center TCC, the temporary speed limit server TSRS, the interlocking CBI, the network interface LEU, etc. use RJ45 network communication, and the logical operation unit (DOWN) and the maintenance terminal SDM use RJ45 network communication.
[0004] The communication connection of the train control center will be affected by factors such as hardware defects and cable production defects. The existence of bad defects can cause communication abnormalities, resulting in problems that the train control center cannot operate normally on site. Moreover, the train control center is also connected to multiple external devices, and the communication cables and their line sequences used are also diverse, which is prone to human oversight leading to cable hardware production errors, resulting in communication abnormalities and system operation problems, affecting train operation. SUMMARY
[0005] The purpose of the present application is to provide a train control center communication interface effectiveness detection method and system, which realizes full coverage effectiveness detection of the communication interface of the train control center during factory debugging, avoids communication abnormalities of the train control center due to board card or cable hardware errors, and thus outputs to the station site to affect the operation efficiency.
[0006] In order to achieve the above purpose, the present application realizes the following technical scheme:
[0007] A method for detecting effectiveness of a communication interface of a train control center, comprising:
[0008] burning detection software in the double system board of the train control center, and normally starting after power-on, wherein the detection software is used for communicating with an upper computer and performing actions according to instructions of the upper computer;
[0009] the communication interfaces between the double systems of the train control center and between the train control center and each external device are connected by corresponding cables;
[0010] the upper computer is in communication connection with the train control center, and sends a detection instruction to the train control center;
[0011] the train control center tests each communication interface according to the detection instruction, and returns a test result to the upper computer, and the upper computer analyzes the test result and performs visual display.
[0012] Further, the upper computer is in communication connection with the train control center, comprising:
[0013] each board of the double systems of the train control center is connected to the same switch through a network cable;
[0014] the upper computer is configured with a specific IP in the same network segment as the train control center, and is connected to the train control center through the switch.
[0015] Further, before the upper computer sends the detection instruction to the train control center, the upper computer further comprises:
[0016] sending a network test instruction to the train control center, and determining that network communication between the upper computer and the train control center is abnormal if the train control center does not reply;
[0017] after the network communication is normal, the upper computer sends the detection instruction to the train control center.
[0018] Further, the train control center tests each communication interface according to the detection instruction, comprising:
[0019] the train control center calls a function startA to send data to each communication interface, receives data returned by each communication interface and checks correctness, and determines whether each communication interface is normal.
[0020] Further, the train control center sends preset data to a first type of communication interface, and sends random data to a second type of communication interface, the first type of communication interface is a communication interface connected between the train control center and an external device, and the second type of communication interface is a communication interface connected between each board of the train control center.
[0021] Further, the test result is returned to the host computer, comprising:
[0022] The column control center fills the data area corresponding to the senddata data according to whether the data returned by each communication interface is verified to pass or not;
[0023] The function sendto is called to send the senddata data to the host computer.
[0024] A column control center communication interface effectiveness detection system, comprising:
[0025] A host computer, which is used to be in communication connection with the column control center to be tested, and the detection software is burned in the double-system board card of the column control center, and the detection software is used to communicate with the host computer and execute actions according to the instructions of the host computer;
[0026] External devices for assisting in testing, and the communication interfaces between each board card of the column control center and each external device are connected by corresponding cables;
[0027] The host computer is used to send a detection instruction to the column control center, the column control center tests each communication interface according to the detection instruction, and returns the test result to the host computer, and the host computer analyzes the test result and visually displays it.
[0028] Further, the column control center communication interface effectiveness detection system further comprises a switch, and each board card of the double-system column control center is connected to the switch through a network cable, and the host computer is configured with a specific IP in the same network segment as the column control center, and is connected to the switch through a network cable and is in communication connection with the column control center.
[0029] Further, the host computer further sends a network test instruction to the column control center before sending the detection instruction to the column control center, and if the column control center does not reply, it is determined that the network communication between the host computer and the column control center is abnormal; after the network communication is normal, the host computer sends the detection instruction to the column control center again.
[0030] Further, the column control center is specifically used to call the function startA to send data to each communication interface, receive the data returned by each communication interface and verify the correctness, and determine whether each communication interface is normal.
[0031] Further, the column control center sends preset data to the first type of communication interface and sends random data to the second type of communication interface, the first type of communication interface is the communication interface connected between the column control center and the external device, and the second type of communication interface is the communication interface connected between the double-system column control center.
[0032] Further, the line control center is specifically used for filling the data area corresponding to the senddata data according to whether the data returned by each communication interface passes the verification, and each data area in the senddata data is used for representing the communication state of each communication interface; and calling a function sendto to send the senddata data to the upper computer.
[0033] Compared with the prior art, the present application has the following advantages:
[0034] 1. The problem of physical channel receiving and sending data failure due to cable hardware design defects, abnormal board card work and the like is effectively avoided. A thought for judging whether the physical channel is abnormal is provided for the factory debugging of the line control cabinet, and the detection function of the cabinet physical channel is realized. The efficiency is improved and the hidden danger is eliminated in the factory debugging link, and full-load full-coverage detection of each interface outside is realized.
[0035] 2. For the physical channel abnormality problem, the specific cable or board card where the problem occurs is accurately positioned, and whether the physical channel is abnormal is recorded and displayed by the line control center tool software upper computer, which is convenient for maintenance.
[0036] 3. The factory tool software debugging does not damage the board card and the cable, and the same set of equipment can be used for the line control center board card and the upper computer for different cabinets, which is simple to operate and can be completely separated from the application scene, and is convenient to use.
[0037] 4. Since the test equipment (board card) does not have a visual interface, the upper computer visually processes the test results, which is convenient for the tester to intuitively locate the problem. BRIEF DESCRIPTION OF DRAWINGS
[0038] In order to more clearly illustrate the technical solutions of the present application, the following will briefly introduce the drawings needed to be used in the description. Obviously, the drawings in the following description are one embodiment of the present application, and other drawings can be obtained by those skilled in the art without creating labor on the premise of the drawings:
[0039] Figure 1 It is a schematic diagram of the communication connection mode of each interface of the line control center.
[0040] Figure 2 It is a flow chart of the line control center communication interface effectiveness detection method provided by one embodiment of the present application.
[0041] Figure 3 It is a schematic diagram of the connection between the upper computer and the line control center during testing provided by one embodiment of the present application.
[0042] Figure 4A flow chart of a communication interface validity detection process of a specific train control center. DETAILED DESCRIPTION
[0043] The scheme proposed by the present application will be further described in detail below in combination with the drawings and specific embodiments. The advantages and features of the present application will be more apparent according to the following description. It should be noted that the drawings are very simplified and all use non-precise proportions, only for the purpose of facilitating and clearly assisting the description of the embodiments of the present application. In order to make the purpose, features and advantages of the present application more apparent and easy to understand, please refer to the drawings. It should be noted that the structure, proportion, size and the like shown in the drawings attached to the present specification are only used to cooperate with the content disclosed in the specification, so as to be understood and read by those skilled in the art, and are not used to limit the defined conditions for implementing the present application, therefore, any modification of structure, change of proportion relationship or adjustment of size, which does not affect the effect and purpose that can be produced by the present application, should still fall within the scope covered by the disclosed technology content of the present application.
[0044] In order to solve the problem of communication abnormality caused by the defects existing in the hardware itself, the present application proposes an implementation method for detecting the validity of all communication channels of a train control center, avoiding the occurrence of train control center communication abnormality problem due to board card or cable hardware error, so as to output to the station site and affect the operation efficiency.
[0045] Figure 2 A train control center communication interface validity detection method provided by the present application is shown, comprising the following steps:
[0046] S1, burning detection software in the double system board card of the train control center, normal starting after power on, wherein the detection software is used for communicating with the host computer and executing actions according to the instructions of the host computer;
[0047] S2, the communication interface between each board card of the train control center and each external device is connected by corresponding cable;
[0048] S3, the host computer is in communication connection with the train control center, and sends a detection instruction to the train control center;
[0049] S4, the train control center tests each communication interface according to the detection instruction, and returns the test result to the host computer, and the host computer analyzes the test result and performs visual display.
[0050] The detection software in the train control center realizes data mutual transmission between each interface through the host computer instruction in the test process, and verifies whether each interface channel meets the normal data receiving and sending function through receiving and sending data and checking integrity, so as to prove the physical channel integrity of the cabinet.
[0051] In step S2, as shown in Figure 1 The interface protocol between the train control center and the external device is executed according to the provisions of the Interim Technical Specification for High-Speed Train Control Center Interface, Railway Administration
[2015] No. 75, and the implementation of the interface connection meets the specification requirements. As shown in Figure 3 The train control center double system is connected to each other through serial lines and CAN buses corresponding to the cables of the other system.
[0052] In step S3, in order to facilitate the communication connection between the host computer and the train control center, the host computer and the train control center are connected through a switch. Specifically, the board cards of the train control center double system are connected to the same switch through network cables, and the host computer is configured with a specific IP in the same network segment as the train control center and is connected to the switch through a network cable to communicate with the train control center. As shown in Figure 3 The train control center double system has six units (2 UP, 2 DOWN, and 2 DVCOM), all of which are connected to the switch through network cables. After the host computer is configured with a specific IP, it is also connected to the switch through a network cable. At this time, the host computer can send detection instructions to the lower computer (i.e., the train control center) and receive the detection results returned by the lower computer.
[0053] Further, before sending the detection instruction to the train control center, the host computer can also send a network test instruction to the train control center. If the train control center does not reply, it is determined that the network communication between the host computer and the train control center is abnormal. After the network communication is normal, the host computer sends the detection instruction to the train control center again.
[0054] As shown in Figure 4 The host computer interface includes a "test network" button. After the user clicks the button, the host computer sends a network test instruction to the lower computer (i.e., the train control center). After the lower computer detects that the network communication is normal, it returns the detection result to the host computer, and the host computer message window displays the "network test success" prompt information. For example, the host computer sends a network test instruction "NET" to the lower computer by manually clicking the "test network" button. When the lower computer receives the network test instruction "NET", it means that the network physical channel between the lower computer and the host computer meets the communication requirements, and the lower computer returns the data "NET" to the host computer. After the host computer receives the "NET" data, it displays the conclusion that the network test meets the requirements to the user. If the host computer fails to receive the test conclusion data packet returned by the lower computer within a preset time, the host computer considers that the network channel is abnormal and does not meet the network communication requirements. At this time, the problem needs to be located and corrected before retesting. When the network channel connection requirements are met, the user can send a test instruction to the lower computer through the "start test" button in the host computer interface to test each communication interface.
[0055] In step S4, the train control center tests each communication interface according to the detection instruction. Specifically, the train control center calls a function startA to send data to each communication interface, receives data returned by each communication interface and checks the correctness, and judges whether each communication interface is normal.
[0056] The train control center sends preset data to the first type of communication interface and sends random data to the second type of communication interface. The first type of communication interface is a communication interface connected to an external device by the train control center, and the second type of communication interface is a communication interface connected internally between each board card of the train control center. That is, for communication between an external device and the train control center (network port, serial port and CAN port), preset data is used for communication to facilitate subsequent judgment of the transmission result; for internal interaction (DPRAM), random data is used, and the receiving and transmitting parties can check CRC to judge whether the physical channel communication is normal.
[0057] In step S4, the train control center returns the test result to the host computer. Specifically, the train control center fills the data area corresponding to the senddata data according to whether the data returned by each communication interface passes the check, and each data area in the senddata data is used to represent the communication state of each communication interface. Then, the function sendto is called to send the senddata data to the host computer. For example, when the data passes the check, the corresponding senddata is filled with 1, and when no data is received or the data check fails, the senddata is filled with 0, and then the function sendto is called to send the senddata data to the host computer.
[0058] Further, after the host computer receives the test result returned by the train control center, the test result is analyzed and visually displayed. That is, the host computer analyzes the senddata data packet. When senddata is 1, it means that the corresponding physical channel test passes and meets the communication requirements. When senddata is 0, it means that the corresponding physical channel does not meet the test requirements, and the analysis result is displayed to the user. By visualizing the test result, the tester can intuitively locate the problem.
[0059] The main implementation code is as follows:
[0060]
[0061]
[0062] If there is a problem in the test result in step S4, the problem is located and rectified, and then the detection is repeated. If there is no problem in the test result in step S4, it means that each physical channel of the train control center is normal, and the test is completed.
[0063] In actual application, after a user sends a detection instruction for testing each communication interface of the lower computer to the lower computer through a ''start test'' button in the upper computer interface, a test progress bar is displayed in the upper computer interface during the test process, and after the progress bar is completed, the interface displays whether the test result has a problem.
[0064] The overall processing flow of the application includes burning a specific program in the train control center system, power-on start, connection of physical channels, configuration and setting of the upper computer, testing of each physical channel, judging whether the test result is abnormal, and rectifying the problem and re-detecting if the problem occurs. The overall processing flow is clear, and is applied to the factory debugging stage of the train control center. During factory debugging, whether the corresponding physical channel has a communication abnormality can be observed intuitively.
[0065] Based on the same inventive concept, the application further provides a train control center communication interface effectiveness detection system, comprising:
[0066] An upper computer is used for communication connection with a train control center to be detected, and detection software is burned in double-system boards of the train control center, and the detection software is used for communication with the upper computer and performing actions according to instructions of the upper computer;
[0067] An external device for auxiliary testing, and communication interfaces between each board of the train control center and each external device are connected by corresponding cables;
[0068] The upper computer is used for sending a detection instruction to the train control center, the train control center tests each communication interface according to the detection instruction, and returns a test result to the upper computer, and the upper computer analyzes the test result and performs visual display.
[0069] Optionally, the train control center communication interface effectiveness detection system further comprises a switch, each board of the double-system train control center is connected to the switch through a network cable, and the upper computer is configured with a specific IP in the same network segment as the train control center, and is connected to the train control center through the switch.
[0070] Optionally, before sending the detection instruction to the train control center, the upper computer further sends a network test instruction to the train control center, and if the train control center does not reply, it is determined that the network communication between the upper computer and the train control center is abnormal; after the network communication is normal, the upper computer sends the detection instruction to the train control center again.
[0071] Optionally, the train control center is specifically used for calling a function startA to send data to each communication interface, receiving data returned by each communication interface and verifying the correctness, and judging whether each communication interface is normal.
[0072] Optionally, the train control center sends preset data to the first type of communication interface and sends random data to the second type of communication interface, the first type of communication interface being a communication interface connected to external devices by the train control center, and the second type of communication interface being a communication interface connected to the train control center by a double system.
[0073] Optionally, the train control center is specifically configured to fill data areas corresponding to senddata data according to whether the data returned by each communication interface passes the check, each data area in the senddata data being used to represent the communication state of each communication interface, and to call a function sendto to send the senddata data to the upper computer.
[0074] For the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment.
[0075] It should be noted that, in this paper, the relationship terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between the entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or equipment. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or equipment including the element.
[0076] Although the content of the present application has been described in detail through the above preferred embodiments, it should be recognized that the above description should not be considered as a limitation of the present application. After reading the above content, various modifications and alternatives of the present application will be apparent to those skilled in the art. Therefore, the protection scope of the present application should be defined by the appended claims.
Claims
1. A method for detecting validity of a communication interface of a train control center, characterized in that, The application relates to a test method for communication interfaces of a train control center. The test method comprises the following steps: a detection software is burned in double-system board cards of the train control center, and the detection software is used for communication with an upper computer and performing actions according to instructions of the upper computer; communication interfaces between the board cards of the train control center are connected by corresponding cables, and communication interfaces between the board cards of the train control center and external devices are connected by corresponding cables; the upper computer is in communication connection with the train control center, and sends a detection instruction to the train control center; the train control center tests each communication interface according to the detection instruction, and returns a test result to the upper computer, and the upper computer analyzes the test result and performs visual display; the train control center tests each communication interface according to the detection instruction, which comprises the following steps: the train control center calls a function startA to send data to each communication interface, receives data returned by each communication interface and verifies the correctness, and judges whether each communication interface is normal; the train control center sends preset data to a first type of communication interface and sends random data to a second type of communication interface, the first type of communication interface is a communication interface connected between the train control center and external devices, and the second type of communication interface is a communication interface connected between the board cards of the train control center; the test result is returned to the upper computer, which comprises the following steps: the train control center fills a data area corresponding to senddata data according to whether the data returned by each communication interface is verified, and each data area in the senddata data is used for representing a communication state of each communication interface; 2. The method for detecting validity of a communication interface of a train control center according to claim 1, wherein, a function sendto is called to send the senddata data to the upper computer. the upper computer is in communication connection with the train control center, which comprises the following steps: the board cards of the double-system train control center are connected to a same switch through network cables; 3. The method of claim 1, wherein the method further comprises: the upper computer is configured with a specific IP in a same network segment as the train control center, and is connected to the switch through a network cable to be in communication connection with the train control center. Before the upper computer sends the detection instruction to the train control center, the following steps are further included: a network test instruction is sent to the train control center, if the train control center does not reply, it is determined that network communication between the upper computer and the train control center is abnormal; 4. A system for detecting the validity of a communication interface of a train control center, characterized in that after the network communication is normal, the upper computer sends the detection instruction to the train control center. The application relates to a test method for communication interfaces of a train control center. The test method comprises the following steps: an upper computer is in communication connection with a train control center to be tested, and board cards of the train control center are burned with a detection software, the detection software is used for communication with the upper computer and performing actions according to instructions of the upper computer; external devices for auxiliary test, communication interfaces between the board cards of the train control center are connected by corresponding cables, and communication interfaces between the board cards of the train control center and the external devices are connected by corresponding cables; the upper computer is used for sending a detection instruction to the train control center, the train control center tests each communication interface according to the detection instruction, and returns a test result to the upper computer, and the upper computer analyzes the test result and performs visual display; The train control center is specifically configured to send data to each communication interface by calling a function startA, receive data returned by each communication interface and check the correctness, and determine whether each communication interface is normal. The train control center sends preset data to the first type of communication interface and sends random data to the second type of communication interface, the first type of communication interface is a communication interface connected between the train control center and external equipment, and the second type of communication interface is a communication interface connected between each board card in the train control center. The train control center is specifically configured to fill a data area corresponding to senddata data according to whether data returned by each communication interface is checked, and each data area in the senddata data is used to represent a communication state of each communication interface; and call a function sendto to send the senddata data to the upper computer.
5. The system for detecting validity of a communication interface of a train control center according to claim 4, wherein The system further comprises a switch, each board card of the train control center accesses the switch through a network cable, the upper computer is configured with a specific IP in the same network segment as the train control center, accesses the switch through a network cable, and is in communication connection with the train control center.
6. The system for detecting validity of a communication interface of a train control center according to claim 4, wherein The upper computer further sends a network test instruction to the train control center before sending a detection instruction to the train control center, determines that network communication between the upper computer and the train control center is abnormal if the train control center does not reply, and sends the detection instruction to the train control center again after the network communication is normal.
Citation Information
Patent Citations
EOAS equipment detection system and method thereof
CN108021119A
Two-out-of-two hardware platform function test system and method based on network communication
CN111083019A