Spectrum scanning and analyzing method and system

By performing spectrum scanning and analysis in the radio receiver, and using FPGA and processor to generate display diagrams, the problem of existing technology being unable to visually display the spectrum of radio signals is solved, and the effectiveness and safety of the signal can be quickly judged to meet specific scenarios. needs.

CN118784428APending Publication Date: 2024-10-15北京数码视讯软件技术发展有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411002138.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing radio receiving devices cannot visually display the spectrum of the received radio signal, resulting in the inability to quickly and effectively judge the validity and safety of the signal, and unable to meet the use needs of specific scenarios.

Method used

The spectrum scanning and analysis of the received radio signal is implemented in the receiver, digital down-conversion processing and low-pass filtering are performed through the FPGA, the IQ baseband data is collected for FFT operation, the spectrum data is generated and packaged into IP packets and sent to the processor, generating Display a plot to display spectrum information.

Benefits of technology

It realizes rapid judgment on whether there are abnormalities in radio signals, meets the usage requirements of specific scenarios, provides intuitive spectrum display, and improves the efficiency and accuracy of signal judgment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784428A_ABST
    Figure CN118784428A_ABST
Patent Text Reader

Abstract

The invention provides a frequency spectrum scanning and analysis method and system, and the method comprises the steps: carrying out the preprocessing of a radio signal after a receiver receives the radio signal, and obtaining a digital real signal; the FPGA performs digital down-conversion processing on the real signal to obtain a baseband complex signal with zero intermediate frequency; performing low-pass filtering and extraction processing on the baseband complex signal to obtain a baseband complex signal after down-sampling processing; acquiring a plurality of IQ baseband data from the baseband complex signal after down-sampling processing according to a preset FFT point number, and storing the IQ baseband data in a DDR memory; reading IQ baseband data of a preset FFT point number from the DDR memory, and performing FFT operation on the read IQ baseband data to obtain frequency domain data; performing windowing processing on the frequency domain data to obtain FFT data; determining spectrum data according to the FFT data; the spectrum data is packaged into an IP packet to be sent to a processor, and the processor generates a display image according to the IP packet and then displays the display image; and whether the radio signal is abnormal or not is quickly judged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of radio communication technology, and in particular to a spectrum scanning and analysis method and system. Background Art

[0002] Radio signals include waveforms of various lengths, such as long wave, short wave and medium wave. Now radio technology has become a very important part of our lives and has been fully utilized in various fields.

[0003] However, among various radio receiving devices, there are few devices or functions that directly carry the function of scanning and analyzing the spectrum of the input radio signal, so it is impossible to intuitively display the spectrum of the received radio signal. Therefore, it is impossible to quickly and effectively determine the effectiveness and safety of the received signal, and thus it is impossible to meet the use requirements of specific scenarios. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a spectrum scanning and analysis method and system, which realizes spectrum scanning of received radio signals in a receiver, analyzes and processes the scanning results, and finally displays them on the receiver in the form of a display graph. It can make a quick judgment on whether there is an abnormality in the radio signal, thereby meeting the usage requirements of specific scenarios.

[0005] In a first aspect, an embodiment of the present invention provides a spectrum scanning and analysis method, the method comprising:

[0006] After receiving the radio signal through the receiving antenna, the receiver pre-processes the radio signal to obtain a digitized real signal;

[0007] The FPGA performs digital down-conversion processing on the real signal to obtain a baseband complex signal with a zero intermediate frequency;

[0008] The baseband complex signal is subjected to low-pass filtering and decimation processing to obtain a baseband complex signal after downsampling processing;

[0009] Collecting a plurality of IQ baseband data from the baseband complex signal after the downsampling process according to a preset FFT point number, and storing the data in a DDR memory;

[0010] Reading the IQ baseband data of the preset FFT points from the DDR memory, and performing FFT operation on the read IQ baseband data to obtain frequency domain data;

[0011] Performing windowing processing on the frequency domain data to obtain FFT data;

[0012] Determine frequency spectrum data according to the FFT data;

[0013] Packing the spectrum data into an IP packet and sending it to a processor, wherein the processor generates a display image according to the IP packet;

[0014] The processor sends the display image to the receiver, and the receiver displays the display image.

[0015] Furthermore, the FPGA performs digital down-conversion processing on the real signal to obtain a baseband complex signal with a zero intermediate frequency, including:

[0016] The FPGA generates a local oscillator signal through a direct digital frequency synthesizer;

[0017] The local oscillator signal and the real signal are calculated to obtain the zero intermediate frequency baseband complex signal.

[0018] Further, the local oscillator signal and the real signal are calculated to obtain the zero intermediate frequency baseband complex signal, including:

[0019] The baseband complex signal of the zero intermediate frequency is calculated according to the following formula:

[0020]

[0021] Wherein, y(n) is the baseband complex signal of the zero intermediate frequency, s(n) is the real signal, and f c is the center frequency of the intermediate frequency signal, T s is the sampling interval, is the local oscillator signal, and n is the number of sampling points.

[0022] Further, determining spectrum data according to the FFT data includes:

[0023] Selecting valid data points from the FFT data according to the signal bandwidth of the spectrum scan;

[0024] Determine the signal amplitude value and phase value of the valid data point;

[0025] The frequency spectrum data is determined according to the signal amplitude value and the phase value.

[0026] Further, the radio signal is preprocessed to obtain a digitized real signal, including:

[0027] Passing the radio signal through an analog link amplifier and attenuator to obtain a signal level;

[0028] The signal level is converted from analog to digital through a high-speed ADC chip to obtain the digitized real signal.

[0029] Further, the processor generates a display diagram according to the IP packet, including:

[0030] The processor performs logarithmic processing on the signal amplitude value in the IP packet to obtain an amplitude value in logarithmic form;

[0031] Calibrate the amplitude value in logarithmic form to obtain a calibrated amplitude spectrum;

[0032] Draw the display diagram according to the calibrated amplitude spectrum and phase spectrum;

[0033] Wherein, the display graph includes a spectrum graph and a waterfall graph.

[0034] In a second aspect, an embodiment of the present invention provides a spectrum scanning and analysis system, the system comprising:

[0035] A preprocessing module is used to preprocess the radio signal after the receiver receives the radio signal through the receiving antenna to obtain a digitized real signal;

[0036] A digital down-conversion processing module is used for FPGA to perform digital down-conversion processing on the real signal to obtain a baseband complex signal with zero intermediate frequency;

[0037] A low-pass filtering and decimation processing module, used for performing low-pass filtering and decimation processing on the baseband complex signal to obtain a baseband complex signal after downsampling processing;

[0038] An acquisition module, used for acquiring a plurality of IQ baseband data from the baseband complex signal after the downsampling process according to a preset FFT point number, and storing the data in a DDR memory;

[0039] A reading module, used for reading the IQ baseband data of the preset FFT points from the DDR memory, and performing FFT operation on the read IQ baseband data to obtain frequency domain data;

[0040] A windowing processing module, used for performing windowing processing on the frequency domain data to obtain FFT data;

[0041] A determination module, used to determine spectrum data according to the FFT data;

[0042] A packaging module, used for packaging the spectrum data into an IP packet and sending it to a processor, wherein the processor generates a display image according to the IP packet;

[0043] The sending module is used for the processor to send the display image to the receiver, and the receiver displays the display image.

[0044] Furthermore, the digital down-conversion processing module is specifically used for:

[0045] The FPGA generates a local oscillator signal through a direct digital frequency synthesizer;

[0046] The local oscillator signal and the real signal are calculated to obtain the zero intermediate frequency baseband complex signal.

[0047] The embodiment of the present invention provides a spectrum scanning and analysis method and system, comprising: after a receiver receives a radio signal through a receiving antenna, the radio signal is pre-processed to obtain a digitized real signal; an FPGA performs digital down-conversion processing on the real signal to obtain a baseband complex signal with a zero intermediate frequency; the baseband complex signal is low-pass filtered and extracted to obtain a baseband complex signal after down-sampling processing; a plurality of IQ baseband data are collected from the baseband complex signal after down-sampling processing according to a preset FFT point number, and stored in a DDR memory; the IQ baseband data with a preset FFT point number is read from the DDR memory, and the read IQ baseband data is processed. Perform FFT operation on IQ baseband data to obtain frequency domain data; perform windowing on frequency domain data to obtain FFT data; determine spectrum data based on FFT data; package spectrum data into IP packets and send them to the processor, which generates a display graph based on the IP packets; the processor sends the display graph to the receiver, which displays the display graph; perform spectrum scanning on the received radio signal in the receiver, analyze and process the scanning results, and finally display them on the receiver in the form of a display graph, so as to make a quick judgment on whether there is an abnormality in the radio signal, thereby meeting the usage requirements of specific scenarios.

[0048] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0049] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0051] Figure 1 A schematic diagram of an application scenario of the spectrum scanning and analysis system provided in Embodiment 1 of the present invention;

[0052] Figure 2 A flow chart of a spectrum scanning and analysis method provided in Embodiment 2 of the present invention;

[0053] Figure 3 A schematic diagram of a down-conversion process provided in Embodiment 2 of the present invention;

[0054] Figure 4 A schematic diagram of the low-pass filtering and extraction process provided in the second embodiment of the present invention;

[0055] Figure 5 A schematic diagram of the data collection and DDR time division multiplexing process provided in the second embodiment of the present invention;

[0056] Figure 6 A frequency spectrum curve diagram of a medium- and short-wave AM input signal provided in the second embodiment of the present invention;

[0057] Figure 7 A waterfall diagram of a medium- and short-wave AM input signal provided in the second embodiment of the present invention;

[0058] Figure 8 This is a schematic diagram of a spectrum scanning and analysis system provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] To facilitate understanding of this embodiment, the embodiment of the present invention is described in detail below.

[0061] Embodiment 1:

[0062] Figure 1 A schematic diagram of an application scenario of the spectrum scanning and analysis system provided in Embodiment 1 of the present invention.

[0063] Reference Figure 1 The system includes a radio modulator, a transmitter and a receiver. The transmitter transmits the radio signal to the receiver wirelessly through the antenna. After receiving the radio signal, the receiver performs spectrum scanning and analysis on the radio signal, and analyzes and processes the scanning results. Finally, it is displayed on the receiver in the form of a curve chart and a waterfall chart for subsequent various other application processing, such as new frequency search and black broadcast monitoring.

[0064] Specifically, the radio signal is preprocessed to obtain a digitized real signal; the FPGA performs digital down-conversion processing on the real signal to obtain a baseband complex signal with a zero intermediate frequency; the baseband complex signal is low-pass filtered and extracted to obtain a baseband complex signal after downsampling processing; multiple IQ baseband data are collected from the baseband complex signal after downsampling processing according to a preset FFT point number, and stored in the DDR memory; the IQ baseband data of the preset FFT point number is read from the DDR memory, and the read IQ baseband data is subjected to FFT operation to obtain frequency domain data; the frequency domain data is windowed to obtain FFT data; the spectrum data is determined according to the FFT data; the spectrum data is packaged into an IP packet and sent to the processor, and the processor generates a curve chart and a waterfall chart according to the IP packet; the processor sends the curve chart and the waterfall chart to the receiver, and the receiver displays the curve chart and the waterfall chart, so that a quick judgment can be made on whether there is an abnormality in the radio signal.

[0065] Embodiment 2:

[0066] Figure 2 This is a flow chart of the spectrum scanning and analysis method provided in Embodiment 2 of the present invention.

[0067] Reference Figure 2 , the method comprises the following steps:

[0068] Step S101, after receiving a radio signal through a receiving antenna, the receiver pre-processes the radio signal to obtain a digitized real signal;

[0069] Step S102, the FPGA performs digital down-conversion processing on the real signal to obtain a baseband complex signal with a zero intermediate frequency;

[0070] Specifically, after the receiver receives the radio signal, it is processed by the analog link amplifier and attenuator to obtain the signal level; then after completing the analog-to-digital sampling through the high-speed ADC chip, a digitized real signal is obtained, and the digitized real signal enters the FPGA for processing.

[0071] Assume the ADC sampling rate is f s-ADC , the input signal is a medium- and short-wave AM signal with a frequency range of 500KHz-30MHz. According to the Nyquist theorem (the sampling rate must be at least twice the input signal cutoff frequency), f s-ADC It needs to be greater than 60MHz, assuming f s-ADC It is 102.4MHz.

[0072] The real signal is digitally down-converted to obtain a zero intermediate frequency baseband complex signal. According to the spectrum bandwidth of 500KHz-30MHz, the center frequency is designed to be 15MHz. FPGA generates an f for down-conversion through a direct digital frequency synthesizer DDS.c =15MHz local oscillator signal, that is By multiplying the local oscillator signal and the input real signal, the real signal is divided into two orthogonal signals, refer to formula (1).

[0073] Step S103, performing low-pass filtering and decimation processing on the baseband complex signal to obtain a baseband complex signal after downsampling processing;

[0074] Specifically, after orthogonal digital down-conversion, a baseband complex signal (IQ data) with zero intermediate frequency is obtained. The sampling rate is still the sampling rate of the ADC, and the frequency range of the input baseband complex signal (IQ data) becomes -15MHz to 15MHz, and the sampling rate is much larger than the signal bandwidth.

[0075] In spectrum scanning, there is a very important parameter RBW, which represents the bandwidth resolution characteristics of spectrum analysis, that is, the lowest frequency bandwidth of spectrum analysis, where RBW = f s / N FFT , f s is the data sampling rate for FFT (Fast Fourier Transformation, a fast DFT algorithm), N FFT The number of FFT calculation points.

[0076] Because N FFT There is a maximum limit, usually 65536. If the current f s-ADC / N FFT When the RBW requirement cannot be met, there are two solutions to meet the RBW requirement. One is to reduce the signal sampling rate, and the other is to segment the entire frequency band into smaller bandwidths and then splice them. Data downsampling can be achieved through decimation. In order to prevent signal aliasing after decimation, low-pass filtering is required before decimation, as shown below. Figure 4 The low-pass filter is usually implemented by an integral comb filter, a half-band filter, and a FIR filter, but is not limited to the above filters and may also be other filters.

[0077] Step S104, collecting a plurality of IQ baseband data from the baseband complex signal after downsampling according to a preset FFT point number, and storing the data in a DDR memory;

[0078] Specifically, after down-conversion and down-sampling filtering, the sampling rate of the output baseband complex signal (IQ data) meets the requirements of RBW (Resolution Band Width) of spectrum analysis (assuming f s=51.2MHz). According to the designed FFT points (here the FFT points are assumed to be 65536), 65536 IQ baseband data need to be collected continuously at one time and stored in the internal DDR memory. According to the spectrum refresh rate required by the system, a timer is designed to control the collection and storage of IQ data.

[0079] For this system, real-time multi-channel spectrum analysis is required, and the IQ data sampling rates of different channels are different. In order to reduce the occupation of hardware resources, this application needs to design a method that can efficiently complete the storage of multi-channel IQ data and provide it to the FFT module to complete real-time calculations. Considering that the total data processing bandwidth of FFT and DDR is much higher than the actual data bandwidth that needs to be processed, the solution of time-division multiplexing DDR transmission channel is adopted here to achieve this.

[0080] Reference Figure 5 According to the different IQ data sampling rates of different channels, the IQ data is temporarily stored in FIFO and written into the cache at a specific location of DDR in proportion. A read-write pointer RAM is designed to store the IQ data amount pointers of different channels. The FPGA continuously polls this pointer RAM. When it detects that the IQ data cache amount of a certain channel meets the data sampling quantity requirement of FFT (for example, 65536), all 65536 data points of the channel are read out at one time. After the bit width conversion, it is sent to the FFT module to complete the FFT processing of the data. After the FFT data processing of the channel is completed, the cache IQ data amount of the next channel is judged.

[0081] Step S105, reading the IQ baseband data of the preset FFT points from the DDR memory, and performing FFT operation on the read IQ baseband data to obtain frequency domain data;

[0082] Step S106, performing windowing processing on the frequency domain data to obtain FFT data;

[0083] Specifically, the IQ data is read out from the DDR memory continuously. FFT After the data of the point is read out, the FFT operation begins. The FFT operation requires a certain amount of time and hardware resources. Different FFT structures require different time and resources. Usually there are several modes: pipeline, Radix-4 and Radix-2.

[0084] After FFT operation, the IQ data in the time domain becomes frequency domain data. In order to reduce the impact of spectrum leakage, the frequency domain data is windowed. When performing FFT calculation, the bit width of the input data and the bit width of the phase noise will affect the final spectrum power accuracy, thereby affecting the noise index. It is necessary to comprehensively balance the accuracy requirements and the consumption of hardware resources.

[0085] Step S107, determining spectrum data according to the FFT data;

[0086] Step S108, packing the spectrum data into an IP packet and sending it to the processor, and the processor generates a display graph according to the IP packet;

[0087] Step S109: the processor sends the display image to the receiver, and the receiver displays the display image.

[0088] In this embodiment, the digital processing technology of RF direct sampling is used to improve the accuracy of spectrum scanning analysis and minimize the damage of the analog receiving link to the radio signal. Through the DDC (Digital Down Converter) technology, a certain frequency band of the input radio signal is moved to zero intermediate frequency, and down sampling and low-pass filtering are completed at the same time to meet the requirements of spectrum resolution. The IQ complex signal data after down conversion and down sampling is intercepted and collected, and FFT calculation and storage are performed. After the amplitude and frequency are processed, they are packaged and sent to the processor (CPU or ARM) for drawing and displaying curve graphs and waterfall graphs.

[0089] Further, step S102 includes the following steps:

[0090] Step S201, FPGA generates a local oscillator signal through a direct digital frequency synthesizer (DDS);

[0091] Step S202, calculating the local oscillator signal and the real signal to obtain a zero intermediate frequency baseband complex signal.

[0092] Here, the local oscillator signal is multiplied by the input real signal, and the real signal is divided into two orthogonal signals. The down-conversion process is referred to Figure 3 .

[0093] Further, step S202 includes:

[0094] The baseband complex signal with zero intermediate frequency is calculated according to formula (1):

[0095]

[0096] Among them, y(n) is the baseband complex signal with zero intermediate frequency, s(n) is the real signal, and f c is the center frequency of the intermediate frequency signal, T s is the sampling interval, is the local oscillator signal, and n is the number of sampling points.

[0097] Further, step S107 includes the following steps:

[0098] Step S301, selecting valid data points from FFT data according to the signal bandwidth of the spectrum scan;

[0099] Step S302, determining the signal amplitude value and phase value of the valid data point;

[0100] Step S303: determining spectrum data according to the signal amplitude value and phase value.

[0101] Furthermore, step S101 includes the following steps:

[0102] Step S401, passing the radio signal through an analog link amplifier and attenuator to obtain a signal level;

[0103] Step S402: convert the signal level from analog to digital through a high-speed ADC chip to obtain a digitized real signal.

[0104] Further, step S108 includes the following steps:

[0105] Step S501, the processor performs logarithmic processing on the signal amplitude value in the IP packet to obtain a logarithmic amplitude value;

[0106] Step S502, calibrating the amplitude value in logarithmic form to obtain a calibrated amplitude spectrum;

[0107] Step S503, drawing a display graph according to the calibrated amplitude spectrum and phase spectrum;

[0108] The displayed graphs include spectrum graph and waterfall graph.

[0109] Specifically, the output FFT data is processed, and all N-point data output by FFT corresponds to the entire -f s / 2~f s / 2 frequency range. Among them, 0~(N / 2-1) corresponds to 0~f s / 2 frequency band data points, N / 2~N-1 corresponds to -f s / 2~0 frequency band data points.

[0110] According to the signal bandwidth of the spectrum scan, select valid data points for processing. For example, for medium and short wave AM signals, the bandwidth is 500KHz to 30MHz. After down-conversion and down-sampling, it is necessary to select data points in the two segments of 0 to 19200 and 46336 to 65535 for processing.

[0111] Assuming that after FFT, a certain point n is represented by a complex number a+bi, then the modulus of the complex number is Phase is P n = atan2(b, a), the frequency of the nth point is f n =(n-1)*fs / N, this is the signal amplitude and phase value at the nth frequency point. The amplitude spectrum and phase spectrum within the entire signal frequency range together constitute the signal's spectrum data.

[0112] When performing spectrum analysis on a signal, in order to more effectively determine the spectrum characteristics of the input signal, it is necessary to perform secondary processing and integration on the data so that the user can directly and effectively understand the characteristics of the input signal. This application provides functions such as data average, maximum hold, minimum hold, VBW setting, Mark, Peak detection, etc. In the process of processing data, DDR memory is used to cache a large amount of raw data and the final processed data.

[0113] After completing the above processing, the data obtained represents the signal amplitude and phase values. In order to more intuitively represent the size of the signal on the spectrum graph, the signal amplitude value needs to be converted into a logarithmic value, and then the calibration process is completed. The conversion and calibration of the value is implemented on the CPU or ARM processor. The specific implementation process is:

[0114] FPGA packages the signal amplitude value into an IP packet and sends it to the upper layer CPU or ARM processor through the network port. The CPU or ARM processor receives the signal amplitude value A n After that, the logarithmic log processing is performed, and the value in db is 20log(A n ). This value is a relative value, which is proportional to the actual input signal level. It is also necessary to calibrate the absolute value of the signal.

[0115] The calibration process is to input multiple signals of known level and frequency, obtain the relative value of the signal on the system, and then correspond the known level and relative value one by one to form a corresponding curve. When other signals are input later, the actual level value of the signal can be inferred based on the relative value.

[0116] The CPU or ARM processor draws the spectrum curve and the waterfall chart based on the amplitude spectrum and phase spectrum data after processing the logarithmic formula and calibration. The waterfall chart is a simple 3D graph with the horizontal axis representing the frequency value and the vertical axis representing the time of the signal. Different colors are used to represent the signal strength. Figure 6 As shown, the waterfall diagram is Figure 7 shown.

[0117] Embodiment three:

[0118] Figure 8 This is a schematic diagram of a spectrum scanning and analysis system provided in Embodiment 3 of the present invention.

[0119] Reference Figure 8The system comprises:

[0120] The preprocessing module is used to preprocess the radio signal after the receiver receives the radio signal through the receiving antenna to obtain a digitized real signal;

[0121] The digital down-conversion processing module is used in FPGA to perform digital down-conversion processing on real signals to obtain a zero intermediate frequency baseband complex signal;

[0122] A low-pass filtering and decimation processing module is used to perform low-pass filtering and decimation processing on the baseband complex signal to obtain a baseband complex signal after downsampling processing;

[0123] An acquisition module, used for acquiring a plurality of IQ baseband data from the baseband complex signal after downsampling processing according to a preset FFT point number, and storing the data in a DDR memory;

[0124] The reading module is used to read the IQ baseband data of the preset FFT points from the DDR memory, and perform FFT operation on the read IQ baseband data to obtain frequency domain data;

[0125] A windowing processing module is used to perform windowing processing on frequency domain data to obtain FFT data;

[0126] A determination module, used for determining spectrum data according to FFT data;

[0127] A packaging module is used to package the spectrum data into an IP packet and send it to the processor, and the processor generates a display image according to the IP packet;

[0128] The sending module is used for the processor to send the display image to the receiver, and the receiver displays the display image.

[0129] Furthermore, the digital down-conversion processing module is specifically used for:

[0130] FPGA generates local oscillator signal through direct digital frequency synthesizer;

[0131] The local oscillator signal and the real signal are calculated to obtain a baseband complex signal with zero intermediate frequency.

[0132] In this embodiment, the spectrum scanning and analysis of the radio signal is directly related to the frequency band and signal bandwidth of the input signal, the RBW / VBW required by the system, and the sampling rate of the ADC and other parameters. Different parameters will affect different design solutions.

[0133] If the sampling rate of the input radio signal after downsampling still cannot meet the RBW requirement, the input radio signal needs to be divided into several segments for separate processing. The processing of each segment is the same as the above method, except that the center frequency of the down-conversion is different. In this case, in order to reduce the consumption of hardware resources, it is necessary to control the time division multiplexing processing of DDR to ensure that the input signal at the same time enters the DDR memory for cache after completing the FFT operation, and waits for the other segmented signals at the same time to complete the FFT operation before the overall splicing processing.

[0134] FFT transformation is generally performed on time domain data of limited length, so there will be signal truncation. The amplitude of the truncated signal at the start and end times are not equal, so there will be discontinuity and jumps in the amplitude of the signal at the connection. After such a signal is processed by FFT, there will be tailing on the spectrum, which is commonly known as spectrum leakage. Therefore, the influence of spectrum leakage can be reduced by windowing.

[0135] An embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the spectrum scanning and analysis method provided in the above embodiment are implemented.

[0136] An embodiment of the present invention further provides a computer-readable medium having a non-volatile program code executable by a processor, wherein a computer program is stored on the computer-readable medium, and when the computer program is executed by the processor, the steps of the spectrum scanning and analysis method of the above embodiment are executed.

[0137] The computer program product provided in the embodiment of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment and will not be repeated here.

[0138] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0139] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0140] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0141] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0142] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A spectrum scanning and analysis method, characterized in that: The method comprises: After receiving the radio signal through the receiving antenna, the receiver pre-processes the radio signal to obtain a digitized real signal; The FPGA performs digital down-conversion processing on the real signal to obtain a baseband complex signal with a zero intermediate frequency; The baseband complex signal is subjected to low-pass filtering and decimation processing to obtain a baseband complex signal after downsampling processing; Collecting a plurality of IQ baseband data from the baseband complex signal after the downsampling process according to a preset FFT point number, and storing the data in a DDR memory; Reading the IQ baseband data of the preset FFT points from the DDR memory, and performing FFT operation on the read IQ baseband data to obtain frequency domain data; Performing windowing processing on the frequency domain data to obtain FFT data; Determine frequency spectrum data according to the FFT data; Packing the spectrum data into an IP packet and sending it to a processor, wherein the processor generates a display image according to the IP packet; The processor sends the display image to the receiver, and the receiver displays the display image.

2. The spectrum scanning and analysis method according to claim 1, characterized in that: The FPGA performs digital down-conversion processing on the real signal to obtain a baseband complex signal with a zero intermediate frequency, including: The FPGA generates a local oscillator signal through a direct digital frequency synthesizer; The local oscillator signal and the real signal are calculated to obtain the zero intermediate frequency baseband complex signal.

3. The spectrum scanning and analysis method according to claim 2, characterized in that: Calculating the local oscillator signal and the real signal to obtain the zero intermediate frequency baseband complex signal includes: The baseband complex signal of the zero intermediate frequency is calculated according to the following formula: Wherein, y(n) is the baseband complex signal of the zero intermediate frequency, s(n) is the real signal, and f c is the center frequency of the intermediate frequency signal, T s is the sampling interval, is the local oscillator signal, and n is the number of sampling points.

4. The spectrum scanning and analysis method according to claim 1, characterized in that: Determining spectrum data according to the FFT data includes: Selecting valid data points from the FFT data according to the signal bandwidth of the spectrum scan; Determine the signal amplitude value and phase value of the valid data point; The frequency spectrum data is determined according to the signal amplitude value and the phase value.

5. The spectrum scanning and analysis method according to claim 1, characterized in that: Preprocessing the radio signal to obtain a digitized real signal includes: Passing the radio signal through an analog link amplifier and attenuator to obtain a signal level; The signal level is converted from analog to digital through a high-speed ADC chip to obtain the digitized real signal.

6. The spectrum scanning and analysis method according to claim 1, characterized in that: The processor generates a display diagram according to the IP packet, including: The processor performs logarithmic processing on the signal amplitude value in the IP packet to obtain an amplitude value in logarithmic form; Calibrate the amplitude value in logarithmic form to obtain a calibrated amplitude spectrum; Draw the display diagram according to the calibrated amplitude spectrum and phase spectrum; Wherein, the display graph includes a spectrum graph and a waterfall graph.

7. A spectrum scanning and analysis system, characterized in that: The system comprises: A preprocessing module is used to preprocess the radio signal after the receiver receives the radio signal through the receiving antenna to obtain a digitized real signal; A digital down-conversion processing module is used for FPGA to perform digital down-conversion processing on the real signal to obtain a baseband complex signal with zero intermediate frequency; A low-pass filtering and decimation processing module, used for performing low-pass filtering and decimation processing on the baseband complex signal to obtain a baseband complex signal after downsampling processing; An acquisition module, used for acquiring a plurality of IQ baseband data from the baseband complex signal after the downsampling process according to a preset FFT point number, and storing the data in a DDR memory; A reading module, used for reading the IQ baseband data of the preset FFT points from the DDR memory, and performing FFT operation on the read IQ baseband data to obtain frequency domain data; A windowing processing module, used for performing windowing processing on the frequency domain data to obtain FFT data; A determination module, used to determine spectrum data according to the FFT data; A packaging module, used for packaging the spectrum data into an IP packet and sending it to a processor, wherein the processor generates a display image according to the IP packet; The sending module is used for the processor to send the display image to the receiver, and the receiver displays the display image.

8. The spectrum scanning and analysis system according to claim 7, characterized in that: The digital down-conversion processing module is specifically used for: The FPGA generates a local oscillator signal through a direct digital frequency synthesizer; The local oscillator signal and the real signal are calculated to obtain the zero intermediate frequency baseband complex signal.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.

10. A computer readable medium having a non-volatile program code executable by a processor, characterized in that: The program code enables the processor to execute the method according to any one of claims 1 to 6.