Disclosure of Invention
The invention aims to provide a method and a device for generating RF data based on IQ data.
In order to achieve one of the above objects, an embodiment of the present invention provides a method for generating RF data based on IQ data, including the steps of: acquiring IQ data and carrying out interpolation processing on the IQ data; performing up-conversion and frequency mixing processing on the IQ data after interpolation processing; and extracting a real signal part of the IQ data after the frequency up-mixing processing, thereby obtaining the RF data.
As a further improvement of an embodiment of the present invention, the interpolating the IQ data includes: and carrying out zero padding and low-pass filtering processing on the IQ data.
As a further improvement of an embodiment of the present invention, the performing low-pass filtering processing on the IQ data includes: performing low-pass filtering processing on the IQ data based on a low-pass filter, wherein the cut-off frequency of the low-pass filter needs to satisfy the following two conditions at the same time: the bandwidth of the IQ data is less than the sampling frequency of the IQ data and the bandwidth of the I data and the Q data is less than half of the sampling frequency of the IQ data.
As a further improvement of an embodiment of the present invention, the performing up-mixing processing on the IQ data after interpolation processing includes: the formula of the up-mixing is calculated as,
wherein,
in order to achieve the desired sampling frequency,
is the sampling frequency of the IQ data, r represents the number of sampling points in the depth direction after interpolation,
fdemodto demodulate the frequency, StepDepth represents a step size in the depth direction.
As a further improvement of an embodiment of the present invention,
where c represents the speed of sound.
As a further improvement of an embodiment of the present invention, the extracting a real signal part of the IQ data after the up-mixing process to obtain the RF data includes: and multiplying the real signal part of the IQ data subjected to the frequency-up mixing processing by the evolution of 2 to finally obtain the RF data.
The embodiment of the invention also provides a device for generating RF data based on IQ data, which comprises the following modules: the IQ data acquisition module is used for acquiring IQ data and carrying out interpolation processing on the IQ data; the up-conversion and frequency mixing processing module is used for carrying out up-conversion and frequency mixing processing on the IQ data after interpolation processing; and the RF data generation module is used for extracting the real signal part of the IQ data after the up-conversion and mixing processing so as to obtain the RF data.
As a further improvement of an embodiment of the present invention, the IQ data acquisition module is further configured to: and carrying out zero padding and low-pass filtering processing on the IQ data.
As a further improvement of an embodiment of the present invention, the IQ data acquisition module is further configured to: performing low-pass filtering processing on the IQ data based on a low-pass filter, wherein the cut-off frequency of the low-pass filter needs to satisfy the following two conditions at the same time: the bandwidth of the IQ data is less than the sampling frequency of the IQ data and the bandwidth of the I data and the Q data is less than half of the sampling frequency of the IQ data.
The embodiment of the invention also provides ultrasonic scanning equipment which is provided with the device for generating the RF data based on the IQ data.
Compared with the prior art, the invention has the technical effects that: the embodiment of the invention provides a method for generating RF data based on IQ data, which comprises the following steps: acquiring IQ data and carrying out interpolation processing on the IQ data; performing up-conversion and frequency mixing processing on the IQ data after interpolation processing; and extracting a real signal part of the IQ data after the frequency up-mixing processing, thereby obtaining the RF data. The method for generating RF data based on IQ data has the advantages of rapidness, simplicity and practicability.
Detailed Description
The present invention will be described in detail below with reference to embodiments shown in the drawings. These embodiments are not intended to limit the present invention, and structural, methodological, or functional changes made by those skilled in the art according to these embodiments are included in the scope of the present invention.
An embodiment of the present invention provides a method for generating RF data based on IQ data, as shown in fig. 1, including the following steps:
step 101: acquiring IQ data and carrying out interpolation processing on the IQ data; here, the IQ data is subjected to interpolation processing, so that the IQ data can be increased by increasing the sampling rate, that is, the number of points of the signal can be increased in the time domain, and the data amount is increased; and the period of the frequency spectrum can be expanded on the frequency domain, namely, the periodic replication. A schematic of the interpolation is shown in fig. 2.
Step 102: performing up-conversion and frequency mixing processing on the IQ data after interpolation processing; here, the up-mixing is to shift the spectrum of the interpolated IQ signal to the original spectrum position (i.e., the spectrum of the RF data) without distortion, so that the IQ signal has high sensitivity, a wide frequency band, and stable operation.
Step 103: and extracting a real signal part of the IQ data after the frequency up-mixing processing, thereby obtaining the RF data. Here, it can be known from steps 101-103 that the method for generating RF data based on IQ data has the advantages of being fast, simple and practical.
Preferably, the interpolating the IQ data includes: and carrying out zero padding and low-pass filtering processing on the IQ data. Here, the zero padding process is to insert a 0 value in the IQ data to increase the sampling rate, and a schematic diagram thereof is shown in fig. 3; when the zero padding processing is performed on the IQ data, many spectrum images are obtained, so that these images need to be removed to restore the spectrum of the real signal, that is, the high frequency part can be removed by low-pass filtering, and the low frequency part is retained.
Preferably, the performing the low-pass filtering process on the IQ data includes: performing low-pass filtering processing on the IQ data based on a low-pass filter, wherein the cut-off frequency of the low-pass filter needs to satisfy the following two conditions at the same time: the bandwidth of the IQ data is less than the sampling frequency of the IQ data and the bandwidth of the I data and the Q data is less than half of the sampling frequency of the IQ data.
Here, the principle diagram of low-pass filtering is shown in fig. 4, and the cut-off frequency needs to satisfy two conditions at the same time:
(1) the bandwidth of the IQ data being less than the sampling frequency of the IQ data, i.e.
(2) The bandwidth of the I and Q data is less than half the sampling frequency of the IQ data, i.e.
Preferably, the performing up-mixing processing on the interpolated IQ data includes: the formula of the up-mixing is calculated as,
wherein,
in order to achieve the desired sampling frequency,
is the sampling frequency of IQ data, r represents the number of sampling points in the depth direction after interpolation,
fdemodto demodulate the frequency, StepDepth denotes a step size in the depth direction. Here, a schematic diagram of the up-mixing is shown in fig. 5.
Preferably, the first and second liquid crystal materials are,
where c represents the speed of sound.
Preferably, the extracting a real signal part of the IQ data after the up-mixing process to obtain the RF data includes: and multiplying the real signal part of the IQ data subjected to the frequency-up mixing processing by the evolution of 2 to finally obtain the RF data.
Here, the IQ signal is a complex signal including a real part I signal and an imaginary partThe Q signal of (1) is two parts, namely a real part signal is extracted, an imaginary part signal is compensated into RF data, and therefore, the imaginary part signal is multiplied by the evolution of 2, so that the amplitude of the original signal can be kept consistent, namely, the RF signal can be kept consistent with the amplitude of the original signal2=Re{IQup-mix(r)}2+IM{IQup-mix(r)}2=2*Re{IQup-mix(r)}2. Here, a schematic diagram of extracting the real part of the IQ signal is shown in fig. 6.
The embodiment of the invention also provides a device for generating RF data based on IQ data, which comprises the following modules:
the IQ data acquisition module is used for acquiring IQ data and carrying out interpolation processing on the IQ data;
the up-conversion and frequency-mixing processing module is used for performing up-conversion and frequency-mixing processing on the IQ data after interpolation processing;
and the RF data generation module is used for extracting a signal real part of the IQ data after the frequency up-mixing processing so as to obtain the RF data.
Preferably, the IQ data acquisition module is further configured to: and carrying out zero padding and low-pass filtering processing on the IQ data.
Preferably, the IQ data acquisition module is further configured to: performing low-pass filtering processing on the IQ data based on a low-pass filter, wherein the cut-off frequency of the low-pass filter needs to satisfy the following two conditions at the same time: the bandwidth of the IQ data is less than the sampling frequency of the IQ data and the bandwidth of the I data and the Q data is less than half of the sampling frequency of the IQ data.
The embodiment of the invention also provides ultrasonic scanning equipment which is provided with the device for generating the RF data based on the IQ data.
It should be understood that although the present description refers to embodiments, not every embodiment contains only a single technical solution, and such description is for clarity only, and those skilled in the art should make the description as a whole, and the technical solutions in the embodiments can also be combined appropriately to form other embodiments understood by those skilled in the art.
The above-listed detailed description is only a specific description of a possible embodiment of the present invention, and they are not intended to limit the scope of the present invention, and equivalent embodiments or modifications made without departing from the technical spirit of the present invention should be included in the scope of the present invention.