Automated testing method for station autonomous machine configuration data applicable to multiple simulation interfaces
By using OCR and YOLO technology in the configuration data test of CTC station self-discipline machine, the simulation interface is automatically identified and operated, and the problem that the automatic testing system in the existing technology cannot automatically operate the simulation interface is solved, and the testing efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202411486301.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2044-10-23
AI Technical Summary
In the prior art, there are operation problems of multiple simulation interfaces during the configuration data testing of CTC station self-discipline machines, which leads to the automatic testing system being unable to completely deviate from manual cooperation and realizes the automation of simulation interface software operation.
OCR technology and YOLO image recognition technology are used to automatically identify and operate the content displayed on the simulation interface operation interface, and automatically complete the operation by judging whether the current display status is consistent with the expected display status.
It solves the problem that the automatic testing system cannot automatically identify, judge and operate the simulation interface operation interface, improves the efficiency and accuracy of automatic testing of station self-discipline machine configuration data, and reduces the judgment operation of test users.
Smart Images

Figure CN119248655B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a testing method, in particular to an automatic testing method for configuration data of a station autonomous machine applicable to multiple simulation interfaces. Background Art
[0002] The decentralized autonomous dispatching centralized system (hereinafter referred to as the CTC system) is a railway technical equipment that monitors, dispatches and manages railway trains within its jurisdiction to ensure the safe, stable and efficient operation of the railway system. It is the command center of railway transportation. In order to ensure the safety of actual railway transportation, before deploying the CTC station system, CTC manufacturers and electrical personnel need to conduct laboratory tests on the core functions of the station CTC. At present, the testing of the station yard display and interface operation of the CTC system is mainly based on manual testing, but manual testing has problems such as low testing efficiency and excessive reliance on the tester's own experience. With the continuous densification of China's railway network, the number of new stations and renovated stations has increased dramatically. China's high-speed rail is leading the world with its huge scale and rapid speed. By the end of 2023, the total mileage of my country's high-speed rail will reach 45,000 kilometers, which is more than one lap around the earth. In this context, in order to improve the testing efficiency, the CTC station autonomous machine configuration data automatic testing system (hereinafter referred to as "automatic testing system") has become the focus of current research.
[0003] There are multiple simulation interface operations in the test process of CTC station autonomous machine configuration data, that is, in the laboratory test environment, the receiving and dispatching lights, auxiliary lights, departure permission lights, supervision section lights, repeater signals of the relevant ports in the station yard display interface, and the specific approach / departure sections outside the signal in the interlocking host computer interface all need to be simulated on-site in the simulated train control software interface and the simulated station connection software interface. The correctness of these operations directly determines whether the test conditions of the train departure route and all display colors of the exit and repeater signals are successfully simulated during the test of the autonomous machine configuration data. Therefore, realizing the automation of multiple simulation interface operations is an important part of the automatic testing of autonomous machine configuration data.
[0004] The function of the train control simulation software is to simulate the running status of the interval in the laboratory, artificially set the safe driving conditions for the trains in the station to the interval, and finally realize the normal departure operation of the trains in the station. The guidance results of each operation command of the train control simulation software will be directly displayed on the screen of the interlocking host computer and the visual interface of the CTC station.
[0005] The commands that can be operated in the train control software interface are roughly divided into two categories: section direction commands and block partition commands. The setting of section direction commands includes whether the signal departure port is open to allow departure (the corresponding port's departure permission light turns on green, and the departure port can arrange the departure route. During the test, considering that only the arrangement of the departure route will be subject to card control, all ports' departure permission lights are on green), whether the section status is enabled (the status light reflects the section status outside the port, and the departure permission light turns on yellow), whether the route direction is to pick up the train, depart, or have no direction (also considering that the arrangement of the departure route will be subject to direction card control, the route direction of all ports is often set to departure during the test), and whether the auxiliary light is always on, off, or flashing (when the auxiliary processing application is passed at the signal departure port, the auxiliary light turns on white, and the departure port can arrange the departure route normally. For the convenience of testing, the auxiliary lights are all set to white during the test). The block partition command only includes the supervision section light, which indicates whether the state of the section track section is occupied by a train or the section is cleared, to ensure that the running direction can only be changed when the section is idle (it will be set to the off state during testing). Among them, the operation logic involved in each section direction command and block partition command is different. The departure permission command is directly judged by the pickup / drop of the departure permission relay YFJ. When the departure permission relay YFJ is picked up, it means that the departure port of the signal is open and departure is allowed, and the departure permission light on the screen of the interlocking host computer directly connected to the imitation train control software will light up green; when the departure permission relay YFJ drops, it means that the departure port of the signal is not open and departure is allowed, and the departure permission light on the screen of the interlocking host computer will light up red; when the departure permission light is green, if the section status relay QJZT drops, the departure permission light on the screen of the interlocking host computer will light up yellow. The green departure light indicates that the departure conditions are met and there is no vehicle occupying the section; the red departure light indicates that the departure conditions are not met; the yellow departure light indicates that the departure conditions are met, but there is a vehicle occupying the section. The train route direction can be set in the train control software, which is controlled by the direction relay FJ. The direction relay FJ can guide the three options of departure green, reception yellow and no direction. The auxiliary light has three options: always on, off and flashing white. The auxiliary light is always on (white light), which means that the application has passed the auxiliary processing of the signal departure port and the departure operation can be carried out. The status of the supervisory section light is determined by the suction / drop of the supervisory section relay JQJ. When the supervision section relay JQJ is energized, the supervision section light on the interlocking host computer screen goes out, indicating that the departure station has not arranged the train route to the departure gate, there is no car occupying the section, and all sections have been cleared; when the supervision section relay JQJ falls, the supervision section light on the interlocking host computer screen lights up red, indicating that the departure station has arranged the train route to the departure gate, there is a car occupying the section or there is a fault in the section track circuit (track circuit short circuit or broken track).
[0006] The function of the station simulation software is to simulate the information transmission between existing stations through simulation software. This information includes the occupied / idle information of the approaching / leaving section and the color light display information of the repeater signal controlled by the station simulation software. The approaching / leaving section refers to the specific area when the train approaches or leaves the station facilities. The repeater signal can help the driver understand the signal status of the signal machine ahead more accurately, thereby assisting the driver to drive correctly.
[0007] By operating the station simulation software, the correct display of all color lights of the repeater signal can be achieved. In addition, it can also provide simulated interval conditions for the station approach test, so as to achieve the correct display of the green light, green-yellow light and yellow light of the exit signal (when there is no vehicle occupying the three departures outside the positive departure gate, the exit signal is green; when the two departures outside the positive departure gate are occupied, the exit signal is yellow; when the three departures outside the positive departure gate are occupied, the exit signal is green-yellow).
[0008] In addition, the Chinese invention patent "Station Autonomous Machine Testing Platform Based on Production Diversion Mechanism" with authorization announcement number CN111731349B and the Chinese invention patent "A Decentralized Autonomous Dispatching Centralized Station Autonomous Machine Data Automatic Testing Method and System" with authorization announcement number CN109649447B, although the above two types of schemes disclose automatic testing schemes for station autonomous machines, do not consider the operation problems of multiple simulation interfaces in the CTC station autonomous machine configuration data testing process, that is, the existing automatic testing system has not completely separated from manual cooperation to realize the automation of the operation of these two types of simulation interface software. Summary of the invention
[0009] In order to solve the defects in the prior art, the present invention is implemented by the following technical solutions:
[0010] An automated testing method for CTC station autonomous machine configuration data applicable to multiple simulation interfaces, wherein the CTC station autonomous machine configuration data has multiple simulation interface operations during the testing process, and during the testing process, the receiving and dispatching lights, auxiliary lights, departure permission lights, supervision section lights, repeater signals of the relevant ports in the station yard display interface, and the specific approach and departure sections outside the signal in the interlocking host computer interface all need to be simulated on-site through the simulated train control software interface and the simulated station connection software interface, wherein the simulated train control software artificially sets the safe driving conditions for the train in the station to travel to the section by simulating the running status of the section, and finally realizes Normal departure operation of trains in the station; During the control process of each operation command of the train control simulation software, the guidance result of the control command will be directly displayed on the screen of the interlocking host computer and the visual interface of the CTC station; The operation commands in the train control simulation software interface are divided into two categories: section direction command and block partition command; The setting of the section direction command includes whether the signal departure gate is open to allow departure, whether the section status is enabled, and whether the auxiliary light is always on, off or flashing; The block partition command only includes the supervision section light, indicating whether the status of the section track section is occupied by a car or the section is cleared, which is used to ensure that the running direction can be changed only when the section is idle;
[0011] The station connection simulation software simulates the information transmission between the existing stations through the simulation software, and the information includes the occupancy / idle information of the approaching / departing sections and the color light display information of the repeater signal controlled by the station connection simulation software; by operating the station connection simulation software, the correct display of all color lights of the repeater signal is achieved, and the simulated section conditions are provided for the station approach test, thereby achieving the correct display of the green light, green-yellow light and yellow light of the exit signal.
[0012] The present invention also discloses a CTC station autonomous machine configuration data automatic testing system applicable to multiple simulation interfaces, which is characterized by comprising the following modules:
[0013] Data automatic test and communication module: The automatic test system is connected to the CTC system through TCP. The automatic test system acts as the client and the autonomous machine acts as the server. The automatic test system obtains the CTC station status and sends station operations through this protocol, while the interlocking host computer and the CTC autonomous machine communicate through the serial port.
[0014] Image recognition module: extracts and classifies features of the input image, identifies the target in the image, and processes and transmits it in real time.
[0015] Simulation operation module: operate CTC interface, interlocking host computer interface, simulate train control and simulate station connection, and set various test conditions;
[0016] Execution engine module: completes execution operations for different test requirements and test logic, and gives test results; implements result analysis, compares, analyzes and outputs test results.
[0017] Test data management module: database storage of basic data and experimental result data. Beneficial Effects
[0018] The two technologies needed to realize the automatic test of the configuration data of the CTC station autonomous machine with multiple simulation interfaces are OCR (optical character recognition) technology and YOLO image recognition technology. The present invention can realize the automatic test of the configuration data of the CTC station autonomous machine with multiple simulation interfaces, and solves the problem that the test system in the prior art cannot automatically identify, judge and operate the command objects in the simulation interface operation interface, so that the test personnel no longer need to manually cooperate to operate the simulation software during the test process, which greatly improves the automation of data testing. In addition, the system sets up a database storage method to organize and save the basic experimental data such as the search path of all operation objects, the coordinate position information of each operation object, the position of the exit signal in the interlocking host computer interface, and the test results, which improves the data security, integrity, independence and maintainability, and facilitates the query and retrieval of data during and after the test. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 The figure is a flow chart of the testing method of the present invention. DETAILED DESCRIPTION
[0020] See also Figure 1 An automated testing method for CTC station autonomous machine configuration data applicable to multiple simulation interfaces, wherein the CTC station autonomous machine configuration data has multiple simulation interface operations during the testing process, and during the testing process, the receiving and dispatching lights, auxiliary lights, departure permission lights, supervision section lights, repeater signals of the relevant ports in the station yard display interface, and the specific approach and departure sections outside the signal in the interlocking host computer interface all need to be simulated on-site in the simulated train control software interface and the simulated station connection software interface.
[0021] The function of the train control simulation software is to artificially set the safe driving conditions for trains in the station to travel to the section by simulating the running status of the section in the laboratory, and finally realize the normal departure operation of trains in the station. During the control process of each operation command of the train control simulation software, the guidance result of the control command will be directly displayed on the screen of the interlocking host computer and the visual interface of the CTC station.
[0022] The commands that can be operated in the train control software interface are roughly divided into two categories: section direction commands and block partition commands. The setting of section direction commands includes whether the signal departure port is open to allow departure (the corresponding port's departure permission light turns on green, and the departure port can arrange the departure route. During the test, considering that only the arrangement of the departure route will be subject to card control, all ports' departure permission lights are on green), whether the section status is enabled (the status light reflects the section status outside the port, and the departure permission light turns on yellow), whether the route direction is to pick up the train, depart, or have no direction (also considering that the arrangement of the departure route will be subject to direction card control, the route direction of all ports is often set to departure during the test), and whether the auxiliary light is always on, off, or flashing (when the auxiliary processing application is passed at the signal departure port, the auxiliary light turns on white, and the departure port can arrange the departure route normally. For the convenience of testing, the auxiliary lights are all set to white during the test). The block partition command only includes the supervision section light, which indicates whether the state of the section track section is occupied by a train or the section is cleared, to ensure that the running direction can only be changed when the section is idle (it will be set to the off state during testing). Among them, the operation logic involved in each section direction command and block partition command is different. The departure permission command is directly judged by the pickup / drop of the departure permission relay YFJ. When the departure permission relay YFJ is picked up, it means that the departure port of the signal is open and departure is allowed, and the departure permission light on the screen of the interlocking host computer directly connected to the imitation train control software will light up green; when the departure permission relay YFJ drops, it means that the departure port of the signal is not open and departure is allowed, and the departure permission light on the screen of the interlocking host computer will light up red; when the departure permission light is green, if the section status relay QJZT drops, the departure permission light on the screen of the interlocking host computer will light up yellow. The green departure light indicates that the departure conditions are met and there is no vehicle occupying the section; the red departure light indicates that the departure conditions are not met; the yellow departure light indicates that the departure conditions are met, but there is a vehicle occupying the section. The train route direction can be set in the train control software, which is controlled by the direction relay FJ. The direction relay FJ can guide the three options of departure green, reception yellow and no direction. The auxiliary light has three options: always on, off and flashing white. The auxiliary light is always on (white light), which means that the application has passed the auxiliary processing of the signal departure port and the departure operation can be carried out. The status of the supervisory section light is determined by the suction / drop of the supervisory section relay JQJ. When the supervision section relay JQJ is energized, the supervision section light on the interlocking host computer screen goes out, indicating that the departure station has not arranged the train route to the departure gate, there is no car occupying the section, and all sections have been cleared; when the supervision section relay JQJ falls, the supervision section light on the interlocking host computer screen lights up red, indicating that the departure station has arranged the train route to the departure gate, there is a car occupying the section or there is a fault in the section track circuit (track circuit short circuit or broken track).
[0023] The station simulation software simulates the information transmission between existing stations, including the occupied / free information of the approach / departure section and the color light display information of the repeater signal controlled by the station simulation software. The approach / departure section refers to the specific area when the train approaches or leaves the station facilities. The repeater signal can help the driver to understand the signal status of the signal in front more accurately, so as to assist the driver to drive correctly. By operating the station simulation software, the correct display of all color lights of the repeater signal can be achieved. In addition, it can also provide simulated section conditions for the in-station route test, so as to achieve the correct display of the green light, green-yellow light and yellow light of the exit signal (when there is no vehicle occupied in the three departures outside the positive departure gate, the exit signal is green; when the two departures outside the positive departure gate are occupied, the exit signal is yellow; when the three departures outside the positive departure gate are occupied, the exit signal is green and yellow).
[0024] At present, in view of the operation problem of multiple simulation interfaces in the process of testing the configuration data of CTC station autonomous machines, the existing automatic testing system has not yet realized the automation of the operation of these two types of simulation interface software, so during the test, the test conditions can only be simulated by manually cooperating with the simulation software. The purpose of the present invention is to provide a CTC station autonomous machine configuration data automatic testing method and device suitable for multiple simulation interfaces. Below, we further describe a CTC station autonomous machine configuration data automatic testing method suitable for multiple simulation interfaces.
[0025] Step 1: After clicking the button to start the automatic test, the automatic test system responds to the simulation software initialization instruction and reads the interlocking device information.
[0026] Step 2: Determine whether there is imitation train control software. If yes, proceed to step 3; if not, jump to step 5.
[0027] Step 3: Determine whether the train control simulation software is turned on. If not, turn it on and maximize it to the top. If it is already turned on, directly maximize the software to the top (the maximization and pinning operation will restore the operation page to the initial interface starting from 1).
[0028] Step 4: Call the train control initialization module to initialize the software.
[0029] The purpose of the simulated train control software initialization is to simulate the state where there is no train occupying the section and departure is allowed, so as to achieve the normal arrangement of train departure routes during the test. The specific implementation steps of the simulated train control initialization module are as follows:
[0030] 1) Get the position of each operation command cell in the simulated train control operation interface.
[0031] Specifically, in response to the imitation train control software initialization start instruction, the table of the imitation train control software operation interface is maximized and placed on top. Since the size of all cells is the same, the length and width values of each cell and the number of rows / columns of cells contained when the interface is maximized have separate configuration items in the configuration data file of the software. The coordinates of the upper left corner of the table are found, and the x-axis coordinates of each cell vertex can be calculated by combining the coordinates and the cell length. Since a drop-down list will be set when there are many objects to be operated in the form, it is necessary to imitate manual clicking of the scroll bar to turn the page down during automatic testing for such lists. By recording the number of times the scroll bar needs to be clicked from the initial cell page to each cell outside the visible range when it appears on the current page, and associating the number of clicks required to the number of cell rows, the y-axis coordinates corresponding to each cell vertex are finally obtained. For example, if the system automatically clicks the scroll bar three times, a cell will appear at the bottom of the page. Then, the cell background where the scroll bar appears three times can be recorded as a row, and the corresponding vertex y-axis coordinate needs to be added with the width of a cell, so that the number of rows of all cells in the list and the position coordinates of each cell can be obtained. Only by correctly reading the total number of cell rows in the simulated column control operation interface can the comprehensiveness of subsequent cell content recognition be guaranteed, avoiding the phenomenon of incomplete content recognition due to the content exceeding the scope of the interface during the subsequent recognition process. It should be noted that in order to facilitate subsequent operations, during the initialization process, the system will store the search path of all objects, and the number of scroll bars that need to be clicked when the cells hidden below fully appear on the main page will also be stored in the database. The beneficial effect of this setting is that when operations need to be performed on these command objects in the future, the search path of the object to be operated can be called at any time (the path includes the number of clicks on the cell), which facilitates targeted selection of cell content and improves test efficiency.
[0032] 2) Get the status represented by the text / symbol content in each cell.
[0033] In the cells of the train control interface, one column is the serial number, one column is the operation object, and the other column is the text or symbol object to be operated. Since the position coordinates of the cells where the operation objects are located in the train control visualization interface are known, and the cell contents are all single-line regular text recognition, the content recognized in each cell is framed by OCR (optical character recognition) technology to obtain a rectangular recognition frame based on the text / symbol information, locate the rectangular recognition frame, obtain its position and extract the text / symbol information in the rectangular recognition frame, and then obtain the specific position coordinates of each text / symbol information in the recognition frame in the cell. Since the content of the text / symbol information in the table directly reflects the status of the command information, the status of different operation commands of each port can be directly obtained according to the extracted text / symbol information. In addition, the automatic test system will store the recognized content, its corresponding position coordinates, and the number of clicks required for the position to appear on the current page according to the port and command category, which is convenient for subsequent viewing and operation. For example, the permission to depart of the S port, the permission to depart of the X port, the permission to depart of the SN port, and the permission to depart of the XN port are the same type of content, so their corresponding position information will be stored together. Determine the recognized information. If the recognized symbol information is a downward arrow, it represents the relay falling state; if it is an upward arrow, it represents the relay picking up state. The directional relay of the S port, the directional relay of the X port, the directional relay of the SN port, and the directional relay of the XN port are of the same type, so their position information will be stored together. Determine the recognized text information. If the recognized text is "departure green", its representative state is that the departure arrow is green.
[0034] 3) According to the expected display status in the preset script, determine whether the status represented by the text / symbol in the current column control cell meets the requirements of the expected display status. If not, operate according to the initialization script.
[0035] The test script pre-sets the expected display state of the simulated train control operation command interface initialization and the number of clicks required for the conversion between different states of each status light. The expected display state of each status light control command of the simulated train control software is: the state of all ports allowing departure is an upward arrow, the auxiliary light state is always on, the direction relay state is departure green, the section state relay is an upward arrow, and the supervision section is an upward arrow. After obtaining the current display state, compare the current display state with the expected display state to determine whether the current display state meets the requirements of the expected display state. If not, it is necessary to perform a preset click operation on the unsatisfied text state. If the display state of all current operation commands has met the requirements of the expected display state, the initialization takes effect. At this time, the system will minimize the simulated train control software operation interface, update the initialization result to success, and send a prompt message to the user that the simulated train control software has been successfully initialized. For example, if the display state of the current X port's allow departure command is a downward arrow, which is inconsistent with the expected display state of the upward arrow state, it is determined that the current display state does not meet the requirements of the expected display state. At this time, according to the script, you need to click once on the center of the rectangular identification box of the X-allowed start operation command. After the operation is completed, the state of the operation object needs to be judged again. If it meets the expected display state requirements at this time, the operation is successful; if it still does not meet the requirements, the operation fails, and the system issues an error prompt and an alarm.
[0036] Step 5: Determine whether there is imitation website connection software. If yes, continue to step 6. If not, jump to step 8.
[0037] Step 6: If it is determined that the imitation site connection software exists and is not turned on, turn it on and maximize it to the top; if it is already turned on, directly maximize the software to the top (the maximization and pinning operation will restore the operation page to the initial interface starting from 1).
[0038] Step 7: Call the imitation station initialization module to initialize the software.
[0039] The purpose of the station-linking software initialization is to set all approaching / departing sections to idle and all repeating signals controlled by the station-linking to red lights, so that the subsequent test scripts can be run. The specific implementation steps of the station-linking initialization module are as follows:
[0040] 1) In response to the initialization instruction of the station simulation software, the position of each section object and the cell where the repeater signal is located in the station simulation operation interface is obtained.
[0041] This step is similar to the first step of train control initialization.
[0042] 2) Obtain the text information in each cell according to the position of each command object and identify its status.
[0043] The first column in the cell of the station-simulating operation interface is the serial number, the second column is the name of the section controlled by the station-simulating software and the name of the relay related to the repeater signal, and the third column is the corresponding relay suction / drop status. The names of all the operation objects in the cell are identified by OCR technology, and each name read and the four vertex coordinates of the corresponding identification rectangle of each name are recorded in the database. According to the four vertex coordinates of the rectangular box corresponding to each name object, the color of the pixel point in the rectangular box can be obtained. After positioning, the color of the text is obtained by pixel point acquisition, and then it is determined whether each section is currently occupied or idle, and whether the relay corresponding to each station-simulating control repeater signal (including DJ filament relay, UXJ yellow signal relay and LXJ train signal relay) is currently occupied (front contact) or idle (front contact).
[0044] Specifically, the size of the rectangular frame can be determined according to the coordinates of the four vertices of the identified rectangular frame, and the coordinates of the preset points to obtain color information are set (the preset points can be the center point of the rectangular frame plus ten points on each diagonal plus ten randomly selected points). The state of each interval segment is determined by obtaining the color information at the coordinate position of the preset points in the interface. Color information refers to the pixel value information of the pixel point, which can be a combination of RGB (Red-Green-Blue) feature values. For example, the RGB feature value of the preset point found can be (0,0,0), indicating that the color of the preset point is black. If one or more RGB values of all preset points are (0,0,0), it can be determined that the current color is black; if one or more RGB values of the preset points are (255,0,0), it can be determined that the current color is red. The association relationship between the color and the state of the preset point is set in advance (black represents the idle state, and red represents the occupied state). According to the association relationship between the color and the state, the state corresponding to the color information of the preset point is found as the current display state of the object controlled by the imitation station connection software. For example, the color of the preset point corresponding to a section name in the rectangular box is black, the corresponding relay is down, and the associated corresponding interval status is "idle"; the color of the preset point in the rectangular box is red, the corresponding relay is up, and the associated corresponding interval status is "occupied".
[0045] 3) According to the expected display state in the preset test script (that is, the color of the preset points collected in each interval is black), determine whether the current state meets the requirements of the expected display state. If not, operate according to the initialization script.
[0046] Specifically, the initialization requirement of the imitation station connection software is that each object to be operated is in an idle state, that is, it is determined in turn whether the color of the text is black. If there is text in red, the system will automatically click the center position of the cell in the third column under the same y-axis coordinate of the cell corresponding to the text according to the initialization script. After the operation is completed, the state of the object needs to be judged again. If the operation is successful, the color of the text will change from red to black accordingly, that is, the relay corresponding to the third column will change from being sucked up to falling down, then the operation is successful; if it is still not satisfied, then this operation fails, and the system issues an error prompt and alarms. If the display status of all current operation commands meets the requirements of the expected display status, the initialization takes effect. At this time, the system will minimize the operation interface of the imitation station connection software, update the corresponding initialization test result to success, and send a prompt message to the user that the imitation station connection software has been successfully initialized.
[0047] Step 8: After the simulation software is initialized, the system officially begins the configuration data testing phase.
[0048] Step 9: Determine whether the test type is the departure route test phase, if yes, proceed to step 10, otherwise proceed to step 11.
[0049] Step 10: Call the exit signal green light, green-yellow light and yellow light test module to test. The specific implementation steps of the exit signal green light, green-yellow light and yellow light test module are as follows:
[0050] 1) In response to a departure route test instruction, determine the train station to be tested, determine the exit signal in the area of the train station to be tested as the exit signal to be tested, and determine the position of the exit signal to be tested on the interlocking host computer interface.
[0051] In response to the test instruction of the train departure route, the train station to be tested is determined, and all the outbound signals in the area of the train station to be tested are determined as the signals to be tested. The coordinate positions of all the outbound signals to be tested in the upper computer visualization interface are determined, and the position of the outbound signal in the interlocking upper computer interface, that is, the four vertex coordinates and the center point coordinates of the target identification box, can be identified by YOLO image recognition technology, and stored in the database. Among them, the YOLO image recognition result is extracted based on the target identification area, and the position and size of the identification area will affect the recognition result. After loading the picture of the upper computer operation interface, use the preview function to find and locate the outbound signal to be identified. At this time, the target identification box will appear on the picture. If the identification box is offset, the size and position of the identification box can be adjusted by dragging the four control handles of the identification box (usually at the four corners of the box) to accurately cover the outbound signal to be identified. In addition, you can also directly search for the target frame data for the first recognition in the "Frame Selection Recognition Area" data section of the database, manually modify the target frame that is not accurately recognized, and manually increase or decrease the pixels in the recognition area; if the target frame is not correct, find the object label you want to modify, modify the center point, width and height of the frame, and save the manually modified numerical information. Determine the position of the exit signal to be tested on the interlocking host computer interface to facilitate monitoring of the display status of the exit signal, avoid monitoring unnecessary positions in the interface, and improve test efficiency and accuracy.
[0052] 2) According to the position of each departure section on the station simulation operation interface, the green light, green-yellow light and yellow light test conditions of the departure signal are automatically simulated.
[0053] The route automatic test is roughly divided into three parts according to the test requirements: the first part sends the route test command to the station under test; the second part provides the corresponding simulation conditions through the station simulation interface; the third part compares whether the information displayed by the interlocking control display is consistent with the CTC. According to the definition of approaching / departing sections, the section outside the forward departure gate is the departure section, and the section outside the reverse departure gate is the approaching section.
[0054] In response to the departure route test instruction, if the outer section of the forward departure gate is controlled by the adjacent station interlocking simulator, before the departure route command is issued, call the search path and coordinate position of each departure section in the database to judge its status. If all are idle, arrange the departure route. If not, maximize the simulation interface, and automatically click the departure sections that do not meet the idle requirements (same as the initialization process) until the requirements are met. After the departure route is successfully arranged, the exit signal will display a green light, and the exit signal green and yellow lights and yellow light test instructions will be converted into state commands, that is, for the departure sections related to the route in the preset test script, call the search path and corresponding position coordinates of the relevant operation objects, and perform effective operations according to its state commands. According to the operation sequence of the preset test script, first occupy the third departure section (corresponding to the green and yellow lights of the exit signal), then the third departure section is idle, and then occupy the second departure section (corresponding to the yellow light of the exit signal), and then the second departure section is idle. After each operation is completed, it is necessary to judge the interval status of the operation. If the expected display status requirements are met at this time, the operation is successful; if not, the operation is performed until the requirements are met.
[0055] 3) Obtain the color of the color light of the exit signal to be tested on the visualization interface of the interlocking host computer.
[0056] The status of the signal light on the visualization interface of the interlocking host computer is determined by obtaining the color value of the specified coordinate point on the screen, and judging the display status of the signal light device according to the color value. Each signal light takes 64 preset points in a cycle of 16ms intervals, so that a cycle of signal light changes can be covered. If the red, blue, yellow, white, and green color values are > 1, and the background color (black) = 0, the signal light is the corresponding color of the former; if the background color (black) is > 1, the signal light flashes with the corresponding color value of the former. When only the background color (black) is > 1 and the others are 0, the signal light is judged to be empty. When the light blue of the signal light is > 1, the signal light is judged to be off. For example, the two center points of the collected signal light are preset points, and the green color value of one center point is > 1 and the background color (black) = 0, and the yellow color value of the other center point is > 1 and the background color (black) = 0, then the exit signal light displays a green-yellow light. You can also directly train the signal light color as a classification category based on YOLO image recognition, so that the target color is output while the target is detected, that is, the current color of the signal light is output while the exit signal to be tested is identified. During the running of the test script, the current display status of each signal light on the upper computer visualization interface can be monitored in real time, and the display status of the monitored object can change as the test progresses.
[0057] 4) According to the expected display status of the exit signal to be tested on the host computer interface in the preset test script, determine whether the current status meets the requirements of the expected display status.
[0058] The test script pre-sets the correct display status of the exit signal on the host computer interface after the test is completed, that is, the expected display status. If the current display status meets the requirements of the expected display status, it is considered that the exit signal correctly reflects the execution result of the test instruction, and this test is effective. On this basis, the CTC display terminal status is obtained through the CTC extension. If the judgment result is consistent, the current route test result is updated to a successful test, and a prompt message of a successful test is sent to the user. For example, when conducting a train forward departure route test, the second departure section is successfully occupied, the color light of the exit signal on the interlocking host computer is obtained as yellow, and the CTC extension feedback CTC display terminal is also yellow, then the test operation is effective, and the yellow light test item of the exit signal is successfully tested, and a prompt message of a successful test of the exit signal yellow light is sent to the user.
[0059] Step 11: Determine whether the test type is the repeater signal test phase and whether the repeater signal is controlled by the simulated station. If so, proceed to step 12; otherwise, proceed to step 13.
[0060] Step 12: Call the automatic test module for the color lights of the simulated station joint control and repeater signal.
[0061] The specific implementation steps of the automatic test module of the color lights of the repeater signal machine related to the station simulation software interface are as follows:
[0062] 1) In response to a repeater signal test instruction, determine the train station to be tested, determine all repeater signals in the area of the train station to be tested as the signals to be tested, and obtain the position of the repeater signal to be tested on the display interface of the interlocking host computer;
[0063] 2) According to the position of the related relays of the repeater signal on the simulated station connection operation interface, the different color test instructions of the repeater signal are converted into status commands, and the related relays of the color lights of the repeater signal are automatically operated on the simulated station connection visualization interface.
[0064] The state of the section relay and the corresponding color are one-to-one correspondence, and some display colors of the repeater signal are realized by the combination of relays, such as the green and yellow light display. The relays involved in this part of the operation include three: DJ filament relay (corresponding to the repeater signal broken filament when sucked up), LXJ train signal relay (the repeater signal displays green light when sucked up), UXJ yellow signal relay (the repeater signal displays yellow light when sucked up). When the LXJ sucking combination UXJ sucks up, the repeater signal displays green and yellow lights. The above three relays are directly driven by the imitation station connection software. After initialization, all relays are in the drop state, and the corresponding repeater signal should display red at this time. According to the test script, the red, red flashing, green, green and yellow lights of the repeater signal are tested in turn, that is, first operate DJ, set it to suck up (front contact occupied state, corresponding text color is red), and then set it to drop (front contact idle state, corresponding text color is black). Then operate LXJ to make it suck up (the front contact is occupied, the corresponding text color is red), and then operate UXJ to suck up (the front contact is occupied, the corresponding text color is red), and finally set LXJ to fall. During the automatic operation process, every time the relay moves, the background must judge its state. If it meets the requirements of the corresponding state of the relay in the preset script, the operation is successful; if not, it is operated until the requirements are met.
[0065] 3) According to the position of the repeater signal on the display interface of the interlocking host computer, obtain the current color of the light on the display interface of the interlocking host computer;
[0066] The same principle as that of obtaining the color of the color light of the outbound signal on the visualization interface of the interlocking host computer.
[0067] 4) According to the expected display state in the preset test script, it is determined whether the current display state of the repeater signal on the upper computer display interface meets the requirements of the expected display state.
[0068] Determine whether the current display status of the repeater signal on the upper computer display interface meets the expected display status requirements. If its status meets the expected requirements, it is considered that the repeater signal correctly reflects the execution result of the test instruction, and this test is effective. On this basis, if it is consistent with the CTC display terminal status obtained through the CTC extension, the test is successful. The current repeater signal test result is updated to test success, and a prompt message of test success is sent to the user.
[0069] Step 13: Enter other test items module.
[0070] Other test items do not involve operational issues of the simulation interface and are not within the scope of this patent.
[0071] Step 14: After all test items are completed, the test ends.
[0072] In addition, the present invention also discloses an automatic testing system, which mainly includes the following four parts:
[0073] Data automatic test and communication module: The automatic test system is connected to the CTC system through TCP. The automatic test system acts as the client and the autonomous machine acts as the server. The automatic test system obtains the CTC station status and sends station operations through this protocol, while the interlocking host computer and the CTC autonomous machine communicate through the serial port.
[0074] Image recognition module: extracts and classifies features of input images, identifies targets in images, and processes and transmits them in real time.
[0075] Simulation operation module: operate CTC interface, interlocking host computer interface, simulate train control and simulate station connection, and set various test conditions;
[0076] Execution engine module: completes execution operations for different test requirements and test logic, and gives test results; implements result analysis, compares, analyzes and outputs test results.
[0077] Test data management module: database storage of basic data and experimental result data.
[0078] The present invention uses OCR technology and YOLO image recognition technology to realize automatic recognition and operation of the display content of the simulation interface operation interface. By judging whether the current display state is consistent with the expected display state, the result of the operation can be accurately judged without the need for manual operation and comparison by staff. The problem in the prior art that the automatic test system cannot automatically recognize, judge and operate the simulation interface operation interface is solved, the judgment operation of the test user is reduced, and the efficiency and accuracy of the automatic test of the station autonomous machine configuration data are improved.
[0079] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions only describe the principles of the present invention. The present invention may be subject to various changes and improvements without departing from the spirit and scope of the present invention. These changes and improvements fall within the scope of the present invention to be protected. The scope of protection claimed by the present invention is defined by the attached claims and their equivalents.
Claims
1. An automated testing method for CTC station autonomous machine configuration data applicable to multiple simulation interfaces, wherein the CTC station autonomous machine configuration data has multiple simulation interface operations during the testing process, and during the testing process, the receiving and dispatching lights, auxiliary lights, departure permission lights, supervision section lights, repeater signals of the relevant ports in the station yard display interface, and the specific approach and departure sections outside the signal in the interlocking host computer interface all need to be simulated on-site in the simulated train control software interface and the simulated station interlocking software interface. The method is characterized by: The simulated train control software artificially sets the safe driving conditions for trains in the station to travel to the section by simulating the running status of the section, and finally realizes the normal departure operation of the trains in the station; during the control process of each operation command of the simulated train control software, the guidance results of the control command will be directly displayed on the screen of the interlocking host computer and the visual interface of the CTC station; the operation commands in the simulated train control software interface are divided into two categories: section direction commands and block partition commands; the setting of the section direction command includes whether the signal departure gate is open to allow departure, whether the section status is enabled, whether the approach direction is to receive the train, depart or have no direction, and whether the auxiliary light is always on, off or flashing; the block partition command only includes the supervision section light, indicating whether the status of the section track section is occupied by a car or the section is cleared, so as to ensure that the running direction can be changed only when the section is idle; The station connection software simulates the information transmission between the existing stations through the simulation software, and the information includes the occupation or idle information of the approaching or leaving section and the color light display information of the repeater signal controlled by the station connection software; by operating the station connection software, the correct display of all color lights of the repeater signal and the simulated section conditions required for the station approach test are realized, thereby realizing the correct display of the green light, yellow light and green-yellow light of the exit signal.
2. The CTC station autonomous machine configuration data automatic testing method applicable to multiple simulation interfaces according to claim 1 is characterized by: The method comprises the following steps: Step 1: After clicking the button to start the automatic test, the automatic test system responds to the initialization instruction of the simulation software and reads the interlocking device information; Step 2: Determine whether there is imitation train control software. If yes, proceed to step 3; if no, jump to step 5; Step 3: Determine whether the train control simulation software is enabled. If not, enable it and set it to the top in the maximum value. If it is enabled, directly set the software to the top in the maximum value. Step 4: Call the train control initialization module to initialize the software; Step 5: Determine whether there is any imitation website connection software. If yes, proceed to step 6. If no, skip to step 8. Step 6: If it is determined that there is a website-imitation software and it is not turned on, turn it on and maximize it to the top; if it is already turned on, directly maximize the software to the top; Step 7: Call the imitation station initialization module to initialize the software; Step 8: After the simulation software is initialized, the system officially begins the configuration data testing phase; Step 9: Determine whether the test type is the departure route test phase, if yes, proceed to step 10, otherwise proceed to step 11; Step 10: Call the outbound signal green light, green-yellow light and yellow light test modules for testing; Step 11: Determine whether the test type is the repeat signal test phase and the repeat signal is controlled by the simulated station. If yes, proceed to step 12; otherwise, proceed to step 13; Step 12: Call the color light automatic test module of the repeater signal associated with the station simulation software interface; Step 13: Enter other test item modules; Step 14: After all test items are completed, the test ends.
3. The CTC station autonomous machine configuration data automatic testing method applicable to multiple simulation interfaces according to claim 2 is characterized by: The specific implementation steps of the imitation train control initialization module are as follows: Step 1: Get the position of each operation command cell in the simulated train control operation interface; Step 2: Get the status represented by the text or symbol content in each cell; Step 3: According to the expected display status in the preset script, determine whether the status represented by the text / symbol in the current column control cell meets the requirements of the expected display status. If not, operate according to the initialization script.
4. The CTC station autonomous machine configuration data automatic testing method applicable to multiple simulation interfaces according to claim 2 is characterized by: The specific implementation steps of the imitation station association initialization module are as follows: Step 1: In response to the station simulation software initialization instruction, the location of each section object and the cell where the repeater signal is located in the station simulation operation interface is obtained; Step 2: Obtain the text information in each cell according to the position of each command object, and identify its status; Step 3: According to the expected display state in the preset test script, determine whether the current state meets the requirements of the expected display state. If not, operate according to the initialization script.
5. The CTC station autonomous machine configuration data automatic testing method applicable to multiple simulation interfaces according to claim 1 is characterized in that: The specific implementation steps of the exit signal green light, green-yellow light and yellow light test modules are as follows: Step 1: In response to a departure route test instruction, determine the train station to be tested, determine the exit signal in the area of the train station to be tested as the exit signal to be tested, and determine the position of the exit signal to be tested on the interlocking upper computer interface; Step 2: According to the position of each departure section on the station simulation operation interface, automatically simulate the test conditions of the exit signal green light, green-yellow light and yellow light; Step 3: According to the position of the outbound signal on the display interface of the interlocking host computer, obtain the color of the color light of the outbound signal to be tested on the visualization interface of the interlocking host computer; Step 4: According to the expected display status of the exit signal to be tested on the host computer interface in the preset test script, determine whether the current status meets the requirements of the expected display status.
6. The CTC station autonomous machine configuration data automatic testing method applicable to multiple simulation interfaces according to claim 1 is characterized by: The specific implementation steps of the automatic test module of the color lights of the repeater signal machine related to the station simulation software interface are as follows: Step 1: In response to a repeater signal test instruction, determine the train station to be tested, determine all repeater signals in the area of the train station to be tested as the signals to be tested, and obtain the position of the repeater signal to be tested on the display interface of the interlocking host computer; Step 2: According to the position of the related relays of the repeater signal on the simulated station operation interface, the different color test instructions of the repeater signal are converted into state commands, and the related relays of the color lights of the repeater signal are automatically operated on the simulated station visualization interface; Step 3: According to the position of the repeater signal on the display interface of the interlocking host computer, obtain the current color of the color light on the display interface of the interlocking host computer; Step 4: According to the expected display state in the preset test script, determine whether the current display state of the repeater signal on the upper computer display interface meets the requirements of the expected display state.
7. A CTC station autonomous machine configuration data automatic test system suitable for multiple simulation interfaces, the system comprising the method according to any one of claims 1 to 6, characterized in that it includes: The following modules: Data automatic test and communication module: The automatic test system is connected to the CTC system through TCP. The automatic test system acts as the client and the autonomous machine acts as the server. The automatic test system obtains the CTC station status and sends station operations through this protocol, while the interlocking host computer and the CTC autonomous machine communicate through the serial port. Image recognition module: extracts and classifies the input image features, identifies the target in the image, and processes and transmits it in real time; Simulation operation module: operate CTC interface, interlocking host computer interface, simulate train control and simulate station connection, and set various test conditions; Execution engine module: completes execution operations for different test requirements and test logics, and gives test results; Implement result analysis, compare, analyze and output the test results; Test data management module: database storage of basic data and experimental result data.
8. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein when the program is executed, the device where the non-volatile storage medium is located is controlled to execute the method according to any one of claims 1 to 6.
9. A station autonomous machine configuration data automation electronic device suitable for multiple simulation interfaces, characterized in that: It comprises a processor and a memory; the memory stores computer-readable instructions, and the processor is used to execute the computer-readable instructions, wherein the computer-readable instructions execute the method described in any one of claims 1 to 6 when executed.
Citation Information
Patent Citations
A method and system for automatic testing of data from centralized station autonomous dispatching systems.
CN109649447B
Station self-regulatory machine testing platform based on production flow mechanism
CN111731349B
Moving block and fixing block mixed signal machine, control method and circuit
CN110481598A
Signal analogue simulation system and method for tramcar signal system
CN112164272A