Signal processing method of spectrum analyzer and spectrum analyzer

文档序号:613578 发布日期:2021-05-07 浏览:2次 中文

阅读说明:本技术 频谱分析仪的信号处理方法和频谱分析仪 (Signal processing method of spectrum analyzer and spectrum analyzer ) 是由 罗勇 梁杰 罗森 于 2021-04-08 设计创作,主要内容包括:一种频谱分析仪的信号处理方法和频谱分析仪,频谱分析仪包括射频扫描模块、数据采集模块、检波模块、显示模块和控制处理模块,其中控制处理模块获取预先定义的多个扫描频段的端点频率并接收用户输入的扫描参数,根据多个扫描频段的端点频率和扫描参数确定多个检波频段的端点频率,当检测到扫描频段的端点频率与任一检波频段的端点频率不重合时,对发送给射频扫描模块的扫描频段的端点频率进行调整,将扫描频段的端点频率发送给射频扫描模块,将检波频段的端点频率发送给检波模块,使得射频扫描模块按照控制处理模块确定的扫描频段对待测信号进行扫描,以使实际的扫描频段与整个射频扫描的频率范围和用户配置的数据处理需求相匹配。(A signal processing method of a spectrum analyzer and the spectrum analyzer, the spectrum analyzer comprises a radio frequency scanning module, a data acquisition module, a detection module, a display module and a control processing module, wherein the control processing module acquires the end point frequency of a plurality of predefined scanning frequency bands and receives the scanning parameters input by a user, the end point frequency of the plurality of detection frequency bands is determined according to the end point frequency of the plurality of scanning frequency bands and the scanning parameters, when the end point frequency of the scanning frequency band is not coincident with the end point frequency of any detection frequency band, the end point frequency of the scanning frequency band sent to the radio frequency scanning module is adjusted, the end point frequency of the scanning frequency band is sent to the radio frequency scanning module, the end point frequency of the detection frequency band is sent to the detection module, the radio frequency scanning module scans the signal to be detected according to the scanning frequency band determined by the control processing module, so that the actual scanning frequency band, the frequency range of the whole radio frequency scanning and and (4) matching.)

1. A spectrum analyzer, comprising:

the radio frequency scanning module comprises a plurality of radio frequency channels, each radio frequency channel is used for gating a signal to be detected of one scanning frequency band to perform radio frequency scanning, and the radio frequency scanning module is used for correspondingly switching the plurality of radio frequency channels according to the plurality of scanning frequency bands determined by the control processing module; the radio frequency channels correspond to the scanning frequency bands one by one;

the data acquisition module is used for acquiring the signals scanned by each scanning frequency band to obtain first signal data corresponding to each scanning frequency band;

the detection module is used for carrying out detection processing on the first signal data corresponding to each scanning frequency band according to the determined endpoint frequencies of the plurality of detection frequency bands to obtain second signal data corresponding to each scanning frequency band;

the display module is used for merging the second signal data corresponding to the plurality of scanning frequency bands and displaying the frequency information and the amplitude information of the merged signal data;

the control processing module is used for acquiring the end point frequencies of a plurality of predefined scanning frequency bands, receiving the scanning parameters input by a user, and determining the end point frequencies of a plurality of detection frequency bands according to the end point frequencies of the plurality of scanning frequency bands and the scanning parameters; when the fact that the end point frequency of the scanning frequency band is not coincident with the end point frequency of any detection frequency band is detected, adjusting the end point frequency of the scanning frequency band sent to the radio frequency scanning module according to a preset mode; and sending the end point frequency of the scanning frequency band to a radio frequency scanning module, and sending the end point frequency of the detection frequency band to a detection module, so that the end point frequency of the scanning frequency band is superposed with the end point frequency of one detection frequency band in a plurality of detection frequency bands.

2. The spectrum analyzer of claim 1, wherein the user-input scan parameters comprise: a start frequency of the radio frequency sweep, a cutoff frequency of the radio frequency sweep, and a quantity of the second signal data.

3. The spectrum analyzer of claim 2, wherein said determining end frequencies of a plurality of detected bands based on said sweep parameters comprises:

determining the scanning bandwidth of the radio frequency scanning according to the starting frequency of the radio frequency scanning and the cut-off frequency of the radio frequency scanning;

determining the bandwidth of the detection frequency band according to the scanning bandwidth and the quantity of second signal data input by a user;

and determining the end point frequencies of the detection frequency bands according to the bandwidth of the detection frequency bands and the initial frequency of the radio frequency scanning.

4. The spectrum analyzer of claim 1, wherein said adjusting the endpoint frequency of said swept band transmitted to the rf sweep module in a predetermined manner comprises:

the adjusted endpoint frequency of the scanning frequency band satisfies the following formula:

f_n∈ f_bucket( m );

f_n - F_n >= 0;

f_n - F_n < bucket;

wherein F _ n represents the adjusted cut-off frequency of the nth scanning frequency band, F _ n represents the cut-off frequency of the nth scanning frequency band in a plurality of predefined scanning frequency bands, F _ bucket (m) represents the cut-off frequency of the mth detection frequency band, bucket represents the bandwidth of the detection frequency band, and the bandwidth of the detection frequency band is determined according to the endpoint frequency of the scanning frequency band and the scanning parameters; n =1,2, …, N; m =1,2, …, M; m is greater than N.

5. The spectrum analyzer of claim 1, further comprising:

the calibration module is used for determining the calibration bandwidth of each radio frequency channel and the endpoint frequency of the calibration frequency band corresponding to each radio frequency channel according to the determined endpoint frequencies of the plurality of scanning frequency bands, wherein the calibration frequency bands correspond to the scanning frequency bands one to one; and according to the calibration bandwidth of each radio frequency channel and the endpoint frequency of the calibration frequency band corresponding to each radio frequency channel, performing frequency response calibration on each calibration frequency band, and recording error data of the frequency response calibration corresponding to each calibration frequency band.

6. The spectrum analyzer of claim 5, wherein the endpoint frequency of the calibration band satisfies the following equation:

cali_seg_n ={F_n-1 - f, F_n + f},F_n-1 – f >= F_0,F_n + f <= F_N;

wherein cali _ seg _ N represents a calibration frequency band corresponding to an nth radio frequency channel, F _ N-1-F represents an initial frequency of the calibration frequency band corresponding to the nth radio frequency channel, F _ N + F represents a cut-off frequency of the calibration frequency band corresponding to the nth radio frequency channel, F _ N-1 represents a predefined initial frequency of an nth scanning frequency band, F _ N represents a predefined cut-off frequency of the nth scanning frequency band, and N =1,2, …, N; f represents the expanding frequency of the calibration frequency band, F _0 represents the starting frequency of the radio frequency scanning, and F _ N represents the cut-off frequency of the radio frequency scanning.

7. The spectrum analyzer of claim 6, comprising:

and the compensation module is used for acquiring the central frequency of each detection frequency band and the radio frequency channel corresponding to each detection frequency band, calculating a frequency response calibration error according to the central frequency and the radio frequency channel index, and performing frequency response compensation on corresponding second signal data according to the frequency response calibration error.

8. A signal processing method of a spectrum analyzer, the spectrum analyzer includes a plurality of radio frequency channels, each radio frequency channel is used for gating a signal to be measured in a scanning frequency band to perform radio frequency scanning, the signal processing method includes:

acquiring predefined endpoint frequencies of a plurality of scanning frequency bands, receiving scanning parameters input by a user, determining the endpoint frequencies of a plurality of detection frequency bands according to the endpoint frequencies of the plurality of scanning frequency bands and the scanning parameters, and adjusting the endpoint frequency of the scanning frequency band sent to a radio frequency scanning module according to a preset mode when detecting that the endpoint frequency of the scanning frequency band is not coincident with the endpoint frequency of any detection frequency band so as to enable the endpoint frequency of the scanning frequency band to be coincident with the endpoint frequency of one detection frequency band in the plurality of detection frequency bands;

performing corresponding switching and radio frequency scanning on a plurality of radio frequency channels according to the determined plurality of scanning frequency bands; the radio frequency channels correspond to the scanning frequency bands one by one;

acquiring a signal scanned by each scanning frequency band to obtain first signal data corresponding to each scanning frequency band;

detecting the first signal data corresponding to each scanning frequency band according to the determined endpoint frequencies of the plurality of detection frequency bands to obtain second signal data corresponding to each scanning frequency band;

and merging the second signal data corresponding to the plurality of scanning frequency bands, and displaying the frequency information and the amplitude information of the merged signal data.

9. The method of claim 8, wherein said adjusting the endpoint frequency of the scanned band sent to the rf scanning module in a predetermined manner comprises:

the adjusted endpoint frequency of the scanning frequency band satisfies the following formula:

f_n∈ f_bucket( m );

f_n - F_n >= 0;

f_n - F_n < bucket;

wherein F _ n represents the adjusted cut-off frequency of the nth scanning band, F _ n represents the cut-off frequency of the nth scanning band in a plurality of predefined scanning bands, F _ bucket (m) represents the cut-off frequency of the mth detection band, bucket represents the bandwidth of the detection band, and the bandwidth of the detection band is determined according to the endpoint frequency of the scanning band and the scanning parameters.

10. The method of claim 8, further comprising:

and acquiring the central frequency of each detection frequency band and the radio frequency channel corresponding to each detection frequency band, calculating a frequency response calibration error according to the central frequency and the radio frequency channel index, and performing frequency response compensation on corresponding second signal data according to the frequency response calibration error.

Technical Field

The invention relates to the technical field of electric signal measurement, in particular to a signal processing method of a spectrum analyzer and the spectrum analyzer.

Background

In the knowledge of radio signals, two signal analysis forms, namely time domain analysis and frequency domain analysis, are generally adopted. The time domain analysis is to represent the relationship of dynamic signals by using a time axis as a coordinate, the frequency domain analysis is to represent the relationship of dynamic signals by using a frequency axis as a coordinate axis, and although the time domain analysis is intuitive, the time domain analysis is not beneficial to deeply analyzing the spectral characteristics of the signals, so that technicians often adopt a spectral analysis instrument to know the characteristics of the signals from the angle of the frequency domain analysis.

The spectrum analyzer is a common device for researching the spectrum structure of a radio signal, is used for measuring signal parameters such as signal distortion degree, modulation degree, spectrum purity, frequency stability, intermodulation distortion and the like, has wide application, is commonly used in various links of research, development, production and inspection of electronic products, and is called as a radio frequency multimeter of a technician.

When a spectrum analyzer is used for observing and monitoring a signal to be detected, a frequency domain analysis with a large dynamic range is often required, so that radio frequency scanning is a necessary process. Since the actual swept band and the detected data amount (points) are configured by the user, they can be regarded as random values, so that the end point of the detected band does not coincide with the end point of the preset swept band in a large probability. And further, one detection frequency band spans two radio frequency channels, and due to the difference of physical channel characteristics, the detection data cannot be subjected to RF frequency response compensation normally, so that the frequency spectrum waveform is abnormal.

Disclosure of Invention

The invention mainly solves the technical problem of providing a spectrum analyzer which can automatically divide the scanning frequency band so as to match the actual scanning frequency band with the frequency range of the whole radio frequency scanning and the data processing requirement configured by a user.

According to a first aspect, there is provided in an embodiment a spectrum analyser comprising:

the radio frequency scanning module comprises a plurality of radio frequency channels, each radio frequency channel is used for gating a signal to be detected of one scanning frequency band to perform radio frequency scanning, and the radio frequency scanning module is used for correspondingly switching and performing radio frequency scanning on the plurality of radio frequency channels according to the plurality of scanning frequency bands determined by the control processing module; the radio frequency channels correspond to the scanning frequency bands one by one;

the data acquisition module is used for acquiring the signals scanned by each scanning frequency band to obtain first signal data corresponding to each scanning frequency band;

the detection module is used for carrying out detection processing on the first signal data corresponding to each scanning frequency band according to the determined endpoint frequencies of the plurality of detection frequency bands to obtain second signal data corresponding to each scanning frequency band;

the display module is used for merging the second signal data corresponding to the plurality of scanning frequency bands and displaying the frequency information and the amplitude information of the merged signal data;

the control processing module is used for acquiring the end point frequencies of a plurality of predefined scanning frequency bands, receiving the scanning parameters input by a user, and determining the end point frequencies of a plurality of detection frequency bands according to the end point frequencies of the plurality of scanning frequency bands and the scanning parameters; when the fact that the end point frequency of the scanning frequency band is not coincident with the end point frequency of any detection frequency band is detected, adjusting the end point frequency of the scanning frequency band sent to the radio frequency scanning module according to a preset mode; and sending the end point frequency of the scanning frequency band to a radio frequency scanning module, and sending the end point frequency of the detection frequency band to a detection module, so that the end point frequency of the scanning frequency band is superposed with the end point frequency of one detection frequency band in a plurality of detection frequency bands.

According to a second aspect, an embodiment provides a signal processing method for a spectrum analyzer, where the spectrum analyzer includes a plurality of radio frequency channels, each radio frequency channel is used for gating a signal to be measured in a scanning frequency band for radio frequency scanning, and the signal processing method includes:

acquiring predefined endpoint frequencies of a plurality of scanning frequency bands, receiving scanning parameters input by a user, determining the endpoint frequencies of a plurality of detection frequency bands according to the endpoint frequencies of the plurality of scanning frequency bands and the scanning parameters, and adjusting the endpoint frequency of the scanning frequency band sent to a radio frequency scanning module according to a preset mode when detecting that the endpoint frequency of the scanning frequency band is not coincident with the endpoint frequency of any detection frequency band so as to enable the endpoint frequency of the scanning frequency band to be coincident with the endpoint frequency of one detection frequency band in the plurality of detection frequency bands;

performing corresponding switching and radio frequency scanning on a plurality of radio frequency channels according to the determined plurality of scanning frequency bands; the radio frequency channels correspond to the scanning frequency bands one by one;

acquiring a signal scanned by each scanning frequency band to obtain first signal data corresponding to each scanning frequency band;

detecting the first signal data corresponding to each scanning frequency band according to the determined endpoint frequencies of the plurality of detection frequency bands to obtain second signal data corresponding to each scanning frequency band;

and merging the second signal data corresponding to the plurality of scanning frequency bands, and displaying the frequency information and the amplitude information of the merged signal data.

According to the spectrum analyzer of the above embodiment, the control processing module obtains the end point frequencies of the predefined multiple scanning frequency bands and receives the scanning parameters input by the user, determines the end point frequencies of the multiple detection frequency bands according to the end point frequencies of the multiple scanning frequency bands and the scanning parameters, adjusts the end point frequency of the scanning frequency band sent to the radio frequency scanning module according to the preset mode when detecting that the end point frequency of the scanning frequency band is not coincident with the end point frequency of any detection frequency band, sends the end point frequency of the scanning frequency band to the radio frequency scanning module, sends the end point frequency of the detection frequency band to the detection module, so that the radio frequency scanning module scans the signal to be detected according to the scanning frequency band determined by the control processing module, realizes the automatic division of the scanning frequency band in the radio frequency scanning process of the spectrum analyzer, and enables the actual scanning frequency band to be matched with the frequency range of the whole radio frequency scanning and the data processing requirements, the subsequent signal processing logic does not need to consider the condition that the detection frequency band crosses a radio frequency channel, the data combing logic is greatly simplified, the frequency response compensation is facilitated, and accurate and reliable waveform data can be obtained.

Drawings

FIG. 1 is a schematic diagram of a spectrum analyzer according to an embodiment;

FIG. 2 is a schematic diagram of a structure of a spectrum analyzer according to another embodiment;

FIG. 3 is a flow chart of a signal processing method of a frequency analyzer according to an embodiment;

FIG. 4 is a diagram illustrating adjustment of scanning frequency bands according to an embodiment;

fig. 5 is a schematic diagram of a scan band and a calibration band according to an embodiment.

Detailed Description

The present invention will be described in further detail with reference to the following detailed description and accompanying drawings. Wherein like elements in different embodiments are numbered with like associated elements. In the following description, numerous details are set forth in order to provide a better understanding of the present application. However, those skilled in the art will readily recognize that some of the features may be omitted or replaced with other elements, materials, methods in different instances. In some instances, certain operations related to the present application have not been shown or described in detail in order to avoid obscuring the core of the present application from excessive description, and it is not necessary for those skilled in the art to describe these operations in detail, so that they may be fully understood from the description in the specification and the general knowledge in the art.

Furthermore, the features, operations, or characteristics described in the specification may be combined in any suitable manner to form various embodiments. Also, the various steps or actions in the method descriptions may be transposed or transposed in order, as will be apparent to one of ordinary skill in the art. Thus, the various sequences in the specification and drawings are for the purpose of describing certain embodiments only and are not intended to imply a required sequence unless otherwise indicated where such sequence must be followed.

The numbering of the components as such, e.g., "first", "second", etc., is used herein only to distinguish the objects as described, and does not have any sequential or technical meaning. The term "connected" and "coupled" when used in this application, unless otherwise indicated, includes both direct and indirect connections (couplings).

The terms used in this application define:

the scanning bandwidth of the radio frequency scanning refers to a frequency range which can be scanned in one radio frequency scanning configured by a user, wherein the scanning bandwidth of the radio frequency scanning is obtained by subtracting the starting frequency of the radio frequency scanning from the cut-off frequency of the radio frequency scanning.

The SWEEP frequency band of the rf SWEEP is a plurality of independent frequency bands divided by a plurality of independent rf channels determined by the internal characteristics and design scheme (e.g., cost factors) of the spectrum analyzer, the superposition of all frequency bands needs to ensure that the entire SWEEP bandwidth can be covered, each frequency band is a SWEEP frequency band of the rf SWEEP, a SWEEP frequency band situation is preset, where F _0, F _1, F _2, …, F _ N-1, and F _ N represent each frequency segment point, any SWEEP segment is denoted as SWEEP _ seg _ N = { F _ N-1, F _ N }, N =1,2, …, N, then SWEEP _ seg _ N is referred to as an nth SWEEP frequency band, F _ N-1 is the start frequency of the nth SWEEP frequency band, and F _ N is the cut-off frequency of the nth SWEEP frequency band.

The detection frequency band is to perform detection processing on data of all frequency points scanned in one radio frequency scanning of a detected signal according to a preset detection algorithm to obtain detection data, and the detection data is used for directly displaying or reporting to a user, that is, the frequency points of the detected signal scanned by the radio frequency scanning are possibly more, and detection data of fewer frequency points are obtained by performing detection processing on all the scanned frequency points, so that the user can be conveniently and finally displayed or reported.

The spectrum analyzer comprises a plurality of radio frequency channels, each radio frequency channel is used for scanning signal data of one scanning frequency band, the end point frequency (initial frequency and cut-off frequency) of the scanning frequency band corresponding to each radio frequency channel is related to the hardware scheme of the radio frequency channel, and in the actual use of the spectrum analyzer, the actual scanning process needs to adjust the actual gating frequency range of each radio frequency channel. Since the actual swept band and the detected data amount (points) are configured by the user, they can be regarded as random values, so that the end point of the detected band does not coincide with the end point of the preset swept band in a large probability. And further, one detection frequency band spans two radio frequency channels, and due to the difference of physical channel characteristics, the detection data cannot be subjected to RF frequency response compensation normally, so that the frequency spectrum waveform is abnormal.

In the embodiment of the invention, the control processing module acquires the end point frequencies of a plurality of predefined scanning frequency bands and receives the scanning parameters input by a user, determines the end point frequencies of a plurality of detection frequency bands according to the end point frequencies of the plurality of scanning frequency bands and the scanning parameters, sends the end point frequencies of the scanning frequency bands to the radio frequency scanning module, sends the end point frequencies of the detection frequency bands to the detection module, and when the end point frequencies of the scanning frequency bands and the end point frequencies of any detection frequency band are not the same, adjusts the end point frequencies of the scanning frequency bands sent to the radio frequency scanning module according to a preset mode, updates the scanning frequency bands of the radio frequency scanning, and enables the scanning frequency bands to be automatically re-divided, so that the scanning frequency bands are matched with the whole frequency range of the radio frequency scanning and the data processing requirements configured.

Referring to fig. 1, fig. 1 is a schematic structural diagram of a spectrum analyzer according to an embodiment, where the spectrum analyzer includes a radio frequency scanning module 10, a data acquisition module 20, a detection module 30, a display module 40, a control processing module 50, and a compensation module 60.

The radio frequency scanning module 10 includes a plurality of radio frequency channels, each radio frequency channel is used for gating a signal to be detected of one scanning frequency band to perform radio frequency scanning, and the radio frequency scanning module is used for performing corresponding switching and radio frequency scanning on the plurality of radio frequency channels according to the plurality of scanning frequency bands determined by the control processing module; the radio frequency channels correspond to predefined scanning frequency bands one to one.

Referring to fig. 2, in an embodiment, the RF scanning module 10 includes at least one RF channel (RF channel) 11, an RF channel selection switch (RF channel selection switch) 12 and a filtering module 13, the RF channel 20 is used for RF scanning, and each RF channel corresponds to a different scanning frequency band; the radio frequency channel selection switch 12 is used for controlling the switching of the radio frequency channel; the filtering module 13 is configured to filter a signal output by the radio frequency channel and scanned by a corresponding scanning frequency band.

The data acquisition module 20 is configured to acquire a signal scanned in each scanning frequency band, so as to obtain first signal data corresponding to each scanning frequency band.

In an embodiment, the data acquisition module 20 includes an analog-to-digital sampling module (ADC sampling module) 21 and a digital signal processing module 22, where the analog-to-digital sampling module 21 is configured to perform analog-to-digital conversion on the filtered scan signal and output a digital scan signal; the digital signal processing module (DSP) 22 is configured to perform signal processing on the digital scanning signal and output first signal data.

In this embodiment, the signal data generated after the signal data in each scanning frequency band is processed by the DSP is the first signal data, the first signal data of all scanning frequency bands in one rf scanning constitutes the original data, the number of data points included in the original data is denoted as raw _ points, the time interval between each data point in the original data is uniform, and the rf scanning is also smooth, that is, the frequency corresponding to the data point in the original data is changed in equal steps, the frequency step is denoted as f _ step, and the frequency step f _ step satisfies the following relationship:

f_step = span / raw_points;

wherein f _ step is frequency stepping, span is the scanning bandwidth of the radio frequency scanning, and raw _ points is the number of data points included in the original data.

It should be noted that the frequency step of the whole rf scan and the frequency step of each scan band need to be guaranteed to be the same.

The detection module 30 is configured to perform detection processing on the first signal data corresponding to each scanned frequency band according to the determined endpoint frequencies of the multiple detected frequency bands to obtain second signal data corresponding to each scanned frequency band, where the detected frequency band is a frequency difference between two adjacent second signal data.

When the spectrum analyzer displays the first signal data, because the quantity of original data is huge, the machine application logic processing is not available, the spectrum analyzer is used for displaying that the resolution ratio can not display the fine frequency scale, and a large amount of data is not friendly to the acquisition and secondary processing of a user, so that the first signal data can not be directly measured or displayed generally, and the first signal data needs to be detected to obtain the second signal data corresponding to each scanning frequency band. The second signal data corresponding to all the scanned frequency bands in one rf scan form detection data, the number of data points included in the detection data is denoted points, that is, the number of the second signal data is points, it should be noted that, in general, points is a parameter set by a user, and it needs to be within a preset upper limit value and a preset lower limit value.

In general, raw _ points is much larger than points, that is, after the original data is subjected to the detection processing, the data points in the detected data are obviously reduced. In the detected data, each detected data represents a detected band, in other words, the detected band is a frequency difference between two adjacent second signal data, and any detected band is denoted as a packet in the present embodiment.

bucket= span / points

And primary detection, namely, original data in the same bucket is changed into second signal data through a detection algorithm, wherein the detection algorithm can be an extraction peak value algorithm (extracting a maximum value/a small value), an averaging algorithm (averaging all data), a random sampling algorithm, a root mean square algorithm and the like.

Note that the bandwidth of each detection band bucket is the same.

The display module 40 is configured to combine the second signal data corresponding to the multiple scanning frequency bands, and display frequency information and amplitude information of the combined signal data.

The control processing module 50 is configured to acquire predefined endpoint frequencies of multiple scanning bands and receive scanning parameters input by a user, determine endpoint frequencies of multiple detection bands according to the endpoint frequencies of the multiple scanning bands and the scanning parameters, adjust the endpoint frequency of the scanning band sent to the radio frequency scanning module according to a preset manner when it is detected that the endpoint frequency of the scanning band does not coincide with the endpoint frequency of any detection band, send the endpoint frequency of the scanning band to the radio frequency scanning module, and send the endpoint frequency of the detection band to the detection module, so as to update the scanning band of the radio frequency scanning.

In an embodiment, if the end point frequency of the scanned band coincides with the end point frequency of one of the detected bands, the end point frequency of the scanned band is not processed, and the predefined end point frequencies of the scanned bands are directly sent to the rf scanning module.

In one embodiment, the user-entered scan parameters include: a start frequency of the radio frequency sweep, a cutoff frequency of the radio frequency sweep, and a quantity of the second signal data.

In this embodiment, the user also needs to input the scanning time of one scanning, the scanning time is used for both scanning itself and sampling, and the spectrum analyzer must ensure the synchronism of scanning and sampling. Therefore, the scanning time is the logical link of scanning and data processing, i.e. the equal time interval of the original data is regarded as the root cause of the equal frequency step.

In this embodiment, the end frequency of the scanning frequency band includes an initial frequency and a cut-off frequency of the scanning frequency band, and the cut-off frequency of the previous scanning frequency band is the initial frequency of the next scanning frequency band; similarly, the end frequency of the detected band includes the start frequency and the cut-off frequency of the detected band, and the cut-off frequency of the previous detected band is the start frequency of the next detected band.

In one embodiment, the determining, by the control processing module, the end frequencies of the detected bands according to the predefined end frequencies of the respective scanned bands and the scanning parameters input by the user includes:

and the control processing module determines the scanning bandwidth of the radio frequency scanning according to the starting frequency of the radio frequency scanning and the cut-off frequency of the radio frequency scanning.

In this embodiment, the scan bandwidth span of the radio frequency scan = f _ stop-f _ start, where f _ start is a start frequency of the radio frequency scan, and f _ stop is a cut-off frequency of the radio frequency scan.

And the control processing module determines the bandwidth of the detection frequency band according to the scanning bandwidth and the quantity of the second signal data input by the user.

In this embodiment, the bandwidth bucket of the detection frequency band = span/points, and points is the number of the second signal data.

And the control processing module determines the end point frequencies of the plurality of detection frequency bands according to the bandwidth of the detection frequency bands and the initial frequency of the radio frequency scanning. The end frequency of the detection band in this embodiment includes the start frequency of the detection band or the cut-off frequency of the detection band.

In this embodiment, the cut-off frequency f _ bucket (m) = f _ start + m × bucket, m =1,2,3 …, where f _ bucket (m) represents the cut-off frequency of the mth detected band, m represents the sequence number of the detected band, bucket represents the bandwidth of each detected band, and f _ start represents the start frequency of the rf scan.

In a specific embodiment, the control processing module sends the cut-off frequency of the scanning frequency band to the radio frequency scanning module, and the radio frequency scanning module segments the scanning bandwidth of the radio frequency scanning according to the cut-off frequency of the scanning frequency band to obtain a plurality of scanning frequency bands of the radio frequency scanning, and performs the radio frequency scanning according to the plurality of scanning frequency bands.

The control processing module also sends cut-off frequencies of the detection frequency bands to the detection module, and the detection module determines the detection frequency bands according to the cut-off frequencies of the detection frequency bands and carries out detection processing according to the detection frequency bands.

In practical use of a spectrum analyzer, the actual scanning process requires adjustment of the frequency range over which each rf channel is actually gated. Since the actual swept band and the detected data amount (points) are configured by the user, they can be regarded as random values, so that the end point of the detected band does not coincide with the end point of the preset swept band in a large probability. And further, one detection frequency band spans two radio frequency channels, and due to the difference of physical channel characteristics, the detection data cannot be subjected to RF frequency response compensation normally, so that the frequency spectrum waveform is abnormal.

When the control processing module detects that the end point frequency of the scanning frequency band does not coincide with the end point frequency of any detection frequency band, that is, when the end point frequency of the scanning frequency band is detected to be different from the end point frequency of any detection frequency band, the end point frequency of the scanning frequency band sent to the radio frequency scanning module is adjusted according to a preset mode so as to update the scanning frequency band of the radio frequency scanning, and the method comprises the following steps:

the end point frequency of the adjusted scanning frequency band meets the following formula:

f_n∈ f_bucket( m );

f_n - F_n >= 0;

f_n - F_n < bucket;

wherein F _ n represents the adjusted cut-off frequency of the nth scanning frequency band, F _ n represents the cut-off frequency of the nth scanning frequency band in a plurality of predefined scanning frequency bands, F _ bucket (m) represents the cut-off frequency of the mth detection frequency band, bucket represents the bandwidth of the detection frequency band, and the bandwidth of the detection frequency band is determined according to the endpoint frequency of the scanning frequency band and the scanning parameters; n =1,2, …, N; m =1,2, …, M; m is greater than N.

After the end point frequency of the scanning frequency band is adjusted, the control processing module sends the adjusted end point frequency of the scanning frequency band to the radio frequency scanning module so that the scanning frequency band is matched with the frequency range of the whole radio frequency scanning and the data processing requirement configured by the user.

In addition, after the detection module performs detection processing on the first signal data to obtain second signal data, the compensation module is required to perform frequency response compensation on the second signal data, and then the second signal data after frequency response compensation is sent to the display module for subsequent display processing.

The compensation module is used for acquiring the central frequency of each detection frequency band and the radio frequency channel corresponding to each detection frequency band, calculating a frequency response calibration error according to the central frequency and the radio frequency channel index, and performing frequency response compensation on corresponding second signal data according to the frequency response calibration error.

Furthermore, before the spectrum analyzer is shipped, the frequency response calibration must be performed and the entire frequency sweep range is covered. For the spectrum analyzer with multiple radio frequency channels, the scanning frequency bands of different channels are overlapped to cover the whole frequency band, so that frequency response calibration can be equivalent to frequency response calibration of a frequency division band and independent radio frequency channels, therefore, the spectrum analyzer provided by the embodiment further comprises a calibration module, wherein the calibration module is used for respectively determining endpoint frequencies of multiple calibration frequency bands according to the determined endpoint frequencies of the multiple scanning frequency bands, and the calibration frequency bands correspond to the radio frequency channels and the corresponding scanning frequency bands one to one; and calibrating the signal data in each calibration frequency band.

In this embodiment, the endpoint frequency of the calibration frequency band is determined according to the following formula:

cali_seg_n ={F_n-1 - f, F_n + f},F_n-1 – f >= f_start,F_n + f <= f_stop;

wherein cali _ seg _ N represents a calibration frequency band corresponding to an nth radio frequency channel, F _ N-1-F represents an initial frequency of the calibration frequency band corresponding to the nth radio frequency channel, F _ N + F represents a cut-off frequency of the calibration frequency band corresponding to the nth radio frequency channel, F _ N-1 represents an initial frequency of an nth scanning frequency band, F _ N represents a cut-off frequency of the nth scanning frequency band, and N =1,2, …, N; f represents the expanding frequency of the calibration frequency band, F _0 represents the starting frequency of the radio frequency scanning, and F _ N represents the cut-off frequency of the radio frequency scanning.

After the calibration frequency bands are determined, due to the uniqueness of the segmented mapping, frequency response data corresponding to each calibration frequency band can be determined, and frequency response digital compensation is performed on signal data of each calibration frequency band according to the frequency response data in the existing mode.

Referring to fig. 3, fig. 3 is a flowchart of a signal processing method of the spectrum analyzer according to the above embodiment, which is hereinafter referred to as a signal processing method for short, and the signal processing method includes the following steps, which are described in detail below.

Step 101, a control processing module acquires predefined endpoint frequencies of a plurality of scanning frequency bands and receives scanning parameters input by a user, and determines the endpoint frequencies of a plurality of detection frequency bands according to the endpoint frequencies of the plurality of scanning frequency bands and the scanning parameters; when the endpoint frequency of the scanning frequency band is detected not to coincide with the endpoint frequency of any detection frequency band, the endpoint frequency of the scanning frequency band sent to the radio frequency scanning module is adjusted according to a preset mode so as to update the scanning frequency band of the radio frequency scanning

102, the radio frequency scanning module correspondingly switches and scans the radio frequency channels according to a plurality of scanning frequency bands configured by the control processing module; the radio frequency channels correspond to the scanning frequency bands one by one.

In this embodiment, the spectrum analyzer includes a plurality of radio frequency channels, each radio frequency channel corresponds to one scanning frequency band, and the radio frequency channels are switched and gated by controlling the radio frequency channel selection switch, so that the signal to be measured can be scanned by all the scanning frequency bands one by one.

Step 103, the data acquisition module acquires the signal scanned by each scanning frequency band to obtain first signal data corresponding to each scanning frequency band.

The signal data scanned by each scanning frequency band is analog signal data, and after the analog signal data is sampled by the analog-digital sampling module, the analog signal data is processed by the digital signal processing module to obtain first signal data corresponding to each scanning frequency band.

And 104, the detection module performs detection processing on the first signal data corresponding to each scanning frequency band according to the determined endpoint frequencies of the plurality of detection frequency bands to obtain second signal data corresponding to each scanning frequency band, wherein the detection frequency band is a frequency difference value between two adjacent second signal data.

In this embodiment, according to display parameters such as resolution of a waveform displayed by the display module, the first signal data is usually more, so that the display module cannot process all the first signal data, and therefore, the first signal data needs to be detected first, that is, in any scanning frequency band, a preset number of first signal data are processed into one second signal data through a detection algorithm, for example, a scanning frequency band includes a first signal data and b second signal data, where a is far greater than b, and two adjacent second signal data form one detection frequency band, so that the scanning frequency band includes a plurality of detection frequency bands.

And 105, the compensation module acquires the central frequency of each detection frequency band and the radio frequency channel corresponding to each detection frequency band, calculates a frequency response calibration error according to the central frequency and the radio frequency channel index, and performs frequency response compensation on corresponding second signal data according to the frequency response calibration error.

And 106, merging the second signal data corresponding to the plurality of scanning frequency bands, and displaying the frequency information and the amplitude information of the merged signal data.

In one embodiment, the user-entered scan parameters include: a start frequency of the radio frequency sweep, a cutoff frequency of the radio frequency sweep, and a quantity of the second signal data.

In this embodiment, when the hardware of the spectrum analyzer is designed, the end point frequency of the scanning frequency band of each rf channel is pre-configured, that is, the end point frequency of each scanning frequency band is pre-defined, and meanwhile, it is necessary to ensure that each rf channel has a bandwidth enough for calibrating and expanding the frequency.

In one embodiment, the controlling and processing module determines the end frequencies of the plurality of detected bands according to the scanning parameters input by the user, and includes:

step 1011, determining the scanning bandwidth of the radio frequency scanning according to the starting frequency of the radio frequency scanning and the cut-off frequency of the radio frequency scanning.

In this embodiment, the scan bandwidth span of the radio frequency scan = f _ stop-f _ start, where f _ start is a start frequency of the radio frequency scan, and f _ stop is a cut-off frequency of the radio frequency scan.

Step 1012, determining the bandwidth of the detection frequency band according to the scanning bandwidth and the amount of the second signal data.

In this embodiment, the bandwidth bucket of the detection frequency band = span/points, and points is the number of the second signal data.

Step 1013, determining the end point frequencies of the plurality of detection bands according to the bandwidth of the detection bands and the start frequency of the radio frequency scanning. The end frequency of the detection band in this embodiment includes the start frequency of the detection band or the cut-off frequency of the detection band.

In this embodiment, the cut-off frequency f _ bucket (m) = f _ start + m × bucket, m =1,2,3 …, where f _ bucket (m) represents the cut-off frequency of the mth detected band, m represents the sequence number of the detected band, bucket represents the bandwidth of each detected band, and f _ start represents the start frequency of the rf scan.

When the control processing module detects that the end point frequency of the scanning frequency band does not coincide with the end point frequency of any detection frequency band, the end point frequency of the scanning frequency band sent to the radio frequency scanning module is adjusted according to a preset mode so as to update the scanning frequency band of the radio frequency scanning, and the method comprises the following steps:

the end point frequency of the adjusted scanning frequency band meets the following formula:

f _n∈ f_bucket( m );

f _n - F_n >= 0;

f _n - F_n < bucket;

wherein F _ n represents the adjusted cut-off frequency of the nth scanning frequency band, F _ n represents the cut-off frequency of the nth scanning frequency band in a plurality of predefined scanning frequency bands, F _ bucket (m) represents the cut-off frequency of the mth detection frequency band, bucket represents the bandwidth of the detection frequency band, and the bandwidth of the detection frequency band is determined according to the endpoint frequency of the scanning frequency band and the scanning parameters; n =1,2, …, N; m =1,2, …, M; m is greater than N.

Referring to fig. 4, fig. 4 is a schematic diagram illustrating adjustment of a scan band according to an embodiment, where the predefined scan band shown in fig. 4 is a scan band determined by a hardware scheme of a radio frequency channel of a spectrum analyzer when the spectrum analyzer leaves a factory, where F _0, F _1, and F _2 … … are end frequencies of the predefined scan band; the actual scanned band shown in fig. 4 is a scanned band determined by adjusting the end point frequency of the predefined scanned band in a preset manner, where f _0, f _1, and f _2 … … are the end point frequencies of the actual scanned band, and the actual scanned band includes a plurality of detected bands bucket. As can be seen from fig. 4, the end frequency of the predefined scanning band does not coincide with the end frequency of any detected band bucket, so that the buckets inevitably span two rf channels. In actual engineering, due to the scanning synchronization error and the characteristic difference of the radio frequency channel, the bucket data needs to be processed at a very high cost, frequency deviation is very easy to occur, correct compensation is very difficult, and then the problems of frequency deviation and discontinuous amplitude are presented on the waveform. For example, if the rf sweep includes only two predefined sweep bands F _0 to F _1 and F _1 to F _2, the signal data at the frequency point F _2 cannot be processed during the detection process, so the end frequencies of the predefined sweep bands need to be adjusted, and the adjusted end frequencies F _0, F _1, F _2 … … of the actual sweep bands coincide with the end frequencies of a part of the detected bands.

Furthermore, before the spectrum analyzer is shipped, the frequency response calibration must be performed and the entire frequency sweep range is covered. For the spectrum analyzer with multiple radio frequency channels, the scanning frequency bands of different channels are overlapped to cover the whole frequency band, so that frequency response calibration can be equivalent to frequency response calibration of a frequency division band and independent radio frequency channels, therefore, the spectrum analyzer provided by the embodiment further comprises a calibration module, wherein the calibration module is used for respectively determining endpoint frequencies of multiple calibration frequency bands according to the determined endpoint frequencies of the multiple scanning frequency bands, and the calibration frequency bands correspond to the radio frequency channels and the corresponding scanning frequency bands one to one; and calibrating the signal data in each calibration frequency band.

In this embodiment, the endpoint frequency of the calibration frequency band is determined according to the following formula:

cali_seg_n ={F_n-1 - f, F_n + f},F_n-1 – f >= f_start,F_n + f <= f_stop;

wherein cali _ seg _ N represents a calibration frequency band corresponding to an nth radio frequency channel, F _ N-1-F represents an initial frequency of the calibration frequency band corresponding to the nth radio frequency channel, F _ N + F represents a cut-off frequency of the calibration frequency band corresponding to the nth radio frequency channel, F _ N-1 represents an initial frequency of an nth scanning frequency band, F _ N represents a cut-off frequency of the nth scanning frequency band, and N =1,2, …, N; f represents the expanding frequency of the calibration frequency band, F _0 represents the starting frequency of the radio frequency scanning, and F _ N represents the cut-off frequency of the radio frequency scanning.

After the calibration frequency bands are determined, due to the uniqueness of the segmented mapping, frequency response data corresponding to each calibration frequency band can be determined, and frequency response compensation is performed on signal data of each calibration frequency band according to the frequency response data in the existing mode.

Referring to fig. 5, fig. 5 is a schematic diagram of a scanning band and a calibration band according to an embodiment, and it can be seen from fig. 5 that the end point frequency of the calibration band is shifted forward and backward by an extension frequency f at the end point frequency of the scanning band, respectively, to form a sub-band calibration logic with mutually coupled bands and band redundancy. For example, the first calibration band cali _ seg _1 is F _0 to (F _1+ F), and the second calibration band cali _ seg _2 is (F _ 1-F) to (F _2+ F).

The present invention has been described in terms of specific examples, which are provided to aid understanding of the invention and are not intended to be limiting. For a person skilled in the art to which the invention pertains, several simple deductions, modifications or substitutions may be made according to the idea of the invention.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:频谱分析仪的射频扫描方法和频谱分析仪

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!