A test system for verifying the universal interface function of a communication card

By providing an automated test system, the problems of high overhead and high error rate of manual testing are solved, and the synchronization interface function test and strength verification of multiple devices are realized, which improves the testing efficiency and accuracy.

CN118921307BActive Publication Date: 2025-04-15CHINA ORDNANCE EQUIP GRP AUTOMATION RES INST CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410897335.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2025-04-15
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

Manual general interface testing has problems such as high time overhead, high error rate and difficult interface strength testing, especially when the number of interfaces to be tested is large, types and numbers.

Method used

A test system for verifying the functionality of a communication card universal interface is provided. The system includes a variety of communication interfaces expanded by the test controller through the PXIe bus and a local area network. It can automatically allocate and map the interfaces, perform basic functional tests, AD/DA verification tests, parameter configurable tests and strength tests, and generate test reports.

Benefits of technology

The synchronous automated interface function test of multiple devices to be tested is realized, which can verify the interface function strength at high frequency and continuous working conditions, reduce manpower and time overhead, and improve the correctness and complexity of the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921307B_ABST
    Figure CN118921307B_ABST
Patent Text Reader

Abstract

The present invention discloses a test system for verifying the universal interface function of a communication card. The system can simultaneously verify the interface functions of multiple devices under test, and keep the devices under test in a continuous high-frequency working state, verify the functional strength of their interfaces, and finally generate a test report for the tester. It can free up the manpower and time expenditure of communication card interface testing, and perform automated, highly accurate, and more complex universal interface testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of interface testing, and in particular to a testing system capable of realizing multi-machine synchronous automatic testing and used for verifying the universal interface function of a communication card. Background Art

[0002] In order to ensure the qualification of communication card products, the interfaces on the equipment need to be functionally tested before the equipment is delivered. Among them, common communication interfaces include 232 serial ports, 485 serial ports, 422 serial ports, network interfaces, CAN, 1553B, ARINC429, AD / DA, switch interfaces, TTL interfaces, AFDX interfaces, etc. At present, manual interface testing is still the mainstream general interface testing method. Testers run sample programs on the device to be tested, and use tools such as adjustable DC power supply, CAN bus analyzer, multimeter, etc. to perform functional tests on the interfaces on the device and record the test results.

[0003] The manual testing method has the problems of high time consumption, high error rate and difficulty in interface strength testing.

[0004] 1. If the number and types of interfaces of the device to be tested are large, it will bring huge time expenditure to the testers.

[0005] 2. If there are a large number of devices to be tested, the tester needs to repeat the same test process over and over again. The repetitive and monotonous process will increase the error rate of the tester.

[0006] 3. Testers usually need to test the interfaces one by one, and cannot test the interface functions for a long time, nor can they record the working status of all interfaces of the device, which is not conducive to testing the functional strength of the device interface.

[0007] It can be seen that the manual method takes a lot of time, especially for a large number of devices to be tested. Manually performing repeated testing processes not only takes time, but may also cause testing errors. Summary of the invention

[0008] In view of the above problems, the present invention provides a test system for verifying the functions of a universal interface of a communication card, which is used to overcome the above problems or at least partially solve the above problems.

[0009] The present invention provides the following scheme:

[0010] A test system for verifying the function of a communication card universal interface, comprising:

[0011] A test controller, wherein the test controller extends a plurality of communication interfaces through a PXIe bus and a local area network, wherein the plurality of communication interfaces include interfaces of different types; and the plurality of communication interfaces are used to freely group and connect to at least one device under test to form a test path;

[0012] The test controller is used to perform the following operations:

[0013] Allocate test equipment interfaces according to the number of devices to be tested, and generate corresponding interface grouping tables;

[0014] Generate an interface mapping table based on the interfaces of the test system and the device to be tested that logically correspond to the interface grouping table;

[0015] Identify at least one item to be tested;

[0016] Configure the test parameters of the item to be tested;

[0017] Generate a document of items to be tested according to the test parameters and perform interface function testing;

[0018] After the test is completed, a test report is generated.

[0019] Preferably: determine to perform AD / DA verification test, parameter configurability test and strength test, each group of interfaces includes at least any one of a serial port, a CAN port and a network port as a control interface.

[0020] Preferably: the items to be tested include basic function test, AD / DA verification test, parameter configurability test, and strength test;

[0021] The basic function test is used to test whether the interface to be tested can work normally; the AD / DA verification test is used to test the accuracy of the AD / DA interface in collecting voltage or outputting voltage, and at the same time calibrate the AD / DA interface using a polynomial function and record the calibration parameters; the parameter configurable test is used to test whether the parameter configuration of the interface to be tested can cover a general range; the strength test is used to test the interface's ability to work continuously and its response speed.

[0022] Preferably: determining that the item to be tested includes an AD / DA calibration test, and the test parameters include an AC / DC mode, a voltage start value, a voltage end value, a voltage growth step, and the degree of a polynomial function.

[0023] Preferably: the AD / DA verification test step includes:

[0024] Read the document of the item to be tested and obtain the configuration of the AD / DA verification test;

[0025] Determine to perform AD verification, the test controller outputs a set of voltage values ​​through the DA interface as the expected voltage values, and obtains the AD acquisition value of the device under test through the control interface; Determine to perform DA verification, the test controller informs the device under test of the expected voltage through the command of the control interface, so that its DA interface outputs a set of voltages, and uses the AD interface of the test device to collect the actual voltage value;

[0026] Calculate the sum of squares of the errors between the actual value and the expected value, use it as a parameter to measure the accuracy of the AD / DA interface, and record it in the test report;

[0027] The polynomial function of expected and actual values ​​is fitted by minimizing the sum of squared errors through the gradient descent algorithm, and the fitting parameters are saved in the test report.

[0028] Preferably, determining that the item to be tested includes a strength test, the strength test steps are as follows:

[0029] Read the document of the item to be tested and obtain the configuration of the strength test;

[0030] According to the concurrent number of interfaces, continuous working time, and operating frequency in the document of the test item, the interface of the device under test starts working, verifies the correctness of the interface function under continuous and high-frequency working conditions, and records the errors that occur during the test; the interface data is generated by a built-in random array.

[0031] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0032] The embodiment of the present application provides a test system for verifying the universal interface function of a communication card. The system can simultaneously verify the interface functions of multiple devices under test, and keep the devices under test in a continuous high-frequency working state, verify the functional strength of their interfaces, and finally generate a test report for the tester. It can free up the manpower and time expenditure of communication card interface testing, and perform automated, highly accurate, and more complex universal interface testing.

[0033] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0035] Figure 1It is a framework diagram of a test system for verifying the function of a communication card universal interface provided by an embodiment of the present invention;

[0036] Figure 2 It is a test flow chart of a test system for verifying the function of a communication card universal interface provided by an embodiment of the present invention;

[0037] Figure 3 is a flow chart of AD / DA verification test provided by an embodiment of the present invention;

[0038] Figure 4 It is a strength test flow chart provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0039] The technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all of the embodiments. Based on the embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.

[0040] See also Figure 1 , Figure 2 , is a test system for verifying the function of a communication card universal interface provided by an embodiment of the present invention, such as Figure 1 , Figure 2 As shown, the system may include:

[0041] A test controller, wherein the test controller extends a plurality of communication interfaces through a PXIe bus and a local area network, wherein the plurality of communication interfaces include interfaces of different types; and the plurality of communication interfaces are used to freely group and connect to at least one device under test to form a test path;

[0042] The test controller is used to perform the following operations:

[0043] The test equipment interfaces are allocated according to the number of devices to be tested, and a corresponding interface grouping table is generated; in specific implementation, the embodiment of the present application can provide determination of AD / DA verification test, parameter configurable test and strength test, and each group of interfaces includes at least one of the serial port, CAN, and network port as a control interface.

[0044] Generate an interface mapping table based on the interfaces of the test system and the device to be tested that logically correspond to the interface grouping table;

[0045] Determine at least one item to be tested; in specific implementation, the embodiment of the present application may provide that the items to be tested include basic function test, AD / DA verification test, parameter configurable test, and strength test;

[0046] The basic function test is used to test whether the interface to be tested can work normally; the AD / DA verification test is used to test the accuracy of the AD / DA interface in collecting voltage or outputting voltage, and at the same time calibrate the AD / DA interface using a polynomial function and record the calibration parameters; the parameter configurable test is used to test whether the parameter configuration of the interface to be tested can cover a general range; the strength test is used to test the interface's ability to work continuously and its response speed.

[0047] Configure the test parameters of the item to be tested; the configurable test parameters provided in the embodiment of the present application may include AD / DA verification test parameters, RS232 communication parameters, RS422 communication parameters, RS485 communication parameters, CAN interface communication parameters, 1553B communication mode, DA maximum and minimum output values. Strength test parameters may include working time, operating frequency, and data packet size.

[0048] In specific implementation, the embodiment of the present application can provide for determining that the items to be tested include AD / DA verification tests, and the test parameters include AC / DC modes, voltage starting values, voltage ending values, voltage growth steps, and the degree of polynomial functions.

[0049] Generate a test item document according to the test parameters and perform interface function test; the AD / DA verification test step includes:

[0050] Read the document of the item to be tested and obtain the configuration of the AD / DA verification test;

[0051] Determine to perform AD verification, the test controller outputs a set of voltage values ​​through the DA interface as the expected voltage values, and obtains the AD acquisition value of the device under test through the control interface; Determine to perform DA verification, the test controller informs the device under test of the expected voltage through the command of the control interface, so that its DA interface outputs a set of voltages, and uses the AD interface of the test device to collect the actual voltage value;

[0052] Calculate the sum of squares of the errors between the actual value and the expected value, use it as a parameter to measure the accuracy of the AD / DA interface, and record it in the test report;

[0053] The polynomial function of expected and actual values ​​is fitted by minimizing the sum of squared errors through the gradient descent algorithm, and the fitting parameters are saved in the test report.

[0054] Determine that the item to be tested includes a strength test, and the strength test steps are as follows:

[0055] Read the document of the item to be tested and obtain the configuration of the strength test;

[0056] According to the number of concurrent interfaces, continuous working time, and operating frequency in the test item document, the interface of the device under test is started to work, the correctness of the interface function under continuous and high-frequency working conditions is verified, and errors that occur during the test are recorded. For example, the AD / DA interface, switch interface, and TTL interface switch random values ​​according to the built-in random array according to the operating frequency, and test and record whether their operating results are normal.

[0057] After the test is completed, a test report is generated.

[0058] In order to automatically perform configurable functional tests on the universal interfaces on multiple devices and generate test reports to ensure the qualification of communication card products. The test system for verifying the universal interface functions of communication cards provided in the embodiment of the present application can simultaneously provide 4 types of configurable functional tests and test reports for the universal interfaces on multiple communication card devices, thereby realizing automatic testing of universal interfaces.

[0059] The system provided in the embodiments of the present application is described in detail below.

[0060] The test controller expands various communication interfaces through the PXIe bus and local area network. Various communication interfaces can be freely grouped and connected to multiple devices under test to form a test path. The communication interface provided in the embodiment of the present application may include 232 serial port, 485 serial port, 422 serial port, network interface, CAN, 1553B, ARINC429, AD / DA, switch interface, TTL interface, and AFDX interface.

[0061] If three types of tests, AD / DA calibration test, parameter configurability test, and strength test, are required, the connected interface needs to include at least one serial port, CAN or network interface, which can be used as a control port to issue commands to the device under test based on the communication protocol to control the interface test process. Each type of communication interface can contain multiple, ensuring that when multiple devices under test need to test the same type of interface, each type of interface can be connected to the corresponding interface of different devices under test.

[0062] See also Figure 2 , the system testing steps provided in the embodiment of the present application are as follows:

[0063] 1. Configure the interface mapping table and interface grouping table.

[0064] Assign test equipment interfaces according to the number of devices to be tested, fill in the interface type and generate the corresponding interface grouping table. If three types of tests, AD / DA verification test, parameter configurable test and strength test, are required, each group of interfaces shall include at least one of the serial port, CAN port and network port as the control interface. According to the interface grouping table, fill in the interface mapping table according to the logically corresponding interfaces of the test equipment and the device to be tested.

[0065] It is understandable that the system provided by the embodiment of the present application may include an input device, which can display an operation interface to the user, and can provide the user with a selection window and a window for manual input on the operation interface. After determining the number of devices to be tested, the user can manually input the interface type through the corresponding manual input window or check the corresponding interface type by checking the selection window, and the system can generate an interface grouping table according to the interface type input by the user.

[0066] 2. Select the item to be tested.

[0067] Select at least one item to be tested, including basic function test, AD / DA verification test, parameter configurable test, and strength test. Similarly, when selecting items to be tested, users can select through the corresponding window on the interface, and after clicking, the system can determine the items to be tested that need to be executed in this test.

[0068] Among them, the basic function test is used to test whether the interface to be tested can work normally, for example, whether the 232 serial port can send and receive data normally, and whether the AD interface can collect voltage correctly; the AD / DA verification test is used to test the accuracy of the AD / DA interface collecting voltage or output voltage, and calibrate the AD / DA interface using a polynomial function, and record the calibration parameters in the final test report; the parameter configurable test is used to test whether the parameter configuration of the interface to be tested can cover a common range, such as the voltage range of the DA interface output; the strength test is used to test the interface's ability to work continuously and its response speed, such as testing the frame loss rate of high-frequency received data on the serial port.

[0069] 3. Configure the items to be tested.

[0070] The test parameters of the selected items to be tested are configured, for example, the AD / DA calibration test needs to configure the AC / DC mode, voltage start value, voltage end value, voltage growth step, and the number of polynomial functions. It is understandable that the test parameters required to be configured for other types of items to be tested can be determined based on expert experience or conventional testing methods.

[0071] 4. Test equipment interface.

[0072] Generate the test item document according to the configuration of the test item, and start testing the interface of the device under test. The test item document can be generated by pre-configuring the corresponding test script and storing it in the system. When the test item document needs to be generated, it only needs to be selected from the pre-stored script according to the test item.

[0073] 5. Generate test report

[0074] After the test of the device under test is completed, a test report is generated. The test report can be used to display the test results of all interfaces included in all devices under test. When it is necessary to determine whether there is a problem with a certain interface of a device under test, it can be determined by tracing back to the device under test where the interface under test is connected to the corresponding device under test interface number.

[0075] The specific test methods of two typical test items are introduced in detail below.

[0076] See also Figure 3 , the AD / DA verification test steps are as follows:

[0077] 1. Read the document of the item to be tested and obtain the configuration of the AD / DA verification test.

[0078] 2. If AD / DA verification test is selected in the test items, proceed to step 3; otherwise, end the AD / DA verification test process.

[0079] 3. Record the expected and actual voltage values. In the AD / DA verification test, if AD verification is checked, the test equipment outputs a set of voltage values ​​through the DA interface as the expected voltage values, and obtains the AD acquisition values ​​of the device under test through the control interface. If DA verification is checked, the test equipment informs the device under test of the expected voltage through the command of the control interface, so that its DA interface outputs a set of voltages, and uses the test equipment AD interface to collect the actual voltage value.

[0080] 4. Calculate the sum of squared errors. Calculate the sum of squared errors between the actual value and the expected value recorded in step 3, and record it in the test report as a parameter to measure the accuracy of the AD / DA interface.

[0081] 5. Fitting polynomial function: Use the gradient descent method to continuously reduce the sum of square errors to fit the polynomial function curve of expected value and actual value, and record the fitting parameters in the test report.

[0082] See also Figure 4 , the strength test steps are as follows:

[0083] 1. Read the document of the item to be tested and obtain the configuration of the strength test.

[0084] 2. If strength test is selected in the test items, proceed to step 3; otherwise, end the strength test process.

[0085] 3. Perform strength test on the interface. According to the number of concurrent interfaces, continuous working time, and operating frequency in the test item document, start the interface of the device under test to verify the correctness of the interface function under continuous and high-frequency working conditions, and record the errors that occur during the test. For example, there may be frame loss problems on the serial port, and the square sum of the errors of the collected values ​​on the AD interface exceeds the error threshold. Among them, the AD / DA interface, switch interface, and TTL interface switch the random value according to the built-in random array and the operating frequency, and test and record whether their operating results are normal.

[0086] In summary, the test system for verifying the universal interface function of a communication card provided by the present application can simultaneously verify the interface functions of multiple devices under test, and keep the devices under test in a continuous high-frequency working state, verify the functional strength of their interfaces, and finally generate a test report for the tester. It can free up the manpower and time expenditure of communication card interface testing, and perform automated, highly accurate, and more complex universal interface testing.

[0087] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0088] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.

[0089] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0090] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A test system for verifying the function of a communication card universal interface, characterized in that: include: A test controller, wherein the test controller extends a plurality of communication interfaces through a PXIe bus and a local area network, wherein the plurality of communication interfaces include interfaces of different types; and the plurality of communication interfaces are used to freely group and connect to at least one device under test to form a test path; The test controller is used to perform the following operations: Allocate test equipment interfaces according to the number of devices to be tested, and generate a corresponding interface grouping table; each group of interfaces includes at least one of the serial port, CAN, and network port as a control interface; Generate an interface mapping table based on the interfaces of the test system and the device to be tested that logically correspond to the interface grouping table; Determine at least one item to be tested; the items to be tested include basic function test, AD / DA verification test, parameter configurability test and strength test; the basic function test is used to test whether the interface to be tested can work normally; the AD / DA verification test is used to test the accuracy of the AD / DA interface acquisition voltage or output voltage, and calibrate the AD / DA interface using a polynomial function and record calibration parameters; the parameter configurability test is used to test whether the parameter configuration of the interface to be tested can cover a general range; the strength test is used to test the ability of the interface to work continuously and the response speed; Configuring the test parameters of the item to be tested; determining that the item to be tested includes an AD / DA calibration test, wherein the test parameters include an AC / DC mode, a voltage start value, a voltage end value, a voltage growth step, and the degree of a polynomial function; The AD / DA verification test steps include: Read the document of the item to be tested and obtain the configuration of the AD / DA verification test; Determine to perform AD verification, the test controller outputs a set of voltage values ​​through the DA interface as the expected voltage values, and obtains the AD acquisition value of the device under test through the control interface; Determine to perform DA verification, the test controller informs the device under test of the expected voltage through the command of the control interface, so that its DA interface outputs a set of voltages, and uses the AD interface of the test device to collect the actual voltage value; Calculate the sum of squares of the errors between the actual value and the expected value, use it as a parameter to measure the accuracy of the AD / DA interface, and record it in the test report; The polynomial function of expected value and actual value is fitted by minimizing the sum of squared errors through the gradient descent algorithm, and the fitting parameters are saved in the test report; Generate a document of items to be tested according to the test parameters and perform interface function testing; After the test is completed, a test report is generated.

2. The test system for verifying the universal interface function of a communication card according to claim 1, characterized in that: Determine that the item to be tested includes a strength test, and the strength test steps are as follows: Read the document of the item to be tested and obtain the configuration of the strength test; According to the concurrent number of interfaces, continuous working time and operating frequency in the document of the test item, the interface of the device under test starts to work, verifies the correctness of the interface function under continuous and high-frequency working conditions, and records the errors that occur during the test; The interface data is generated by a built-in random array.

Citation Information

Patent Citations

  • Interface testing method and device, equipment and medium

    CN111949537A

  • High-speed ADDA automatic test platform

    CN112834901A