A computer interlocking test method

The computer interlocking system and test platform are isolated by the interface machine, which solves the problem of lack of interface code and inconsistent data of the computer interlocking system in the test platform, and realizes a more efficient and reliable test method, which is suitable for computer interlocking products of various manufacturers.

CN115309607BActive Publication Date: 2025-07-29CASCO SIGNAL LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210939087.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-05
Publication Date
2025-07-29
Estimated Expiration
2042-08-05

AI Technical Summary

Technical Problem

In the prior art, computer interlocking systems lack interface codes on the test platform and are inconvenient to upgrade, the data of the operating machine and the lower computer are inconsistent with the actual site, and interlocking products from different manufacturers require the development of specific interface modules, which lack universality.

Method used

By introducing an interface machine, an interlocking test is performed between the computer interlocking system and the test platform. The master controller sends a command message to the interface machine. The interface machine generates a relay device driving command and interacts with the lower computer. The simulation machine generates a representation message, and the interface machine analyzes and sends it to the master controller to realize the status update of the station equipment.

Benefits of technology

It enhances the authenticity and reliability of the test results, reduces product development costs, improves the availability and versatility of tests, reduces the problem of insufficient test timeliness, and supports a wide range of station-type and interface machine software upgrades.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115309607B_ABST
    Figure CN115309607B_ABST
Patent Text Reader

Abstract

The present invention provides a computer interlocking test method, comprising the steps of: S1, the master control machine sends a corresponding first command message to the interface machine according to the stored test cases; S2, the slave machine generates a plurality of relay device drive instructions based on the first command message, the interface machine generates a corresponding second command message based on the relay device drive instructions, and the simulator operates based on the second command message; S3, the simulator generates a second representation message based on the stored test cases, the interface machine parses the corresponding relay device status acquisition information from the second representation message, and sends it to the slave machine to generate the corresponding station field representation information; S4, the interface machine generates a corresponding first representation message based on the relay device status acquisition information it parses and the station field representation information sent by the slave machine, and the master control machine judges the test result based on the first representation message. By means of the present invention, problems such as the lack of a test platform interface for manufacturers and the inconvenience of upgrading the test interface are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of testing of station computer interlocking systems, and particularly to a computer interlocking testing method. Background Art

[0002] According to the "Measures for the Application and Management of Railway Signal Products" of the national railway, the station computer interlocking system needs to pass the tests of a test platform (such as the Tongji test platform developed by Tongji University) in specific situations such as before being put into use on the track and during the renewal review of the certificate. According to the interface requirements of the Tongji University test platform, the computer interlocking product to be tested should be interfaced with the main control machine (also called the Tongji main control machine) and the simulation machine (also called the Tongji simulation machine) of the test platform through network connection, and perform corresponding simulation test functions according to the interface content.

[0003] Existing technical solutions generally use an interlocking operator (abbreviated as operator) to interface with the main control machine, and an interlocking lower computer (abbreviated as lower computer) to interface with the simulation machine (reference can be made to the substantive examination patent "CN112416715A A Computer Interlocking Performance Testing System Based on Operation Scenarios"). The main control machine sends commands to the computer interlocking system item by item according to the test cases and the interlocking table, and operates the simulation machine according to the commands generated by the interlocking system, and finally makes a result determination and evaluation according to the simulation results. Its defects and difficulties are as follows:

[0004] 1) Adding specific simulation interfaces in the interlocking product system. For example, when the software of the operator and the software of the lower computer are changed and released, since the manufacturer does not have the Tongji test platform equipment, it is unable to perform relevant function tests by itself. As a result, when we conduct tests on the Tongji test platform, problems such as the need to upgrade the software of the operator or the software of the lower computer occur due to interface code defects.

[0005] 2) Connecting to the Tongji test platform equipment through two devices (operator, lower computer) respectively, and there is a correlation between some interface information of the two devices. When the internal representation information of the interlocking changes, there is a large deviation in the time of the information sent by the operator to the Tongji main control machine and the same type of information sent by the lower computer to the Tongji simulation machine. In specific scenarios, it may cause the test items to fail.

[0006] 3) After selecting the inspection station yard, it is necessary to first make corresponding test interface data according to the existing station data. This test interface data is stored in the operator and the lower computer, and the isolation from the existing station data is not good, and problems such as the data verification code not matching the actual site are likely to occur.

[0007] 4) There are many interlocking product systems of each manufacturer, and the technical architectures are different, such as dual-machine hot standby interlocking, two-out-of-two redundancy interlocking, all-electronic interlocking, etc. The manufacturer needs to develop specific interface modules to meet the requirements of the Tongji test platform, lacking universality. Summary of the Invention

[0008] The object of the present invention is to provide a computer interlocking test method. By using an interface machine between the computer interlocking system and the test platform for interlocking testing, it solves the problems that the manufacturer lacks the interface code of the test platform or the interface code of the manufacturer's test platform is not convenient for upgrading, solves the problem that the data of the operation machine and the lower-level machine are inconsistent with the actual site, and the problem that different manufacturers need to develop different interface modules.

[0009] To achieve the above object, a computer interlocking test method, the computer interlocking system includes an operation machine and a lower-level machine, the test platform includes a main control machine and a simulation machine, and the test platform tests the computer interlocking system through an interface machine. The test method includes the steps:

[0010] S1. The main control machine sends a corresponding first command message to the interface machine according to the test cases stored therein; the interface machine generates a corresponding user operation command synchronization message based on the first command message; the main operation machine generates a corresponding interlocking operation command after executing the user operation command synchronization message and sends it to the lower-level machine;

[0011] S2. The lower-level machine generates a plurality of corresponding relay device drive instructions based on the interlocking operation command; the interface machine periodically receives the relay device drive instructions from the lower-level machine and generates a corresponding second command message based on all the received relay device drive instructions; the simulation machine operates based on the second command message sent by the interface machine;

[0012] S3. The simulation machine generates a corresponding second representation message based on the test cases stored therein and sends it to the interface machine; the interface machine parses the corresponding relay device status acquisition information from the second representation message and provides it to the lower-level machine; the lower-level machine generates a corresponding station field representation message based on the received relay device status acquisition information and sends it to the interface machine;

[0013] S4. The interface machine generates a corresponding first representation message based on the parsed relay device status acquisition information and the station field representation message sent by the lower-level machine and sends it to the main control machine; the main control machine changes the status of the station field devices in the station field diagram interface based on the first representation message.

[0014] Optionally, the station field devices include: signal lights, sections, turnouts, connection ports, general indication lights, special indication lights, and return hook indication lights; the station field representation message includes: signal light information, section occupancy information, section locking information, turnout position information, turnout single locking information, turnout blocking information, connection port relay information, general relay information, special relay information, and return hook relay information.

[0015] Optionally, the first command message includes a plurality of first command bytes, and a corresponding interlocking operation command is generated by the non-zero first command bytes.

[0016] Optionally, the second command message has multiple command code bits for filling multiple command encodings; the multiple command encodings include: multiple first command encodings, multiple second command encodings, and multiple third command encodings;

[0017] The multiple command code bits include:

[0018] Multiple first command code bits, respectively used for filling the multiple first command encodings that drive multiple signal lights to turn on / off corresponding color signal lights;

[0019] Multiple second command code bits, respectively used for filling the multiple second command encodings that drive multiple turnouts to achieve corresponding turnout positions;

[0020] Multiple third command code bits, respectively used for filling the multiple third command encodings that drive multiple backhook relays to act.

[0021] Optionally, in step S2, the interface machine generates a corresponding second command message based on all the relay device drive instructions received, including:

[0022] S21. The interface machine distinguishes the relay device drive instructions corresponding to each signal light, turnout, and backhook relay;

[0023] S22. The interface machine stores multiple first configuration preset conditions corresponding to multiple signal lights, multiple turnouts, and multiple backhook relays respectively; if the corresponding first configuration preset conditions are met and the corresponding relay device drive instruction is true, fill the corresponding command code bit with the corresponding command encoding;

[0024] S23. Add corresponding message header, attribute, and message tail fields, and encapsulate the multiple command encodings filled in step S22 into the corresponding second command message.

[0025] Optionally, the second representation message is used to represent the station field representation information generated by the simulator based on the test case; the second representation message includes multiple test status encodings;

[0026] The multiple test status encodings include:

[0027] Multiple first test status encodings, respectively used to represent multiple signal light information generated by the simulator;

[0028] Multiple second test status encodings, respectively used to represent multiple section occupancy information generated by the simulator;

[0029] Multiple third test status encodings, respectively used to represent multiple turnout position information generated by the simulator;

[0030] Multiple fourth test status codes, respectively used to represent multiple contactor relay information generated by the simulator;

[0031] Multiple fifth test status codes, respectively used to represent multiple general relay information generated by the simulator;

[0032] Multiple sixth test status codes, respectively used to represent multiple special relay information generated by the simulator;

[0033] Multiple seventh test status codes, respectively used to represent multiple backhook relay information generated by the simulator.

[0034] Optionally, step S3 includes:

[0035] S31. The simulator generates a corresponding second representation message based on the test cases stored therein and sends it to the interface machine; the interface machine determines the validity of the message header, message tail, and message attribute fields of the second representation message; if all are valid, enter S32;

[0036] S32. The interface machine determines whether the length of the second representation message is correct; if correct, enter step S33;

[0037] S33. The interface machine combines the second command message and periodically parses out the relay device status acquisition information corresponding to each test status code in the second representation message and provides it to the lower computer;

[0038] S34. The lower computer differentiates the relay device status acquisition information corresponding to each test status code, and generates corresponding station field representation information based on the differentiation result and sends it to the interface machine.

[0039] Optionally, the interface machine internally has multiple second configuration preset conditions corresponding to the multiple test status codes respectively, and step S33 includes:

[0040] S331. The interface machine reads the first test status code. If the corresponding second configuration preset condition is satisfied, it sets the relay device status acquisition information of the line relay of the corresponding signal machine to a preset value; if the first test status code of the corresponding signal machine matches the first command code, it sets the relay device status acquisition information of the filament relay of the corresponding signal machine to true, otherwise it sets it to false;

[0041] S332. The interface machine reads the second test status code. If the corresponding second configuration preset condition is satisfied, it sets the relay device status acquisition information of the occupancy relay of the corresponding section to the corresponding preset value.

[0042] S333. The interface machine reads the third test status code. If the corresponding second configuration preset condition is met, it sets the device status acquisition information of the normal position indication relay and reverse position indication relay of the corresponding switch to the corresponding preset value; if the third test status code of the corresponding switch matches the second command code, it sets the device status acquisition information of both the normal position indication relay and reverse position indication relay to false; otherwise, it does not set.

[0043] S334. The interface machine reads the fourth test status code. If the corresponding second configuration preset condition is met, it sets the device status acquisition information of the line relay of the corresponding connection port to the corresponding preset value.

[0044] S335. The interface machine reads the fifth test status code. If the corresponding second configuration preset condition is met, it sets the device status acquisition information of the line relay of the corresponding general indication lamp to the corresponding preset value.

[0045] S336. The interface machine reads the sixth test status code. If the corresponding second configuration preset condition is met, it sets the device status acquisition information of the line relay of the corresponding special indication lamp to the corresponding preset value.

[0046] S337. The interface machine reads the seventh test status code. If the corresponding second configuration preset condition is met and it matches the third command code, it sets the device status acquisition information of the line relay of the corresponding return hook indication lamp to the corresponding preset value.

[0047] Optionally, the first indication message is used to represent the station yard indication information generated by the interface machine; the first indication message has multiple verification status code bits, which are respectively used to fill multiple verification status codes; the multiple verification status codes include multiple first verification status codes to multiple tenth verification status codes.

[0048] The multiple verification status code bits include:

[0049] Multiple first verification status code bits, which are respectively used to fill multiple first verification status codes representing multiple signal machine information generated by the interface machine.

[0050] Multiple second verification status code bits, which are respectively used to fill multiple second verification status codes representing multiple section occupancy information generated by the interface machine.

[0051] Multiple third verification status code bits, which are respectively used to fill multiple third verification status codes representing multiple section locking information generated by the interface machine.

[0052] Multiple fourth verification status code bits, which are respectively used to fill multiple fourth verification status codes representing multiple switch position information generated by the interface machine.

[0053] Multiple fifth verification status coding bits, respectively used to fill multiple fifth verification status codes representing multiple turnout single-lock information generated by the interface machine;

[0054] Multiple sixth verification status coding bits, respectively used to fill multiple sixth verification status codes representing multiple turnout blocking information generated by the interface machine;

[0055] Multiple seventh verification status coding bits, respectively used to fill multiple seventh verification status codes representing multiple connection port relay information generated by the interface machine;

[0056] Multiple eighth verification status coding bits, respectively used to fill multiple eighth verification status codes representing multiple general relay information generated by the interface machine;

[0057] Multiple ninth verification status coding bits, respectively used to fill multiple ninth verification status codes representing multiple special relay information generated by the interface machine;

[0058] Multiple tenth verification status coding bits, respectively used to fill multiple tenth verification status codes representing multiple backhook relay information generated by the interface machine.

[0059] Optionally, the interface machine is internally provided with multiple third configuration preset conditions corresponding to the multiple verification status coding bits respectively; Step S4 includes:

[0060] S41. The interface machine differentiates the computer interlocking station yard diagram device display information corresponding to each verification status coding bit;

[0061] S42. If the corresponding third configuration preset condition is satisfied, fill the corresponding verification status code into the corresponding verification status coding bit;

[0062] S43. Add the corresponding message header, attribute, and message tail fields, and encapsulate the multiple verification status codes filled in Step S42 into the corresponding first representation message and send it to the master control machine;

[0063] S44. The master control machine changes the status of the yard equipment in the master control machine visualization yard diagram interface based on the first representation message.

[0064] Compared with the prior art, the computer interlocking test system of the present invention has the following beneficial effects:

[0065] 1) The present invention isolates the computer interlocking system and the test platform through the interface machine. The operation machine and the lower computer use real devices. The software functions and data configurations of the interface machine are the same as those used on-site, enhancing the authenticity and effectiveness of the detection results.

[0066] 2) Interface with the main control machine and the simulation machine through an interface machine. Some information of the two interfaces is related. When this information changes, corresponding related changes will occur simultaneously in the two interfaces, reducing test item problems caused by insufficient test timeliness.

[0067] 3) When problems such as the inability to execute test items occur due to defects in the interface function code, the software of the interface machine can be upgraded to improve this situation. This will not cause a version change of the product under test (computer interlocking system). It reduces the development cost of the product and enhances the usability of product testing.

[0068] 4) The test method of the present invention has strong universality. By adopting the mainstream computer interlocking simulation structure and message interface of each manufacturer, it can be generally applicable to various computer interlocking products.

[0069] 5) The present invention can support a wider range of station types by being able to automatically configure command codes for the second command message, automatically configure test status codes for the first indication message, and automatically configure verification status codes for the second indication message, and provides reserved space for the upgrade of the interface machine. Description of the Drawings

[0070] To more clearly illustrate the technical solution of the present invention, the drawings required for description will be briefly introduced below. Obviously, the drawings in the following description are an embodiment of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts:

[0071] Figure 1 It is a schematic diagram of the communication between the interface machine of the present invention and the test platform and the computer interlocking system;

[0072] Figure 2 It is a schematic diagram of the visual station yard map interface of the main control machine in the embodiment of the present invention;

[0073] Figure 3 It is a flowchart of the computer interlocking test method of the present invention. Detailed Embodiment

[0074] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.

[0075] Such as Figure 1As shown in the figure, the computer interlocking system of the present invention includes an operation machine 4, a lower computer 5, and a maintenance machine 6 (this is not the focus of the present invention and will not be elaborated). The test platform of the present invention includes a main control machine 1 and a simulation machine 2, and the test platform tests the computer interlocking system through an interface machine.

[0076] The main control machine 1 has a visual station yard diagram interface. Figure 2 It is a schematic diagram of the visual station yard diagram interface in the embodiment of the present invention, which includes multiple signal machines (such as D7, D13, D25, etc.), multiple sections (such as IAG, IIIAG, XD2JG, etc.), multiple turnouts (1, 3, 5, etc.), multiple connection ports (not shown in the figure), multiple general indication lights (not shown in the figure), multiple special indication lights (not shown in the figure), multiple return hook indication lights (not shown in the figure), etc. station yard devices, as well as multiple buttons. The station yard indication information can be observed through this interface.

[0077] The station yard indication information includes: signal machine information (the signal lamp color of the signal machine, which can be colors such as white, blue, double yellow, single green, red, etc.), section occupancy information (section idle or occupied), section locking information (section locked or unlocked), turnout position information (turnout normal position, reverse position, four-way open, derailed), turnout single lock information (turnout locked or unlocked), turnout blocking information (turnout blocked or unblocked), connection port relay information (pulled up or dropped), general relay information (pulled up or dropped), special relay information (pulled up or dropped), return hook relay information (pulled up or dropped). The general relay, special relay, and return hook relay are respectively used to control the corresponding general indication light, special indication light, and return hook indication light. The main control machine 1 controls the station yard by operating the buttons in the station yard diagram interface to simulate the user's control of the station yard. By observing the station yard diagram interface, the result of the main control machine 1's control of the station yard (such as whether there is a failure of the station yard device, etc.) can be known.

[0078] One station yard device corresponds to at least one line relay device. Driving the corresponding line relay device to drive the corresponding station yard device, and obtaining the information of the corresponding station yard device by obtaining the acquisition status information of the corresponding line relay device. For example, a signal machine has multiple signal lamps, and each signal lamp corresponds to a line relay device. By sending a corresponding line relay device drive instruction to the corresponding line relay device, the line relay device is pulled up / dropped to light / turn off the corresponding signal lamp, that is, to drive the corresponding signal machine. The information of the corresponding signal machine can be obtained by obtaining the acquisition status information of the corresponding line relay device (the line relay device is pulled up or dropped). On the contrary, the acquisition status information of the corresponding line relay device can be obtained according to the signal machine information.

[0079] Such as Figure 1As shown in the figure, the interface machine 3 of the present invention includes: an operating machine function module 31, an external drive and extraction simulation function module 33, and a communication module 32. In the prior art, the operating machine function module 31 is arranged inside the operating machine. In the present invention, this module is migrated to the interface machine 3 and the original functions are retained. The communication module 32 is used to realize the communication between the interface machine 3 and the test platform. The interface machine 3 periodically obtains the line relay device drive command (generated by the lower computer 5) from the lower computer 5 through the external drive and extraction simulation function module 33; the external drive and extraction simulation function module 33 is also used to calculate the relay device status acquisition information corresponding to each station field device according to the second representation message.

[0080] The present invention provides a computer interlocking test method. As Figure 3 shown, the test method includes the steps:

[0081] S1. According to the test cases stored in it, the master control machine 1 operates at least one button on the visual station field diagram interface and sends a first command message corresponding to the operation to the interface machine 3; the interface machine 3 generates a corresponding user operation command synchronization message based on the first command message through the operating machine function module 31 inside it; after the main operating machine 41 executes the user operation command synchronization message, it generates a corresponding interlocking operation command and sends it to the lower computer 5.

[0082] Step S1 includes:

[0083] S11. According to the test cases stored in it, the master control machine 1 operates at least one button on the visual station field diagram interface (as Figure 2 shown) and sends a first command message corresponding to the operation to the interface machine 3;

[0084] One button corresponds to one interlocking operation command. Common interlocking operation commands include: total cancellation, total unlocking, total positioning, total reverse position, etc.

[0085] S12. The interface machine 3 judges the validity of the message header and message tail of the first command message; if it is valid, enter S13.

[0086] S13. The interface machine 3 judges whether the message attribute byte in the first command message is legal; if it is legal, enter S14.

[0087] S14. The first command message contains multiple first command bytes. One first command byte corresponds to one operation of the button by the master control machine 1; the interface machine 3 judges whether the total length of the first command bytes is correct; if it is correct, enter S15.

[0088] Table 1 shows the data frame format of the first command message in this embodiment (this is only for example and is not a limitation of the present invention).

[0089]

[0090] Table 1

[0091] As shown in Table 1, in this embodiment, the message header of the first command message is hexadecimal "EFEFEFEF", the message tail is hexadecimal "FEFEFEFE", and the message attribute is hexadecimal "30". An interlocking operation command is represented by two first command bytes.

[0092] S15. The interface machine 3 determines whether there is a non-zero code in the first command byte; if so, it proceeds to S16.

[0093] S16. The interface machine 3 converts the non-zero code first command byte into a corresponding operation command, generates a user equipment operation message inside the system under test based on the operation command, and encapsulates the user equipment operation message into a corresponding user operation command synchronization message (this is an existing function of the operation machine function module 31 in the interface machine 3).

[0094] In step S16, the interface machine 3 generates an operation command, a user equipment operation message, and a user operation command synchronization message, all of which are existing functions of the operation machine function module 31 inside the interface machine 3 and will not be elaborated here. Compared with the user equipment operation message, the user operation command synchronization message deletes the content that the system under test does not care about, which better meets the actual needs of the system under test.

[0095] S17. The main operation machine 41 generates a corresponding interlocking operation command after executing the user operation command synchronization message and sends it to the slave machine 5.

[0096] S2. The slave machine 5 generates a plurality of corresponding line relay device drive instructions based on the interlocking operation command (this is prior art); the interface machine 3 periodically receives the line relay device drive instructions from the slave machine 5 through the external drive and acquisition simulation function module 33; the interface machine 3 generates a corresponding second command message based on all the received line relay device drive instructions; the simulator 2 operates the visualized yard equipment in the simulator 2 based on the second command message sent by the interface machine 3. If the operation of the simulator 2 does not correspond to the first command message sent by the main control machine 1, it indicates that the test fails.

[0097] The second command message has a plurality of command bit positions for filling a plurality of command encodings. The plurality of command encodings include: a plurality of first command encodings, a plurality of second command encodings, and a plurality of third command encodings;

[0098] The plurality of command bit positions include:

[0099] A plurality of first command bit positions, respectively used for filling the plurality of first command encodings for driving a plurality of signal lights to turn on / off corresponding color signal lights;

[0100] A plurality of second command code bits, respectively used to fill the plurality of second command encodings for driving a plurality of turnouts to achieve corresponding turnout positions;

[0101] A plurality of third command code bits, respectively used to fill the plurality of third command encodings for driving a plurality of backhook relays to act.

[0102] Table 2 shows the data frame format of the second command message in this embodiment (this is only for example and not a limitation of the present invention).

[0103]

[0104] Table 2

[0105] In Table 2, MXHJ represents the total number of signal lamps. The XHJ part is used to fill a plurality of first command encodings. In this embodiment, the length of the first command encoding is one byte. For example, if the value of the first command encoding is 0x1, it means driving the corresponding signal lamp to light a white signal lamp; if the value of the first command encoding is 0x84, it means driving the corresponding signal lamp to turn off the red signal lamp. The MXHJ first command encodings can sequentially correspond to the first signal lamp to the MXHJ signal lamp.

[0106] MDC represents the total number of turnouts. In this embodiment, the length of the second command encoding is 2 bits. For example, the second command encodings of "10", "01", and "00" drive the corresponding turnouts to perform normal operation, reverse operation, and no action respectively.

[0107] In this embodiment, the length of the third command encoding is 1 bit. For example, the third command encodings of "1" and "0" drive the corresponding backhook relays to pick up and drop respectively.

[0108] In step S2, the interface machine 3 generates a corresponding second command message based on all the received line relay device driving instructions, including:

[0109] S21. The interface machine 3 differentiates the line relay device driving instructions corresponding to each signal lamp, turnout, and backhook relay;

[0110] S22. The interface machine 3 stores a plurality of first configuration preset conditions corresponding to a plurality of signal lamps, a plurality of turnouts, and a plurality of backhook relays respectively; if the corresponding first configuration preset conditions are met and the corresponding relay device driving instruction is true, fill the corresponding command encoding into the corresponding command code bit.

[0111] For example, since the signal lights of the signal machine have multiple lighting conditions (white, blue, red, single yellow, white flash, red flash, yellow flash, etc.) and multiple extinguished light conditions (corresponding to multiple lighting conditions respectively), the first command code has multiple possible code values (corresponding to multiple lighting conditions and multiple extinguished light conditions respectively). If a certain signal machine meets the first configuration preset condition that "white display exists and the driving instruction of the shunting signal relay device corresponding to this signal machine is true", then the first command code corresponding to this signal machine is set to 0x1; if it meets the first configuration preset condition that "blue display exists, red display does not exist, and the driving instruction of the shunting signal relay device corresponding to this signal machine is false", then the first command code corresponding to this signal machine is set to 0x2; if it meets the first configuration preset condition that "blue display exists, red display exists, and the driving instruction of the shunting signal relay device corresponding to this signal machine is false, and the driving instruction of the train signal relay is true", then the first command code corresponding to this signal machine is also set to 0x2.

[0112] Since the switch has three action situations (normal operation, reverse operation, no action), the second command code has three possible code values. If a certain switch meets the first configuration preset condition that "the driving instruction of the normal position operation relay is false and the driving instruction of the reverse position operation relay is true", then the second command code corresponding to this switch is set to 0x1; if it meets the first configuration preset condition that "the driving instruction of the normal position operation relay is true and the driving instruction of the reverse position operation relay is false", then the second command code corresponding to this switch is set to 0x2; if it meets the first configuration preset condition that "the driving instruction of the normal position operation relay is false and the driving instruction of the reverse position operation relay is false", then the second command code corresponding to this switch is set to 0x0.

[0113] Since the return hook relay has two command situations (pickup, drop), the third command code has two possible code values. If a certain return hook relay (such as the crossing notice relay) meets the first configuration preset condition that "the driving instruction of the crossing notice relay is true", then the second command code corresponding to this return hook relay is set to 0x1; if it meets the first configuration preset condition that "the driving instruction of the crossing notice relay is false", then the second command code corresponding to this return hook relay is set to 0x0.

[0114] S23. Add the corresponding message header, attributes, and message tail fields, and encapsulate the multiple command codes filled in step S22 into the corresponding second command message.

[0115] S3. The simulator 2 generates the corresponding second representation message based on the test cases stored in it and sends it to the interface machine 3; the interface machine 3 parses the line relay device status acquisition information from the second representation message and provides it to the lower computer 5; the lower computer 5 generates the corresponding station yard representation information based on the received line relay device status acquisition information and sends it to the interface machine 3.

[0116] The second representation message is used to represent the yard representation information generated by the simulator 2 based on the test case; the second representation message includes multiple test status codes.

[0117] Table 3 shows the data frame format of the second representation message in this embodiment (this is only for example and not a limitation of the present invention).

[0118]

[0119] Table 3

[0120] The multiple test status codes include:

[0121] Multiple first test status codes (corresponding to the XHJ data segment in Table 3), which are respectively used to represent multiple signal machine information generated by the simulator 2; for example, if the first test status code corresponding to the signal machine is 0x1, it means that the signal machine is in the state of a white light being on;

[0122] Multiple second test status codes (corresponding to the QD data segment in Table 3, QD represents a section, and MQD represents the total number of sections), which are respectively used to represent multiple section occupancy information generated by the simulator 2; each third test status code has 1 bit, where "1" represents idle and "0" represents occupied.

[0123] Multiple third test status codes (corresponding to the DC data segment in Table 3), which are respectively used to represent multiple switch position information generated by the simulator 2; each third test status code has 2 bits, and "10", "01", "00" respectively represent normal position, reverse position, and four-way open.

[0124] Multiple fourth test status codes (corresponding to the contact port relay data segment in Table 3), which are respectively used to represent multiple contact port relay information generated by the simulator 2;

[0125] Multiple fifth test status codes (corresponding to the general relay data segment in Table 3), which are respectively used to represent multiple general relay information generated by the simulator 2;

[0126] Multiple sixth test status codes (corresponding to the special relay data segment in Table 3), which are respectively used to represent multiple special relay information generated by the simulator 2;

[0127] Multiple seventh test status codes (corresponding to the back hook relay data segment in Table 3), which are respectively used to represent multiple back hook relay information generated by the simulator 2.

[0128] The fourth to seventh test status codes all have only 1 bit, where "1" represents picked up and "0" represents dropped.

[0129] Step S3 includes:

[0130] S31. The simulator 2 generates a corresponding second representation message based on the test cases stored therein and sends it to the interface machine 3; the interface machine 3 determines the validity of the message header, message tail, and message attribute fields of the second representation message; if all are valid, go to S32;

[0131] S32. The interface machine 3 determines whether the length of the second representation message is correct; if correct, go to step S33;

[0132] S33. The external drive and acquisition simulation function module 33 inside the interface machine 3 periodically parses out the line relay device status acquisition information corresponding to each test status code in the second representation message in combination with the second command message and provides it to the lower computer 5;

[0133] There are multiple second configuration preset conditions corresponding to the multiple test status codes respectively inside the interface machine 3. Step S33 includes:

[0134] S331. The interface machine 3 reads the first test status code. If the second configuration preset condition "there is a train signal relay" is satisfied, the line relay device status acquisition information of the corresponding signal machine is set to a preset value (true or false). If the first test status code and the first command code of the corresponding signal machine match, the filament relay device status acquisition information of the corresponding signal machine is set to a preset value;

[0135] For example, if the first test status code of a certain signal machine is 0x2, if the second configuration preset condition "there is a train signal relay" is satisfied, the line relay device status acquisition information of the train signal relay of this signal machine is set to true, and if not satisfied, it is set to false. If the first command code of this signal machine is also 0x2, the filament relay device status acquisition information of the corresponding signal machine is simultaneously set to true, and if the first command code is not 0x2, it is set to false.

[0136] S332. The interface machine 3 reads the second test status code. If the second configuration preset condition is satisfied, the line relay device status acquisition information of the corresponding section is set to a preset value.

[0137] For example, if the second test status code of a certain section is 0x1, if the second configuration preset condition "there is a track relay" is satisfied, the line relay device status acquisition information of the track relay of the corresponding section is set to true, and if not satisfied with the preset condition, no processing is performed; if the second test status code is 0x0, if the second configuration preset condition "there is a track relay" is satisfied, the line relay device status acquisition information of the track relay of the corresponding section is directly set to false, and if not satisfied with the preset condition, no processing is performed.

[0138] S333. The interface machine 3 reads the third test status code. If the second configuration preset condition is met, the acquisition information of the status of the normal position indication relay and reverse position indication relay of the corresponding turnout is set to the preset value. If the third test status code of the corresponding turnout does not match the second command code, the acquisition information of the status of both the normal position indication relay and reverse position indication relay is set to false. If the preset condition is not met, no processing is performed.

[0139] For example, for a certain turnout, if the third test status code is 0x1 and the second configuration preset condition "there are a normal position indication relay and a reverse position indication relay for the turnout" is met, the acquisition information of the status of the normal position indication relay of the corresponding turnout is set to false, and the reverse position indication relay is set to true. If the second command code is not 0x1 at this time, the acquisition information of the status of both the normal position and reverse position indication relays is set to false. If the preset condition is not met, no processing is performed; if the third test status code is 0x2, the acquisition information of the status of the normal position indication relay of the corresponding turnout is set to true, and the reverse position indication relay is set to false. If the second command code is not 0x2 at this time, the acquisition information of the status of both the normal position and reverse position indication relays is set to false. If the preset condition is not met, no processing is performed; if the third test status code is 0x0 and the second configuration preset condition "there are a normal position indication relay and a reverse position indication relay for the turnout" is met, regardless of whether it matches the second command code, the acquisition information of the status of both the normal position and reverse position indication relays is set to false. If the preset condition is not met, no processing is performed.

[0140] S334. The interface machine 3 reads the fourth test status code. If the second configuration preset condition is met, the acquisition information of the status of the line relay of the corresponding connection port is set to the preset value. If the preset condition is not met, no processing is performed.

[0141] For example, for a connection port relay (such as the locomotive depot connection relay), if the fourth test status code is 0x1 and the second configuration preset condition "there is a relay" is met, the acquisition information of the status of the locomotive depot connection relay is set to true; if not, no processing is performed. If the fourth test status code is 0x0 and the second configuration preset condition "there is a relay" is met, the acquisition information of the status of the locomotive depot connection relay is set to false; if not, no processing is performed.

[0142] S335. The interface machine 3 reads the fifth test status code. If the second configuration preset condition is met, the acquisition information of the status of the line relay of the corresponding general indication lamp is set to the preset value. If the preset condition is not met, no processing is performed.

[0143] For example, the fifth test status code of a general relay (such as a track power outage relay) is 0x1. If the second configuration preset condition "relay exists" is satisfied, the device status acquisition information of the track power outage relay is set to true; if not, no processing is performed. If the fifth test status code is 0x0, and the second configuration preset condition "relay exists" is satisfied, the device status acquisition information of the track power outage relay is set to false; if not, no processing is performed.

[0144] S336. The interface machine 3 reads the sixth test status code. If the second configuration preset condition is satisfied, the device status acquisition information of the line relay corresponding to the special indicating lamp is set to the preset value. If the preset condition is not satisfied, no processing is performed.

[0145] For example, the sixth test status code of a general relay (such as a simple hump relay) is 0x1. If the second configuration preset condition "relay exists" is satisfied, the device status acquisition information of the simple hump relay is set to true; if not, no processing is performed. If the sixth test status code is 0x0, and the second configuration preset condition "relay exists" is satisfied, the device status acquisition information of the simple hump relay is set to false; if not, no processing is performed.

[0146] S337. The interface machine 3 reads the seventh test status code. If the second configuration preset condition is satisfied and the seventh test status code matches the corresponding third command code, the device status acquisition information of the line relay corresponding to the corresponding hook-back indicating lamp is set to the preset value.

[0147] For example, the seventh test status code of a hook-back relay (such as a crossing notice relay) is 0x1. If the second configuration preset condition "relay exists" is satisfied, the device status acquisition information of the crossing notice relay is set to true. If the second command code is not 0x1 at this time, the device status acquisition information of the crossing notice relay is set to false. If the preset condition is not satisfied, no processing is performed. If the seventh test status code is 0x0, and the second configuration preset condition "relay exists" is satisfied, regardless of whether it matches the second command code, the device status acquisition information of the crossing notice relay is set to false. If the preset condition is not satisfied, no processing is performed;

[0148] S34. The lower computer 5 differentiates the device status acquisition information of the line relay corresponding to each test status code, generates the corresponding station yard representation information based on the differentiation result, and sends it to the interface machine 3.

[0149] S4. The interface machine 3 generates the corresponding first representation message based on the device status acquisition information of the line relay it parses and the station yard representation information sent by the lower computer 5, and sends it to the main control machine 1; the main control machine 1 changes the status of the station yard equipment in the station yard map interface based on the first representation message.

[0150] Table 4 shows the data frame format of the first indication message in this embodiment (this is only an example and not a limitation of the present invention).

[0151]

[0152] Table 4

[0153] The first indication message is used to represent the station yard indication information generated by the interface machine 3; the first indication message has multiple verification status coding bits, which are respectively used to fill multiple verification status codings; the multiple verification status codings include multiple first verification status codings to multiple tenth verification status codings.

[0154] The multiple verification status coding bits include:

[0155] Multiple first verification status coding bits (corresponding to the XHJ data segment in Table 4), which are respectively used to fill multiple first verification status codings representing multiple signal machine information generated by the interface machine 3;

[0156] Multiple second verification status coding bits (corresponding to the QD1 data segment in Table 4), which are respectively used to fill multiple second verification status codings representing multiple section occupancy information generated by the interface machine 3;

[0157] Multiple third verification status coding bits (corresponding to the QD2 data segment in Table 4), which are respectively used to fill multiple third verification status codings representing multiple section locking information generated by the interface machine 3; the third verification status coding has 1 bit, where "1" represents locked and "0" represents unlocked.

[0158] Multiple fourth verification status coding bits (corresponding to the DC1 data segment in Table 4), which are respectively used to fill multiple fourth verification status codings representing multiple switch position information generated by the interface machine 3; the fourth verification status coding has 2 bits, where "10", "01", and "00" represent normal position, reverse position, and four-way open respectively.

[0159] Multiple fifth verification status coding bits (corresponding to the DC2 data segment in Table 4), which are respectively used to fill multiple fifth verification status codings representing multiple switch single locking information generated by the interface machine 3; the fifth verification status coding has 1 bit, where "1" represents locked and "0" represents unlocked.

[0160] Multiple sixth verification status coding bits (corresponding to the DC3 data segment in Table 4), which are respectively used to fill multiple sixth verification status codings representing multiple switch blocking information generated by the interface machine 3; the sixth verification status coding has 1 bit, where "1" represents blocked and "0" represents unblocked.

[0161] Multiple seventh verification status coding bit positions (corresponding to the connection port relay data segment in Table 4), respectively used to fill multiple seventh verification status codings representing multiple connection port relay information generated by the interface machine 3;

[0162] Multiple eighth verification status coding bit positions (corresponding to the general relay data segment in Table 4), respectively used to fill multiple eighth verification status codings representing multiple general relay information generated by the interface machine 3;

[0163] Multiple ninth verification status coding bit positions (corresponding to the special relay data segment in Table 4), respectively used to fill multiple ninth verification status codings representing multiple special relay information generated by the interface machine 3;

[0164] Multiple tenth verification status coding bit positions (corresponding to the backhook relay data segment in Table 4), respectively used to fill multiple tenth verification status codings representing multiple backhook relay information generated by the interface machine 3.

[0165] The seventh to tenth verification status codings are all 1 bit, where "1" indicates pick-up and "0" indicates drop.

[0166] The interface machine 3 internally has multiple third configuration preset conditions respectively corresponding to the multiple verification status coding bit positions; Step S4 includes:

[0167] S41. The interface machine 3 differentiates the computer interlocking station yard diagram device display information corresponding to each verification status coding bit position;

[0168] S42. If the corresponding third configuration preset condition is satisfied, fill the corresponding verification status coding into the corresponding verification status coding bit position;

[0169] For example, if a certain signal lamp is displayed as blue lit on the computer interlocking station yard diagram and the preset condition for single lamp position display is satisfied, then set the first verification status coding of this signal lamp to 0x2.

[0170] S43. Add the corresponding message header, attribute, and message tail fields, and encapsulate the multiple verification status codings filled in Step S42 into the corresponding first representation message and send it to the main control machine 1;

[0171] S44. The main control machine 1 changes the state of the station yard equipment in the station yard diagram interface based on the first representation message.

[0172] The simulator 2 sometimes injects incorrect station yard representation information in the first representation message. If the corresponding incorrect station yard representation information is not displayed in the station yard diagram interface, it is considered that the test system fails the test.

[0173] It should be understood that the sequence numbers of the steps in the above embodiments do not imply the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

[0174] The above is only a specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims

1. A computer interlocking test method, the computer interlocking system includes an operating machine and a lower computer, and the test platform includes a main control machine and a simulation machine, characterized in that The test platform tests the computer interlocking system through an interface machine, and the test method includes the steps: S1. The master control machine sends a corresponding first command message to the interface machine according to the test cases stored therein; The interface machine generates a corresponding user operation command synchronization message based on the first command message; After executing the user operation command synchronization message, the main operation machine generates a corresponding interlocking operation command and sends it to the lower-level machine; S2. The lower-level machine generates a plurality of corresponding relay device drive instructions based on the interlocking operation command; The interface machine periodically receives the relay device drive instructions from the lower-level machine, and generates a corresponding second command message based on all the received relay device drive instructions; The simulator operates based on the second command message sent by the interface machine; S3. The simulator generates a corresponding second representation message based on the test cases stored therein and sends it to the interface machine; the interface machine parses the corresponding relay device status acquisition information from the second representation message and provides it to the lower-level machine; the lower-level machine generates a corresponding station yard representation message based on the received relay device status acquisition information and sends it to the interface machine; S4. The interface machine generates a corresponding first representation message based on the parsed relay device status acquisition information and the station yard representation message sent by the lower-level machine and sends it to the master control machine; the master control machine changes the status of the station yard devices in the station yard diagram interface based on the first representation message.

2. The computer interlocking test method according to claim 1, characterized in that, The station yard devices include: signal lamps, sections, turnouts, connection ports, general indication lamps, special indication lamps, and backhook indication lamps; the station yard representation message includes: signal lamp information, section occupancy information, section locking information, turnout position information, turnout single locking information, turnout blocking information, connection port relay information, general relay information, special relay information, and backhook relay information.

3. The computer interlocking test method according to claim 1, characterized in that, The first command message contains a plurality of first command bytes, and a corresponding interlocking operation command is generated by the non-zero first command bytes.

4. The computer interlocking test method according to claim 1, characterized in that The second command message has a plurality of command bit positions for filling a plurality of command encodings; the plurality of command encodings include: a plurality of first command encodings, a plurality of second command encodings, and a plurality of third command encodings; The plurality of command bit positions include: A plurality of first command bit positions, respectively used for filling the plurality of first command encodings for driving a plurality of signal lamps to light / turn off corresponding color signal lamps; A plurality of second command bit positions, respectively used for filling the plurality of second command encodings for driving a plurality of turnouts to achieve corresponding turnout positions; A plurality of third command bit positions, respectively used for filling the plurality of third command encodings for driving a plurality of backhook relays to act.

5. The computer interlocking test method according to claim 4, wherein In step S2, the interface machine generates a corresponding second command message based on all the received relay device drive instructions, including: S21. The interface machine differentiates the relay device drive instructions corresponding to each signal lamp, turnout, and backhook relay; S22. The interface machine stores a plurality of first configuration preset conditions corresponding to a plurality of signal lamps, a plurality of turnouts, and a plurality of backhook relays respectively; if the corresponding first configuration preset condition is satisfied and the corresponding relay device drive instruction is true, the corresponding command encoding is filled into the corresponding command bit position; S23. Add corresponding message headers, attributes, and message trailer fields, and encode and encapsulate the multiple commands filled in step S22 into corresponding second command messages.

6. The computer interlocking test method according to claim 2, wherein The second representation message is used to represent the yard representation information generated by the simulator based on the test case; the second representation message contains multiple test status codes. The multiple test status codes include: Multiple first test status codes, respectively used to represent multiple signal machine information generated by the simulator. Multiple second test status codes, respectively used to represent multiple section occupancy information generated by the simulator. Multiple third test status codes, respectively used to represent multiple switch position information generated by the simulator. Multiple fourth test status codes, respectively used to represent multiple link port relay information generated by the simulator. Multiple fifth test status codes, respectively used to represent multiple general relay information generated by the simulator. Multiple sixth test status codes, respectively used to represent multiple special relay information generated by the simulator. Multiple seventh test status codes, respectively used to represent multiple backhook relay information generated by the simulator.

7. The computer interlocking test method according to claim 6, characterized in that, Step S3 includes: S31. The simulator generates a corresponding second representation message based on the test case stored therein and sends it to the interface machine; the interface machine determines the validity of the message header, message trailer, and message attribute fields of the second representation message; if all are valid, go to S32. S32. The interface machine determines whether the length of the second representation message is correct; if correct, go to step S33. S33. The interface machine periodically parses out the relay device status acquisition information corresponding to each test status code in the second representation message in combination with the second command message and provides it to the lower computer. S34. The lower computer differentiates the relay device status acquisition information corresponding to each test status code, and generates corresponding yard representation information based on the differentiation result and sends it to the interface machine.

8. The computer interlocking test method according to claim 7, wherein There are multiple second configuration preset conditions corresponding to the multiple test status codes respectively inside the interface machine. Step S33 includes: S331. The interface machine reads the first test status code. If it meets the corresponding second configuration preset condition, it sets the line relay device status acquisition information of the corresponding signal machine to a preset value; if the first test status code of the corresponding signal machine matches the first command code, it sets the filament relay device status acquisition information of the corresponding signal machine to true, otherwise it sets it to false. S332. The interface machine reads the second test status code. If it meets the corresponding second configuration preset condition, it sets the occupancy relay device status acquisition information of the corresponding section to the corresponding preset value. S333. The interface machine reads the third test status code. If it meets the corresponding second configuration preset condition, it sets the position indication relay and reverse position indication relay device status acquisition information of the corresponding switch to the corresponding preset values; if the third test status code of the corresponding switch matches the second command code, it sets the position indication relay and reverse position indication relay device status acquisition information to false; otherwise, it does not set. S334. The interface machine reads the fourth test status code. If the corresponding second configuration preset condition is satisfied, the line relay device status acquisition information of the corresponding connection port is set to the corresponding preset value; S335. The interface machine reads the fifth test status code. If the corresponding second configuration preset condition is satisfied, the line relay device status acquisition information of the corresponding general indicating lamp is set to the corresponding preset value; S336. The interface machine reads the sixth test status code. If the corresponding second configuration preset condition is satisfied, the line relay device status acquisition information of the corresponding special indicating lamp is set to the corresponding preset value; S337. The interface machine reads the seventh test status code. If the corresponding second configuration preset condition is satisfied and it matches the third command code, the line relay device status acquisition information of the corresponding backhook indicating lamp is set to the corresponding preset value.

9. The computer interlocking test method according to claim 1, characterized in that The first indication message is used to represent the station yard indication information generated by the interface machine; the first indication message has multiple verification status code bits, which are respectively used to fill multiple verification status codes; the multiple verification status codes include multiple first verification status codes to multiple tenth verification status codes; The multiple verification status code bits include: Multiple first verification status code bits, which are respectively used to fill multiple first verification status codes representing multiple signal machine information generated by the interface machine; Multiple second verification status code bits, which are respectively used to fill multiple second verification status codes representing multiple section occupancy information generated by the interface machine; Multiple third verification status code bits, which are respectively used to fill multiple third verification status codes representing multiple section locking information generated by the interface machine; Multiple fourth verification status code bits, which are respectively used to fill multiple fourth verification status codes representing multiple turnout position information generated by the interface machine; Multiple fifth verification status code bits, which are respectively used to fill multiple fifth verification status codes representing multiple turnout single-lock information generated by the interface machine; Multiple sixth verification status code bits, which are respectively used to fill multiple sixth verification status codes representing multiple turnout blocking information generated by the interface machine; Multiple seventh verification status code bits, which are respectively used to fill multiple seventh verification status codes representing multiple connection port relay information generated by the interface machine; Multiple eighth verification status code bits, which are respectively used to fill multiple eighth verification status codes representing multiple general relay information generated by the interface machine; Multiple ninth verification status code bits, which are respectively used to fill multiple ninth verification status codes representing multiple special relay information generated by the interface machine; Multiple tenth verification status code bits, which are respectively used to fill multiple tenth verification status codes representing multiple backhook relay information generated by the interface machine.

10. The computer interlocking test method according to claim 9, characterized in that, Inside the interface machine, there are multiple third configuration preset conditions corresponding to the multiple verification status code bits respectively; step S4 includes: S41. The interface machine differentiates the computer interlocking station yard map device display information corresponding to each verification status code bit; S42. If the corresponding third configuration preset condition is satisfied, fill the corresponding verification status code into the corresponding verification status code bit; S43. Add the corresponding message header, attributes, and message tail fields, encapsulate the multiple verification status codes filled in step S42 into the corresponding first representation message, and send it to the master control unit; S44. Based on the first representation message, the master control unit changes the status of the station field equipment in the visual station field map interface of the master control unit.

Citation Information

Patent Citations

  • Computer interlocking performance test system based on operation scene

    CN112416715A

  • Scattered object control terminal system for CTCS

    CN102837718A

  • Method and system for realizing automatic acquisition of branch line number by LKJ based on station yard interlocking information

    CN111559409A