Filtering of frame by frame IQ data from SDR

14 次查看(过去 30 天)
I am using an N210 USRP to receive data at center frequency 2.406 GHz with sampling rate of 4MHz. The output data from the SDR is IQ data which are received in frames of 4000 , which can be defined in Matlab using SamplesPerFrame in comm.SDRuReceiver.
First, I am not sure what my reception bandwidth is because there is no way to define the bandwidth of the SDR using comm.SDRuReceiver. The daughter board that I am using (CBX-40) has a bandwith of 40MHz. I am not sure but my guess is that, since I declaired the sampling frequency to 4MHz, the bandwith will be calculated using Nyqust theorem as 2MHz.
Second, since data is received from SDR in frames, that means that the whole sample will be divided into 4Msamples/ 4000 = 1000 frames [Sampling rate divided by samples per frame]. But I have no idea on how to apply filtering on frame based data. What I am trying to accomplish is to apply a complex bandpass filter on the IQ data using a low pass filter with cut off frequency of 500 KHz (forming a band of 1MHz).

采纳的回答

Kaashyap Pappu
Kaashyap Pappu 2019-8-7
To filter the frame-based samples, you can use the “filter” function with a “filter” object as shown here. By appropriately assigning the “dim” variable, each frame can be filtered independently as different channels.
  1 个评论
Sopan Sarkar
Sopan Sarkar 2019-8-27
Hello Kaashyap,
Thank you very much for your reply. My radio is tuned to only 1 channel and I get the IQ data as a column vector from USRP. So, if I use the design as -
x = vector of IQ data
b = fir1(50,.4);
hd = dfilt.dffir(b);
y1 = filter(hd,x,1)
-my filter will act along the column. Using this desing I get data but I don't get the desired amount of data and I am trying to figure out why. After reading the documentation in the link that you provided I still have one confusion - my sampling rate is 2Msps and my frame size is 250000, so my data is defined by 8 frames. So, will this filter design be able to filter out the desired band of data?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Communications Toolbox 的更多信息

产品


版本

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by