CN117793744A - Software radio communication equipment testing method and device based on test interface description - Google Patents
Software radio communication equipment testing method and device based on test interface description Download PDFInfo
- Publication number
- CN117793744A CN117793744A CN202311489158.5A CN202311489158A CN117793744A CN 117793744 A CN117793744 A CN 117793744A CN 202311489158 A CN202311489158 A CN 202311489158A CN 117793744 A CN117793744 A CN 117793744A
- Authority
- CN
- China
- Prior art keywords
- test
- instrument
- software radio
- information
- radio communication
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 398
- 238000004891 communication Methods 0.000 title claims abstract description 106
- 238000012545 processing Methods 0.000 claims abstract description 43
- 238000005259 measurement Methods 0.000 claims abstract description 42
- 238000000034 method Methods 0.000 claims abstract description 42
- 230000008569 process Effects 0.000 claims abstract description 14
- 238000011156 evaluation Methods 0.000 claims abstract description 7
- 239000011159 matrix material Substances 0.000 claims description 90
- 239000013598 vector Substances 0.000 claims description 58
- 230000004044 response Effects 0.000 claims description 45
- 238000004364 calculation method Methods 0.000 claims description 29
- 238000013507 mapping Methods 0.000 claims description 22
- 108010076504 Protein Sorting Signals Proteins 0.000 claims description 21
- 230000006870 function Effects 0.000 claims description 13
- 238000013139 quantization Methods 0.000 claims description 6
- 238000010606 normalization Methods 0.000 claims description 5
- 238000010998 test method Methods 0.000 claims description 4
- 230000002159 abnormal effect Effects 0.000 claims description 3
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 238000000354 decomposition reaction Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000011161 development Methods 0.000 description 5
- 230000006978 adaptation Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Monitoring And Testing Of Transmission In General (AREA)
Abstract
The invention discloses a software radio communication equipment testing method and device based on test interface description, which is realized by a software radio testing device, and the method comprises the following steps: acquiring a test instrument control test interface description information set and a software radio test device control general interface description information set; based on the test instrument control test interface description information set and the software radio test device control general interface description information set, controlling the software radio test device to measure and process the software radio communication equipment to obtain measurement information; and carrying out evaluation processing on the measurement information to obtain test result information. The test interface description method supporting automatic test comprises an instrument control universal test interface description and a software radio platform control universal interface description. The invention not only can improve the test automation level, but also can improve the degree of universality of the test interface of the software radio platform.
Description
Technical Field
The invention relates to the technical field of software radio, in particular to a software radio communication equipment testing method and device based on test interface description.
Background
At present, waveforms, driving software and bottom hardware of a traditional radio communication radio station are closely connected and not decoupled, often a development unit runs through the whole development period of demand demonstration, hardware design, software development and waveform integration, and corresponding software and hardware interfaces are related to accumulated experience and historical item inheritance of the development unit, so that difficulty in interconnection and intercommunication of the communication radio station is brought, and a large number of repeated works for different test environments are required to be built for different radio stations.
The software radio platform (Software Definition Radio) is a physical entity for bearing the communication waveform function, the software and hardware interfaces are standardized according to SRTF (Software Definition Task Force) series standards, and when a user defines the waveform, the user can call the bottom hardware resources through the standard interfaces instead of directly calling the bottom hardware resources, so that the aim of decoupling the waveform from the hardware resources is fulfilled. Software radio communication equipment developed by various units is also diverse, since the SRTF standard does not restrict the specific form of hardware. Currently, for testing of a software radio platform, if a set of testing environment is still built for each radio station according to a traditional method for testing, a great deal of manpower, financial resources and material resources are consumed. How to construct an efficient and uniform test method aiming at different types of software radio platforms is a problem to be solved currently.
Disclosure of Invention
The invention aims to solve the technical problem of providing a software radio communication equipment testing method and device based on test interface description, which are beneficial to constructing an efficient and uniform testing method aiming at different types of software radio platforms.
In order to solve the above technical problems, a first aspect of the embodiments of the present invention discloses a software radio communication device testing method based on a test interface description, implemented by using a software radio testing device, including:
s1, acquiring a test instrument control test interface description information set and a software radio test device control universal interface description information set;
s2, controlling the software radio testing device to measure the software radio communication equipment based on the test instrument control test interface description information set and the software radio testing device control general interface description information set to obtain measurement information;
and S3, carrying out evaluation processing on the measurement information to obtain test result information.
The software radio testing device comprises a testing instrument set and an interface adapter, and is used for carrying out test evaluation processing on the software radio communication equipment to obtain test result information; the test instrument set comprises a test instrument, a radio frequency exchange matrix and an upper computer;
The interface adapter is connected with the software radio communication equipment and used for carrying out format conversion on the output signal of the software radio communication equipment and the output signal of the test instrument to obtain a signal with a uniform format;
the test instrument comprises a test signal generating instrument and a test signal collecting instrument;
the test signal generating instrument is connected with the upper computer and the radio frequency exchange matrix and is used for generating test signals;
the test signal acquisition instrument is connected with the upper computer and the radio frequency exchange matrix and is used for receiving and obtaining a test response signal;
the upper computer is connected with the testing instrument and used for generating a testing instruction according to user input, and evaluating and processing the testing response signal to obtain testing result information;
the radio frequency exchange matrix is connected with the interface adapter, the testing instrument and the upper computer and is used for realizing on-off control and attenuation control of multiple paths of input signals and multiple paths of output signals according to the testing instructions of the upper computer.
The test instrument control test interface description information set comprises instrument logic symbol and instrument mapping table mapping rules, instrument description information, instrument control information and instrument measurement data/response data information;
The instrument logic symbol and instrument mapping table mapping rule is used for coding the input and output functions of the test instrument and the types of the test instrument to obtain instrument coding information;
the instrument description information comprises an instrument name, an instrument serial number, an instrument program library name, an instrument program library path, an instrument program library version, an instrument control mode and instrument control parameters of a test instrument;
the instrument control information comprises an upper computer IP address, an upper computer control port, a test instrument address, the number of test parameters and a test parameter basic information set; the test parameter basic information set comprises: parameter index value, parameter name, parameter precision, parameter description content, maximum value of parameter, minimum value of parameter, parameter type, parameter unit and parameter data processing formula;
the instrument measurement data/response data message comprises an upper computer IP address, an upper computer control port, a test instrument address, a message type, a data number and a message format.
The software radio measurement device controls a general interface description information set, comprising: initialization information, waveform control information, and waveform parameter information;
The initialization information comprises an IP address and a control port of an upper computer of the control software radio communication equipment, IP address and port information of the software radio communication equipment and an initialization instruction;
the waveform control information comprises an IP address and a control port of an upper computer of the control software radio communication equipment, IP address and port information of the software radio communication equipment, a channel number and a waveform control instruction; the channel number is the number of the communication channel of the software radio communication equipment used in the test; the waveform control instruction is used for representing a control instruction for loading, starting, stopping and unloading the waveform of the software radio communication equipment;
the waveform parameter information comprises an IP address and a control port of an upper computer of the control software radio communication equipment, IP address and port information of the software radio communication equipment, channel numbers, waveform parameter numbers and waveform parameter information sets; the waveform parameter information set comprises waveform function type, waveform amplitude, waveform phase, waveform center frequency and waveform bandwidth.
The controlling the software radio testing device to measure the software radio communication equipment based on the test instrument control test interface description information set and the software radio testing device control general interface description information set to obtain measurement information comprises the following steps:
S21, controlling a test instrument of a software radio test device to generate a test signal sequence based on the test instrument control test interface description information set;
s22, controlling a general interface description information set based on the software radio testing device, and sending the test signal sequence to software radio communication equipment;
s23, generating a test response signal corresponding to the test signal sequence by using the software radio communication equipment;
s24, receiving and obtaining a test response signal of the software radio communication equipment by using the test instrument, and carrying out measurement processing on the test response signal to obtain measurement information.
The step of evaluating the measurement information to obtain test result information comprises the following steps:
s31, collecting and obtaining test information and test instructions of a plurality of time periods;
s32, using the test information of each time period as a first row vector of the time period, and constructing a first matrix by using the first row vectors of all the time periods;
s33, using the test instruction of each time period as a second row vector of the time period, and constructing a second matrix by using the second row vectors of all the time periods;
S34, performing correlation calculation processing on the first matrix and the second matrix to obtain a correlation vector;
the correlation calculation process has a calculation expression of:
wherein A1 ij A2 as the elements of the ith row and the jth column of the first matrix A1 ij P, which are elements of the ith row and the jth column of the second matrix A2 j The j-th element of the association vector, m is the column number of the first matrix, and the association vector comprises n elements in total;
s35, using the absolute value of the difference between the test instruction and the test information in each time period as a third row vector of the time period, and constructing a third matrix by using the third row vectors of all the time periods;
s36, performing weight calculation processing on the third matrix to obtain a weight vector;
s37, carrying out weighted summation processing on the association vector by utilizing the weighted vector to obtain a test result value;
s38, judging the test result value to obtain test result information.
The method for testing the software radio communication equipment based on the test interface description includes the steps of:
s361, carrying out normalization processing on the third matrix according to the row direction to obtain a normalized third matrix;
S362, performing deviation quantization calculation processing on the normalized third matrix to obtain a deviation matrix; the calculation expression of the deviation quantization calculation process is:
in the formula, h ij Representing elements of row i, column j, c of the offset matrix H ij Elements representing the ith row and jth column of the normalized third matrix, m and n being the row and column dimensions, respectively, of the offset matrix H;
s363, judging whether each element in the deviation matrix is larger than a preset abnormal threshold value, and obtaining a judging result; if the judging result is larger than the judging result, setting the corresponding element value to be 0; if the judging result is smaller than or equal to the judging result, not operating the corresponding element;
s364, after the distinguishing process is completed on all the elements in the deviation matrix, a distinguishing deviation matrix is obtained
S365, for the discrimination deviation matrixPerforming average value calculation according to the column direction to obtain a reference vector r, r= [ r ] 1 ,r 2 ,…,r n ],r i Is the i-th element of the reference vector r.
A second aspect of the embodiment of the present invention discloses a software radio communication device testing apparatus based on a test interface description, which is characterized in that the apparatus includes:
a memory storing executable program code;
a processor coupled to the memory;
The processor invokes the executable program code stored in the memory to perform the software radio communications device testing method described based on the test interface.
A third aspect of the embodiments of the present invention discloses a computer-readable storage medium, which is characterized in that the computer-readable storage medium stores computer instructions for executing the software radio communication device testing method described based on the test interface when the computer instructions are called.
The fourth aspect of the embodiment of the invention discloses an information data processing terminal, which is characterized in that the information data processing terminal is used for realizing the software radio communication equipment testing method based on the test interface description.
The beneficial effects of the invention are as follows:
the traditional communication radio station test platform is deeply bound with the tested radio station, when new test requirements appear, the test platform needs to be adjusted, the universality and the expandability are not realized, and the test platform has the characteristics of diversity of software radio level stations and various technical systems and has the urgent requirements of generalization and expandability. The invention provides a method for uniformly describing interfaces of a test instrument and software radio communication equipment so as to support automatic test, which improves the test efficiency in a mode of interface description disclosure and active adaptation of a tested platform and reduces the labor, time and financial cost.
Drawings
FIG. 1 is a flow chart of the method of the present invention;
FIG. 2 is a diagram illustrating the mapping rules of the instrument logical symbol and the instrument mapping table according to the method of the present invention;
FIG. 3 is a schematic representation of the instrument description of the method of the present invention;
FIG. 4 is a schematic diagram of the instrument control information of the method of the present invention;
fig. 5 is a schematic diagram of an instrument measurement data/response data message of the method of the present invention.
Detailed Description
For a better understanding of the present disclosure, an embodiment is presented herein. FIG. 1 is a flow chart of the method of the present invention; FIG. 2 is a diagram illustrating the mapping rules of the instrument logical symbol and the instrument mapping table according to the method of the present invention; FIG. 3 is a schematic representation of the instrument description of the method of the present invention; FIG. 4 is a schematic diagram of the instrument control information of the method of the present invention; fig. 5 is a schematic diagram of an instrument measurement data/response data message of the method of the present invention.
The invention establishes a set of test environment centering on test, and the tested software radio platform is used for adapting the test environment, so that the capability of adapting the universal test environment to various special-shaped software radio platforms is achieved, and the description method of the test interface supporting automatic test is a universal key of the test environment.
In order to overcome the defect that the existing test platform needs to be tested by the cooperation of a test software operator, an instrument control operator and a tested platform operator, and the test environment needs to be independently constructed for different tested platforms, the invention aims to provide the test method and the test device for the software radio communication equipment based on test interface description, and a set of test method which takes the test as a center and is suitable for the test platform by the tested platform is established, so that the universality of the test environment is improved, and the time, labor and financial cost is reduced.
In order to achieve the above object, the present invention provides a software radio communication device testing method based on test interface description, implemented by a software radio testing apparatus, the method comprising:
s1, acquiring a test instrument control test interface description information set and a software radio test device control universal interface description information set;
s2, controlling the software radio testing device to measure the software radio communication equipment based on the test instrument control test interface description information set and the software radio testing device control general interface description information set to obtain measurement information;
And S3, carrying out evaluation processing on the measurement information to obtain test result information.
The software radio testing device comprises a testing instrument set and an interface adapter, and is used for carrying out test evaluation processing on the software radio communication equipment to obtain test result information; the test instrument set comprises a test instrument, a radio frequency exchange matrix and an upper computer;
the interface adapter is connected with the software radio communication equipment and used for carrying out format conversion on the output signal of the software radio communication equipment and the output signal of the test instrument to obtain a signal with a uniform format;
the test instrument comprises a test signal generating instrument and a test signal collecting instrument;
the test signal generating instrument is connected with the upper computer and the radio frequency exchange matrix and is used for generating test signals; the test signal generating instrument comprises an arbitrary waveform transmitter;
the test signal acquisition instrument is connected with the upper computer and the radio frequency exchange matrix and is used for receiving and obtaining a test response signal; the test signal acquisition instrument comprises an oscilloscope and a frequency spectrograph;
the upper computer is connected with the testing instrument and used for generating a testing instruction according to user input, and evaluating and processing the testing response signal to obtain testing result information;
The radio frequency exchange matrix is connected with the interface adapter, the testing instrument and the upper computer and is used for realizing on-off control and attenuation control of multiple paths of input signals and multiple paths of output signals according to the testing instructions of the upper computer; the multiple input signals and multiple output signals are multiple input signals and multiple output signals of the interface adapter and the test instrument. The on-off control and the attenuation control of the multipath input signals and the multipath output signals are realized according to the test instructions of the upper computer, and the on-off control and the attenuation control of the multipath input signals and the multipath output signals are realized according to the on-off control signals and the attenuation control signals in the test instructions of the upper computer.
The software radio testing device is a testing device of the software radio communication equipment.
The radio frequency switching matrix realizes the routing function of input signals and output signals.
The test instrument control test interface description information set comprises instrument logic symbol and instrument mapping table mapping rules, instrument description information, instrument control information and instrument measurement data/response data information;
the instrument logic symbol and instrument mapping table mapping rule is used for coding the input and output functions of the test instrument and the types of the test instrument to obtain instrument coding information;
The coding can adopt a standard ASCII coding or binary coding mode;
the instrument description information comprises an instrument name, an instrument serial number, an instrument program library name, an instrument program library path, an instrument program library version, an instrument control mode and instrument control parameters of a test instrument;
the instrument program library is a group of program sets which are developed by a user and can automatically control the instrument according to an interface provided by a test instrument manufacturer and are stored in an upper computer and the test instrument;
the instrument program library path refers to a path stored in the upper computer by the instrument program library.
The instrument serial number refers to the serial number of the test instrument in the test instrument set;
the instrument control mode is a communication control interface type of the upper computer to the test instrument, and comprises a serial port mode, a network port mode and a GPIB mode;
the instrument control information comprises an upper computer IP address, an upper computer control port, a test instrument address, the number of test parameters and a test parameter basic information set; the test parameter basic information set comprises: parameter index value, parameter name, parameter precision, parameter description content, maximum value of parameter, minimum value of parameter, parameter type, parameter unit and parameter data processing formula;
The test instrument address comprises an IP address of each test instrument and a communication port for receiving a test instruction; the upper computer control port is a communication port for the upper computer to send out a test instruction;
the instrument measurement data/response data message comprises an upper computer IP address, an upper computer control port, a test instrument address, a message type, a data number and a message format.
The data number is the number of data contained in the instrument measurement data/response data message. The message type with the value of 0 represents a response message, wherein the response message comprises message data and does not comprise parameters; 1 denotes measurement data including message data and parameter data. The message format is expressed in the form of data and dimension.
The software radio measurement device controls a general interface description information set, comprising: initialization information, waveform control information, and waveform parameter information;
the initialization information comprises an IP address and a control port of an upper computer of the control software radio communication equipment, IP address and port information of the software radio communication equipment and an initialization instruction;
the initialization instruction refers to an initialization instruction for the software radio communication device;
The waveform control information comprises an IP address and a control port of an upper computer of the control software radio communication equipment, IP address and port information of the software radio communication equipment, a channel number and a waveform control instruction; the channel number is the number of the communication channel of the software radio communication equipment used in the test; the waveform control instruction is used for representing a control instruction for loading, starting, stopping and unloading the waveform of the software radio communication equipment;
loading refers to storing waveforms into a processor of a software defined radio communication device; start-up refers to running the loaded waveform in a software radio communications device processor; offloading refers to deleting waveforms from the processor of the software radio communications device; stopping means stopping the loaded waveform from running in the software radio communications device processor.
The waveform parameter information comprises an IP address and a control port of an upper computer of the control software radio communication equipment, IP address and port information of the software radio communication equipment, channel numbers, waveform parameter numbers and waveform parameter information sets; the waveform parameter information set comprises waveform function type, waveform amplitude, waveform phase, waveform center frequency and waveform bandwidth. A typical parameter format for a waveform parameter information set is "data + dimension".
The controlling the software radio testing device to measure the software radio communication equipment based on the test instrument control test interface description information set and the software radio testing device control general interface description information set to obtain measurement information comprises the following steps:
s21, controlling a test instrument of a software radio test device to generate a test signal sequence based on the test instrument control test interface description information set;
s22, controlling a general interface description information set based on the software radio testing device, and sending the test signal sequence to software radio communication equipment;
s23, generating a test response signal corresponding to the test signal sequence by using the software radio communication equipment;
s24, receiving and obtaining a test response signal of the software radio communication equipment by using the test instrument, and carrying out measurement processing on the test response signal to obtain measurement information.
The formats of the test response signal and test signal sequence both follow the instrument measurement data/response data message.
The control software radio test device test instrument generates a test signal sequence based on the test instrument control test interface description information set, and comprises:
S211, determining a used test instrument based on the instrument name and the instrument serial number in the instrument description information of the test instrument control test interface description information set;
specifically, according to the instrument serial number input by the user, the mapping rule of the instrument logic symbol and the instrument mapping table is combined to determine the used test instrument;
s212, determining a test instruction of the used test instrument according to a test parameter basic information set in instrument control information of the test instrument control test interface description information set; specifically, the test instruction may be a waveform function type, waveform amplitude, waveform phase, waveform center frequency, and waveform bandwidth; the test instruction further comprises the test parameter basic information set.
S213, determining a control mode of the used test instrument according to the instrument control mode and the instrument control parameters in the instrument description information in the test instrument control test interface description information set; the control mode can be serial communication, the baud rate is 19200bps, and a duplex communication mode is adopted.
S214, determining a source address and a first target address of the test instruction according to the upper computer IP address, the upper computer control port and the test instrument address in the instrument control information; the source address is the address of an upper computer, a test instruction is generated in the upper computer, and the test instruction is sent to the first target address; the first target address is the address of the test instrument used;
S215, based on the control mode, sending a test instruction from the source address to a first target address;
s216, after receiving a test instruction, the test instrument corresponding to the target address generates a test signal sequence corresponding to the test instruction; specifically, the test signal sequence corresponding to the test instruction may be a signal sequence obtained by PCM encoding the test instruction.
The controlling, based on the software radio testing device, a universal interface description information set, and sending the test signal sequence to a software radio communication device, includes:
s221, determining a second target address based on the IP address and port information of the software radio communication equipment in the initialization information in the software radio test device control general interface description information set;
s222, determining a communication channel according to the channel number in the waveform control information;
s223, setting the IP address and the port information of the software radio communication equipment by utilizing the IP address and the port information of the software radio communication equipment in the initialization information; initializing the software radio communication equipment by using an initialization instruction in the initialization information; the initialization instruction comprises power-up, system self-detection and the like of the software radio communication equipment;
S224, sending a test signal sequence to the communication channel in the second target address;
said generating, with said software defined radio communications device, a test response signal corresponding to said test signal sequence, comprising:
s231, determining a waveform parameter information set of the waveform control information as the test signal sequence;
s232, setting a waveform control instruction in the waveform control information to be loaded and started;
s233, controlling the software radio communication equipment according to the waveform parameter information set to generate a test response signal corresponding to the test signal sequence; transmitting the test response signal to a test instrument;
specifically, according to the waveform parameter information set, the software radio communication device is controlled to generate a test response signal corresponding to the test signal sequence, which may be:
and controlling the software radio communication equipment, generating a signal waveform according to the waveform parameters in the waveform parameter information set, and taking the signal waveform as a test response signal.
The method for obtaining the test response signal of the software radio communication equipment by using the test instrument, and carrying out measurement processing on the test response signal to obtain measurement information comprises the following steps:
S241, receiving and obtaining a test response signal of the software radio communication equipment by using a test instrument;
s242, measuring the test response signal by using the test instrument to obtain measurement information; specifically, the frequency spectrometer is used for measuring the test response signal to obtain the bandwidth and the center frequency of the test response signal; measuring the test response signal by using an oscilloscope to obtain a waveform function type, waveform amplitude and waveform phase; and constructing and obtaining measurement information by using the bandwidth, the center frequency, the waveform function type, the waveform amplitude and the waveform phase. The attribute and unit of the measurement information obtained by measuring the test response signal correspond to the test instruction; the test instruction comprises signal bandwidth X1 in Hz, signal amplitude X2 in V, signal duration X3 in s, and test information also comprises signal bandwidth Y1 in Hz, signal amplitude Y2 in V and signal duration Y3 in s.
The step of evaluating the measurement information to obtain test result information comprises the following steps:
s31, collecting and obtaining test information and test instructions of a plurality of time periods;
Collecting test signals and test instructions in a time period, wherein the test signals and the test instructions are discrete signal sequences;
s32, using the test information of each time period as a first row vector of the time period, and constructing a first matrix by using the first row vectors of all the time periods;
s33, using the test instruction of each time period as a second row vector of the time period, and constructing a second matrix by using the second row vectors of all the time periods;
s34, performing correlation calculation processing on the first matrix and the second matrix to obtain a correlation vector;
the correlation calculation process has a calculation expression of:
wherein A1 ij A2 as the elements of the ith row and the jth column of the first matrix A1 ij P, which are elements of the ith row and the jth column of the second matrix A2 j For the j-th element of the association vector, m is the number of columns of the first matrix, and the association vector includes n elements in total. The first row in the first matrix A1 is the first row vector for the first period of time.
S35, using the absolute value of the difference between the test instruction and the test information in each time period as a third row vector of the time period, and constructing a third matrix by using the third row vectors of all the time periods;
s36, performing weight calculation processing on the third matrix to obtain a weight vector;
S37, carrying out weighted summation processing on the association vector by utilizing the weighted vector to obtain a test result value;
s38, judging the test result value to obtain test result information.
The step of judging the test result value to obtain test result information comprises the following steps:
judging whether the test result value is larger than a qualified threshold value or not to obtain a judging result; when the judging result is larger than the judging result, determining that the test result information is qualified; and when the judging result is not more than the judging result, determining that the test result information is unqualified.
The step of performing weight calculation processing on the third matrix to obtain a weight vector includes:
s361, carrying out normalization processing on the third matrix according to the row direction to obtain a normalized third matrix;
the normalization processing is carried out according to the row direction, namely dividing each element of each row by the maximum value of the elements of the row;
s362, performing deviation quantization calculation processing on the normalized third matrix to obtain a deviation matrix; the calculation expression of the deviation quantization calculation process is:
in the formula, h ij Representing elements of row i, column j, c of the offset matrix H ij Elements representing the ith row and jth column of the normalized third matrix, m and n being the row and column dimensions, respectively, of the offset matrix H; h= (H ij ) m×n Representing the dimension of the departure matrix H as m rows and n columns;
s363, judging whether each element in the deviation matrix is larger than a preset abnormal threshold value, and obtaining a judging result; if the judging result is larger than the judging result, setting the corresponding element value to be 0; if the judging result is smaller than or equal to the judging result, not operating the corresponding element;
s364, after the distinguishing process is completed on all the elements in the deviation matrix, a distinguishing deviation matrix is obtained
S365, for the discrimination deviation matrixPerforming average value calculation according to the column direction to obtain a reference vector r, r= [ r ] 1 ,r 2 ,…,r n ]The method comprises the steps of carrying out a first treatment on the surface of the Wherein r is i Is the i-th element of the reference vector r by the method of p +.>The average value of the ith column element is obtained.
The average value is calculated according to the column directionThe average value is obtained, and all the average values are used for combination to obtain a reference vector;
and performing weight calculation processing on the third matrix to obtain a weight vector, which may be:
decomposing the third matrix to obtain a corresponding left decomposition matrix, a corresponding feature matrix and a corresponding right decomposition matrix;
the decomposition process has a calculation expression:
Y=UAV,
wherein U is a left decomposition matrix, A is a feature matrix, V is a right decomposition matrix, U and V are both orthogonal matrices, and A is a diagonal matrix;
The decomposition processing can be realized by adopting a matrix singular value decomposition algorithm.
Extracting diagonal elements of the feature matrix to obtain feature vectors; the feature vector is denoted as I a ,I a =[λ 1 ,λ 2 ,…,λ N1 ]N1 is the number of elements contained in the feature vector;
performing linear fitting treatment on the elements of the feature vector and the element sequence number values to obtain an optimal consistent approximation polynomial;
the linear fitting process is to construct a curve to be approximated by using a characteristic vector element sequence number value Ix as a known independent variable and a characteristic vector element value as a known dependent variable, and perform curve fitting on the curve to be approximated by using a function approximation method to obtain an optimal consistent approximation polynomial f (Ix).
And performing curve fitting on the curve to be approximated by using a function approximation method, and adopting an optimal consistent linear approximation method. The best consistent approximation polynomial f (Ix) has the expression:
f(Ix)=α P1 (Ix) P1 +α P1-1 (Ix) P1-1 +…+α 2 (Ix) 2 +α 1 (Ix)+α 0 ,
wherein P1 is the order of the best consistent approximation polynomial f (Ix), α0, α1, α2, …, α P1 Coefficients of the polynomial f (Ix) are approximated for the best agreement;
calculating the third matrix to obtain a characteristic value and a characteristic vector;
Normalizing and upward rounding the feature vector corresponding to the maximum feature value to obtain a feature sequence number value sequence;
the normalization and upward rounding processing is to divide each element of the feature vector by the largest element in the feature vector, take absolute value of the calculation result and then perform upward rounding processing.
And taking the characteristic sequence number value sequence as an input value, and calculating by using an optimal consistent approximation polynomial to obtain the weighting vector.
The test processing is to complete the test of specific test items by setting the sequence of different interface descriptions through the characteristics of different test items on the basis of the instrument control universal test interface description and the software radio platform control universal interface description.
Specifically, before the method is used for testing, the formats of the test instrument control test interface description information set and the software radio test device control universal interface description information set need to be published, each tested unit completes adaptation before testing, corresponding response can be completed according to the control message, and a group of universal software radio level platform control interfaces of the test platform adapt to various software radio platforms:
the rule taking the test as the center is that a control interface of a test platform to a tested platform is published to a software wireless level platform development unit, the tested unit completes the adaptation of the control interface before the test, and the test is started without depending on the operator of the tested platform;
The test instrument control test interface description information set comprises instrument logic symbol and instrument mapping table mapping rules, instrument description information, instrument control information and instrument measurement data/response data information, and each defined rule and message format can support rapid expansion according to the increase of test instruments;
the instrument logical symbol and instrument mapping table mapping rule description referring to fig. 2, the test instrument classifies 3 classes by type of radio frequency signals generated/received: input class, output class, input/output class, respectively identified by I, O, B, e.g. oscilloscope belongs to class I, signal generator belongs to class O, radio frequency switching matrix belongs to class B, giving 4-bit coding for specific instrument (I, O, B classes all start coding from 1);
the description of the instrument description information is to describe the attribute of the instrument, and referring to fig. 3, the description content includes the instrument name, the instrument serial number, the instrument program library name, the instrument program library path, the instrument program library version, the instrument control mode and the instrument control parameter of the test instrument; referring to fig. 4, the instrument control information includes a near-end address (i.e. an IP address of an upper computer, an IP port of an upper computer), a far-end address (i.e. an address of a test instrument), a number of test parameters, and a basic information set of test parameters, where typical elements of a set of parameters are: parameter state information, parameter index values, parameter group names, parameter variables, precision, parameter descriptive contents, maximum values of parameters, minimum values of parameters, parameter types, parameter units and data processing formulas;
The instrument measures data/response data messages, see fig. 5, including the near end address (including port), the far end address (including port), the message type (0 indicates a response message without parameters; 1 indicates measurement data followed by data), the number of data, the data set (a set of typical data formats is "data + dimension").
Taking waveform loading and unloading test as an example, the test process is described as follows:
s101, developing a corresponding interface according to a control interface published by a tested software radio station development unit by a testing party to ensure that the tested software radio station is controlled;
s102, testing software controls a programmable power supply to power up a tested software radio station according to a test plan and the description of an instrument description message format;
s103, the test software sends a software radio station initialization command according to the software radio station initialization message format description;
s104, responding to the initialization command by the software radio station, and releasing resources of all channels of the radio station (carrying out waveform unloading operation on physical channels with waveform operation);
s105, the test software sends an instruction for loading waveforms on a channel X of the software radio station according to the control waveform loading/starting/stopping/unloading message format description;
S106, the software radio station receives and analyzes the waveform loading instruction, and a core framework in the radio station schedules a waveform component to carry out waveform loading;
s107, the test software sends a starting instruction of the waveform on the software radio station channel X according to the control waveform loading/starting/stopping/unloading message format description;
s108, receiving and analyzing a waveform starting instruction by the software radio station, and scheduling the waveform components to run by a core framework in the radio station;
s109, the test software sets waveform parameters (parameters such as frequency point f, bandwidth BW and the like) according to the message format description of the waveform parameter setting message;
s110, the software radio station receives and analyzes the waveform parameter setting command, executes the parameter command and transmits a radio frequency signal;
s111, testing software controls the spectrometer to work in a state that the central frequency point is f and the bandwidth is 2BW (adjustable) according to the description of the instrument description message format, and reads the frequency point and amplitude information of the radio frequency signal captured by the spectrometer;
s112, comparing the set frequency point with the test frequency point of the spectrometer by test software, and verifying whether the waveform parameters are set correctly; +
S113, the test software sends a stop instruction of the waveform on the radio station channel X of the software according to the control waveform loading/starting/stopping/unloading message format description;
S114, the software radio station receives and analyzes the waveform stopping instruction, a core framework in the radio station schedules a waveform component to stop running, test software tests whether a signal is in a message or not through a spectrometer, and verifies the waveform stopping condition;
s115, the test software sends an unloading instruction of the waveform on the software radio station channel X according to the control waveform loading/starting/stopping/unloading message format description;
and S116, the software radio station receives and analyzes the waveform unloading instruction, completes waveform unloading, and releases the channel resources of the software radio station.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.
Claims (10)
1. A software defined radio test method based on a test interface description, implemented with a software defined radio test device, comprising:
s1, acquiring a test instrument control test interface description information set and a software radio test device control universal interface description information set;
S2, controlling the software radio testing device to measure the software radio communication equipment based on the test instrument control test interface description information set and the software radio testing device control general interface description information set to obtain measurement information;
and S3, carrying out evaluation processing on the measurement information to obtain test result information.
2. The method for testing the software radio communication equipment based on the test interface description according to claim 1, wherein the software radio testing device comprises a testing instrument set and an interface adapter, and is used for performing test evaluation processing on the software radio communication equipment to obtain test result information; the test instrument set comprises a test instrument, a radio frequency exchange matrix and an upper computer;
the interface adapter is connected with the software radio communication equipment and used for carrying out format conversion on the output signal of the software radio communication equipment and the output signal of the test instrument to obtain a signal with a uniform format;
the test instrument comprises a test signal generating instrument and a test signal collecting instrument;
the test signal generating instrument is connected with the upper computer and the radio frequency exchange matrix and is used for generating test signals;
The test signal acquisition instrument is connected with the upper computer and the radio frequency exchange matrix and is used for receiving and obtaining a test response signal;
the upper computer is connected with the testing instrument and used for generating a testing instruction according to user input, and evaluating and processing the testing response signal to obtain testing result information;
the radio frequency exchange matrix is connected with the interface adapter, the testing instrument and the upper computer and is used for realizing on-off control and attenuation control of multiple paths of input signals and multiple paths of output signals according to the testing instructions of the upper computer.
3. A software radio communication device testing method based on a test interface description as claimed in claim 1,
the test instrument control test interface description information set comprises instrument logic symbol and instrument mapping table mapping rules, instrument description information, instrument control information and instrument measurement data/response data information;
the instrument logic symbol and instrument mapping table mapping rule is used for coding the input and output functions of the test instrument and the types of the test instrument to obtain instrument coding information;
the instrument description information comprises an instrument name, an instrument serial number, an instrument program library name, an instrument program library path, an instrument program library version, an instrument control mode and instrument control parameters of a test instrument;
The instrument control information comprises an upper computer IP address, an upper computer control port, a test instrument address, the number of test parameters and a test parameter basic information set; the test parameter basic information set comprises: parameter index value, parameter name, parameter precision, parameter description content, maximum value of parameter, minimum value of parameter, parameter type, parameter unit and parameter data processing formula;
the instrument measurement data/response data message comprises an upper computer IP address, an upper computer control port, a test instrument address, a message type, a data number and a message format.
4. A software radio communication device testing method based on a test interface description as claimed in claim 1,
the software radio measurement device controls a general interface description information set, comprising: initialization information, waveform control information, and waveform parameter information;
the initialization information comprises an IP address and a control port of an upper computer of the control software radio communication equipment, IP address and port information of the software radio communication equipment and an initialization instruction;
the waveform control information comprises an IP address and a control port of an upper computer of the control software radio communication equipment, IP address and port information of the software radio communication equipment, a channel number and a waveform control instruction; the channel number is the number of the communication channel of the software radio communication equipment used in the test; the waveform control instruction is used for representing a control instruction for loading, starting, stopping and unloading the waveform of the software radio communication equipment;
The waveform parameter information comprises an IP address and a control port of an upper computer of the control software radio communication equipment, IP address and port information of the software radio communication equipment, channel numbers, waveform parameter numbers and waveform parameter information sets; the waveform parameter information set comprises waveform function type, waveform amplitude, waveform phase, waveform center frequency and waveform bandwidth.
5. The method for testing a software defined radio communication device based on a test interface description according to claim 1, wherein controlling the software defined radio test device to perform a measurement process on the software defined radio communication device based on the test instrument control test interface description information set and the software defined radio test device control generic interface description information set to obtain measurement information comprises:
s21, controlling a test instrument of a software radio test device to generate a test signal sequence based on the test instrument control test interface description information set;
s22, controlling a general interface description information set based on the software radio testing device, and sending the test signal sequence to software radio communication equipment;
s23, generating a test response signal corresponding to the test signal sequence by using the software radio communication equipment;
S24, receiving and obtaining a test response signal of the software radio communication equipment by using the test instrument, and carrying out measurement processing on the test response signal to obtain measurement information.
6. The method for testing a software radio communication device based on a test interface description according to claim 1, wherein the evaluating the measurement information to obtain test result information comprises:
s31, collecting and obtaining test information and test instructions of a plurality of time periods;
s32, using the test information of each time period as a first row vector of the time period, and constructing a first matrix by using the first row vectors of all the time periods;
s33, using the test instruction of each time period as a second row vector of the time period, and constructing a second matrix by using the second row vectors of all the time periods;
s34, performing correlation calculation processing on the first matrix and the second matrix to obtain a correlation vector;
the correlation calculation process has a calculation expression of:
wherein A1 ij A2 as the elements of the ith row and the jth column of the first matrix A1 ij P, which are elements of the ith row and the jth column of the second matrix A2 j The j-th element of the association vector, m is the column number of the first matrix, and the association vector comprises n elements in total;
S35, using the absolute value of the difference between the test instruction and the test information in each time period as a third row vector of the time period, and constructing a third matrix by using the third row vectors of all the time periods;
s36, performing weight calculation processing on the third matrix to obtain a weight vector;
s37, carrying out weighted summation processing on the association vector by utilizing the weighted vector to obtain a test result value;
s38, judging the test result value to obtain test result information.
7. The method for testing a software defined radio communication device according to claim 6 wherein said weighting calculation of said third matrix to obtain a weight vector comprises:
s361, carrying out normalization processing on the third matrix according to the row direction to obtain a normalized third matrix;
s362, performing deviation quantization calculation processing on the normalized third matrix to obtain a deviation matrix; the calculation expression of the deviation quantization calculation process is:
in the formula, h ij Representing elements of row i, column j, c of the offset matrix H ij Elements representing the ith row and jth column of the normalized third matrix, m and n being the row and column dimensions, respectively, of the offset matrix H;
S363, judging whether each element in the deviation matrix is larger than a preset abnormal threshold value, and obtaining a judging result; if the judging result is larger than the judging result, setting the corresponding element value to be 0; if the judging result is smaller than or equal to the judging result, not operating the corresponding element;
s364, after the distinguishing process is completed on all the elements in the deviation matrix, a distinguishing deviation matrix is obtained
S365, for the discrimination deviation matrixPerforming average value calculation according to the column direction to obtain a reference vector r, r= [ r ] 1 ,r 2 ,…,r n ],r i Is the i-th element of the reference vector r.
8. A software defined radio communications device testing apparatus based on a test interface description, the apparatus comprising:
a memory storing executable program code;
a processor coupled to the memory;
the processor invokes the executable program code stored in the memory to perform the software defined radio communication device testing method described based on the test interface of any one of claims 1-7.
9. A computer-storable medium storing computer instructions that, when invoked, are operable to perform the software radio communication device testing method based on the test interface description of any one of claims 1-7.
10. An information data processing terminal for implementing a software radio communication device testing method based on a test interface description according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311489158.5A CN117793744B (en) | 2023-11-09 | 2023-11-09 | Software radio communication equipment testing method and device based on test interface description |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311489158.5A CN117793744B (en) | 2023-11-09 | 2023-11-09 | Software radio communication equipment testing method and device based on test interface description |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117793744A true CN117793744A (en) | 2024-03-29 |
CN117793744B CN117793744B (en) | 2024-06-11 |
Family
ID=90378964
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311489158.5A Active CN117793744B (en) | 2023-11-09 | 2023-11-09 | Software radio communication equipment testing method and device based on test interface description |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117793744B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8433953B1 (en) * | 2007-08-13 | 2013-04-30 | The Mathworks, Inc. | Automatic configuration of a test environment |
CN106100764A (en) * | 2016-06-17 | 2016-11-09 | 中国电子科技集团公司第十研究所 | The general purpose automatic test system of ultrashort wave radio set |
CN106776276A (en) * | 2016-11-16 | 2017-05-31 | 北京广利核***工程有限公司 | One seed nucleus level I&C system transmission function dynamic characteristic test method |
US9739827B1 (en) * | 2016-12-23 | 2017-08-22 | Advanced Testing Technologies, Inc. | Automated waveform analysis using a parallel automated development system |
CN108181890A (en) * | 2017-12-12 | 2018-06-19 | 中核控制***工程有限公司 | DCS automatic test devices based on virtual instrument |
US10151791B1 (en) * | 2016-12-23 | 2018-12-11 | Advanced Testing Technologies, Inc. | Automated waveform analysis methods using a parallel automated development system |
US20220140918A1 (en) * | 2020-10-30 | 2022-05-05 | Rohde & Schwarz Gmbh & Co. Kg | Method for determining a pre-equalization matrix and test setup |
CN115387970A (en) * | 2022-10-26 | 2022-11-25 | 中车山东风电有限公司 | Remote vibration testing system for gearbox of wind generating set |
-
2023
- 2023-11-09 CN CN202311489158.5A patent/CN117793744B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8433953B1 (en) * | 2007-08-13 | 2013-04-30 | The Mathworks, Inc. | Automatic configuration of a test environment |
CN106100764A (en) * | 2016-06-17 | 2016-11-09 | 中国电子科技集团公司第十研究所 | The general purpose automatic test system of ultrashort wave radio set |
CN106776276A (en) * | 2016-11-16 | 2017-05-31 | 北京广利核***工程有限公司 | One seed nucleus level I&C system transmission function dynamic characteristic test method |
US9739827B1 (en) * | 2016-12-23 | 2017-08-22 | Advanced Testing Technologies, Inc. | Automated waveform analysis using a parallel automated development system |
US10151791B1 (en) * | 2016-12-23 | 2018-12-11 | Advanced Testing Technologies, Inc. | Automated waveform analysis methods using a parallel automated development system |
CN108181890A (en) * | 2017-12-12 | 2018-06-19 | 中核控制***工程有限公司 | DCS automatic test devices based on virtual instrument |
US20220140918A1 (en) * | 2020-10-30 | 2022-05-05 | Rohde & Schwarz Gmbh & Co. Kg | Method for determining a pre-equalization matrix and test setup |
CN115387970A (en) * | 2022-10-26 | 2022-11-25 | 中车山东风电有限公司 | Remote vibration testing system for gearbox of wind generating set |
Also Published As
Publication number | Publication date |
---|---|
CN117793744B (en) | 2024-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Eisen et al. | Learning optimal resource allocations in wireless systems | |
CN100385864C (en) | Protocol conformance measuring device and method | |
CN1706130A (en) | System and method for providing a virtual wireless | |
CN110311987A (en) | Node scheduling method, apparatus, equipment and the storage medium of microserver | |
KR20070112281A (en) | Apparatus and methods for product acceptance testing on a wireless device | |
CN109213842A (en) | A kind of intelligent customer service implementation method, device and storage medium | |
CN109726108B (en) | Front-end code testing method, device, system and medium based on analog data | |
CN1941776B (en) | Method and system of quality of service (QoS) based planning in web services aggregation | |
CN111522727B (en) | Simulation object test method, device and system | |
CN114784324B (en) | Fuel cell system control method and device, electronic equipment and storage medium | |
US20040127212A1 (en) | Apparatus, system and method for network testing | |
CN110913362B (en) | Method and device for realizing wireless signal test through client and test equipment | |
CN117793744B (en) | Software radio communication equipment testing method and device based on test interface description | |
CN115484690A (en) | Binding method of refrigerator and weighing device, refrigerator and storage medium | |
CN106993296A (en) | The performance estimating method and device of terminal | |
CN111935767B (en) | Network simulation system | |
CN115994184B (en) | Operation and maintenance method and system based on big data automation operation and maintenance platform | |
CN107360295A (en) | A kind of test main frame and method | |
CN107306419A (en) | A kind of end-to-end quality appraisal procedure and device | |
KR102472585B1 (en) | Big data-based modular AI engine server and driving method of the same | |
CN107766212A (en) | Determine the method and device of the installment state of application program | |
CN112510839A (en) | Integrated test collection method and device for distribution automation main station | |
CN111444050B (en) | Intelligent telecontrol machine closed-loop automatic testing method | |
CN118102370A (en) | Automatic test method and device for software radio equipment based on script driving | |
CN117241312A (en) | Air interface test method and system based on AI/ML time domain beam prediction |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |