Why is this USRP not receiving continuously?

6 次查看(过去 30 天)
hi,
I'm trying to implement a simple tx-rx setup with 2 USRP(both B210 USRPs) to validate a channel equalization function.
For that I'm using 1 USRP as transmitter and other as receiver. The information I'm trying to transmit is already modulate so the USRP are only use as up/down converters and sending/receiving the information.
With this in mind I got together the following script:
%%Settings
CenterFrequency = 1.821e9;
%TX
TXGain = 30;
TXMasterCLK = 10e6;
TXInterFactor = 1;
%RX
RXGain = 35;
RXMasterCLK = 10e6;
RXDecimFactor = 1;
%%Load Frame
load('dataTx_usrp.mat');
%%Discover Radio
connectedRadios = findsdru;
addressRX = '30FDE52';
platformRX = 'B210';
addressTX = '30FDE62';
platformTX = 'B210';
%%Initialization
%TX
tx = comm.SDRuTransmitter(...
'Platform', platformTX,...
'SerialNum', addressTX,...
'CenterFrequency', CenterFrequency,...
'Gain', TXGain,...
'MasterClockRate', TXMasterCLK,...
'InterpolationFactor', TXInterFactor...
)
%RX
rx_SDRu = comm.SDRuReceiver(...
'Platform', platformRX,...
'SerialNum', addressRX,...
'CenterFrequency', CenterFrequency,...
'Gain', RXGain,...
'MasterClockRate', RXMasterCLK,...
'DecimationFactor', RXDecimFactor,...
'SamplesPerFrame', length(dataTx_usrp),...
'OutputDataType', 'double' ...
)
%%Signal transmission and reception
dataRX = [];
for counter = 1:1000
tx(dataTx_usrp);
%data = rx_SDRu();
[rcvdSignal, len] = step(rx_SDRu);
if len > 0
dataRX = [dataRX; rcvdSignal];
end
%rx_log(data);
end
With this I'm able to transmit and receive the data on the dataTx_usrp variable but I think I'm missing some configuration on the USRP initialization because the process of transmission and reception is not continuous. Both USRP have LED that indicate when they are transmitting and receiving and those LED's are blinking. The result of that is a reception signal that is not continuous.
I don't understand why is that. It's not a USRP problem because I tried one example of a FM receiver and the receiver LED was always on.
Does someone know what is causing this problem?
Thank you for your time! Ricardo Loureiro
  2 个评论
Mir Lodro
Mir Lodro 2020-2-22
Hi,
This problem could be because of high sampling rates, try to reduce the sampling rate with appropriate interpolation and decimation factor. This might help you figure out where is the problem. But this is usually because of high sampling rates, NIC tunning etc.
Regards
Mir
Alvaro Lopez
Alvaro Lopez 2020-8-23
Hello,
Same problem here. All USRP examples work correctly but my simulink script doesn't work. The LEDs are blinking and I am not receiving or transmitting a signal. The USRP parameters are taken from the examples. There are no overrun or underrun signals on its ports.
Regards,
Álvaro

请先登录,再进行评论。

回答(1 个)

ARHUM AHMAD
ARHUM AHMAD 2021-11-19
Hey,
Try to increse Gain(Both Tx/Rx). Let me know if it work.

类别

Help CenterFile Exchange 中查找有关 Target NI USRP Radios 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by