Equipment testing method and device, computer storage medium and terminal

By obtaining and comparing the interface data of TCC equipment in real time, determining inconsistent data and performing differential analysis, the problem of low testing efficiency of TCC equipment software changes in the existing technology is solved, automated testing and verification are realized, and equipment operation reliability is improved.

CN119620737APending Publication Date: 2025-03-14BEIJING HOLLYSYS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411855807.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

The prior art is difficult to effectively identify and verify whether the interface data after the change of the computer software of the TCC equipment is correct, resulting in low testing efficiency, long cycles and prone to missed testing and missed testing.

Method used

By obtaining the interface data feedback from the simulation software of the ground equipment connected to the first TCC device and the second TCC device in real time, comparing, determining inconsistent interface data when exceeding the preset tolerance period, and performing a differential analysis to achieve automated testing and verification.

Benefits of technology

It realizes automated testing and verification of software changes in TCC equipment under-level computers, improves interface data analysis efficiency, and improves the reliability of TCC equipment operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119620737A_ABST
    Figure CN119620737A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment testing method and device, a computer storage medium and a terminal, and is applied to a test of lower computer software change of train control center (TCC) equipment, and the method comprises the steps: respectively obtaining first interface data sent to on-site first TCC equipment by ground simulation equipment and second interface data sent to tested second TCC equipment by the ground simulation equipment; the first interface data and the second interface data are compared, and the inconsistent interface data are subjected to difference analysis, so that automatic testing and verification of TCC equipment lower computer software change are realized, comprehensive analysis of TCC equipment lower computer software change data is realized, the analysis efficiency of the interface data during lower computer software change data is improved, and the reliability of the TCC equipment lower computer software change data is improved. And a technical support is provided for improving the operation reliability of the TCC equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to rail transit technology, and more particularly to a method, device, computer storage medium and terminal for equipment testing. Background Art

[0002] The train control center equipment, referred to as the train control center (TCC) equipment, is the core ground equipment of the train control system. It comprehensively analyzes the line speed limit information, track section status and signal interlocking route information, etc., obtains the train driving permit, and then transmits it to the onboard subsystem through the train-to-ground communication channel to ensure the safety of all trains under its jurisdiction. The normal operation control of the TCC equipment is inseparable from the data interaction with the ground equipment connected to it (the ground equipment connected to the TCC equipment is referred to as the ground equipment in this article). While receiving the data from the ground equipment, it makes logical calculations based on the received data and issues instructions to one or more related ground equipment to complete the corresponding operations. Therefore, the interface data between the TCC equipment and the ground equipment has become the key to ensuring the safe and efficient operation of high-speed railways.

[0003] When the TCC device interacts with the ground equipment, the interface data of the TCC device is the byte data generated by the train control lower computer software through logical operations according to different train operation scenarios; because the lower computer software of the TCC device has a large software change span due to demand, for the interface data of the TCC device after the lower computer software is changed, the test and verification personnel cannot intuitively identify whether the change of the interface data is within the allowable range, whether it complies with the correctness of the change, and whether it complies with the fault-oriented safety principle. The relevant technology is generally judged and identified manually, generally by checking the terminal data or manually calculating after consulting the protocol specifications. Because there are many test modules involved, many ground devices connected to the TCC, and different interface protocols corresponding to different ground devices, it causes a large amount of calculation, a long test cycle, and is prone to problems such as missed tests and wrong tests.

[0004] In summary, how to improve the test and analysis efficiency of TCC equipment that changes the lower-level computer software has become a problem to be solved. Summary of the invention

[0005] The present application provides a method for testing a device, including: The simulation software of the ground equipment connected to the first train control center TCC equipment and the second TCC equipment is respectively obtained in real time, and the first interface data and the second interface data fed back to the main control machine when executing the test case; wherein the first TCC equipment is the TCC equipment on site before the lower computer software is changed, and the second TCC equipment is the TCC equipment under test after the lower computer software is changed; Comparing the first interface data and the second interface data acquired in real time, and determining the inconsistent interface data when exceeding a preset tolerance period; Based on the determined inconsistent interface data, a change test and analysis of the lower computer software is performed on the second TCC device.

[0006] On the other hand, an embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned device testing method is implemented.

[0007] On the other hand, an embodiment of the present application further provides a terminal, comprising: a memory and a processor, wherein the memory stores a computer program; wherein: The processor is configured to execute the computer program in the memory; When the computer program is executed by the processor, the device testing method as described above is implemented.

[0008] In another aspect, an embodiment of the present application further provides a device for testing a device, comprising: The acquisition unit is configured to respectively acquire in real time the simulation software of the ground equipment connected to the first train control center TCC equipment and the second TCC equipment, and the first interface data and the second interface data fed back to the main control machine when executing the test case; wherein the first TCC equipment is the TCC equipment on site before the lower computer software is changed, and the second TCC equipment is the TCC equipment under test after the lower computer software is changed; A comparison unit is configured to: compare the first interface data and the second interface data acquired in real time, and determine the inconsistent interface data when the predetermined tolerance period is exceeded; The analysis unit is configured to: perform a change test analysis of the lower computer software on the second TCC device according to the determined inconsistent interface data.

[0009] The embodiment of the present application includes a test for software changes of a lower computer of a train control center (TCC) device. The test implements automated testing and verification of software changes of a lower computer of a TCC device, realizes comprehensive analysis of software changes of a lower computer of a TCC device, improves the analysis efficiency of interface data when software changes are made on the lower computer, and provides technical support for improving the reliability of TCC device operation.

[0010] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by implementing the present application. Other advantages of the present application can be realized and obtained by the schemes described in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The accompanying drawings are used to provide an understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0012] Figure 1 A flowchart of a method for testing a device according to an embodiment of the present disclosure; Figure 2 A schematic diagram of the connection structure of the test system according to an embodiment of the present disclosure; Figure 3 The present invention is a method flow chart of an embodiment of the present invention. DETAILED DESCRIPTION

[0013] The present application describes multiple embodiments, but the description is exemplary rather than restrictive, and it is obvious to those skilled in the art that there may be more embodiments and implementations within the scope of the embodiments described in the present application. Although many possible feature combinations are shown in the drawings and discussed in the specific embodiments, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with any other feature or element in any other embodiment, or may replace any other feature or element in any other embodiment.

[0014] The present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features and elements disclosed in the present application may also be combined with any conventional features or elements to form a unique invention scheme. Any features or elements of any embodiment may also be combined with features or elements from other invention schemes to form another unique invention scheme. Therefore, it should be understood that any feature shown and / or discussed in the present application may be implemented individually or in any appropriate combination. Therefore, except for the limitations made according to the attached claims and their equivalents, the embodiments are not subject to other restrictions. In addition, various modifications and changes may be made within the scope of protection of the attached claims.

[0015] In addition, when describing representative embodiments, the specification may have presented the method and / or process as a specific sequence of steps. However, to the extent that the method or process does not rely on the specific order of the steps described herein, the method or process should not be limited to the steps of the specific order described. As will be understood by those of ordinary skill in the art, other sequences of steps are also possible. Therefore, the specific sequence of the steps set forth in the specification should not be interpreted as a limitation to the claims. In addition, the claims for the method and / or process should not be limited to the steps of performing them in the order written, and those skilled in the art can easily understand that these sequences can be changed and still remain within the spirit and scope of the embodiments of the present application.

[0016] Figure 1 Flow chart of the method for testing the device according to the embodiment of the present disclosure, as shown in Figure 1 As shown, including: Step 101, respectively acquiring in real time the simulation software of the ground equipment connected to the first train control center (TCC) equipment and the second TCC equipment, and the first interface data and the second interface data fed back to the main control machine when executing the test case; wherein the first TCC equipment is the TCC equipment on site before the lower computer software is changed, and the second TCC equipment is the TCC equipment under test after the lower computer software is changed; Before the embodiment of the present disclosure executes the above-mentioned test process, the main control machine establishes a communication connection with the simulation device of the ground equipment (the device loaded with the ground equipment simulation software), and the simulation device of the ground equipment simultaneously establishes a communication connection with the first TCC device and the second TCC device. After executing the same test case, the simulation device of the ground equipment feeds back the first interface data and the second interface data to the main control machine; the first interface data is the data sent by the simulation device of the ground equipment connected to the first TCC device to the first TCC device when the simulation software executes the test case; the second interface data is the data sent by the simulation device of the ground equipment connected to the second TCC device to the second TCC device when the simulation software executes the test case.

[0017] Step 102, comparing the first interface data and the second interface data acquired in real time, and determining inconsistent interface data when the data exceeds a preset tolerance period; Step 103: Perform a change test and analysis of the lower computer software on the second TCC device according to the determined inconsistent interface data.

[0018] The disclosed embodiment is applied to the test of the lower computer software change of the TCC device. The first interface data sent to the first TCC device on site and the second interface data sent to the second TCC device under test by the simulation software of the ground device are respectively obtained, and the first interface data and the second interface data are compared to perform difference analysis on the inconsistent interface data. This realizes the automated testing and verification of the lower computer software change of the TCC device, realizes the comprehensive analysis of the lower computer software change data of the TCC device, improves the analysis efficiency of the interface data when the lower computer software change data is changed, and provides technical support for improving the reliability of the operation of the TCC device.

[0019] In an exemplary embodiment, the embodiment of the present disclosure may have the main control machine perform the processing of the above steps, or may have the device connected to the main control perform the above processing, and the embodiment of the present disclosure does not limit this.

[0020] In an exemplary embodiment, the embodiment of the present disclosure compares the first interface data and the second interface data acquired in real time, and determines the inconsistent interface data when it exceeds a preset tolerance period, including: Comparing the first interface data and the second interface data acquired in real time with a preset time period as a period; When the number of cycles in which the interface data is inconsistent continuously exceeds the number of tolerance cycles, the inconsistent interface data when the number of tolerance cycles is exceeded is recorded.

[0021] In an exemplary embodiment, when the interface data is consistent within the tolerance period, the data analysis of the current test case is terminated. When the TCC device of the present disclosure executes multiple test cases, the interface data of each test case is compared for consistency according to the above method.

[0022] In one exemplary embodiment, the method of the disclosed embodiment further includes: storing the determined inconsistent interface data; In an exemplary instance, the method of the embodiment of the present disclosure further includes: performing compression processing on the stored inconsistent interface data; accordingly, the embodiment of the present disclosure performs decompression processing on the compressed data before viewing or parsing the inconsistent interface data.

[0023] The disclosed embodiment avoids the database load problem caused by excessive storage data volume by compressing the stored inconsistent interface data.

[0024] In an exemplary embodiment, the embodiment of the present disclosure compares the first interface data and the second interface data with a preset time period, including: comparing the first interface data and the second interface data in the same period in units of fields.

[0025] In an exemplary embodiment, after the inconsistent interface data is determined, the embodiment of the present disclosure performs a change test analysis of the lower computer software on the second TCC device according to the determined inconsistent interface data, including: Parsing the inconsistent interface data according to the application protocol of the ground device corresponding to the inconsistent interface data, and determining the difference field information in the inconsistent interface data; Determine the data change amount of the inconsistent interface data according to the determined difference field information; The determined data change amount is compared with a predetermined data change threshold to determine whether the data change of the inconsistent interface data conforms to the data change range corresponding to the lower computer software change.

[0026] In an exemplary embodiment, the ground equipment in the embodiment of the present disclosure may include one or any combination of the following: Centralized Traffic Control (CTC) equipment, track circuit (TC) equipment, input and output (IO) equipment, temporary speed limit server (TSRS) equipment, interlocking (CBI) equipment, trackside electronic unit (LEU) equipment and neighboring station (NTCC) equipment.

[0027] In an exemplary instance, the method of the embodiment of the present disclosure further includes: feeding back the determined difference field information in a preset manner; the feedback manner in the embodiment of the present disclosure includes but is not limited to: displaying the difference field information through a preset window.

[0028] In an exemplary embodiment, the present disclosure includes several test cases, which are used to simulate one or any combination of the following: Centralized Traffic Control (CTC) simulation, Track Circuit (TC) simulation, Input and Output (IO) simulation, Temporary Speed ​​Limit Server (TSRS) simulation, Interlocking (CBI) simulation, Wayside Electronic Unit (LEU) simulation and Neighboring Station (NTCC) simulation.

[0029] The following conditions need to be met when the test user performs the above simulation in the embodiment of the present disclosure: the master control machine establishes communication with the simulation device of the ground device, and the first TCC device and the second TCC device establish a communication connection with the ground simulation device with reference to the system architecture; Figure 2 The schematic diagram of the connection structure of the test system of the embodiment of the present disclosure is shown in FIG. Figure 2 As shown in the connection, the main control machine is connected to the database, which is used to read the script commands that need to be executed in the simulation from the database. The simulation device of the ground equipment receives the script commands issued by the main control machine and forwards the interface data to the main control machine. The simulation device of the disclosed embodiment obtains the first interface data and the second interface data sent to the first TCC device and the second TCC device in real time and compares them to realize the test analysis of the second TCC device.

[0030] The embodiment of the present disclosure refers to the above content to establish a communication connection between the host control machine and the simulation device of the ground device, start the host control machine, and turn on the monitoring function of the interface. The processing performed is as follows: Figure 3 As shown, including: Step 301: Set the function items of the test and select the data corresponding to the test case of the station to be tested; the function items tested in the embodiment of the present disclosure may include one or any combination of the following: code sending test, degradation test, message test and speed limit test; Step 302: When the host computer executes the test case, the first interface data and the second interface data are obtained; when the embodiment of the present disclosure includes multiple test cases, after each test case is executed, the first interface data and the second interface data corresponding to each test case are obtained; Step 303: the first interface data and the second interface data are obtained, compared according to a preset tolerance period, and inconsistent interface data exceeding the tolerance period is determined and stored; before storing the inconsistent interface data, the data is compressed; Step 304: parsing the recorded inconsistent interface data according to the application protocol between the TCC device and each ground device, and determining difference field information, where the difference field information includes field values ​​of the difference fields; Step 305: determining the data change amount of the inconsistent interface data according to the field value corresponding to the determined difference field; Step 306: compare the determined data change amount with a predetermined data change threshold to determine whether the changed data conforms to the data change range of the changed lower computer software.

[0031] The disclosed embodiment performs data comparison processing on each test case with reference to the above scheme until all test cases are executed and the interface device test of the current functional test is completed.

[0032] The data of the difference fields determined in the embodiment of the present disclosure may be stored in two different tables that are independent of each other.

[0033] The embodiment of the present disclosure also provides a computer storage medium, in which a computer program is stored. When the computer program is executed by a processor, the above-mentioned device testing method is implemented.

[0034] The embodiment of the present disclosure further provides a terminal, comprising: a memory and a processor, wherein a computer program is stored in the memory; The processor is configured to execute the computer program in the memory; When the computer program is executed by a processor, the device testing method as described above is implemented.

[0035] The present disclosure also provides a device for testing a device, including: The acquisition unit is configured to respectively acquire in real time the simulation software of the ground equipment connected to the first train control center TCC equipment and the second TCC equipment, and the first interface data and the second interface data fed back to the main control machine when executing the test case; wherein the first TCC equipment is the TCC equipment on site before the lower computer software is changed, and the second TCC equipment is the TCC equipment under test after the lower computer software is changed; A comparison unit is configured to: compare the first interface data and the second interface data acquired in real time, and determine the inconsistent interface data when the predetermined tolerance period is exceeded; The analysis unit is configured to: perform a change test analysis of the lower computer software on the second TCC device according to the determined inconsistent interface data.

[0036] In an exemplary embodiment, the comparison unit of the embodiment of the present disclosure is configured as follows: Comparing the first interface data and the second interface data acquired in real time with a preset time period as a period; When the number of cycles in which the interface data is inconsistent continuously exceeds the tolerance period, the inconsistent interface data when the number of the tolerance period is exceeded is recorded.

[0037] In an exemplary embodiment, the device of the embodiment of the present disclosure further includes a storage processing unit, which is configured to: storing the identified inconsistent interface data; or, Compress and store determined inconsistent interface data.

[0038] In an exemplary embodiment, the comparison unit of the embodiment of the present disclosure is configured to compare the first interface data and the second interface data with a preset time period, including: The first interface data and the second interface data in the same cycle are compared in units of fields.

[0039] In an exemplary embodiment, the analysis unit of the embodiment of the present disclosure is configured as follows: Parsing the inconsistent interface data according to the application protocol of the ground device corresponding to the inconsistent interface data, and determining the difference field information in the inconsistent interface data; Determine the data change amount of the inconsistent interface data according to the determined difference field information; The determined data change amount is compared with a predetermined data change threshold to determine whether the data change of the inconsistent interface data conforms to the data change range corresponding to the lower computer software change.

[0040] In an exemplary embodiment, the ground equipment in the embodiment of the present disclosure may include one or any combination of the following: CTC equipment, TC equipment, IO equipment, TSRS equipment, CBI equipment, LEU equipment and NTCC equipment.

[0041] In an exemplary embodiment, the comparison unit of the embodiment of the present disclosure is further configured as follows: Feedback the determined difference field information in a pre-set manner.

[0042] In an exemplary embodiment, the test case in the embodiment of the present disclosure is used to simulate one or any combination of the following: CTC simulation, TC simulation, IO simulation, TSRS simulation, CBI simulation, LEU simulation and NTCC simulation.

[0043] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As is known to those skilled in the art, the term "computer storage medium" includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

Claims

1. A method for testing a device, characterized in that: include: The simulation software of the ground equipment connected to the first train control center TCC equipment and the second TCC equipment is respectively obtained in real time, and the first interface data and the second interface data fed back to the main control machine when executing the test case; wherein the first TCC equipment is the TCC equipment on site before the lower computer software is changed, and the second TCC equipment is the TCC equipment under test after the lower computer software is changed; Comparing the first interface data and the second interface data acquired in real time, and determining the inconsistent interface data when exceeding a preset tolerance period; Based on the determined inconsistent interface data, a change test and analysis of the lower computer software is performed on the second TCC device.

2. The method according to claim 1, characterized in that The comparing the first interface data and the second interface data acquired in real time to determine the inconsistent interface data when exceeding a preset tolerance period includes: Comparing the first interface data and the second interface data acquired in real time with a preset time period as a period; When the number of cycles in which the interface data is inconsistent continuously exceeds the tolerance period, the inconsistent interface data when the number of the tolerance period is exceeded is recorded.

3. The method according to claim 1, characterized in that After determining the inconsistent interface data exceeding a preset tolerance period, the method further includes: storing the identified inconsistent interface data; or, Compress and store determined inconsistent interface data.

4. The method according to claim 1, characterized in that The comparing the first interface data and the second interface data with a preset time period as a period includes: The first interface data and the second interface data in the same cycle are compared in units of fields.

5. The method according to any one of claims 1 to 4, characterized in that: The step of performing a change test and analysis of the lower computer software on the second TCC device according to the determined inconsistent interface data includes: Parsing the inconsistent interface data according to the application protocol of the ground device corresponding to the inconsistent interface data, and determining the difference field information in the inconsistent interface data; Determining a data change amount of the inconsistent interface data according to the determined difference field information; The determined data change amount is compared with a predetermined data change threshold to determine whether the data change of the inconsistent interface data conforms to the data change range corresponding to the lower computer software change.

6. The method according to claim 5, characterized in that The ground equipment may include one or any combination of the following: Dispatching centralized CTC equipment, track circuit TC equipment, input and output IO equipment, temporary speed limit server TSRS equipment, interlocking CBI equipment, trackside electronic unit LEU equipment and adjacent station NTCC equipment.

7. The method according to claim 5, characterized in that After determining the difference field information in the inconsistent interface data, the method further includes: The determined difference field information is fed back in a preset manner.

8. A computer storage medium, wherein a computer program is stored in the computer storage medium, and when the computer program is executed by a processor, the device testing method according to any one of claims 1 to 7 is implemented.

9. A terminal, comprising: A memory and a processor, wherein the memory stores a computer program; wherein, The processor is configured to execute the computer program in the memory; When the computer program is executed by the processor, the device testing method according to any one of claims 1 to 7 is implemented.

10. An apparatus for testing equipment, comprising: The acquisition unit is configured to respectively acquire in real time the simulation software of the ground equipment connected to the first train control center TCC equipment and the second TCC equipment, and the first interface data and the second interface data fed back to the main control machine when executing the test case; wherein the first TCC equipment is the TCC equipment on site before the lower computer software is changed, and the second TCC equipment is the TCC equipment under test after the lower computer software is changed; A comparison unit is configured to: compare the first interface data and the second interface data acquired in real time, and determine the inconsistent interface data when the predetermined tolerance period is exceeded; The analysis unit is configured to: perform a change test analysis of the lower computer software on the second TCC device according to the determined inconsistent interface data.