Disclosure of Invention
In view of the above, embodiments of the present application provide a device and a method for testing a mixer, so as to solve the technical problems of limited mixer parameters and unstable testing, which results in low testing efficiency of the existing device and method for testing a mixer.
In a first aspect, an embodiment of the present application provides a mixer testing apparatus, including a vector network analyzer, an intermediate frequency transceiver switching module, a radio frequency transceiver switching module, a local oscillator source module, and a controller.
The first port of the vector network analyzer is connected with the first signal port of the intermediate frequency receiving and transmitting switching module, the second port of the vector network analyzer is connected with the fourth signal port of the intermediate frequency receiving and transmitting switching module, the vector network analyzer is used for generating intermediate frequency signals and carrying out parameter test on received radio frequency signals or generating radio frequency signals and carrying out parameter test on received intermediate frequency signals, the second signal port of the intermediate frequency receiving and transmitting switching module is connected with the intermediate frequency port of the mixer to be tested, the intermediate frequency receiving and transmitting switching module is used for amplifying or attenuating the intermediate frequency signals, the third signal port of the radio frequency receiving and transmitting switching module is connected with the radio frequency port of the mixer to be tested, the radio frequency receiving and transmitting switching module is used for amplifying or attenuating the radio frequency signals, the output port of the local oscillator source module is connected with the local oscillator port of the mixer to be tested, the local oscillator source module is used for generating local oscillator signals, and the controller is respectively connected with the intermediate frequency receiving and transmitting switching module and transmitting the intermediate frequency signals and controlling the intermediate frequency receiving and transmitting switching module to amplify or attenuate the radio frequency signals and controlling the local oscillator source module to generate local oscillator signals.
In one possible implementation manner of the first aspect, the intermediate frequency transceiver switching module further comprises a first intermediate frequency switch, a second intermediate frequency switch, a first power amplifier and a first power attenuator, wherein one end of the first intermediate frequency switch is connected with the first signal port, the other end of the first intermediate frequency switch is connected with the input end of the first power amplifier, the output end of the first power amplifier is connected with the second intermediate frequency switch, the other end of the second intermediate frequency switch is connected with the second signal port, and the output end of the first power attenuator is connected with the first intermediate frequency switch, and the input end of the first power attenuator is connected with the second intermediate frequency switch.
In a possible implementation manner of the first aspect, the first intermediate frequency switch, the second intermediate frequency switch and the first power amplifier form an intermediate frequency amplifying channel, the intermediate frequency amplifying channel is used for amplifying the intermediate frequency signal, and the first intermediate frequency switch, the second intermediate frequency switch and the first power attenuator form an intermediate frequency attenuating channel, and the intermediate frequency attenuating channel is used for attenuating the intermediate frequency signal.
In one possible implementation manner of the first aspect, the radio frequency transceiver switching module further comprises a third radio frequency switch, a fourth radio frequency switch, a second power amplifier, a third power amplifier, a second power attenuator and a third power attenuator, wherein one end of the fourth radio frequency switch is connected with the fourth signal port, the other end of the fourth radio frequency switch is connected with the input end of the third power amplifier, the output end of the third power amplifier is connected with the input end of the third power attenuator, the output end of the third power attenuator is connected with the input end of the second power amplifier, the output end of the second power amplifier is connected with the third radio frequency switch, the other end of the third radio frequency switch is connected with the third signal port, and the output end of the second power attenuator is connected with the fourth radio frequency switch.
In a possible implementation manner of the first aspect, the third radio frequency switch, the fourth radio frequency switch, the second power amplifier, the third power amplifier and the third power attenuator form a radio frequency amplifying channel, the radio frequency amplifying channel is used for amplifying radio frequency signals, and the third radio frequency switch, the fourth radio frequency switch and the second power attenuator form a radio frequency attenuation channel, and the radio frequency attenuation channel is used for attenuating radio frequency signals.
In one possible implementation manner of the first aspect, the local oscillator module further includes a local oscillator, a fourth power amplifier, a power level converter and a power detection control chip, wherein one end of the local oscillator is connected with an input end of the fourth power amplifier, an output end of the fourth power amplifier is connected with an output port, one end of the power level converter is connected with the local oscillator, the other end of the power level converter is connected with the power detection control chip, the other end of the power detection control chip is connected with an output end of the fourth power amplifier, and the local oscillator is connected with the power detection control chip.
In a possible implementation manner of the first aspect, the local oscillator source is used for generating an original local oscillator signal, the fourth power amplifier is used for amplifying the original local oscillator signal to obtain the local oscillator signal, and the power detection control chip is used for detecting the power of the original local oscillator signal, controlling the frequency of the original local oscillator signal and controlling the amplification factor of the fourth power amplifier.
In a possible implementation manner of the first aspect, the intermediate frequency transceiver switching module further includes a first control port and a first power port, the radio frequency transceiver switching module further includes a second control port and a second power port, the local oscillator source module further includes a third control port and a third power port, the controller is respectively connected with the first control port, the second control port and the third control port, the controller is used for controlling to amplify or attenuate the intermediate frequency signal by controlling a level state of the first control port, and amplifying or attenuating the radio frequency signal by controlling a level state of the second control port, and sending control information to the third control port, wherein the control information is used for controlling a frequency and a power of the local oscillator signal by controlling a power detection control chip, the first power port is used for supplying power to an active circuit in the intermediate frequency transceiver switching module, the second power port is used for supplying power to the active circuit in the radio frequency transceiver switching module, and the third power port is used for supplying power to the active circuit in the local oscillator source module.
In a second aspect, an embodiment of the present application provides a method for testing a mixer, where the method is applied to the device for testing a mixer according to any one of the first aspect, and the method includes that when an up-conversion test is performed on the mixer, a vector network analyzer generates a first intermediate frequency signal from a first port, an intermediate frequency receiving and transmitting switching module amplifies the first intermediate frequency signal and transmits the amplified first intermediate frequency signal to a mixer to be tested, a local oscillation source module generates a first local oscillation signal and transmits the first local oscillation signal to the mixer to be tested, and an rf receiving and transmitting switching module attenuates the first radio frequency signal received from the mixer to be tested and transmits the attenuated first radio frequency signal to a vector network analyzer, where the first radio frequency signal is obtained by mixing the amplified first intermediate frequency signal and the first local oscillation signal with the mixer to be tested, and a second port of the vector network analyzer receives the attenuated first radio frequency signal and performs a parametric test on the attenuated first radio frequency signal to obtain a first parameter of the mixer.
When the down-conversion test of the mixer is carried out, the vector network analyzer generates a second radio frequency signal from a second port, the radio frequency receiving and transmitting switching module amplifies the second radio frequency signal and transmits the amplified second radio frequency signal to the mixer to be tested, the local oscillator source module generates a second local oscillator signal and transmits the second local oscillator signal to the mixer to be tested, the intermediate frequency receiving and transmitting switching module attenuates the second intermediate frequency signal received from the mixer to be tested and transmits the attenuated second intermediate frequency signal to the vector network analyzer, wherein the second intermediate frequency signal is obtained by mixing the amplified second radio frequency signal and the second local oscillator signal through the mixer to be tested, and the first port of the vector network analyzer receives the attenuated second intermediate frequency signal and carries out parameter test on the attenuated second intermediate frequency signal to obtain a second parameter of the mixer.
In one possible implementation manner of the second aspect, the method for testing the mixer further includes controlling, by the controller, the intermediate frequency transceiving switching module to be in an intermediate frequency signal amplifying state and controlling the radio frequency transceiving switching module to be in a radio frequency signal attenuating state and controlling the local oscillator source module to generate the first local oscillator signal when the up-conversion test of the mixer is performed, and controlling, by the controller, the radio frequency transceiving switching module to be in the radio frequency amplifying state and controlling the intermediate frequency transceiving switching module to be in the intermediate frequency signal attenuating state and controlling the local oscillator source module to generate the second local oscillator signal when the down-conversion test of the mixer is performed.
In a third aspect, embodiments of the present application provide a computer program product which, when run on a mixer test apparatus, causes the mixer test apparatus to perform the mixer test method according to any one of the second aspects above.
It will be appreciated that the advantages of the second to third aspects may be found in the relevant description of the first aspect, and are not described in detail herein.
The device comprises a vector network analyzer, an intermediate frequency receiving and transmitting switching module, a radio frequency receiving and transmitting switching module, a local oscillator source module and a controller, wherein the vector network analyzer is respectively connected with the intermediate frequency receiving and transmitting switching module and the radio frequency receiving and transmitting switching module and is used for generating intermediate frequency signals or radio frequency signals, performing parameter testing on the received radio frequency signals or the intermediate frequency signals, respectively connecting the intermediate frequency receiving and transmitting switching module, the radio frequency receiving and transmitting switching module and the local oscillator source module with a mixer to be tested, respectively amplifying or attenuating the intermediate frequency signals, amplifying or attenuating the radio frequency signals and generating the local oscillator signals, and the controller is respectively connected with the intermediate frequency receiving and transmitting switching module, the radio frequency receiving and transmitting switching module and the local oscillator source module and is used for controlling the modules. The mixer testing device provided by the application can realize the control of signal amplification or attenuation, realize the up-down conversion test of the mixer to be tested without changing hardware connection, improve the test stability of the mixer, shorten the test time and further improve the test efficiency.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Detailed Description
The present application will be more clearly described with reference to the following examples. The following examples will assist those skilled in the art in further understanding the function of the present application, but are not intended to limit the application in any way. It should be noted that variations and modifications could be made by those skilled in the art without departing from the inventive concept. These are all within the scope of the present application.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
In the description of the present specification and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Furthermore, references to "a plurality of" in embodiments of the present application should be interpreted as two or more.
With the continuous development of society and technology, communication plays an increasingly important role in the work and life of people, and communication products become an important tool in social production and daily life. In the field of radio communication, the quality of communication products depends on the design and implementation method of radio frequency communication hardware. The linearity of the mixer is used as a key device of radio frequency communication hardware, the dynamic range of a frequency conversion front link and a frequency conversion rear link is determined by the linearity of the mixer, the gain of the frequency conversion front link and the frequency conversion rear link is determined by the frequency conversion loss, and the index requirements of filters of a transmitting link and a receiving link are determined by the spurious, so that the linearity, the frequency conversion loss and the spurious of the mixer play a decisive role in the performance index of the whole machine, and the method is very important for testing parameters of the mixer.
The mixer is a three-port radio frequency device (see fig. 1), and is composed of an intermediate frequency port P1, a radio frequency port P2 and a local oscillator port P3, and can perform mixing processing on an intermediate frequency signal input by the intermediate frequency port P1 and a local oscillator signal input by the local oscillator port P3, and can also perform mixing processing on a radio frequency signal input by the radio frequency port P2 and a local oscillator signal input by the local oscillator port P3. Because the intermediate frequency port P1 and the radio frequency port P2 have different frequencies, the local oscillation port P3 has high power, and the rapid scan test is always a key challenge in the radio frequency and microwave fields. The existing test of the parameters of the mixer is completed by utilizing two signal sources and one frequency spectrum, and the problems of limited parameters of the mixer, unstable test and low test efficiency exist.
Based on the above problems, the embodiment of the application provides a mixer testing device, which comprises a vector network analyzer, an intermediate frequency receiving and transmitting switching module, a radio frequency receiving and transmitting switching module, a local oscillator source module and a controller. The vector network analyzer is respectively connected with the intermediate frequency receiving and transmitting switching module and the radio frequency receiving and transmitting switching module, and is used for generating intermediate frequency signals or radio frequency signals and carrying out parameter test on the received radio frequency signals or the intermediate frequency signals. The intermediate frequency receiving and transmitting switching module is connected with the mixer to be detected and is used for amplifying or attenuating intermediate frequency signals. The radio frequency receiving and transmitting switching module is connected with the mixer to be detected and used for amplifying or attenuating radio frequency signals. The local oscillation source module is connected with the mixer to be detected and is used for generating local oscillation signals. The controller is respectively connected with the intermediate frequency receiving and transmitting switching module, the radio frequency receiving and transmitting switching module and the local oscillation source module and is used for controlling the modules. The control of signal amplification or attenuation can be realized, the up-down frequency conversion test of the mixer to be tested is realized without changing hardware connection, the test stability can be improved, the test time is shortened, and the test efficiency is further improved.
Fig. 2 is a schematic structural diagram of a mixer testing apparatus according to an embodiment of the application. As shown in fig. 2, the mixer test apparatus 10 includes a vector network analyzer 20, an intermediate frequency transceiving switching module 30, a radio frequency transceiving switching module 40, a local oscillation source module 50, and a controller 60.
The first port a of the vector network analyzer 20 is connected to the first signal port IF-P1 of the intermediate frequency transceiver switching module 30, and the second port B is connected to the fourth signal port RF-P2 of the radio frequency transceiver switching module 40. The vector network analyzer 20 is used for generating an intermediate frequency signal and performing a parametric test on the received radio frequency signal, or generating a radio frequency signal and performing a parametric test on the received intermediate frequency signal.
The second signal port IF-P2 of the intermediate frequency transceiver switching module 30 is connected to an intermediate frequency port of a mixer to be tested (not shown), and the intermediate frequency transceiver switching module 30 is used for amplifying or attenuating the intermediate frequency signal. The third signal port RF-P1 of the RF transceiver switching module 40 is connected to the RF port of the mixer to be tested, and the RF transceiver switching module 40 is used for amplifying or attenuating the RF signal. The output port LO-RF of the local oscillation source module 50 is connected with a local oscillation port of the mixer to be measured, and the local oscillation source module 50 is used for generating local oscillation signals.
The controller 60 is respectively connected to the intermediate frequency receiving and transmitting switching module 30, the radio frequency receiving and transmitting switching module 40 and the local oscillation source module 50, and is used for controlling the intermediate frequency receiving and transmitting switching module 30 to amplify or attenuate the intermediate frequency signal, controlling the radio frequency receiving and transmitting switching module 40 to amplify or attenuate the radio frequency signal, and controlling the local oscillation source module 50 to generate the local oscillation signal.
The controller 60 may also be coupled to the vector network analyzer 20 for controlling the vector network analyzer 20 to generate an intermediate frequency signal and to perform a parametric test on the received radio frequency signal, or for controlling the vector network analyzer 20 to generate a radio frequency signal and to perform a parametric test on the received intermediate frequency signal, for example. Specifically, the controller 60 also controls the power and frequency of the intermediate frequency signal generated by the vector network analyzer 20 or controls the power and frequency of the radio frequency signal generated by the vector network analyzer 20. The controller 60 is connected to the vector network analyzer 20, the intermediate frequency transceiver switching module 30, the radio frequency transceiver switching module 40 and the local oscillation source module 50 by wired connection.
Optionally, the testing of the mixer parameters to be tested includes testing of linearity, conversion loss and spurs of the mixer.
It should be noted that, the vector network analyzer 20 performs parameter testing on the received rf signal or the intermediate frequency signal, where the received rf signal is an rf signal obtained after the mixing process of the mixer to be tested, and the received intermediate frequency signal is an intermediate frequency signal obtained after the processing of the mixer to be tested.
In one possible implementation, a schematic structural diagram of the intermediate frequency transceiver switching module is shown in fig. 3. Referring to fig. 3, the intermediate frequency transceiving switching module 30 further includes a first intermediate frequency switch SW1, a second intermediate frequency switch SW2, a first power amplifier AMP1 and a first power attenuator ATT1.
One end of the first intermediate frequency switch SW1 is connected to the first signal port IF-P1, the other end is connected to the input end of the first power amplifier AMP1, the output end of the first power amplifier AMP1 is connected to the second intermediate frequency switch SW2, and the other end of the second intermediate frequency switch SW2 is connected to the second signal port IF-P2. The output end of the first power attenuator ATT1 is connected with a first intermediate frequency switch SW1, and the input end is connected with a second intermediate frequency switch SW 2.
Optionally, the first intermediate frequency switch SW1, the second intermediate frequency switch SW2 and the first power amplifier AMP1 form an intermediate frequency amplifying channel, and the intermediate frequency amplifying channel is used for amplifying the intermediate frequency signal. The first intermediate frequency switch SW1, the second intermediate frequency switch SW2 and the first power attenuator ATT1 form an intermediate frequency attenuation channel, and the intermediate frequency attenuation channel is used for attenuating intermediate frequency signals.
The first signal port IF-P1 and the second signal port IF-P2 are signal input/output ports, and the first intermediate frequency switch SW1 and the second intermediate frequency switch SW2 are used for implementing switching of signal channels, that is, implementing switching of an intermediate frequency amplifying channel and an intermediate frequency attenuating channel, and may be formed by an intermediate frequency switch chip. The first power amplifier AMP1 may be constituted by an active amplifying chip, and the first power attenuator ATT1 may be constituted by a passive attenuating chip or a passive resistor network.
Optionally, the intermediate frequency transceiver switching module 30 further includes a first control port S1 and a first power port L1. The first control port S1 is connected to the controller 60, and the controller 60 is configured to control amplifying or attenuating the intermediate frequency signal by controlling a level state of the first control port S1. The first control port S1 is further connected to the first intermediate frequency switch SW1 and the second intermediate frequency switch SW2, so that the first intermediate frequency switch SW1 and the second intermediate frequency switch SW2 implement switching between the intermediate frequency amplifying channel and the intermediate frequency attenuating channel according to the level state of the first control port S1. For example, when the controller 60 controls the level state of the first control port S1 to be a high level, the first intermediate frequency switch SW1 and the second intermediate frequency switch SW2 are switched to the intermediate frequency amplification channel according to the high level state of the first control port S1, and intermediate frequency signal amplification is achieved.
The first power port L1 is used for supplying power to an active circuit in the intermediate frequency transceiver switching module 30, where the active circuit is the first power amplifier AMP1.
In one possible implementation, a schematic structural diagram of the rf transceiver switching module is shown in fig. 4. Referring to fig. 4, the rf transceiver switching module 40 further includes a third rf switch SW3, a fourth rf switch SW4, a second power amplifier AMP2, a third power amplifier AMP3, a second power attenuator ATT2 and a third power attenuator ATT3.
One end of the fourth radio frequency switch SW4 is connected to the fourth signal port RF-P2, the other end is connected to the input end of the third power amplifier AMP3, the output end of the third power amplifier AMP3 is connected to the input end of the third power attenuator ATT3, the output end of the third power attenuator ATT3 is connected to the input end of the second power amplifier AMP2, the output end of the second power amplifier AMP2 is connected to the third radio frequency switch SW3, and the other end of the third radio frequency switch SW3 is connected to the third signal port RF-P1. The output end of the second power attenuator ATT2 is connected with the fourth radio frequency switch SW4, and the input end is connected with the third radio frequency switch SW 3.
Optionally, the third rf switch SW3, the fourth rf switch SW4, the second power amplifier AMP2, the third power amplifier AMP3 and the third power attenuator ATT3 form an rf amplifying channel, and the rf amplifying channel is used for amplifying an rf signal. The third rf switch SW3, the fourth rf switch SW4 and the second power attenuator ATT2 constitute an rf attenuation channel, and the rf attenuation channel is used for attenuating an rf signal.
The third signal port RF-P1 and the fourth signal port RF-P2 are signal input/output ports, and the third radio frequency switch SW3 and the fourth radio frequency switch SW4 are used for implementing switching of signal channels, that is, implementing switching of a radio frequency amplifying channel and a radio frequency attenuating channel, and may be formed by a radio frequency switch chip. The second and third power amplifiers AMP2 and AMP3 may be constituted by active amplifying chips, and the second and third power attenuators ATT2 and ATT3 may be constituted by passive attenuation chips or passive resistor networks.
Optionally, the radio frequency transceiver switching module 40 further includes a second control port S2 and a second power port L2. The second control port S2 is connected to the controller 60, and the controller 60 is configured to control amplifying or attenuating the radio frequency signal by controlling a level state of the second control port S2. The second control port S2 is further connected to the third rf switch SW3 and the fourth rf switch SW4, so that the third rf switch SW3 and the fourth rf switch SW4 implement switching between the rf amplifying channel and the rf attenuating channel according to the level state of the second control port S2. For example, when the controller 60 controls the level state of the second control port S2 to be high, the third rf switch SW3 and the fourth rf switch SW4 are switched to the rf amplifying channel according to the high level state of the second control port S2, so as to amplify the rf signal.
The second power port L2 is used for supplying power to active circuits in the radio frequency transceiver switching module 40, where the active circuits are the second power amplifier AMP2 and the third power amplifier AMP3.
In one possible implementation, a schematic structure of the local oscillator source module is shown in fig. 5. Referring to fig. 5, the local oscillation source module 50 further includes a local oscillation source LO, a fourth power amplifier AMP4, a power level converter LO-DET, and a power detection control chip CO.
One end of the present vibration source LO is connected to an input end of the fourth power amplifier AMP4, and an output end of the fourth power amplifier AMP4 is connected to the output port LO-RF. One end of the power level converter LO-DET is connected with the local oscillator source LO, the other end of the power level converter LO-DET is connected with the power detection control chip CO, and the other end of the power detection control chip CO is connected with the output end of the fourth power amplifier AMP 4. The vibration source LO is connected with a power detection control chip CO.
Optionally, the local oscillator source LO is used for generating an original local oscillator signal, the fourth power amplifier AMP4 is used for amplifying the power of the original oscillator signal generated by the local oscillator source LO to obtain an amplified original oscillator signal, and the power detection control chip CO is used for detecting the power of the original oscillator signal, controlling the frequency of the original local oscillator signal, and controlling the amplification factor of the fourth power amplifier AMP 4. The detection of the power of the original vibration signal can timely find out whether the vibration source LO or the circuit has faults or not, so that the phenomenon that the vibration source LO or the circuit cannot be timely found out is avoided; the amplification factor of the fourth power amplifier AMP4 is controlled so that the local oscillator source module 50 can output the amplified original oscillator signal, i.e., output the local oscillator signal. The power detection control chip CO is further configured to detect whether the local oscillation source LO is locked, so that when the local oscillation source LO is in a locked state, the mixer to be tested is tested, that is, the locked state indicates that the state of the local oscillation source LO is stable at this time, and the mixer to be tested can be tested. In addition, the power detection control chip CO is also used for controlling the power of the original vibration signal. The power level converter LO-DET is configured to convert the power of the original oscillating signal generated by the local oscillating source LO into a level, so that the power detection control chip CO detects the power of the original oscillating signal according to the level.
The vibration source module 50 internally integrates the detection of the power of the original local oscillation signal and the control of the frequency of the original vibration signal, so that the stability of the test of the mixer is improved.
Illustratively, the local oscillator source LO may be formed of a frequency source chip, the fourth power amplifier AMP4 may be formed of an active amplifying chip, the power level converter LO-DET may be formed of a detector chip and an ADC (analog to digital conversion) chip, and the power detection control chip CO may be formed of a single chip microcomputer or an FPGA (field programmable gate array ).
Optionally, the local oscillator source module 50 further includes a third control port S3 and a third power port L3. The third control port S3 is connected to the controller 60 and the power detection control chip CO, and the controller 60 is configured to send control information to the third control port S3, where the control information is configured to control the frequency and power of the local oscillation signal by controlling the power detection control chip CO, and meanwhile, the power detection control chip CO sends the detected power and frequency of the original oscillation signal to the controller 60 through the third control port S3.
The third power port L3 is used for supplying power to an active circuit in the local oscillator source module 50, where the active circuit is the fourth power amplifier AMP4 and the local oscillator source LO.
It should be noted that the parameters to be tested of the mixer to be tested include linearity, frequency conversion loss and spurious of the mixer, when testing different parameters of the mixer to be tested, the power and frequency of the local oscillator signal, the intermediate frequency signal and the radio frequency signal, and the amplification factor of the fourth power amplifier are set according to the parameters.
It should be noted that in practical applications, the mixer test device needs to be calibrated before the mixer to be tested is tested. Specifically, in the calibration of the intermediate frequency transceiver switching module, a first port of the vector network analyzer is connected to a first signal port of the intermediate frequency transceiver switching module, and a second port is connected to a second signal port of the intermediate frequency transceiver switching module. The intermediate frequency receiving and transmitting switching module is switched to an intermediate frequency signal attenuation state, the vector network analyzer generates an intermediate frequency signal from the second port and tests the intermediate frequency signal subjected to attenuation treatment to obtain a first attenuation amount, the intermediate frequency receiving and transmitting switching module is switched to an intermediate frequency signal amplification state, the vector network analyzer generates an intermediate frequency signal from the first port and tests the intermediate frequency signal subjected to amplification treatment to obtain a first 1dB compression point and a first gain. The first attenuation, the first 1dB compression point and the first gain are sent to a controller to be saved for subsequent test compensation of the mixer to be tested.
Optionally, in the calibration of the radio frequency transceiver switching module, the second port of the vector network analyzer is connected with the fourth signal port of the radio frequency transceiver switching module, and the first port is connected with the third signal port of the radio frequency transceiver switching module. The radio frequency receiving and transmitting switching module is switched to an attenuated radio frequency signal state, the vector network analyzer generates radio frequency signals from a first port and tests the radio frequency signals subjected to attenuation treatment to obtain a second attenuation amount, the radio frequency receiving and transmitting switching module is switched to an amplified radio frequency signal state, the vector network analyzer generates radio frequency signals from a second port and tests the radio frequency signals subjected to amplification treatment to obtain a second 1dB compression point and a second gain. And sending the second attenuation, the second 1dB compression point and the second gain to a controller for storage for subsequent test compensation of the mixer to be tested.
In the calibration of the local oscillation source module, the first port or the second port of the vector network analyzer is connected with the output port of the local oscillation source module. The power detection control chip detects the state of the local vibration source, when the local vibration source is in a locking state, the local vibration source is controlled to generate an original vibration signal according to preset frequency and preset power, and the amplification factors of the fourth power amplifier are controlled to be sequentially increased from small to large, for example, the amplification factors of the fourth power amplifier are sequentially controlled to be 2, 4, 7, 8, 16 or other amplification factors so as to amplify the original vibration signal, the vector network analyzer tests the received amplified original vibration signal to obtain the actual power of the amplified original vibration signal, and the amplification factors of the fourth power amplifier are in one-to-one correspondence with the actual power to obtain the local vibration signal comparison table. And sending the local oscillation signal comparison table to a controller for storage for subsequent testing of the mixer to be tested.
The power of the original vibration signal actually generated by the local oscillation source may deviate from the preset power, so that the amplification factor of the fourth power amplifier and the actual power need to be in one-to-one correspondence to determine the local oscillation signal comparison table.
In practical application, in the up-conversion test process of the mixer, the vector network analyzer generates a first intermediate frequency signal from the first port, the intermediate frequency receiving and transmitting switching module amplifies the first intermediate frequency signal and sends the amplified first intermediate frequency signal to the mixer to be tested, and the local oscillator source module generates a first local oscillator signal and sends the first local oscillator signal to the mixer to be tested. The radio frequency receiving and transmitting switching module attenuates a received first radio frequency signal from a mixer to be detected, and sends the attenuated first radio frequency signal to the vector network analyzer, wherein the first radio frequency signal is obtained by mixing an amplified first intermediate frequency signal and a first local oscillator signal through the mixer to be detected, a second port of the vector network analyzer receives the attenuated first radio frequency signal, carries out parameter testing on the attenuated first radio frequency signal, and carries out test compensation on the parameters obtained by testing based on a first 1dB compression point, a first gain and a second attenuation amount to obtain a first parameter of the mixer.
Optionally, the controller controls the intermediate frequency receiving and transmitting switching module to be in an intermediate frequency signal amplifying state, controls the radio frequency receiving and transmitting switching module to be in a radio frequency signal attenuating state, and controls the local oscillation source module to generate the first local oscillation signal.
It should be noted that when testing different parameters of the mixer to be tested, the power and frequency of the first intermediate frequency signal and the first local oscillator signal, and the amplification factor of the fourth power amplifier are set according to the parameters, that is, the different parameters of the mixer to be tested correspond to different amplification factors of the first intermediate frequency signal, the first local oscillator signal and the fourth power amplifier. Specifically, the amplification factor of the fourth power amplifier may be set according to the local oscillation signal comparison table, for example, when linearity is tested, the local oscillation signal with the output power of 5dB is required to be output by the local oscillation source module, and when the amplification factor of the fourth power amplifier is 2 through querying the local oscillation signal comparison table, the corresponding actual power is 5.2dB and is closest to the power 5dB of the required local oscillation signal, and the amplification factor of the fourth power amplifier may be set to be 2.
In the down-conversion test process of the mixer, the vector network analyzer generates a second radio frequency signal from the second port, the radio frequency receiving and transmitting switching module amplifies the second radio frequency signal and sends the amplified second radio frequency signal to the mixer to be tested, and the local oscillator source module generates a second local oscillator signal and sends the second local oscillator signal to the mixer to be tested. The intermediate frequency receiving and transmitting switching module attenuates the received second intermediate frequency signal from the mixer to be tested, and sends the attenuated second intermediate frequency signal to the vector network analyzer, wherein the second intermediate frequency signal is obtained by mixing the amplified second radio frequency signal and the second local oscillator signal through the mixer to be tested, the first port of the vector network analyzer receives the attenuated second intermediate frequency signal, carries out parameter test on the attenuated second intermediate frequency signal, and carries out test compensation on the parameters obtained by the test based on the first attenuation, the second 1dB compression point and the second gain, so as to obtain a second parameter of the mixer.
Optionally, the controller controls the radio frequency receiving and transmitting switching module to be in a state of amplifying the radio frequency signal, controls the intermediate frequency receiving and transmitting switching module to be in a state of attenuating the intermediate frequency signal, and controls the local oscillator source module to generate the second local oscillator signal.
When testing different parameters of the mixer to be tested, the power and the frequency of the second radio frequency signal and the second local oscillator signal and the amplification factor of the fourth power amplifier are set according to the parameters, namely, the different parameters of the mixer to be tested correspond to different amplification factors of the second radio frequency signal, the second local oscillator signal and the fourth power amplifier. Specifically, the amplification factor of the fourth power amplifier may be set according to the local oscillation signal comparison table.
It should be noted that, when the mixer up-conversion test and the mixer down-conversion test are performed on the mixer to be tested, the power detection control chip detects whether the local oscillation source is in a locked state, and when the local oscillation source is locked, that is, the local oscillation source state is stable, the mixer up-conversion test and the mixer down-conversion test are performed on the mixer to be tested, so that the problems of inaccurate test and the like possibly caused by testing the mixer to be tested when the local oscillation source is in an unlocked state are avoided.
The mixer testing device provided by the embodiment of the application can realize the control of signal amplification or attenuation, and realize the up-conversion test and down-conversion test of the mixer to be tested without changing hardware connection, thereby improving the testing efficiency of the mixer, reducing the complexity and the testing cost of the testing device and shortening the testing time. Meanwhile, the power detection of the original local oscillation signal and the control of the frequency of the original oscillation signal are integrated in the mixer testing device, so that the stability of the mixer testing is improved.
Fig. 6 is a flowchart of a mixer testing method according to an embodiment of the application. The mixer testing method is applied to a mixer testing device. As shown in fig. 6, the mixer test method includes:
Step 101, when the up-conversion test of the mixer is performed, the vector network analyzer generates a first intermediate frequency signal from a first port.
Step 102, the intermediate frequency receiving and transmitting switching module amplifies the first intermediate frequency signal and sends the amplified first intermediate frequency signal to the mixer to be tested, the local oscillation source module generates a first local oscillation signal and sends the first local oscillation signal to the mixer to be tested, and the radio frequency receiving and transmitting switching module attenuates the received first radio frequency signal from the mixer to be tested and sends the attenuated first radio frequency signal to the vector network analyzer.
Step 103, a second port of the vector network analyzer receives the attenuated first radio frequency signal and performs parameter test on the attenuated first radio frequency signal to obtain a first parameter of the mixer.
Step 104, the vector network analyzer generates a second radio frequency signal from the second port when the mixer down-conversion test is performed.
Step 105, the radio frequency receiving and transmitting switching module amplifies the second radio frequency signal and sends the amplified second radio frequency signal to the mixer to be tested, the local oscillation source module generates a second local oscillation signal and sends the second local oscillation signal to the mixer to be tested, the intermediate frequency receiving and transmitting switching module attenuates the received second intermediate frequency signal from the mixer to be tested and sends the attenuated second intermediate frequency signal to the vector network analyzer.
And 106, receiving the attenuated second intermediate frequency signal at a first port of the vector network analyzer, and performing parameter test on the attenuated second intermediate frequency signal to obtain a second parameter of the mixer.
Steps 101-103 define a process of performing a mixer up-conversion test on the mixer to be tested, and steps 104-106 define a process of performing a mixer down-conversion test on the mixer to be tested. It will be appreciated that the order of the steps may be adjusted according to actual needs by those skilled in the art, for example, steps 104 to 106 may be performed before steps 101 to 103.
Alternatively, the above-mentioned mixer test apparatus may be a mixer test apparatus provided in any embodiment of the present application. The first radio frequency signal is obtained by mixing the amplified first intermediate frequency signal and the first local oscillation signal through a mixer to be detected, and the second intermediate frequency signal is obtained by mixing the amplified second radio frequency signal and the second local oscillation signal through the mixer to be detected.
In one possible implementation, the controller controls the intermediate frequency transceiver switching module to be in an intermediate frequency signal amplifying state, controls the radio frequency transceiver switching module to be in a radio frequency signal attenuating state, and controls the local oscillator source module to generate the first local oscillator signal when the up-conversion test of the mixer is performed. When the down-conversion test of the mixer is carried out, the controller controls the radio frequency receiving and transmitting switching module to be in an amplified radio frequency signal state, controls the intermediate frequency receiving and transmitting switching module to be in an attenuated intermediate frequency signal state, and controls the local oscillator source module to generate a second local oscillator signal.
It should be noted that in practical applications, the mixer test device needs to be calibrated before the mixer up-conversion test and the mixer down-conversion test are performed on the mixer to be tested. In the embodiment of the present application, the specific implementation process and principle of steps 101 to 106 and calibration of the mixer test device can be referred to the foregoing embodiment, and will not be repeated here.
The frequency mixer testing method provided by the embodiment of the application can be used for carrying out up-conversion test and down-conversion test on the frequency mixer to be tested, improves the testing stability and testing efficiency of the frequency mixer, reduces the testing cost and shortens the testing time.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
The foregoing embodiments are merely illustrative of the technical solutions of the present application, and not restrictive, and although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those skilled in the art that modifications may still be made to the technical solutions described in the foregoing embodiments or equivalent substitutions of some technical features thereof, and that such modifications or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.