CN109347578B - Radio frequency performance test method and device, computer equipment and readable storage medium - Google Patents

Radio frequency performance test method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN109347578B
CN109347578B CN201811423087.8A CN201811423087A CN109347578B CN 109347578 B CN109347578 B CN 109347578B CN 201811423087 A CN201811423087 A CN 201811423087A CN 109347578 B CN109347578 B CN 109347578B
Authority
CN
China
Prior art keywords
radio frequency
instruction
instrument
control
name
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.)
Active
Application number
CN201811423087.8A
Other languages
Chinese (zh)
Other versions
CN109347578A (en
Inventor
李章红
莫佩燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Comba Network Systems Co Ltd
Original Assignee
Comba Network Systems Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Comba Network Systems Co Ltd filed Critical Comba Network Systems Co Ltd
Priority to CN201811423087.8A priority Critical patent/CN109347578B/en
Publication of CN109347578A publication Critical patent/CN109347578A/en
Application granted granted Critical
Publication of CN109347578B publication Critical patent/CN109347578B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/10Monitoring; Testing of transmitters
    • H04B17/15Performance testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/10Monitoring; Testing of transmitters
    • H04B17/101Monitoring; Testing of transmitters for measurement of specific parameters of the transmitter or components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/20Monitoring; Testing of receivers
    • H04B17/29Performance testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)

Abstract

The application relates to a radio frequency performance testing method, a radio frequency performance testing device, computer equipment and a readable storage medium. The method comprises the following steps: acquiring the identification of a radio frequency instrument, and determining a target instruction script corresponding to the identification of the radio frequency instrument according to the corresponding relation between the identification of different radio frequency instruments and different instruction scripts; the target instruction script comprises corresponding relations between different instruction names and different control instructions; the control instruction is used for controlling the radio frequency instrument to execute the radio frequency performance test operation corresponding to the instruction name; calling the target instruction script according to a test control code to control the radio frequency instrument to perform radio frequency performance test operation on the radio frequency equipment to be tested; the test control code includes at least one instruction name. By adopting the method, the maintenance cost of the test control code can be reduced.

Description

Radio frequency performance test method and device, computer equipment and readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for testing radio frequency performance, a computer device, and a readable storage medium.
Background
At present, radio frequency products (radio frequency equipment to be tested) need to be tested for radio frequency performance by using radio frequency instruments in the production and research and development processes. In order to improve the testing efficiency and ensure the testing quality, a corresponding control program is often developed to automatically control the testing process.
Currently, radio frequency instruments are basically produced by several instrument companies, and control instructions for the radio frequency instruments vary according to the types of the instruments and manufacturers. In the production and research and development processes, the process of building the test environment of the radio frequency product is complex, the cost is high, the fixed manufacturer and the fixed type instrument cannot be guaranteed to be used at each time, and therefore corresponding test control codes need to be developed independently aiming at different types of instruments of different manufacturers: for example, if there is an S type instrument of manufacturer A, a section of test control code is developed for the instrument, and meanwhile, there is an S type instrument of manufacturer B, a section of test control code is developed for the instrument; when the instrument of the manufacturer A needs to be used, the radio frequency performance test control program calls a test control code aiming at the manufacturer A, and when the instrument of the manufacturer B needs to be used, the test control code aiming at the manufacturer B is called; if the manufacturer A adds an S1 instrument, a corresponding test control code needs to be added.
In a word, the radio frequency performance test method has the problem that the maintenance cost of the test control code is too high.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a radio frequency performance testing method, apparatus, computer device and readable storage medium capable of reducing maintenance cost of test control codes.
A radio frequency performance testing method, the method comprising:
acquiring the identification of a radio frequency instrument, and determining a target instruction script corresponding to the identification of the radio frequency instrument according to the corresponding relation between the identification of different radio frequency instruments and different instruction scripts; the target instruction script comprises corresponding relations between different instruction names and different control instructions; the control instruction is used for controlling the radio frequency instrument to execute the radio frequency performance test operation corresponding to the instruction name;
calling the target instruction script according to a test control code to control the radio frequency instrument to perform radio frequency performance test operation on the radio frequency equipment to be tested; the test control code includes at least one instruction name.
In one embodiment, the invoking the target instruction script according to the test control code to control the radio frequency instrument to perform a radio frequency performance test operation on the radio frequency device to be tested includes:
loading and executing the test control code; in the process of executing the test control code, acquiring a control instruction corresponding to the instruction name from the target instruction script according to the instruction name in the test control code;
and controlling the radio frequency instrument to carry out radio frequency performance test operation on the radio frequency equipment to be tested according to the control instruction.
In one embodiment, the target control instruction is a character string type instruction, and the controlling the radio frequency instrument to perform the radio frequency performance test operation on the radio frequency device to be tested according to the control instruction includes:
and sending the character string type instruction to the radio frequency instrument to instruct the radio frequency instrument to execute the character string type instruction to perform radio frequency performance test operation.
In one embodiment, the target control instruction is a function-like instruction, and the controlling the radio frequency instrument to perform a radio frequency performance test operation on the radio frequency device to be tested according to the control instruction includes:
acquiring a function code corresponding to the function class instruction from the test control code or a function library associated with the test control code and executing the function code;
in the process of executing the function code, acquiring a refining control instruction corresponding to the refining instruction name from the target instruction script according to the refining instruction name in the function code, and controlling the radio frequency instrument to perform radio frequency performance test operation on the radio frequency equipment to be tested according to the refining control instruction.
In one embodiment, the acquiring the identifier of the radio frequency instrument includes: sending an instrument identifier acquisition request to the radio frequency instrument; and receiving the identification of the radio frequency instrument returned by the radio frequency instrument.
In one embodiment, the instruction script comprises: the method comprises the steps of identifying a radio frequency instrument, at least one instruction name, a control instruction corresponding to the instruction name and an instruction type of the control instruction.
In one embodiment, the instruction names associated with the different instruction scripts for controlling the corresponding radio frequency instruments to execute the same radio frequency performance test operation are the same.
A radio frequency performance testing apparatus, the apparatus comprising:
the instruction script determining module is used for acquiring the identification of the radio frequency instrument and determining a target instruction script corresponding to the identification of the radio frequency instrument according to the corresponding relation between the identification of different radio frequency instruments and different instruction scripts; the target instruction script comprises corresponding relations between different instruction names and different control instructions; the control instruction is used for controlling the radio frequency instrument to execute the radio frequency performance test operation corresponding to the instruction name;
the test control module is used for calling the target instruction script according to a test control code so as to control the radio frequency instrument to carry out radio frequency performance test operation on the radio frequency equipment to be tested; the test control code includes at least one instruction name.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring the identification of a radio frequency instrument, and determining a target instruction script corresponding to the identification of the radio frequency instrument according to the corresponding relation between the identification of different radio frequency instruments and different instruction scripts; the target instruction script comprises corresponding relations between different instruction names and different control instructions; the control instruction is used for controlling the radio frequency instrument to execute the radio frequency performance test operation corresponding to the instruction name;
calling the target instruction script according to a test control code to control the radio frequency instrument to perform radio frequency performance test operation on the radio frequency equipment to be tested; the test control code includes at least one instruction name.
A readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring the identification of a radio frequency instrument, and determining a target instruction script corresponding to the identification of the radio frequency instrument according to the corresponding relation between the identification of different radio frequency instruments and different instruction scripts; the target instruction script comprises corresponding relations between different instruction names and different control instructions; the control instruction is used for controlling the radio frequency instrument to execute the radio frequency performance test operation corresponding to the instruction name;
calling the target instruction script according to a test control code to control the radio frequency instrument to perform radio frequency performance test operation on the radio frequency equipment to be tested; the test control code includes at least one instruction name.
According to the radio frequency performance test method, the radio frequency performance test device, the computer equipment and the readable storage medium, aiming at different radio frequency instruments, the computer equipment can obtain the corresponding target instruction scripts, and then can call the target instruction scripts corresponding to the radio frequency instruments according to the test control codes so as to obtain the control instructions corresponding to the instruction names in the test control codes, and further control the radio frequency instruments to execute the radio frequency performance test operation corresponding to the instruction names; therefore, for a new radio frequency instrument, only a corresponding instruction script needs to be developed, corresponding instruction names in the test control codes can be used for the same radio frequency test function in the instruction script, only the control instructions corresponding to the instruction names need to be edited for the radio frequency instrument, maintenance or development of new test control codes is not needed, and the test control codes can be reused by different radio frequency instruments; in addition, when the instruction script is maintained, a text editing mode is adopted, a compiling and debugging environment does not need to be set up, and the maintenance is simple. In summary, the radio frequency performance testing method of the embodiment can reduce the maintenance cost of the test control code, and the maintenance cost of the instruction script is also lower.
Drawings
FIG. 1 is a diagram of an exemplary RF performance testing method;
FIG. 2 is a schematic flow chart of a method for testing radio frequency performance in one embodiment;
FIG. 3 is a content diagram of an instruction script in one embodiment;
FIG. 4 is a flowchart illustrating the steps of invoking the target command script to control the RF instrument according to the test control code in another embodiment;
FIG. 5 is a diagram illustrating the contents of function code corresponding to a function class instruction in one embodiment;
FIG. 6 is a block diagram of an exemplary RF performance testing apparatus;
FIG. 7 is a block diagram of an exemplary RF performance testing apparatus;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The radio frequency performance testing method provided by the application can be applied to the application environment shown in fig. 1. The computer device 101 communicates with the radio frequency instrument 102 through a GPIB (General-Purpose Interface Bus) Interface, a network Interface, or another Interface, and similarly communicates with the radio frequency device 103 to be tested through a serial port, a network Interface, or another Interface; the rf instrument 102 and the rf device 103 to be tested may communicate with each other through an rf line, and the use of the rf line may avoid interference, so the rf line is generally used for testing accuracy, but may not be understood as a limitation, and may also be used in other rf signal transmission manners. Generally, the radio frequency instrument may be a spectrum analyzer, a signal source, and other instruments, the radio frequency device to be tested may be a mobile phone, a radio frequency amplifier, a base station, and the like, and the computer device may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, industrial personal computers, and the like.
In an embodiment, as shown in fig. 2, a radio frequency performance testing method is provided, which is exemplified by applying the method to the computer device in fig. 1, where instruction scripts corresponding to different radio frequency instruments may be stored in advance in the computer device, a target instruction script corresponding to a radio frequency instrument is obtained for different radio frequency instruments, and then the target instruction script corresponding to the radio frequency instrument may be called according to a test control code to obtain a control instruction corresponding to an instruction name in the test control code, so as to control the radio frequency instrument to execute a radio frequency performance testing operation corresponding to the instruction name, and specifically, the radio frequency performance testing method may include the following steps:
s201, acquiring the identification of the radio frequency instrument, and determining a target instruction script corresponding to the identification of the radio frequency instrument according to the corresponding relation between the identification of different radio frequency instruments and different instruction scripts; the target instruction script comprises corresponding relations between different instruction names and different control instructions; the control instruction is used for controlling the radio frequency instrument to execute the radio frequency performance test operation corresponding to the instruction name.
The computer equipment can store a plurality of instruction scripts and can correspond to radio frequency instruments of different manufacturers and different models. For example, the file names of different instruction scripts or the text contents of the instruction scripts may store the identifiers of the radio frequency instruments corresponding to the instruction scripts, or the corresponding relationships between the identifiers of the different radio frequency instruments and the different instruction scripts may be stored by using a special mapping table.
For example, for instrument a, the instruction script corresponding to instrument a may include: the correspondence between different command names and different control commands may be stored in the form of correspondence (see table 1), text, or in other manners.
Table 1: instrument A instruction script
Instruction name Control instruction
Instruction name 1 Control instruction 1
...... ......
Instruction name N Control instruction N
In one embodiment, the instruction script may include: the method comprises the steps of identifying a radio frequency instrument, at least one instruction name, a control instruction corresponding to the instruction name and an instruction type of the control instruction.
Referring to fig. 3, an instruction script stored in a text form, where 301 is an identifier of the radio frequency instrument, specifically, an identifier such as a middle bracket may be used for identification, which is convenient for a computer device to identify; wherein 302-. Specifically, 302 and 306 may be two different instruction names, respectively, for example, "CF" is a center frequency point instruction name; 303 and 307 are separators for dividing respective instruction names and control instructions, and may be represented by equal numbers or the like; 304 and 308 may respectively represent the instruction types of two control instructions, and may use parentheses as identifiers, and the instruction types may be represented in parentheses, for example, (S) represents a string-like instruction, (F) represents a function-like instruction; 305 and 309 may each represent a corresponding control instruction.
The identification of the rf instrument may include, but is not limited to, model information, manufacturer information, number information, etc. of the rf instrument. In one embodiment, the acquiring the identifier of the radio frequency instrument may include: the computer device receives an input identification of the radio frequency instrument. In another embodiment, the acquiring the identifier of the radio frequency instrument may include: sending an instrument identifier acquisition request to the radio frequency instrument; and receiving the identification of the radio frequency instrument returned by the radio frequency instrument. The IEEE488.2 protocol specifies an instrument interface specification, which specifies a common command, such as an instrument identification acquisition request, that has the function of reading the identification of a radio frequency instrument, to which each radio frequency instrument manufacturer complies; therefore, the computer device can acquire the identifier of the radio frequency instrument by sending the instrument identifier acquisition request after connecting with the radio frequency device.
S202, calling the target instruction script according to a test control code to control the radio frequency instrument to carry out radio frequency performance test operation on the radio frequency equipment to be tested; the test control code includes at least one instruction name.
The test control code can be used for controlling communication between the computer equipment and the radio frequency equipment in the radio frequency performance test process and communication between the computer equipment and the radio frequency equipment to be tested; in particular, the method may involve obtaining an identifier of the radio frequency instrument from the radio frequency instrument, and may also involve a test sequence and test contents of various types of radio frequency performance; correspondingly, the test control code includes at least one instruction name, and is used to send a control instruction corresponding to the instruction name to the radio frequency instrument to control the radio frequency instrument to send a radio frequency signal to the radio frequency device to be tested, or to obtain a test value obtained by the radio frequency instrument receiving the radio frequency signal sent by the radio frequency device to be tested, and the like.
Illustratively, the radio frequency performance test may include a test of the radio frequency performance of: transmission power, error vector magnitude (the vector difference between an ideal error-free reference signal and an actual transmission signal at a given moment), spectrum transmission template (spectrum spurious energy within a given range of offset carrier center frequency), frequency offset, reception sensitivity and the like. Taking the radio frequency device to be tested as a mobile phone as an example, the computer device can control the radio frequency instrument to send a set radio frequency signal to the mobile phone, and then can inquire the mobile phone and acquire the received signal strength of the mobile phone so as to test the receiving sensitivity of the mobile phone; the computer device may also control the handset to transmit radio frequency signals and interrogate the radio frequency instrument to obtain from the radio frequency instrument a resulting test value, such as handset transmit power, that is received and detected by the radio frequency instrument.
Taking fig. 3 as an example, for the rf instrument identified as "FSW-3", in the test control code, "CF" is used to set the center frequency of the rf signal transmitted by the rf instrument, while "CF" is not correctly recognized by the rf instrument, and accordingly, the "Freq" instruction is a real control instruction for the rf instrument, is likely to be correctly recognized by the rf instrument, and can be used to control the rf instrument. Therefore, in an embodiment, the computer device may recognize the test control code, for example, when the instruction name in the test control code is recognized according to a preset instruction name table, the target instruction script may be called, the corresponding instruction name in the test control code may be replaced by the control instruction corresponding to the instruction name in the target instruction script, the modified test control code is executed, and the radio frequency instrument is controlled according to the control instruction in the test control code, so that the radio frequency instrument executes the radio frequency test function corresponding to the instruction name.
In this embodiment, optionally, the instruction names corresponding to the different instruction scripts for controlling the corresponding radio frequency instruments to execute the same radio frequency performance test operation are the same. For example, each instruction script may use "CF" as a name of a center frequency point instruction, and is used to set a center frequency of a radio frequency signal transmitted by a radio frequency instrument. Therefore, for different radio frequency instruments, a universal instruction name can be adopted in the test control code; and then the test control code can be multiplexed aiming at different radio frequency instruments. For different radio frequency instruments with instruction scripts, only a universal test control code is needed to be adopted and corresponding instruction scripts are loaded when testing is carried out.
The technical scheme of the embodiment is equivalent to separating the parts related to the control instructions of the radio frequency instruments in the original test control codes to form test control codes which can be commonly used by different radio frequency instruments and instruction scripts special for different radio frequency instruments; for a new radio frequency instrument, only a corresponding instruction script needs to be developed, corresponding instruction names in the test control codes can be used for the same radio frequency test function in the instruction script, only the control instructions corresponding to the instruction names need to be edited for the radio frequency instrument, the test control codes do not need to be maintained or developed, the test control codes can be reused by different radio frequency instruments, and the self-adaptation of the radio frequency instrument instructions is realized; in addition, when the instruction script is maintained, a text editing mode is adopted, a compiling and debugging environment does not need to be set up, and the maintenance is simple. In summary, the radio frequency performance testing method of the embodiment can reduce the maintenance cost of the test control code, and the maintenance cost of the instruction script is also lower.
Referring to fig. 4, this embodiment relates to a specific implementation manner of the step of calling the target instruction script according to the test control code to control the radio frequency instrument, specifically, on the basis of fig. 2, the above S202 may include:
s401, loading and executing the test control code.
Different test control codes can be pre-stored in the computer equipment, for example, the radio frequency test requirements of the mobile phone and the radio frequency amplifier are different, so the test control code for the mobile phone and the test control code for the radio frequency amplifier can be different; even for the same rf product, the corresponding test control codes may be different because different test batches may have different rf performance to be tested. Therefore, before testing, the computer device needs to load the corresponding test control codes according to different radio frequency test requirements: an identification list with test control codes may be displayed, a selection operation with respect to the identification list is detected, and a test control code corresponding to an identification selected by a user is loaded. Specifically, the computer device may directly load and execute the test control code, or may be loaded by an associated control program or control software.
S402, in the process of executing the test control code, according to the instruction name in the test control code, obtaining the control instruction corresponding to the instruction name from the target instruction script.
In the process of executing the test control code, the computer equipment can perform word segmentation recognition on the test control code and can also perform recognition by the aid of a preset instruction name table so as to recognize an instruction name in the test control code; when a certain instruction name is recognized by the computer device, the control instruction corresponding to the instruction name can be obtained from the target instruction script. When the test control code has a plurality of instruction names, the test control code can be executed in sequence, and when the current instruction name is identified, a control instruction corresponding to the current instruction name is obtained to control the radio frequency instrument to perform radio frequency performance test operation on the radio frequency equipment to be tested; and then continuing to execute the test control code, and when the name of the next instruction is identified, continuing the steps until the test control code is completely executed.
And S403, controlling the radio frequency instrument to perform radio frequency performance test operation on the radio frequency equipment to be tested according to the control instruction.
The instruction types of the control instructions at least include a character string type and a function type, and accordingly, the control process is slightly different.
In an embodiment, the controlling the target control instruction is a string type instruction, and controlling the radio frequency instrument to perform a radio frequency performance test operation on the radio frequency device to be tested according to the control instruction includes: and sending the character string type instruction to the radio frequency instrument to instruct the radio frequency instrument to execute the character string type instruction to perform radio frequency performance test operation.
It should be noted that the computer device may directly send the string-like instruction to the radio frequency instrument to instruct the radio frequency instrument to execute the string-like instruction, for example, may send a reading control instruction to the radio frequency instrument to obtain a test value detected by the radio frequency instrument. Furthermore, there is a case where, in addition to sending the string-like instruction to the radio frequency instrument, the computer device needs to send a control parameter associated with the string-like instruction (actually, the corresponding instruction name) to the radio frequency instrument, where the control parameter may be preset, may be stored in the test control code, and may be associated with the string-like instruction (for example, identified by an identifier "()"). For example, for the radio frequency instrument "FSW-3", a section of test control code is "CF (1 GHz)", the computer device may send the string type instruction "Freq" and the control parameter "1 GHz" corresponding to the instruction name "CF" to the radio frequency instrument according to a preset format, and the radio frequency instrument may correctly identify and execute the control instruction after receiving the "Freq" control instruction and the control parameter "1 GHz", that is, set the center frequency of the radio frequency signal transmitted by the radio frequency instrument to "1 GHz".
In an embodiment, the controlling the target control instruction is a function-like instruction, and controlling the radio frequency instrument to perform a radio frequency performance test operation on the radio frequency device to be tested according to the control instruction includes: acquiring a function code corresponding to the function class instruction from the test control code or a function library associated with the test control code and executing the function code; and in the process of executing the function code, acquiring a control instruction corresponding to the refined instruction name from the instruction script according to the refined instruction name in the function code, and controlling the radio frequency instrument to perform radio frequency performance test operation on the radio frequency equipment to be tested according to the target control instruction.
For example, for a function class instruction "FSW 3_ PKS ()" shown in fig. 3, the computer device may obtain a function code of the function class instruction from the test control code or a function library associated with the test control code, where the function code may be as shown in fig. 5, where "GetMark 1 ()" and "GetMark 2 ()" may be instruction names, and for convenience of distinction, may be referred to as refined instruction names corresponding to the instruction names "PKSearch", and the computer device still needs to search the refined control instruction corresponding to the refined instruction names in the target instruction script and control the radio frequency instrument to perform the radio frequency performance test operation on the radio frequency device to be tested according to the refined control instruction. It can be understood that, after the above-mentioned steps, the instruction of the function class is generally converted into a corresponding series of string class refining instructions, and the serial refining instructions are sequentially sent to the radio frequency instrument by the computer device, and the radio frequency instrument executes the series of string class refining instructions to perform the radio frequency performance test operation on the radio frequency device to be tested.
In the radio frequency performance testing method of this embodiment, the computer device may automatically obtain, according to the instruction name in the test control code, the control instruction corresponding to the instruction name from the target instruction script in the process of executing the test control code to control the radio frequency instrument to perform the radio frequency performance testing operation on the radio frequency device to be tested, so that the testing efficiency may be improved.
It should be understood that although the steps in the flowcharts of fig. 2 and 4 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 and 4 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 6, there is provided a radio frequency performance testing apparatus 60, which may include: an instruction script determination module 601 and a test control module 602, wherein:
the instruction script determining module 601 is configured to obtain an identifier of a radio frequency instrument, and determine a target instruction script corresponding to the identifier of the radio frequency instrument according to a correspondence between identifiers of different radio frequency instruments and different instruction scripts; the target instruction script comprises corresponding relations between different instruction names and different control instructions; the control instruction is used for controlling the radio frequency instrument to execute the radio frequency performance test operation corresponding to the instruction name;
the test control module 602 is configured to call the target instruction script according to a test control code to control the radio frequency instrument to perform a radio frequency performance test operation on the radio frequency device to be tested; the test control code includes at least one instruction name.
Optionally, as shown in fig. 7, on the basis of fig. 6, the test control module 602 may include:
a test control code loading unit 6021 for loading and executing the test control code;
a control instruction obtaining unit 6022, configured to obtain, according to an instruction name in the test control code, a control instruction corresponding to the instruction name from the target instruction script in the process of executing the test control code;
and the radio frequency instrument control unit 6023 is configured to control the radio frequency instrument to perform a radio frequency performance test operation on the radio frequency device to be tested according to the control instruction.
Optionally, the target control instruction is a character string instruction, and the radio frequency instrument control unit 6023 is specifically configured to send the character string instruction to the radio frequency instrument, so as to instruct the radio frequency instrument to execute the character string instruction to perform a radio frequency performance test operation.
Optionally, the target control instruction is a function instruction, and the radio frequency instrument control unit 6023 is specifically configured to obtain a function code corresponding to the function instruction from the test control code or a function library associated with the test control code and execute the function code;
in the process of executing the function code, acquiring a refining control instruction corresponding to the refining instruction name from the target instruction script according to the refining instruction name in the function code, and controlling the radio frequency instrument to perform radio frequency performance test operation on the radio frequency equipment to be tested according to the refining control instruction.
Optionally, the instruction script determining module 601 may include:
a radio frequency instrument identification request unit, configured to send an instrument identification acquisition request to the radio frequency instrument;
and the radio frequency instrument identification receiving unit is used for receiving the identification of the radio frequency instrument returned by the radio frequency instrument.
Optionally, the instruction script comprises: the method comprises the steps of identifying a radio frequency instrument, at least one instruction name, a control instruction corresponding to the instruction name and an instruction type of the control instruction.
Optionally, the instruction names associated with the different instruction scripts for controlling the corresponding radio frequency instruments to execute the same radio frequency performance test operation are the same.
The radio frequency performance test method of the embodiment can reduce the maintenance cost of the test control code, and the maintenance cost of the instruction script is also lower.
For the specific definition of the radio frequency performance testing apparatus, reference may be made to the above definition of the radio frequency performance testing method, which is not described herein again. The modules in the radio frequency performance testing device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a radio frequency performance testing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring the identification of a radio frequency instrument, and determining a target instruction script corresponding to the identification of the radio frequency instrument according to the corresponding relation between the identification of different radio frequency instruments and different instruction scripts; the target instruction script comprises corresponding relations between different instruction names and different control instructions; the control instruction is used for controlling the radio frequency instrument to execute the radio frequency performance test operation corresponding to the instruction name;
calling the target instruction script according to a test control code to control the radio frequency instrument to perform radio frequency performance test operation on the radio frequency equipment to be tested; the test control code includes at least one instruction name.
In one embodiment, the processor, when executing the computer program, further performs the steps of: loading and executing the test control code; in the process of executing the test control code, acquiring a control instruction corresponding to the instruction name from the target instruction script according to the instruction name in the test control code; and controlling the radio frequency instrument to carry out radio frequency performance test operation on the radio frequency equipment to be tested according to the control instruction.
In one embodiment, the target control instruction is a character string type instruction, and the processor executes the computer program to further implement the following steps: and sending the character string type instruction to the radio frequency instrument to instruct the radio frequency instrument to execute the character string type instruction to perform radio frequency performance test operation.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a function code corresponding to the function class instruction from the test control code or a function library associated with the test control code and executing the function code; in the process of executing the function code, acquiring a refining control instruction corresponding to the refining instruction name from the target instruction script according to the refining instruction name in the function code, and controlling the radio frequency instrument to perform radio frequency performance test operation on the radio frequency equipment to be tested according to the refining control instruction.
In one embodiment, the processor, when executing the computer program, further performs the steps of: sending an instrument identifier acquisition request to the radio frequency instrument; and receiving the identification of the radio frequency instrument returned by the radio frequency instrument.
In one embodiment, the instruction script comprises: the method comprises the steps of identifying a radio frequency instrument, at least one instruction name, a control instruction corresponding to the instruction name and an instruction type of the control instruction.
In one embodiment, the instruction names associated with the different instruction scripts for controlling the corresponding radio frequency instruments to execute the same radio frequency performance test operation are the same.
In one embodiment, a readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring the identification of a radio frequency instrument, and determining a target instruction script corresponding to the identification of the radio frequency instrument according to the corresponding relation between the identification of different radio frequency instruments and different instruction scripts; the target instruction script comprises corresponding relations between different instruction names and different control instructions; the control instruction is used for controlling the radio frequency instrument to execute the radio frequency performance test operation corresponding to the instruction name;
calling the target instruction script according to a test control code to control the radio frequency instrument to perform radio frequency performance test operation on the radio frequency equipment to be tested; the test control code includes at least one instruction name.
In one embodiment, the computer program when executed by the processor further performs the steps of: loading and executing the test control code; in the process of executing the test control code, acquiring a control instruction corresponding to the instruction name from the target instruction script according to the instruction name in the test control code; and controlling the radio frequency instrument to carry out radio frequency performance test operation on the radio frequency equipment to be tested according to the control instruction.
In one embodiment, the target control instruction is a string-like instruction, and the computer program when executed by the processor further performs the steps of: and sending the character string type instruction to the radio frequency instrument to instruct the radio frequency instrument to execute the character string type instruction to perform radio frequency performance test operation.
In one embodiment, the target control instructions are function class instructions, and the computer program when executed by the processor further performs the steps of: acquiring a function code corresponding to the function class instruction from the test control code or a function library associated with the test control code and executing the function code; in the process of executing the function code, acquiring a refining control instruction corresponding to the refining instruction name from the target instruction script according to the refining instruction name in the function code, and controlling the radio frequency instrument to perform radio frequency performance test operation on the radio frequency equipment to be tested according to the refining control instruction.
In one embodiment, the computer program when executed by the processor further performs the steps of: sending an instrument identifier acquisition request to the radio frequency instrument; and receiving the identification of the radio frequency instrument returned by the radio frequency instrument.
In one embodiment, the instruction script comprises: the method comprises the steps of identifying a radio frequency instrument, at least one instruction name, a control instruction corresponding to the instruction name and an instruction type of the control instruction.
In one embodiment, the instruction names associated with the different instruction scripts for controlling the corresponding radio frequency instruments to execute the same radio frequency performance test operation are the same.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A radio frequency performance testing method, characterized in that the method comprises:
acquiring the identification of a radio frequency instrument, and determining a target instruction script corresponding to the identification of the radio frequency instrument according to the corresponding relation between the identification of different radio frequency instruments and different instruction scripts; the target instruction script comprises corresponding relations between different instruction names and different control instructions; the control instruction is used for controlling the radio frequency instrument to execute the radio frequency performance test operation corresponding to the instruction name; the instruction script is maintained in a text editing mode;
calling the target instruction script according to a test control code to control the radio frequency instrument to perform radio frequency performance test operation on the radio frequency equipment to be tested; the test control code includes at least one instruction name; multiplexing the test control codes by different radio frequency instruments;
the calling the target instruction script according to the test control code to control the radio frequency instrument to perform radio frequency performance test operation on the radio frequency equipment to be tested comprises the following steps:
loading and executing the test control code;
in the process of executing the test control code, acquiring a control instruction corresponding to the instruction name from the target instruction script according to the instruction name in the test control code;
replacing the instruction name in the test control code with a control instruction corresponding to the instruction name in the target instruction script to form a modified test control code;
and executing the modified test control code to control the radio frequency instrument to carry out radio frequency performance test operation on the radio frequency equipment to be tested.
2. The method according to claim 1, wherein the target control instruction is a string-type instruction, and the controlling the radio frequency instrument to perform the radio frequency performance test operation on the radio frequency device to be tested according to the control instruction comprises:
and sending the character string type instruction to the radio frequency instrument to instruct the radio frequency instrument to execute the character string type instruction to perform radio frequency performance test operation.
3. The method of claim 1, wherein the target control instruction is a function-like instruction, and controlling the radio frequency instrument to perform a radio frequency performance test operation on the radio frequency device to be tested according to the control instruction comprises:
acquiring a function code corresponding to the function class instruction from the test control code or a function library associated with the test control code and executing the function code;
in the process of executing the function code, acquiring a refining control instruction corresponding to the refining instruction name from the target instruction script according to the refining instruction name in the function code, and controlling the radio frequency instrument to perform radio frequency performance test operation on the radio frequency equipment to be tested according to the refining control instruction.
4. The method of any one of claims 1-3, wherein the obtaining an identification of a radio frequency instrument comprises:
sending an instrument identifier acquisition request to the radio frequency instrument;
and receiving the identification of the radio frequency instrument returned by the radio frequency instrument.
5. The method of any of claims 1-3, wherein the instruction script comprises: the method comprises the steps of identifying a radio frequency instrument, at least one instruction name, a control instruction corresponding to the instruction name and an instruction type of the control instruction.
6. The method according to any one of claims 1 to 3, wherein the instruction names associated with the different instruction scripts for controlling the corresponding radio frequency instruments to perform the same radio frequency performance test operation are the same.
7. A method according to any of claims 1-3, characterized in that the correspondence between different command names and different control commands is stored in the form of text words or in the form of a correspondence.
8. A radio frequency performance testing apparatus, the apparatus comprising:
the instruction script determining module is used for acquiring the identification of the radio frequency instrument and determining a target instruction script corresponding to the identification of the radio frequency instrument according to the corresponding relation between the identification of different radio frequency instruments and different instruction scripts; the target instruction script comprises corresponding relations between different instruction names and different control instructions; the control instruction is used for controlling the radio frequency instrument to execute the radio frequency performance test operation corresponding to the instruction name; the instruction script is maintained in a text editing mode;
the test control module is used for calling the target instruction script according to a test control code so as to control the radio frequency instrument to carry out radio frequency performance test operation on the radio frequency equipment to be tested; the test control code includes at least one instruction name; multiplexing the test control codes by different radio frequency instruments;
the test control module is specifically configured to: loading and executing the test control code; in the process of executing the test control code, acquiring a control instruction corresponding to the instruction name from the target instruction script according to the instruction name in the test control code; replacing the instruction name in the test control code with a control instruction corresponding to the instruction name in the target instruction script to form a modified test control code; and executing the modified test control code to control the radio frequency instrument to carry out radio frequency performance test operation on the radio frequency equipment to be tested.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201811423087.8A 2018-11-27 2018-11-27 Radio frequency performance test method and device, computer equipment and readable storage medium Active CN109347578B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811423087.8A CN109347578B (en) 2018-11-27 2018-11-27 Radio frequency performance test method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811423087.8A CN109347578B (en) 2018-11-27 2018-11-27 Radio frequency performance test method and device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN109347578A CN109347578A (en) 2019-02-15
CN109347578B true CN109347578B (en) 2022-01-04

Family

ID=65317919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811423087.8A Active CN109347578B (en) 2018-11-27 2018-11-27 Radio frequency performance test method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN109347578B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114828061B (en) * 2021-01-22 2023-10-03 成都鼎桥通信技术有限公司 Radio frequency test method, device, equipment and readable storage medium
CN117135677B (en) * 2023-09-09 2024-02-27 上海大帜信息技术有限公司 5G radio frequency stability test system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567801A (en) * 2003-06-25 2005-01-19 华为技术有限公司 Radio-frequency indicator testing method
CN1737589A (en) * 2004-08-18 2006-02-22 华为技术有限公司 Testing method for radio-frequency product
WO2007081324A1 (en) * 2006-01-10 2007-07-19 Telco Testing System Llc Apparatus, method and system for testing electronic components
CN202795337U (en) * 2012-06-21 2013-03-13 伟创力电子技术(苏州)有限公司 Light - radio frequency transceiver module automated programming and functional testing integrated machine
CN105528267A (en) * 2016-01-15 2016-04-27 青岛海信移动通信技术股份有限公司 Mobile phone RF (radio frequency) specification serial parallel test method and system
CN106406163A (en) * 2016-08-17 2017-02-15 中国电子科技集团公司第四十研究所 Efficient instrument program control implementing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567801A (en) * 2003-06-25 2005-01-19 华为技术有限公司 Radio-frequency indicator testing method
CN1737589A (en) * 2004-08-18 2006-02-22 华为技术有限公司 Testing method for radio-frequency product
WO2007081324A1 (en) * 2006-01-10 2007-07-19 Telco Testing System Llc Apparatus, method and system for testing electronic components
CN202795337U (en) * 2012-06-21 2013-03-13 伟创力电子技术(苏州)有限公司 Light - radio frequency transceiver module automated programming and functional testing integrated machine
CN105528267A (en) * 2016-01-15 2016-04-27 青岛海信移动通信技术股份有限公司 Mobile phone RF (radio frequency) specification serial parallel test method and system
CN106406163A (en) * 2016-08-17 2017-02-15 中国电子科技集团公司第四十研究所 Efficient instrument program control implementing method

Also Published As

Publication number Publication date
CN109347578A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN109413686B (en) Base station automatic test system, method and device
CN111459794A (en) Communication network testing method, device, computer equipment and storage medium
CN109726134B (en) Interface test method and system
CN105577293A (en) Bluetooth equipment testing method, Bluetooth equipment testing device and Bluetooth equipment testing system
CN109347578B (en) Radio frequency performance test method and device, computer equipment and readable storage medium
CN101126793A (en) Intelligent card test system and method
CN112799958A (en) Equipment batch test method and device, computer equipment and medium
CN112637008B (en) Link simulation test method, device, system, computer equipment and storage medium
CN109255107A (en) Configuration software processing method, device, computer equipment and storage medium
CN113672441A (en) Method and device for testing intelligent equipment
CN111400179B (en) Method and device for terminal application program interaction, computer equipment and storage medium
CN110597714A (en) Kafka message testing method and device, computer equipment and storage medium
CN111737121A (en) NFC chip testing method and device, terminal equipment and storage medium
CN117499286A (en) Software system, method, equipment and medium for automatic test of communication module
CN111786852B (en) Test method and related equipment
CN110401934B (en) Method for managing equipment, management equipment and computer readable storage medium
CN115833964A (en) Performance test method and performance test system of dual-mode communication module
CN115934129A (en) Software project updating method and device, computer equipment and storage medium
CN111541589B (en) Method, device and equipment for testing expansion module interface of intelligent terminal
CN110139297B (en) Frequency band locking method and device, computer equipment and storage medium
CN115103392A (en) eSIM terminal test method, instrument, portal server, device and system
CN113194448A (en) Bluetooth device testing method, testing terminal and readable storage medium
CN112463630A (en) Version difference testing method and device, computer equipment and storage medium
CN116600257B (en) Frequency matching method of interphone and interphone
CN110430533A (en) Mobile terminal locating method, device, system, computer equipment and storage medium

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
TA01 Transfer of patent application right

Effective date of registration: 20200109

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant after: Jingxin Communication System (China) Co., Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: Jingxin Communication System (China) Co., Ltd.

Applicant before: Jingxin Communication System (Guangzhou) Co., Ltd.

Applicant before: Jingxin Communication Technology (Guangzhou) Co., Ltd.

Applicant before: TIANJIN COMBA TELECOM SYSTEMS CO., LTD.

TA01 Transfer of patent application right
CB02 Change of applicant information

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: Comba Telecom System (China) Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant