Automatic testing method and device for software radio equipment based on script drive

Through the script-driven automatic test method, using the test script mapping model and the multi-module test system, the problem that traditional communication radio stations cannot be automatically tested is solved, and fast, efficient testing and accurate result acquisition of software radio stations are realized.

CN118102370BActive Publication Date: 2024-09-24THE QUARTERMASTER RES INST OF THE GENERAL LOGISTICS DEPT OF THE CPLA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311489115.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-09
Publication Date
2024-09-24
Estimated Expiration
2043-11-09

AI Technical Summary

Technical Problem

Traditional communication radio stations cannot be automatically tested through universal test systems and lack the unique functional module inspection capabilities of software radio systems, making it difficult to quickly and efficiently test software radio stations.

Method used

Adopt a script-driven automatic testing method, obtain test requirement information through the test system, use the test script mapping model to generate test script files, combine the hardware platform, software platform and electrical performance test module for testing, generate test results, and pass the difference matrix, Deviation quantification, factor normalization and weighted normalization are processed to improve the accuracy of test results.

Benefits of technology

It achieves a fast, efficient, tailorable and highly automated test process, reduces human intervention, improves the objectivity and accuracy of test results, and is adaptable to multiple manufacturers and diverse software radio stations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118102370B
    Figure CN118102370B
Patent Text Reader

Abstract

The present invention discloses an automatic testing method and device for software radio equipment based on script drive, which is implemented by using a test system. The method includes: obtaining test requirement information; the test requirement information includes: test category requirement information, test item requirement information, timing interval requirement information and test parameter requirement set; using a test script mapping model, processing the test requirement information to obtain a test script file; according to the test script file, testing and processing the software radio equipment to be tested to obtain a test result. The test system includes: an integrated management module, a hardware platform test module, a software platform test module, an electrical performance test module and a test instrument set; the test instrument set includes a test instrument. The method of the present invention realizes script-driven automatic testing, is suitable for different test tasks of software radio equipment, and has the advantages of rapid adaptation, efficient execution and less human intervention.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to software radio technology, in particular to an automatic testing method and device for software radio equipment based on script driving. Background Art

[0002] The Software Definition Radio (SDR) platform is the physical entity that carries the communication waveform function. By decoupling hardware resources and waveform software, it supports the migration of different waveforms on the platform under the constraints of a unified architecture and standard interfaces. Ultimately, it achieves the goal of "one architecture unifying multiple platforms, one platform loading multiple waveforms, and one waveform adapting to multiple platforms," ​​thereby ensuring interoperability at the application level.

[0003] Compared to traditional communication radios, software-defined radios are highly integrated, multi-mode, wide-band, reconfigurable, and interface-unified communication systems. Their high degree of integration necessitates a testing system for problem identification and performance evaluation during the development process. Traditional radios, due to their deep integration of software and hardware resources, cannot be automatically tested using general-purpose test systems, nor do they possess the ability to inspect the functional modules unique to software-defined radio systems. Testing the software platform, hardware platform, and typical electrical performance indicators of software-defined radio platforms presents a significant challenge, as numerous software-defined radio manufacturers, diverse implementation methods, varying component selections, and varying levels of software and hardware compatibility present a significant challenge. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to provide a script-driven automatic testing method and device for software radio equipment, which is conducive to quickly and efficiently completing the testing of software radio stations.

[0005] In order to solve the above technical problems, the first aspect of the embodiment of the present invention discloses a script-driven automatic testing method for software radio equipment, which is implemented using a test system and includes:

[0006] S1, obtaining test requirement information; the test requirement information includes: test category requirement information, test item requirement information, timing interval requirement information and test parameter requirement set;

[0007] S2, using a test script mapping model to process the test requirement information to obtain a test script file;

[0008] S3, performing test processing on the software radio device to be tested according to the test script file to obtain a test result.

[0009] The test system includes: an integrated management module, a hardware platform test module, a software platform test module, an electrical performance test module and a test instrument set; the test instrument set includes a test instrument;

[0010] The integrated management module is connected to the hardware platform test module, the software platform test module and the electrical performance test module respectively, and is used to generate test control instructions, control the hardware platform test module, the software platform test module and the electrical performance test module, and perform test processing on the software radio device to be tested;

[0011] The hardware platform testing module is used to perform hardware testing on the software radio device to be tested;

[0012] The software platform testing module is used to perform software testing on the software radio device to be tested;

[0013] The electrical performance test module is connected to the test instrument set and is used to perform electrical testing on the software radio device to be tested;

[0014] The software radio device to be tested is connected to the hardware platform test module, the software platform test module, the electrical performance test module and the test instrument set respectively.

[0015] The test script mapping model is used to process the test requirement information to obtain a test script file, including:

[0016] S21, using the test script mapping model, reading test category requirement information in the test requirement information, and determining that the test category requirement information is test category information; the value of the test category requirement information is one of software platform test, hardware platform test, or electrical performance test;

[0017] S22, using the test script mapping model, reading the test item requirement information in the test requirement information, and determining that the test item requirement information is test item information; the test item information is a sequence of test items;

[0018] S23, when the test item information is a radio frequency link interface test or a waveform loading and unloading time test, using the test script mapping model, determining that the value of the collaborative test information is 1; when the test item information is neither the radio frequency link interface test nor the waveform loading and unloading time test, using the test script mapping model, determining that the value of the collaborative test information is 0; when the value of the collaborative test information is 1, it indicates that the collaborative test is to be performed; when the value of the collaborative test information is 0, it indicates that the collaborative test is not to be performed;

[0019] S24, when the collaborative test information takes a value of 1, generating a test priority sequence and collaborative test time slice information using the test script mapping model;

[0020] S25, using the test script mapping model, reading the timing interval requirement information in the test requirement information, and determining the timing interval requirement information as a test timing interval sequence; each element in the test timing interval sequence is used to represent the running time interval between the test item corresponding to the element in the test item information and the next test item when testing the software radio device;

[0021] S26, using the test script mapping model, reading and obtaining a test parameter requirement set in the test requirement information, and determining the test parameter requirement set as a test parameter set; the test parameter set includes test parameters of all test items;

[0022] S27, combining the test category information, test item information, collaborative test information, test priority sequence, collaborative test time slice information, test timing interval sequence and test parameter set to obtain a test script file.

[0023] The generating of the test priority sequence and the collaborative test time slice information by using the test script mapping model includes:

[0024] S241, using the test script mapping model, setting the hardware platform test module to a first operating priority and the electrical performance test module to a second operating priority; and constructing a test priority sequence using the first operating priority and the second operating priority;

[0025] S242, using the test script mapping model to read the collaborative test time slice information in the test requirement information; the collaborative test time slice information is used to indicate the operating time interval of the hardware platform test module and the electrical performance test module when performing collaborative testing.

[0026] The step of performing a test on the software radio device to be tested according to the test script file to obtain a test result includes:

[0027] S31, reading and obtaining the test category information in the test script file;

[0028] S32, extracting the test item information in the test script file based on the test category information to obtain the test item information included in the test category information;

[0029] S33, extracting the test timing interval sequence and the test parameter set in the test script file based on the test item information to obtain the running time interval and test parameters of the test item;

[0030] S34, executing the test items obtained in S32 on the software radio device to be tested according to the operating time interval and the test parameters obtained in S33;

[0031] S35, recording the feedback signal of the software radio device to be tested to obtain a test feedback signal sequence;

[0032] S36, obtaining a standard feedback signal sequence corresponding to the test item obtained in S32;

[0033] S37, performing discrimination processing on the test feedback signal sequence and the standard feedback signal sequence to obtain a test result.

[0034] The performing discrimination processing on the test feedback signal sequence and the standard feedback signal sequence to obtain a test result includes:

[0035] S371, performing difference calculation processing on the test feedback signal sequence and the standard feedback signal sequence to obtain a difference matrix set; the difference matrix set includes a difference matrix;

[0036] kth difference matrix B k The expression is:

[0037]

[0038] Where, Represents the relative importance weight evaluation factor of the i-th test item and the j-th test item in the k-th difference matrix, is obtained by calculating the cross-correlation value between the test feedback signal sequence of the i-th test item and the standard feedback signal sequence of the j-th test item in the k-th time interval, m represents the number of difference matrices, and n represents the number of test items included in the test item information in the test script file;

[0039] S372, performing reference vector calculation processing on the difference matrix set to obtain a reference vector r;

[0040] S374, performing weight calculation processing on the difference matrix set to obtain a weighted vector

[0041] S375, the reference vector r and the weighted vector Perform weighted calculation and discrimination processing to obtain a test result of the software radio device to be tested.

[0042] The performing reference vector calculation processing on the difference matrix set to obtain a reference vector r includes:

[0043] S3721, performing feature calculation processing on each difference matrix of the difference matrix set to obtain a corresponding weight factor vector;

[0044] S3722, performing deviation quantization calculation processing on the weight factor vectors corresponding to all difference matrices to obtain a deviation matrix; the calculation expression of the deviation quantization calculation processing is:

[0045]

[0046] Where h ki represents the element that deviates from the kth row and ith column of the matrix H, q ki Denotes the k-th difference matrix B k The i-th element of the weight factor vector;

[0047] S3723, determining whether each element in the deviation matrix is ​​greater than a preset abnormality threshold, and obtaining a determination result; if the determination result is greater than, setting the corresponding element value to 0; if the determination result is less than or equal to, not performing an operation on the corresponding element;

[0048] S3724, after completing the discrimination process on all elements in the deviation matrix, a discrimination deviation matrix is ​​obtained.

[0049] S3725, the discriminant deviation matrix Perform the mean operation in the column direction to obtain the reference vector r, r=[r1,r2,…,r n ], where r i is the i-th element of the reference vector r.

[0050] The weighted vector is obtained by performing weight calculation on the difference matrix set. include:

[0051] S3741, performing factor normalization processing on the elements in the weight factor vectors corresponding to all difference matrices in the difference matrix set to obtain a standardized matrix S;

[0052] The calculation expression of the factor normalization process is:

[0053]

[0054] Among them, s ki represents the element in the kth row and ith column of the normalized matrix S, q ki Denotes the k-th difference matrix B kThe i-th element of the weight factor vector;

[0055] S3742, performing correlation calculation processing on the normalized matrix S and the reference vector r to obtain a correlation matrix V; the calculation expression for the correlation calculation processing is:

[0056]

[0057] Among them, v ki represents the element in the kth row and ith column of the correlation matrix, and ρ is the correlation calculation factor;

[0058] S3743, performing correlation normalization calculation processing on the correlation matrix V to obtain a correlation vector y;

[0059] The expression for the association normalization calculation process is:

[0060]

[0061] Among them, y i represents the i-th element of the association vector y;

[0062] S3744, performing weighted normalization processing on the correlation vector y to obtain a weighted vector

[0063] The calculation expression of the weighted normalization process is:

[0064]

[0065] in, is the weight vector The i-th element of .

[0066] A second aspect of an embodiment of the present invention discloses an automatic testing device for a software radio device based on script driving, the device comprising:

[0067] a memory storing executable program code;

[0068] a processor coupled to the memory;

[0069] The processor calls the executable program code stored in the memory to execute the automatic testing method of the software radio device based on script driving.

[0070] A third aspect of an embodiment of the present invention discloses a computer storable medium, wherein the computer storage medium stores computer instructions. When the computer instructions are called, they are used to execute the automatic testing method of the script-driven software radio device.

[0071] The beneficial effects of the present invention are:

[0072] 1. The traditional communication radio test environment and test process are customized and only test a certain type of communication radio. They are not universal and scalable. In view of the characteristics of software radio radios developed by multiple manufacturers, with different technical systems and diverse software adaptation, the testing method of the present invention has the advantages of being customizable, standardized, transparent, and requiring less human intervention. The present invention provides a script-driven automatic test process design method that can be quickly adapted, efficiently executed, and requires less human intervention, making the test more fair and reliable.

[0073] 2. In the process of generating test results, the method of the present invention comprehensively considers the test signals of multiple time periods, obtains the difference matrix by comparing the measured feedback signal with the standard feedback signal, performs deviation quantization calculation processing on the difference matrix, reduces the image of a single difference value, and makes the test results more objective; uses the difference matrix to perform factor normalization processing, correlation calculation processing, correlation normalization and weighted normalization processing, reduces the image of measurement noise and outliers, and improves the accuracy of the test results. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] Figure 1 Flow chart for the implementation of the method of the present invention;

[0075] Figure 2 It is a composition principle diagram of the test system of the present invention;

[0076] Figure 3 This is a schematic diagram of test script file distribution for the method of the present invention;

[0077] Figure 4 Schematic diagram of a test report generated for the present invention. DETAILED DESCRIPTION

[0078] In order to better understand the content of the present invention, an embodiment is given here.

[0079] Figure 1 Flow chart for the implementation of the method of the present invention; Figure 2 It is a composition principle diagram of the test system of the present invention; Figure 3 This is a schematic diagram of test script file distribution for the method of the present invention; Figure 4 Schematic diagram of a test report generated for the present invention.

[0080] The present invention provides a test process design method with standardized processes, full standard coverage and high degree of automation.

[0081] In order to overcome the shortcomings of existing test systems such as decentralized functions and high human involvement, the purpose of the present invention is to provide a script-driven automatic testing method and device for software radio equipment, standardize the test process, reduce human intervention, and achieve fast and efficient testing of software radio stations in the face of a large number of software radio manufacturers, diverse implementation methods, different device selections, and varying levels of software and hardware adaptation.

[0082] The present invention discloses an automatic testing method for software radio equipment based on script driving, comprising:

[0083] S1, obtaining test requirement information; the test requirement information includes: test category requirement information, test item requirement information, timing interval requirement information, and test parameter requirement set;

[0084] The test category requirement information includes software platform testing, hardware platform testing, and electrical performance testing;

[0085] When the test category requirement information is software platform testing, the test item requirement information includes: core framework testing, operating system interface testing, transmission mechanism interface testing, and transmission mechanism performance testing;

[0086] When the test category requirement information is hardware platform test, the test item requirement information includes: logical address test, hardware abstraction layer interface test, radio frequency link interface test, hardware abstraction layer performance test and waveform loading and unloading time test;

[0087] When the test category requirement information is electrical performance test, the test item requirement information includes: operating frequency band, bandwidth range, output power, frequency accuracy, harmonic suppression, and EVM;

[0088] The core framework refers to the open software interfaces and control service software defined in the software radio device to be tested. The open software interfaces and control service software are used to deploy, manage and integrate software components in the software radio device. The core framework test is to test the performance of the open software interfaces and control service software.

[0089] The transmission mechanism interface refers to a series of standard message formats, protocols and function interfaces provided by the software radio device to be tested for communication between software components;

[0090] The abstract layer interface refers to a function interface that implements inter-component interoperability of the software radio device to be tested based on a standard message format through a bus or shared memory;

[0091] The radio frequency link interface refers to the interface control file for scheduling and controlling the radio frequency resources of the communication channel of the software radio equipment to be tested;

[0092] The instrument program library refers to a set of programs developed by users based on the interface provided by the test instrument manufacturer that can automatically control the instrument;

[0093] S2, using a test script mapping model to process the test requirement information to obtain a test script file;

[0094] S3, performing test processing on the software radio device to be tested according to the test script file to obtain a test result.

[0095] The test system includes: an integrated management module, a hardware platform test module, a software platform test module, an electrical performance test module and a test instrument set; the test instrument set includes a test instrument;

[0096] The integrated management module is connected to the hardware platform test module, the software platform test module and the electrical performance test module respectively, and is used to generate test control instructions, control the hardware platform test module, the software platform test module and the electrical performance test module, and perform test processing on the software radio device to be tested;

[0097] The hardware platform testing module is used to perform hardware testing on the software radio device to be tested;

[0098] The software platform testing module is used to perform software testing on the software radio device to be tested;

[0099] The electrical performance test module is connected to the test instrument set and is used to perform electrical testing on the software radio device to be tested;

[0100] The software radio device to be tested is connected to the hardware platform test module, the software platform test module, the electrical performance test module and the test instrument set respectively.

[0101] like Figure 2As shown, the test system consists of an integrated management module, a hardware platform test module, a software platform test module, an electrical performance test module and a test instrument. The software radio device to be tested consists of a software radio platform. The test system and the software radio device to be tested are connected via Ethernet and RF lines. The integrated management module of the test system is connected to the hardware platform test module, the software platform test module and the electrical performance test module via Ethernet. The electrical performance test module is connected to the test instrument via an instrument bus. It needs to be further explained that the software radio device to be tested is connected to the N×N programmable RF switching matrix of the test instrument in the test system via multiple RF lines, and measuring instruments such as power meters and spectrum analyzers are connected to the programmable RF switching matrix via RF lines. The software radio device to be tested does not directly establish a connection with measuring instruments such as power meters and spectrum analyzers.

[0102] Said S2 comprises:

[0103] S21, using the test script mapping model, reading test category requirement information in the test requirement information, and determining that the test category requirement information is test category information; the value of the test category requirement information is one of software platform test, hardware platform test, or electrical performance test;

[0104] S22, using the test script mapping model, reading the test item requirement information in the test requirement information, and determining that the test item requirement information is test item information; the test item information is a sequence of test items;

[0105] S23, when the test item information is a radio frequency link interface test or a waveform loading and unloading time test, using the test script mapping model, determining that the value of the collaborative test information is 1; when the test item information is neither the radio frequency link interface test nor the waveform loading and unloading time test, using the test script mapping model, determining that the value of the collaborative test information is 0; when the value of the collaborative test information is 1, it indicates that the collaborative test is to be performed; when the value of the collaborative test information is 0, it indicates that the collaborative test is not to be performed;

[0106] S24, when the collaborative test information takes a value of 1, generating a test priority sequence and collaborative test time slice information using the test script mapping model;

[0107] S25. Using the test script mapping model, read the timing interval requirement information in the test requirement information and determine that the timing interval requirement information is a test timing interval sequence. Each element in the test timing interval sequence is used to represent the running time interval between the test item corresponding to the element in the test item information and the next test item when testing the software radio device. The elements in the test timing interval sequence correspond to the test items in the sequence of the test item information based on their sequence numbers. The number of elements in the test timing interval sequence is one less than the number of test items included in the test item information.

[0108] S26, using the test script mapping model, reading and obtaining a test parameter requirement set in the test requirement information, and determining the test parameter requirement set as a test parameter set; the test parameter set includes test parameters of all test items;

[0109] S27, combining the test category information, test item information, collaborative test information, test priority sequence, collaborative test time slice information, test timing interval sequence and test parameter set to obtain a test script file.

[0110] The generating of the test priority sequence and the collaborative test time slice information by using the test script mapping model includes:

[0111] S241, using the test script mapping model, setting the hardware platform test module to a first operating priority and the electrical performance test module to a second operating priority; and constructing a test priority sequence using the first operating priority and the second operating priority;

[0112] Each element in the test priority sequence is used to represent the priority value of the corresponding test item in the collaborative test; the smaller the priority value, the earlier the test starts.

[0113] S242, using the test script mapping model, reading the collaborative test time slice information in the test requirement information; the collaborative test time slice information is used to indicate the running time interval of the hardware platform test module and the electrical performance test module when performing the collaborative test;

[0114] The step of performing a test on the software radio device to be tested according to the test script file to obtain a test result includes:

[0115] S31, reading and obtaining the test category information in the test script file;

[0116] S32, extracting the test item information in the test script file based on the test category information to obtain the test item information included in the test category information;

[0117] S33, extracting the test timing interval sequence and the test parameter set in the test script file based on the test item information to obtain the running time interval and test parameters of the test item;

[0118] S34, executing the test items obtained in S32 on the software radio device to be tested according to the operating time interval and the test parameters obtained in S33;

[0119] S35, recording the feedback signal of the software radio device to be tested to obtain a test feedback signal sequence;

[0120] S36, obtaining a standard feedback signal sequence corresponding to the test item obtained in S32;

[0121] S37, performing discrimination processing on the test feedback signal sequence and the standard feedback signal sequence to obtain a test result.

[0122] The standard feedback signal sequence corresponding to the test item obtained in S32 can be directly obtained from the database of the integrated management module; the database of the integrated management module stores the standard feedback signal sequence corresponding to each test item.

[0123] Said S34 further includes:

[0124] When the test item information is a radio frequency link interface test or a waveform loading and unloading time test, the test is first performed using the hardware platform test module according to the test priority sequence, and then, according to the collaborative test time slice information, the test is performed using the electrical performance test module after the operating time interval of the hardware platform test module and the electrical performance test module has passed.

[0125] The performing discrimination processing on the test feedback signal sequence and the standard feedback signal sequence to obtain a test result includes:

[0126] S371, performing difference calculation processing on the test feedback signal sequence and the standard feedback signal sequence to obtain a difference matrix set; the difference matrix set includes a difference matrix;

[0127] kth difference matrix B k The expression is:

[0128]

[0129] Where, Represents the relative importance weight evaluation factor of the i-th test item and the j-th test item in the k-th difference matrix, is obtained by calculating the cross-correlation value between the test feedback signal sequence of the i-th test item and the standard feedback signal sequence of the j-th test item in the k-th time interval, m represents the number of difference matrices, and n represents the number of test items included in the test item information in the test script file; Represents the matrix B k The dimension is n rows and n columns, and the meanings of similar expressions below can be deduced by analogy. The cross-correlation value is calculated by multiplying and accumulating the corresponding elements of the two sequences.

[0130] The test feedback signal sequence and the standard feedback signal sequence are obtained by sampling the test feedback signal and the standard feedback signal respectively within preset k time intervals; each time interval corresponds to a test feedback signal sequence and a standard feedback signal sequence; the standard feedback signal sequence can also be directly read from the database of the integrated management module.

[0131] S372, performing reference vector calculation processing on the difference matrix set to obtain a reference vector r;

[0132] S374, performing weight calculation processing on the difference matrix set to obtain a weighted vector

[0133] S375, the reference vector r and the weighted vector Perform weighted calculation and discrimination processing to obtain a test result of the software radio device to be tested.

[0134] The performing reference vector calculation processing on the difference matrix set to obtain a reference vector r includes:

[0135] S3721, performing feature calculation processing on each difference matrix of the difference matrix set to obtain a corresponding weight factor vector;

[0136] S3722, performing deviation quantization calculation processing on the weight factor vectors corresponding to all difference matrices to obtain a deviation matrix; the calculation expression of the deviation quantization calculation processing is:

[0137]

[0138] Where h ki represents the element that deviates from the kth row and ith column of the matrix H, q ki Denotes the k-th difference matrix B k The i-th element of the weight factor vector;

[0139] S3723, determining whether each element in the deviation matrix is ​​greater than a preset abnormality threshold, and obtaining a determination result; if the determination result is greater than, setting the corresponding element value to 0; if the determination result is less than or equal to, not performing an operation on the corresponding element;

[0140] S3724, after completing the discrimination process on all elements in the deviation matrix, a discrimination deviation matrix is ​​obtained.

[0141] S3725, the discriminant deviation matrix Perform the mean operation in the column direction to obtain the reference vector r, r=[r1,r2,…,r n ]; where r i is the i-th element of the reference vector r, which is obtained by The average value of the elements in the i-th column of is obtained.

[0142] The operation of finding the average value in the column direction is Take the mean of each column of , and combine all the means to get the reference vector;

[0143] The performing feature calculation processing on each difference matrix of the difference matrix set to obtain a corresponding weight factor vector includes:

[0144] For each difference matrix, calculate its eigenvalue and eigenvector;

[0145] Determine the eigenvector corresponding to the maximum eigenvalue as the standard eigenvector;

[0146] The standard eigenvector is normalized to obtain a weight factor vector corresponding to the difference matrix.

[0147] The feature calculation process is performed on each difference matrix of the difference matrix set to obtain the corresponding weight factor vector, which may also be:

[0148] Decompose each difference matrix to obtain the corresponding left decomposition matrix, feature matrix and right decomposition matrix;

[0149] The calculation expression of the decomposition process is:

[0150] Y=UAV,

[0151] Among them, U is the left decomposition matrix, A is the characteristic matrix, V is the right decomposition matrix, U and V are both orthogonal matrices, and A is a diagonal matrix;

[0152] The decomposition process can be implemented by using a matrix singular value decomposition algorithm.

[0153] The diagonal elements of the characteristic matrix are extracted to obtain the characteristic vector; the characteristic vector is represented by I a , I a =[λ1,λ2,…,λ N1 ], N1 is the number of elements contained in the eigenvector;

[0154] Performing linear fitting processing on the elements and element sequence numbers of the eigenvector to obtain the best consistent approximation polynomial;

[0155] The linear fitting process is to use the characteristic vector element serial number value Ix as a known independent variable and the characteristic vector element value as a known dependent variable, and to construct the curve to be approximated using the known independent variable and the known dependent variable, and to perform curve fitting on the curve to be approximated using the function approximation method to obtain the best consistent approximation polynomial f(Ix).

[0156] The curve fitting of the curve to be approximated by the function approximation method can be performed using the best consistent linear approximation method. The best consistent approximation polynomial f(Ix) is expressed as:

[0157] f(Ix)=α P1 (Ix) P1 +α P1-1 (Ix) P1-1 +…+α2(Ix) 2 +α1(Ix)+α0,

[0158] Wherein, P1 is the order of the best consistent approximation polynomial f(Ix), α0, α1, α2,…, α P1 are the coefficients of the best consistent approximation polynomial f(Ix);

[0159] For the difference matrix, calculating its eigenvalues ​​and eigenvectors;

[0160] Normalize and round up the eigenvector corresponding to the maximum eigenvalue to obtain a sequence of eigennumber values;

[0161] The normalization and rounding-up processing is to divide each element of the eigenvector by the maximum element in the eigenvector, take the absolute value of the calculation result, and then round it up.

[0162] The characteristic sequence number value sequence is used as an input value, and a calculation process is performed using the best consistent approximation polynomial to obtain a weight factor vector corresponding to the difference matrix.

[0163] The weighted vector is obtained by performing weight calculation on the difference matrix set. include:

[0164] S3741, performing factor normalization processing on the elements in the weight factor vectors corresponding to all difference matrices in the difference matrix set to obtain a standardized matrix S;

[0165] The calculation expression of the factor normalization process is:

[0166]

[0167] Among them, s ki represents the element in the kth row and ith column of the normalized matrix S, q ki Denotes the k-th difference matrix B k The i-th element of the weight factor vector;

[0168] S3742, performing correlation calculation processing on the normalized matrix S and the reference vector r to obtain a correlation matrix V; the calculation expression for the correlation calculation processing is:

[0169]

[0170] Among them, v ki represents the element in the kth row and ith column of the association matrix, and ρ is the association calculation factor, which can be 0.5.

[0171] S3743, performing correlation normalization calculation processing on the correlation matrix V to obtain a correlation vector y;

[0172] The expression for the association normalization calculation process is:

[0173]

[0174] Among them, y i represents the i-th element of the association vector y;

[0175] S3744, performing weighted normalization processing on the correlation vector y to obtain a weighted vector

[0176] The calculation expression of the weighted normalization process is:

[0177]

[0178] in, is the weight vector The i-th element of .

[0179] The reference vector r and the weight vector Performing weighted calculation and discrimination processing to obtain a test result of the software radio device to be tested, including:

[0180] S351, using the weighted vector Perform weighted summation on the reference vector r to obtain the reference vector r and the weighted vector Performing weighted calculation and discrimination processing to obtain a test result value of the software radio device to be tested;

[0181] S352, determine whether the test result value of the software radio device to be tested is greater than a qualified threshold value, and obtain a determination result; when the determination result is greater than, determine that the test result of the software radio device to be tested is qualified; when the determination result is not greater than, determine that the test result of the software radio device to be tested is unqualified.

[0182] The qualified threshold may be 0.5.

[0183] The S3723 may also be:

[0184] An inequality group judgment is performed on the elements and row vectors in the deviation matrix. The expression for the inequality group judgment is:

[0185] |h ki |≤a k , i=1,2,…,n,

[0186]

[0187] Among them, a k and b k Respectively represent the first judgment threshold and the second judgment threshold of the kth row; when the element in the deviation matrix does not satisfy the first inequality in the expression of the inequality group discrimination, the element value is set to 0; when a row in the deviation matrix does not satisfy the second inequality in the expression of the inequality group discrimination, each element of the row is subtracted by a k / 2, completes the update of the row in question.

[0188] The test items obtained by executing S32 on the software radio equipment to be tested according to the operating time interval and test parameters obtained in S33 are distributed to the corresponding test scripts to each test module; the test script distribution is that the integrated management software identifies the test item field according to the content of the script file and distributes the corresponding content to the software platform test module, the hardware platform test module and the electrical performance test module respectively; the distribution method is to distribute by time slice and distribute by sequence, and the distribution by time slice means that the time after executing the distribution instruction is counted as 0 time, and the subsequent distribution is based on the time slice; the distribution by sequence means that after executing the distribution instruction, the script files are distributed in the order of 1 second; Figure 3As shown in the distribution test script, the comprehensive management module reads the test script XML file, parses the test category and time slice field information, and distributes the test script to the software platform test module, hardware platform test module and electrical performance test module as needed. The software platform test module, hardware platform test module and electrical performance test module receive the test script, parse and store a subset of the test script XML.

[0189] The test items obtained by executing S32 on the software radio device to be tested are that the comprehensive management module issues test control instructions, and the software platform test module, hardware platform test module and electrical performance test module execute tests according to the script content after receiving the instructions. The key lies in parsing and converting the script to obtain the test instructions of each test module. After receiving the test instructions, each test module sends a corresponding test signal to the software radio device; after receiving the test signal, the software radio device generates a feedback signal; the comprehensive management module records the feedback signal of the software radio device to be tested to obtain a test feedback signal sequence.

[0190] After obtaining the test results, the comprehensive management module transmits and displays the test results.

[0191] The transmission test results are transmitted by the software platform test module, the hardware platform test module and the electrical performance test module to the integrated management module according to the completion of the test, which is divided into message transmission and text transmission. Message transmission is the transmission after each test item is completed, which has high real-time performance; text transmission refers to the transmission after all tests of the software platform / hardware platform / electrical performance test are completed, which has high reliability. The core message format of message transmission is "test category, test item, {test result set};", if the last parameter is transmitted, the ";" should be replaced with ".", where the test result set can be represented as "{data value#dimension}" (test results are separated by "$"); text transmission transmits XML test result files.

[0192] The display of test results is divided into real-time update display of test results and one-click generation of WORD reports according to the way of transmitting test results. Real-time update display means that after each test item is completed, the real-time test results are displayed in the integrated management software; one-click generation of test reports means calling the local test report template, filling in the test results transmitted in text, and automatically generating the test report, such as Figure 4 As shown, the possibility of data falsification introduced by manually compiled reports is eliminated.

[0193] The embodiment of the present invention further discloses an automatic testing device for a software radio device based on script driving, the device comprising:

[0194] a memory storing executable program code;

[0195] a processor coupled to the memory;

[0196] The processor calls the executable program code stored in the memory to execute the automatic testing method of the software radio device based on script driving.

[0197] The embodiment of the present invention further discloses a computer storable medium, wherein the computer storage medium stores computer instructions. When the computer instructions are called, they are used to execute the automatic testing method of the software radio device based on script driving.

[0198] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.

Claims

1. A script-driven automatic testing method for software radio equipment, characterized in that: This is achieved using a test system that includes: S1, obtaining test requirement information; the test requirement information includes: test category requirement information, test item requirement information, timing interval requirement information and test parameter requirement set; S2, using a test script mapping model to process the test requirement information to obtain a test script file; S3, performing test processing on the software radio device to be tested according to the test script file to obtain a test result; The test system includes: an integrated management module, a hardware platform test module, a software platform test module, an electrical performance test module and a test instrument set; the test instrument set includes a test instrument; The integrated management module is connected to the hardware platform test module, the software platform test module and the electrical performance test module respectively, and is used to generate a test control instruction, control the hardware platform test module, the software platform test module and the electrical performance test module, and perform a test process on the software radio device to be tested; The hardware platform testing module is used to perform hardware testing on the software radio device to be tested; The software platform testing module is used to perform software testing on the software radio device to be tested; The electrical performance test module is connected to the test instrument set and is used to perform electrical test processing on the software radio device to be tested; The software radio device to be tested is connected to the hardware platform test module, the software platform test module, the electrical performance test module and the test instrument set respectively; The step of performing a test process on the software radio device to be tested according to the test script file to obtain a test result includes: S31, reading and obtaining the test category information in the test script file; S32, based on the test category information, extracting the test item information in the test script file to obtain the test item information included in the test category information; S33, based on the test item information, extracting and processing the test timing interval sequence and the test parameter set in the test script file to obtain the running time interval and the test parameters of the test item; S34, executing the test items obtained in S32 on the software radio device to be tested according to the running time interval and the test parameters obtained in S33; S35, recording the feedback signal of the software radio device to be tested to obtain a test feedback signal sequence; S36, obtaining a standard feedback signal sequence corresponding to the test item obtained in S32; S37, performing discrimination processing on the test feedback signal sequence and the standard feedback signal sequence to obtain a test result; The step of performing discrimination processing on the test feedback signal sequence and the standard feedback signal sequence to obtain a test result includes: S371, performing difference calculation processing on the test feedback signal sequence and the standard feedback signal sequence to obtain a difference matrix set; the difference matrix set includes a difference matrix; The k-th difference matrix B k The expression is: In the formula, Represents the relative importance weight evaluation factor of the i-th test item and the j-th test item in the k-th difference matrix, is obtained by calculating the cross-correlation value of the test feedback signal sequence of the ith test item at the kth time interval and the standard feedback signal sequence of the jth test item, m represents the number of difference matrices, and n represents the number of test items included in the test item information in the test script file; S372, performing reference vector calculation processing on the difference matrix set to obtain a reference vector r; S374, performing weight calculation processing on the difference matrix set to obtain a weighted vector S375, the reference vector r and the weighted vector Weighted calculation and discrimination processing are performed to obtain the test result of the software radio device to be tested.

2. The automatic testing method for software radio equipment based on script drive as claimed in claim 1, characterized in that: The test script mapping model is used to process the test requirement information to obtain a test script file, including: S21, using the test script mapping model, reading the test category requirement information in the test requirement information, and determining that the test category requirement information is test category information; the value of the test category requirement information is one of software platform test, hardware platform test or electrical performance test; S22, using the test script mapping model, reading the test item requirement information in the test requirement information, and determining that the test item requirement information is test item information; the test item information is a sequence of test items; S23, when the test item information is a radio frequency link interface test or a waveform loading and unloading time test, the test script mapping model is used to determine that the value of the collaborative test information is 1; when the test item information is not one of the radio frequency link interface test and the waveform loading and unloading time test, the test script mapping model is used to determine that the value of the collaborative test information is 0; when the value of the collaborative test information is 1, it indicates that a collaborative test is performed; when the value of the collaborative test information is 0, it indicates that a collaborative test is not performed; S24, when the collaborative test information takes a value of 1, using the test script mapping model to generate a test priority sequence and collaborative test time slice information; S25, using the test script mapping model, reading the timing interval requirement information in the test requirement information, determining the timing interval requirement information as a test timing interval sequence; each element in the test timing interval sequence is used to represent the running time interval between the test item corresponding to the element in the test item information and the next test item when the software radio device is tested; S26, using the test script mapping model, reading and obtaining a test parameter requirement set in the test requirement information, and determining the test parameter requirement set as a test parameter set; the test parameter set includes test parameters of all test items; S27, combining the test category information, test item information, collaborative test information, test priority sequence, collaborative test time slice information, test timing interval sequence and test parameter set to obtain a test script file.

3. The automatic testing method of software radio equipment based on script drive as claimed in claim 2, characterized in that: The method of using the test script mapping model to generate a test priority sequence and collaborative test time slice information includes: S241, using the test script mapping model, setting the hardware platform test module to a first operating priority, and setting the electrical performance test module to a second operating priority; using the first operating priority and the second operating priority, constructing a test priority sequence; S242, using the test script mapping model to read the collaborative test time slice information in the test requirement information; the collaborative test time slice information is used to indicate the operating time interval between the hardware platform test module and the electrical performance test module when performing collaborative testing.

4. The automatic testing method for software radio equipment based on script drive as claimed in claim 1, characterized in that: The step of performing reference vector calculation processing on the difference matrix set to obtain a reference vector r includes: S3721, performing feature calculation processing on each difference matrix of the difference matrix set to obtain a corresponding weight factor vector; S3722, performing deviation quantization calculation processing on the weight factor vectors corresponding to all difference matrices to obtain a deviation matrix; the calculation expression of the deviation quantization calculation processing is: In the formula, h ki represents the element that deviates from the kth row and ith column of the matrix H, q ki represents the k-th difference matrix B k The i-th element of the weight factor vector; S3723, determining whether each element in the deviation matrix is ​​greater than a preset abnormal threshold value, and obtaining a determination result; if the determination result is greater than, setting the corresponding element value to 0; if the determination result is less than or equal to, not operating the corresponding element; S3724, after completing the discrimination processing on all elements in the deviation matrix, a discrimination deviation matrix is ​​obtained. S3725, the discriminant deviation matrix Perform the mean operation in the column direction to obtain the reference vector r, r = [r1, r2, ..., r n ], where r i is the i-th element of the reference vector r.

5. The automatic testing method for software radio equipment based on script drive as claimed in claim 1, characterized in that: The weight calculation process is performed on the difference matrix set to obtain a weighted vector include: S3741, performing factor normalization processing on the elements in the weight factor vectors corresponding to all difference matrices of the difference matrix set to obtain a standardized matrix S; The calculation expression of the factor normalization process is: Among them, s ki represents the element in the kth row and ith column of the normalized matrix S, q ki represents the k-th difference matrix B k The i-th element of the weight factor vector; S3742, performing association calculation processing on the standardized matrix S and the reference vector r to obtain an association matrix V; the calculation expression of the association calculation processing is: Among them, v ki represents the element in the kth row and ith column of the association matrix, and ρ is the association calculation factor; S3743, performing correlation normalization calculation processing on the correlation matrix V to obtain a correlation vector y; The expression of the association normalization calculation process is: Among them, y i represents the i-th element of the association vector y; S3744, performing weighted normalization processing on the association vector y to obtain a weighted vector The calculation expression of the weighted normalization process is: in, is the weight vector The ith element of .

6. An automatic test device for software radio equipment based on script drive, characterized in that: The device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the automatic testing method for software radio equipment based on script driving according to any one of claims 1 to 5.

7. A computer storable medium, characterized in that: The computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the automatic testing method for software radio equipment based on script driving according to any one of claims 1 to 5.