Why is this USRP not receiving continuously?

조회 수: 22 (최근 30일)
Ricardo Loureiro
Ricardo Loureiro 2018년 4월 23일
답변: ARHUM AHMAD 2021년 11월 19일
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