A two-by-two-take-two computer automated testing system and method
By designing two-by-two computer automation testing system and methods, the problem of cumbersome and low efficiency of high-speed rail control computer testing process is solved, efficient and real-time testing is achieved, and the test quality and work efficiency are improved.
Patent Information
- Application Number
- CN202211417196.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-11
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2042-11-11
AI Technical Summary
The testing process of existing high-speed rail control computers is cumbersome, inefficient, and lacks real-time performance, making it difficult to meet the high-speed rail system's demand for high-reliability and efficient testing.
Design a two-by-two-two computer automation testing system and method. Through the test process management module and the test execution module, combined with ITF equipment, it realizes fully automatic and real-time testing of the measured object, and supports two-dimensional channel main and backup switching tests.
It realizes efficient, real-time and flexible testing of high-speed rail control computers, improves test coverage and quality, and improves work efficiency and test reliability.
Smart Images

Figure CN115903737B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of computer automatic testing, and in particular relates to a two-by-two-take-two computer automatic testing system and method. Background Art
[0002] Two-by-two-out-of-two is a dynamic redundancy technology that is currently widely used in the core control equipment of the railway system, providing high security, high reliability, and high availability technical guarantees for the control computers and other key devices of the system. In recent years, the control computers of the railway system have developed into two-by-two-out-of-two computers, which use multi-heterogeneous hardware and other means to ensure their high reliability. Two CPUs are used to build a main system to run interlocking tasks, and two CPUs with different architectures are used as hot backup systems to work simultaneously. Finally, a certain system is selected according to the rules to output instructions and execute them. As the "nerve center" in high-speed rail operation or dispatching work, once a control computer fails, it may cause train traffic jams at the least, or even cause catastrophic consequences such as high-speed rail collisions and derailments.
[0003] With the development of high-speed rail technology and the expansion of demand, the testing process of high-speed rail control computers has become increasingly cumbersome. In the past, high-speed rail control computers were often tested manually, which placed very high demands on maintenance testers and was inefficient, prompting the development of more efficient testing methods. Macro language is a special language developed for electronic testing. Using test macro programs to control the stimulation and acquisition of the object under test by ITF equipment can greatly improve test efficiency, but it does not have real-time performance. Summary of the invention
[0004] The purpose of the present invention is to provide a two-by-two-out-of-two computer automatic testing system and method. After being started, the automatic testing method can automatically and quickly complete the predetermined test items of the object under test, send stimuli in real time, receive test results in real time, and simultaneously support the main-standby switching test of the two redundant channels of the computer under test, thereby improving the test coverage and test quality.
[0005] Technical solution of the present invention: In order to achieve the above-mentioned purpose of the invention, the present invention adopts the following technical solution to achieve it.
[0006] Technical solution 1:
[0007] A two-by-two-out-of-two computer automated testing system, wherein the two-by-two-out-of-two computer is installed with automated testing simulation environment software, and the system comprises: a test process management module and a test execution module;
[0008] The test process management module is responsible for task selection and work management, and includes: a user information management submodule, a device initialization submodule, a device self-check submodule, a task selection submodule, and a data processing submodule;
[0009] The test execution module is responsible for controlling the test stimulus, and includes: a power supply test submodule, a BIT test submodule, an analog input test submodule, an analog output test submodule, a discrete input test submodule, a discrete output test submodule, and a software function test submodule;
[0010] The automated test simulation environment software includes: a power control area, a power status area, a test control area, a single board status area, a functional test area, a test result area, and a text display area.
[0011] The characteristics and further improvements of the technical solution 1 of the present invention are:
[0012] The power control area is used to configure power, current and channel power;
[0013] The power status area is used to monitor the power status of the product after it is powered on, the real-time voltage value and the real-time current value of the power supply;
[0014] The test control area is used for dual-redundancy switching of the safety computer, selecting the test mode and manually adjusting the test steps;
[0015] The board status area is used to monitor the status of the security computer board;
[0016] The functional test area is used to generate test stimuli for corresponding functions of the secure computer and display specific configuration parameters of the test stimuli;
[0017] The test result area is used to display the result status of the safety computer function test;
[0018] The text display area is used to display the result text of the safety computer function test. In this area, the specific value of the function test item result and the information of whether it is passed or not can be observed.
[0019] Technical solution 2:
[0020] A two-by-two-out-of-two computer automation test method, based on the test system of the first technical solution, the test method comprises: the ITF device first detects each single board of the safety computer after powering on the safety computer, and the detection follows the principle of from inside to outside; the single board includes: processor board, discrete quantity board, maintenance board, bus board;
[0021] First, the CPU of the single board is tested, and then the RAM, ROM, and timer are tested, and then the SAFEBus bus is tested; the safety computer is a two-by-two computer, and the hardware device corresponding to the automated test system is an ITF device.
[0022] The characteristics and further improvements of the second technical solution of the present invention are:
[0023] (1) The processor board detection method is specifically as follows:
[0024] The processor board performs power-on test and operation cycle test according to the task operation cycle;
[0025] The power-on test includes CPU instruction test, SD RAM test, ROM test, NVM test, watchdog test, branch cross communication link test, power monitoring test, lighting test, timer test, ambient temperature test, and the test results are uploaded;
[0026] The periodic test is to receive the instructions transmitted by the host computer in real time, and perform analytical calculations and instruction output.
[0027] (2) The discrete quantity board detection method is specifically as follows:
[0028] The discrete quantity board detection contents include: discrete quantity input self-test, discrete quantity output wraparound test, and fast transmission excitation self-test.
[0029] (3) The discrete quantity board test contents include discrete quantity input test and discrete quantity output test;
[0030] Discrete input test: a) Apply test stimulus to discrete input terminal DIN of X channel of safety computer through test equipment ITF; b) Read the value of X channel and compare it with the expected value. The test result will be displayed in the software interface; c) Change Y channel of safety computer and repeat the above steps;
[0031] Discrete output wraparound test: The test personnel visually observe the discrete output marquee through the test equipment ITF and compare it with the expected value;
[0032] Fast transmission excitation self-test: a) Apply test excitation to the fast transmission signal collectors of the three channels A, B, and C through the integrated test equipment ITF; b) Read the actual values of the fast transmission signals of the three channels A, B, and C, and compare them with the expected values; c) Change the next set of excitation values and repeat the above steps.
[0033] (4) Maintenance board testing includes: processor instruction test, SD RAM test, FLASH test, and electronic disk test.
[0034] (5) Bus board detection method, specifically: processor test, RS422 output wrap test, MVB send test;
[0035] RS422 output wraparound test includes RS422 sending test and RS422 receiving test;
[0036] RS422 transmission test: a) Reset the RS-422 interface of the test equipment; b) Fill the RS-422 data sent to the test equipment into the buffer of each channel of the safety computer and send it; c) The ITF test equipment receives the data sent by the safety computer and automatically compares it. If the data received by the ITF test equipment matches the expected data, the transmission data link communication from the safety computer to the test equipment is normal;
[0037] RS422 receiving test: a) Reset the serial port of the test equipment; b) The test equipment ITF sends RS-422 data to each channel of the safety computer; c) Each channel of the safety computer receives the data and sends it to the test equipment through the test interface; d) The test equipment compares the data. If the data received by the safety computer matches the expected data, the RS-422 data link communication of the computer receiving the test equipment is normal;
[0038] MVB sending test test method: a) Reset the MVB interface on the test equipment end; b) Fill the MVB data to be sent to each channel buffer of the safety computer and send it; c) ITF receives the data sent by the safety computer and automatically compares it. If the data received by ITF matches the expected data, the data link communication from the safety computer to the MVB is normal.
[0039] (6) SAfEBus backplane bus detection method, specifically:
[0040] The SAfEBus backplane bus test of the safety computer needs to cover the BIU modules and backplane bus of each bus node. It is only performed in the single board test stage and is divided into warning faults and serious faults according to the severity of the fault impact.
[0041] During the single-board testing phase, the safety computer needs to conduct a comprehensive test on the backplane bus related resources. The test is divided into three stages: online check, time planning version compatibility check, and bus health status check. If and only if all of the above items pass the BIT test, the backplane bus is considered to be working normally, otherwise the corresponding fault is recorded.
[0042] Advantages of the invention: The invention proposes an automated testing method for a two-by-two-out-of-two computer. Through the cooperation of the host computer test software and the ITF test equipment, the host computer test software controls each test board and the tested product on the test equipment, injects commands into the tested product and obtains the readback results in real time and dynamically. The computer safety state when the two redundant channels are switched between the main and standby can be detected by fault injection. This provides an efficient, real-time and flexible testing method for high-speed rail two-by-two-out-of-two computers, which improves the work energy efficiency and test reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A flowchart of a two-by-two-take-two computer automated testing method provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The present invention is described in further detail below.
[0045] The embodiment of the present invention provides a computer automated testing method for two times two taking two, such as Figure 1 As shown, the method includes:
[0046] 1. Product testing process and method. After the ITF equipment powers on the safety computer, it first tests each board. The testing principle is from the inside to the outside. First, the CPU of the board is tested, and then the RAM, ROM, timer, etc. are tested, and then the SAFEBus bus is tested; the discrete board, bus board, maintenance board, and processor board complete the test content of each board in turn, and send the test results to the processor board. The processor board integrates and uploads the system test fault information to the maintenance board. After the hardware test is completed, various functional test tasks begin.
[0047] 2. Processor board detection method. The main contents of the processor board detection include: CPU instruction test, SDRAM test, ROM test, NVM test, watchdog test, branch cross communication link test, power monitoring test, lighting test, timer test, and ambient temperature test;
[0048] CPU instruction test: perform operations such as addition, subtraction, multiplication, division, AND, OR, NOT, left shift, right shift and other commonly used instructions on predetermined values (integer and floating point), compare the operation results with the expected values, and determine whether the CPU is working normally;
[0049] SDRAM test: write test sample data to the storage area, then read the written data, and compare the read data with the test sample. If the two are inconsistent, an SDRAM fault is reported;
[0050] ROM test: Perform CRC check on ROM unit, compare code and expected value, if the two are not equal, report ROM fault;
[0051] NVM test: NVM test is divided into two parts, namely parameter area CRC check and LOG area read and write test. The test sample data is written to the LOG area, and then the written data is read and compared with the test sample. If the two are inconsistent, an NVM fault is reported. The parameter area is CRC checked to compare the code and the expected value. If the two are not equal, an NVM fault is reported.
[0052] Watchdog test: Set the watchdog threshold and enable by configuring registers. After a delay of 50ms, check whether the dog barking triggers the NMI interrupt (CPU enters the NMI interrupt service routine). Otherwise, report a fault.
[0053] Cross-communication test between XY branches: This test item needs to test two channels, the HOST data and status exchange service interface and the single BIU data sending bus data service interface. Among them, the test steps of the HOST data and status exchange service interface: 1) Both X and Y systems write detection sample data to the HOST interactive data sending data buffer, sending setting register, and receiving data buffer; 2) After 5ms, both X and Y systems read from the "HOST interactive data receiving data buffer". If it is the same as the detection sample data, it means that this part of the function is normal; The test steps of the single BIU data and status exchange service interface: 1) Both X and Y systems write detection sample data to the single BIU interactive data sending data buffer, sending setting register, and receiving data buffer; 2) After 5ms, both X and Y systems read from the single BIU interactive data receiving data buffer. If it is the same as the detection sample data, it means that this part of the function is normal;
[0054] Power supply monitoring AD test (5V, 24V): monitor the voltage values of the secondary 5V power supply, 24V power supply and backup battery power supply through the I2C interface of the processor, and compare the monitored power supply voltage value with the expected range value in turn. If it exceeds the expected range, a power supply monitoring (+5V / +24V) fault is reported;
[0055] Power supply monitoring validity test: read the valid discrete quantity (PSV) of +5V and +24V power supplies respectively. If PSV is invalid, the corresponding power supply fault is reported;
[0056] Three-way power supply cross monitoring (PGOOD signal) between XY branches: read the effective discrete quantity (PGOOD) of the three-way power supply. If PSV is invalid, report the corresponding power supply fault;
[0057] RTC test: Test the RTC function through the I2C interface of the processor;
[0058] Lighting test: Light up the indicators on the front panel in a marquee order (or other special meanings). The software does not judge whether it is a fault, and the inspector will perform a visual inspection;
[0059] Timer test: Test the function of the programmable timer of the X and Y branches. The test steps are as follows: 1) Set the software time timing; 2) Start the timer timing; 3) When the timing time is up, read the timing interrupt flag to see if it is valid. If it is invalid, it is recorded as a timing interrupt controller failure;
[0060] Ambient temperature test: read the temperature sensor value through the processor's I2C interface, compare the ambient temperature with the expected range, and report an ambient temperature fault if it exceeds the expected range;
[0061] The above tests can be completed automatically by running the automatic test program;
[0062] 3. Discrete quantity board detection method. Discrete quantity board detection contents mainly include: discrete quantity input self-test, discrete quantity output wraparound test, and fast transmission excitation self-test. The detection contents are defined below, and the requirements for each test are explained. The TIU board performs the test by itself and uploads the test results to the processor board;
[0063] Discrete input self-test: Check the test result of HI-8435 module and compare the result value with the expected value. If they are the same, it means that HI-8435 self-test is correct. Otherwise, it is marked as a serious fault.
[0064] Discrete output self-test: The discrete board will automatically perform discrete output wraparound self-test and send the self-test result to the processor board through the SAFEBus. If the result value is the same as the expected value, it means that the discrete output wraparound self-test is correct, otherwise it is marked as a serious fault;
[0065] Fast-transmission excitation self-test: The discrete quantity board will generate fast-transmission excitation, automatically perform fast-transmission excitation self-test, and send the self-test result to the processor board through the SAFEBus bus. If the result value is the same as the expected value, it means that the fast-transmission excitation self-test is correct, otherwise it is marked as a serious fault;
[0066] The above tests can be completed automatically by running the automatic test program;
[0067] 4. Maintenance board testing method. The maintenance board testing contents mainly include: processor instruction test, SDRAM test, FLASH test, and electronic disk test. The following defines the test contents and explains the requirements of each test;
[0068] Processor instruction test: Perform operations such as addition, subtraction, multiplication, division, AND, OR, NOT, left shift, right shift and other commonly used instructions on predetermined values (integer and floating point), compare the operation results with the expected values, and determine whether the CPU is working normally;
[0069] SDRAM test: write test sample data to the storage area, then read the written data, and compare the read data with the test sample. If the two are inconsistent, an SDRAM fault is reported;
[0070] FLASH test: write test sample data to the storage area, then read the written data, and compare the read data with the test sample. If the two are inconsistent, a FLASH fault is reported;
[0071] Electronic disk test: write the test sample data to the storage area, then read the written data, and compare the read data with the test sample. If the two are inconsistent, the electronic disk fault is reported;
[0072] The above tests can be completed automatically by running the automatic test program;
[0073] 5. Bus board detection method. The bus board detection contents mainly include: processor test, RS422 output wraparound test, discrete output wraparound test. The detection contents are defined below, and the requirements for each test are explained;
[0074] Processor self-test: Perform self-test (including instruction test, RAM test, FLASH test, interface test, etc.) through the BIST function of ARM3137, and send the self-test result to the processor board through the SAFEBus bus. If the result value is the same as the expected value, it means that the processor self-test is correct, otherwise it is marked as a serious fault;
[0075] RS422 output wraparound test: The bus will automatically perform RS422 output wraparound self-detection and send the self-test result to the processor board through the SAFEBus bus. If the result value is the same as the expected value, it means that the RS422 output self-test is correct, otherwise it is marked as a serious fault;
[0076] Discrete output wraparound test: The bus board will automatically perform discrete output wraparound self-detection and send the self-test result to the processor board through the SAFEBus bus. If the result value is the same as the expected value, it means that the discrete output self-test is correct, otherwise it is marked as a serious fault;
[0077] The above tests can be completed automatically by running the automatic test program;
[0078] 6. SAfEBus backplane bus detection method. The SAfEBus backplane bus test of the safety computer must cover the BIU module and the backplane bus of each bus node. It is only performed during the single-board test phase and is divided into warning faults and serious faults according to the severity of the fault. During the single-board test phase, the safety computer needs to conduct a comprehensive test on the backplane bus related resources. The test is divided into three stages: online check, time planning version compatibility check, and bus health status check. If and only if the above items pass the BIT test, the backplane bus is considered to be working normally, otherwise the corresponding fault is recorded;
[0079] Processor board online check: Check the "BIU status identification word" of the BIU module. If the result value is the same as the expected value, it means that the processor board node has been online normally. Otherwise, it is marked as a serious fault.
[0080] Other nodes online check: The processor board is responsible for checking whether the VERSION message sent by the processor board, discrete quantity board, bus board and maintenance board to the processor board is received by the processor board. If all are successfully received, it indicates that the other nodes are online, otherwise it is marked as a serious fault;
[0081] Time plan version compatibility check: The processor board is responsible for checking whether the time plan Major Version and Minor Version carried in the VERSION message sent to the processor board by the processor board, discrete quantity board, bus board and maintenance board are the same as the version number stored in the processor board itself. If they are exactly the same, the time plan version is considered compatible, otherwise it is considered a serious fault.
[0082] Bus health status check: read the "bus error identification status word" of BIUx or BIUy; clear the "bus error identification status word" of BIUx or BIUy;
[0083] 7. TIU_DIO_TEST test method. The TIU_DIO_TEST test content mainly includes discrete input test and discrete output test;
[0084] Discrete input test: a) Apply test stimulus to DIN of X channel through test equipment ITF; b) Read the value of X channel and compare it with the expected value. The test result will be displayed in the software interface; c) Change Y channel and repeat the above steps;
[0085] Discrete output test: The test personnel visually observe the discrete output marquee through the test equipment ITF and compare it with the expected value;
[0086] 8. TIU_SC_TEST is the speed transmission test method: a) Apply test excitation to the speed transmission signal collectors of the three channels A, B, and C through the integrated test equipment ITF; b) Read the actual values of the speed transmission signals of the three channels A, B, and C, and compare them with the expected values; c) Change the next set of excitation values and repeat the above steps;
[0087] 9. MBI_422 test method. The MBI_422 test content mainly includes RS422 sending test and RS422 receiving test;
[0088] RS422 transmission test: a) Reset the RS-422 interface of the test equipment; b) Fill the RS-422 data sent to the test equipment into the buffer of each channel of the safety computer and send it; c) ITF receives the data sent by the safety computer and automatically compares it. If the data received by ITF matches the expected data, the transmission data link communication from the safety computer to the test equipment is normal;
[0089] RS422 receiving test: a) Reset the serial port of the test equipment; b) The test equipment sends RS-422 data to each channel of the safety computer; c) Each channel of the safety computer receives the data and sends it to the test equipment through the test interface; d) The test equipment compares the data. If the data received by the safety computer matches the expected data, the RS-422 data link communication of the computer receiving the test equipment is normal;
[0090] 10. MBI_MVB, i.e., MVB sending test. Test method: a) Reset the MVB interface on the test equipment end; b) Fill the MVB data to be sent to each channel buffer of the safety computer and send it; c) ITF receives the data sent by the safety computer and automatically compares it. If the data received by ITF matches the expected data, the data link communication from the safety computer to the MVB is normal;
[0091] The testing method provided by the embodiment of the present invention includes the specific testing process of power-on self-detection of each single board of the security computer, SAfEBus backplane bus and each functional test item. The testing of the security computer function is realized by controlling the hardware resources such as signal excitation, external bus test resources, IO test resources and the like through the host computer test software, thereby providing technical support for further targeted improvement of the two-by-two-out-of-two computer automation testing.
[0092] The embodiment of the present invention also provides a computer automated testing system for two-by-two-out-of-two, including: a test process management module and a test execution module. The system is installed with two-by-two-out-of-two computer automated testing simulation environment software.
[0093] The test process management module is mainly responsible for task selection and work management. This module includes: managing user information, initializing the device, performing self-test on the device, task selection, and data processing;
[0094] The test execution module is mainly responsible for controlling the test stimulus. This module includes: power supply test, BIT test, analog input test, analog output test, discrete input test, discrete output test, software function test;
[0095] Further, the two-by-two-take-two computer automated test software includes: a power control area, a power status area, a test control area, a single board status area, a functional test area, a test result area, and a text display area;
[0096] The power control area is used for power configuration and switching control. The voltage setting area defaults to +110V, the current limit protection setting defaults to 1.20A, "PS" is the main power switch, and "110V_I" and "110V_II" are the power switches for product series I and II respectively;
[0097] The power status area is used to monitor the power status after the product is powered on, and displays the voltage and current values monitored in real time;
[0098] The test control area is used for switching between two redundancy of the safety computer and selecting the test mode, etc. Among them, "I / IISWITCH" is used to switch the current test object to the I system or II system of the safety computer; "LAST STEP" and "NEST STEP" are used to manually adjust to the previous test step or the next test step; "Auto TypeSEL" is used to select the test mode;
[0099] The board status area is used to monitor the safety computer board. When the safety computer is powered on, the board is tested first, where red indicates an incorrect test result (FAIL), yellow indicates an illegal value, and green indicates a correct test result (PASS);
[0100] The functional test area is used to generate corresponding functional test stimulus for the secure computer. This area displays the specific configuration parameters of the test stimulus;
[0101] The test result area is used to display the result status of the function test of the safety computer discrete quantity, etc. This area displays the function test item results in real time in red, yellow and green colors;
[0102] The text display area is used to display the text description of the results of the safety computer function test. In this area, the specific value of the function test item result, whether it passed, etc. can be observed;
[0103] (1) Automatic testing. The automatic testing process can formulate a test plan before the automated testing according to actual needs. All functional test programs are run in an automatic way to determine the results. After running the automatic testing program, the test program automatically saves all test process records in the form of an Excel spreadsheet. The spreadsheet includes the steps, expected values, actual test results and test conclusions of each test sub-item. The test spreadsheet is saved as the product function acceptance result data;
[0104] (2) Functional testing. The software covers all functional inspection requirements and supports fully automatic and single function testing;
[0105] (3) Dual-redundancy switching test. The software can detect the computer security status when the dual-redundancy channel is switched between the main and standby channels through fault injection;
[0106] (4) Real-time dynamic testing. The traditional macro testing method is based on static command response, which does not meet the requirements of high-dynamic real-time software testing. This testing method adopts a dynamic testing method based on the real software task cycle to improve the test response speed;
[0107] (5) Fault injection: Based on the software-level fault injection method, the fault injection effect is achieved by simulating the change of logic values on a secure computer during functional testing;
[0108] Through the method of the present invention, the safety computer can be flexibly tested fully automatically, and the switching test of the two redundancies can be supported. When a fault occurs, the fault location can be located through single function testing, etc. The changes in test data can be dynamically displayed, and the designer can be helped to analyze the status of the safety computer through fault injection, which shortens the test time, reduces the test difficulty, and greatly improves the work efficiency.
[0109] Embodiment: A scenario for using the method and software is as follows:
[0110] (1) After correctly connecting the ITF test equipment and the safety computer, first power on the product, switch the "PS" to the "On" end in the power control area, and press the "110V_I" and "110V_II" buttons to complete the power-on operation of the two channels of the product, and observe the power status at the same time;
[0111] (2) After power-on, first perform a single board test on the product. Observe the status of each single board in the safety computer through the single board status area. If there is no problem with the single board test, proceed to the next step. Based on the principle of starting from the inside out, the specific test item sequence can be appropriately adjusted according to the software compilation and running time. The test process is as follows: Figure 1 As shown;
[0112] (3) Select the channel to be tested in the "I / II SWITCH" of the test control area, and select the "Auto_test" mode in "Auto TypeSEL" for automatic testing, and then a test information input interface will pop up. Fill in the number of the tested product in "UUTPartNum", the batch number of the tested product in "SerialNumber", and the number of the tester in "Tester ID" in sequence as required, and click "AUTOTest_On". The test equipment will then perform automatic testing according to the test item flow specified in the program, and the results of each test will be displayed in the text display area on the right. After running the automatic test program, the test program automatically saves all test process records in Excel format;
[0113] (4) If you want to perform a single test on the power supply, select "Power_test" in the "Auto TypeSEL" of the test control area and click "AUTO Test_On". Connect the 110V_L primary power supply and the 110V_R primary power supply to the safety computer one by one to ensure that at the same time, there is only one primary power supply connected to one channel of the safety computer. At the same time, set the normal +24V output voltage. Collect the values of the primary power supply and the +24V secondary power supply through the ITF integrated test equipment. The test results will be displayed in the text display area on the right.
[0114] (5) To perform a single test of external discrete quantities, select "TIU_DIO_TEST" in the "Auto TypeSEL" of the test control area and click "AUTO Test_On". The preset test stimulus is applied to the DIN of the X and Y channels through the test equipment ITF. The test software automatically reads the values of TIU_DI_1, TIU_DI_2, TIU_DI_3, TIU_DI_4, TIU_DI_5, and TIU_DI_6 of the X and Y channels and compares them with the expected values. The test results are displayed in the text display area on the right.
[0115] (6) If a single test of the speed transmission acquisition is to be performed, select the "TIU_SC_TEST" mode in the "Auto TypeSEL" of the test control area and click "AUTO Test_On". The integrated test equipment ITF will apply test excitation to the speed transmission signal collectors of the three channels A, B, and C. The test software will automatically read the actual values of the speed transmission signals of the three channels A, B, and C and compare them with the expected values. The test results will be displayed in the text display area on the right.
[0116] (7) To perform RS422 transmission and reception tests separately, select "MBI_422" mode in the "Auto TypeSEL" of the test control area and click "AUTO Test_On". Fill the RS-422 data sent to the test equipment end into the buffer of each channel of the safety computer and send it. The ITF receives the data sent by the safety computer and automatically compares it. The RS422 transmission test results will be displayed in the text display area on the right; send RS-422 data to each channel of the safety computer through the test equipment. Each channel of the safety computer receives the data and sends it to the test equipment through the test interface. The test equipment compares the data and the RS422 reception test results will be displayed in the text display area on the right;
[0117] (8) To perform a single MVB transmission test, select the "MBI_MVB" mode in the "Auto TypeSEL" section of the test control area and click "AUTO Test_On". The MVB data is then filled into the buffers of each channel of the safety computer and sent. The ITF receives the data sent by the safety computer and automatically compares them. The test results are displayed in the text display area on the right.
[0118] (9) To perform a single test on the discrete quantity board status, select the "TIU_STATUS" mode in the "Auto TypeSEL" test control area and click "AUTO Test_On". The test results will be displayed in the text display area on the right;
[0119] (10) If you want to change the stimulus for a certain functional test item, select the "Manual_test" mode in the "Auto TypeSEL" of the test control area, and then change the configuration parameters in the input test stimulus area to perform the test. The test results will be displayed in the text display area on the right.
[0120] (11) After the test, turn off the power to the product. In the power control area, press the "110V_I" and "110V_II" OFF buttons in sequence to switch "PS" to the "Off" end.
[0121] The present invention proposes an automated testing method for a two-by-two-out-of-two computer. Through the cooperation of the ITF test equipment, the host computer test software controls each test board and the tested product on the test equipment, injects commands into the tested product and obtains the readback results in real time and dynamically. The computer safety state when the two redundant channels are switched between the main and standby can be detected by fault injection. This provides an efficient, real-time and flexible testing method for high-speed rail two-by-two-out-of-two computers, which improves the work energy efficiency and test reliability.
[0122] Traditional testing methods based on static macro programs are increasingly unable to meet the LRU-level test coverage requirements. This is mainly reflected in the fact that the non-real-time characteristics of macro programs cannot support real-time task function testing and verification, and problems that occur on the system bench often cannot be reproduced and troubleshooted in the component test environment.
[0123] The macro statement parsing and execution rate of the general macro test software platform is at the level of hundreds of milliseconds, resulting in incomplete dynamic characteristic test capabilities of electronic products. Currently, the method of calling the built-in functions of oscilloscopes and sweepers through macro statements can support dynamic testing of external interfaces, but cannot support dynamic testing of internal signals of electronic products.
[0124] This test method adopts a dynamic test method. The dynamic test process of the internal signal is described in macro language, downloaded to the target machine, and parsed and executed by the software middleware. It mainly uses the high real-time performance of the embedded software in the target machine. The high real-time performance can ensure the certainty of the instruction execution time and high timing accuracy, thereby realizing the dynamic test capability of the internal signal.
[0125] In the component test environment, the traditional test method based on redundant computers generally adopts the means of single redundancy function detection, which is difficult to fully verify the collaborative function between redundancies. This test method is oriented to redundancy and can realize functional tests such as redundancy management, redundancy switching, redundancy voting, and redundancy output instruction monitoring.
Claims
1. A two-by-two-take-two computer automated testing method, characterized in that: The method is implemented based on a two-by-two-out-of-two computer automated testing system; the two-by-two-out-of-two computer is installed with automated testing simulation environment software, and the system includes: a test process management module and a test execution module; The test process management module is responsible for task selection and work management, and includes: a management user information submodule, a device initialization submodule, a device self-test submodule, a task selection submodule, and a data processing submodule; the test execution module is responsible for controlling the test stimulus, and includes: a power supply test submodule, a BIT test submodule, an analog input test submodule, an analog output test submodule, a discrete input test submodule, a discrete output test submodule, and a software function test submodule; the automated test simulation environment software includes: a power supply control area, a power supply status area, a test control area, a single board status area, a function test area, a test result area, and a text display area; The power control area is used to configure the power supply, current and channel power supply; the power status area is used to monitor the power status of the product after power-on, the real-time voltage value and real-time current value of the power supply; the test control area is used for the two-redundancy switching of the safety computer, the selection of the test mode and the manual adjustment of the test steps; the single board status area is used to monitor the single board status of the safety computer; the functional test area is used to generate the test stimulus of the corresponding function of the safety computer and display the specific configuration parameters of the test stimulus; the test result area is used to display the result status of the functional test of the safety computer; the text display area is used to display the result text of the functional test of the safety computer, and the specific value of the result of the functional test item and the information of whether it passes can be observed in this area; The test method includes: after the ITF device powers on the security computer, it first detects each single board of the security computer, and the detection follows the principle of from the inside to the outside; the single board includes: processor board, discrete quantity board, maintenance board, bus board; First, the CPU of the single board is tested, and then the RAM, ROM, and timer are tested, and then the SAFEBus bus is tested; the safety computer is a two-by-two computer, and the hardware device corresponding to the automated test system is an ITF device; The processor board detection method is specifically: The processor board performs power-on test and operation cycle test according to the task operation cycle; The power-on test includes CPU instruction test, SDRAM test, ROM test, NVM test, watchdog test, branch cross communication link test, power monitoring test, lighting test, timer test, ambient temperature test, and the test results are uploaded; The periodic test is to receive the instructions transmitted by the host computer in real time, and perform analytical calculations and command output; The discrete quantity board detection method is specifically as follows: The discrete quantity board detection contents include: discrete quantity input self-test, discrete quantity output wraparound test, and fast transmission excitation self-test; the discrete quantity board test contents include discrete quantity input test and discrete quantity output test; Discrete input test: a) Apply test stimulus to discrete input terminal DIN of X channel of safety computer through test equipment ITF; b) Read the value of X channel and compare it with the expected value. The test result will be displayed in the software interface; c) Change Y channel of safety computer and repeat the above steps; Discrete output wraparound test: The test personnel visually observe the discrete output marquee through the test equipment ITF and compare it with the expected value; Fast transmission excitation self-test: a) Apply test excitation to the fast transmission signal collectors of the three channels A, B, and C through the integrated test equipment ITF; b) Read the actual values of the fast transmission signals of the three channels A, B, and C, and compare them with the expected values; c) Change the next set of excitation values and repeat the above steps.
2. A two-by-two-take-two computer automated testing method according to claim 1, characterized in that: The maintenance board detection contents include: processor instruction test, SDRAM test, FLASH test, and electronic disk test.
3. A two-by-two-take-two computer automated testing method according to claim 2, characterized in that: Bus board detection method, specifically: processor test, RS422 output wraparound test, MVB send test; RS422 output wraparound test includes RS422 sending test and RS422 receiving test; RS422 transmission test: a) Reset the RS-422 interface of the test equipment; b) Fill the RS-422 data sent to the test equipment into the buffer of each channel of the safety computer and send it; c) The ITF test equipment receives the data sent by the safety computer and automatically compares it. If the data received by the ITF test equipment matches the expected data, the transmission data link communication from the safety computer to the test equipment is normal; RS422 receiving test: a) Reset the serial port of the test equipment; b) The test equipment ITF sends RS-422 data to each channel of the safety computer; c) Each channel of the safety computer receives the data and sends it to the test equipment through the test interface; d) The test equipment compares the data. If the data received by the safety computer matches the expected data, the RS-422 data link communication at the computer receiving the test equipment end is normal; MVB sending test test method: a) Reset the MVB interface on the test equipment end; b) Fill the MVB data to be sent to each channel buffer of the safety computer and send it; c) ITF receives the data sent by the safety computer and automatically compares it. If the data received by ITF matches the expected data, the data link communication from the safety computer to the MVB is normal.
4. A two-by-two-take-two computer automated testing method according to claim 3, characterized in that: SAfEBus backplane bus detection method, specifically: The SAfEBus backplane bus test of the safety computer needs to cover the BIU modules and backplane bus of each bus node. It is only performed in the single board test stage and is divided into warning faults and serious faults according to the severity of the fault impact. During the single-board testing phase, the safety computer needs to conduct a comprehensive test on the backplane bus related resources. The test is divided into three stages: online check, time planning version compatibility check, and bus health status check. If and only if all of the above items pass the BIT test, the backplane bus is considered to be working normally, otherwise the corresponding fault is recorded.