How to extract two signals from two different USRP devices connected with MIMO expansion cable?

9 views (last 30 days)
I am working tith Matlab2020a and USRP Support Package. I want to present a concept of diversity in mobile communications, therefore I am using two N210 USRP devices (SBX motherboard) and Rx port on each of them. Two USRP devices are connected with MIMO expansion cable. Both of USRP's have static IP address '' and my computer network IP address is set to ''.
Problem that I am facing is not being able to extract two signals, one from every USRP. When I call the findsdru command:
connectedRadios = findsdru;
I get structure 1x2 where I can see that both of USRP's are connected successfully. When I tried connecting one USRP device, using the command comm.SDRuReceiver I was able to get received signal x1 from the receiving anntena. I did that in the following way:
connectedRadios = findsdru;
if strncmp(connectedRadios(1).Status, 'Success', 7)
radioFound = true;
platform = connectedRadios(1).Platform;
switch connectedRadios(1).Platform
case {'B200','B210'}
address = connectedRadios(1).SerialNum;
case {'N200/N210/USRP2','X300','X310','N300','N310','N320/N321'}
address = connectedRadios(1).IPAddress;
radioFound = false;
address = '';
platform = 'N200/N210/USRP2';
fmRxParams = getParamsSdruFMExamples(platform)
switch platform
case {'B200','B210'}
radio1 = comm.SDRuReceiver(...
'Platform', platform, ...
'SerialNum', address, ...
'MasterClockRate', fmRxParams.RadioMasterClockRate);
case {'X300','X310','N300','N310','N320/N321'}
radio1 = comm.SDRuReceiver(...
'Platform', platform, ...
'IPAddress', address, ...
'MasterClockRate', fmRxParams.RadioMasterClockRate);
case {'N200/N210/USRP2'}
radio1 = comm.SDRuReceiver(...
'Platform', platform, ...
'IPAddress', address);
radio1 = comm.SDRuReceiver('');
radio1.CenterFrequency = 500000000;
radio1.Gain = fmRxParams.RadioGain;
radio1.DecimationFactor = fmRxParams.RadioDecimationFactor;
radio1.SamplesPerFrame = fmRxParams.RadioFrameLength;
radio1.OutputDataType = 'single'
hwInfo = info(radio1)
fmBroadcastDemod = comm.FMBroadcastDemodulator(...
'SampleRate', fmRxParams.RadioSampleRate, ...
'FrequencyDeviation', fmRxParams.FrequencyDeviation, ...
'FilterTimeConstant', fmRxParams.FilterTimeConstant, ...
'AudioSampleRate', fmRxParams.AudioSampleRate, ...
'PlaySound', true, ...
'BufferSize', fmRxParams.BufferSize, ...
'Stereo', true);
if radioFound
% Loop until the example reaches the target stop time, which is 10
% seconds.
timeCounter = 0;
while timeCounter < fmRxParams.StopTime
[x1, len] = step(radio1);
if len > 0
% FM demodulation
step(fmBroadcastDemod, x1);
% Update counter
timeCounter = timeCounter + fmRxParams.AudioFrameTime;
Now, I would like to get signal x2 in the same way from the second USRP, but I don't know how. Am I supposed to change the IP address of one of the USRP's or I can manage this problem using the Matlab functions.
  1 Comment
Firas Dawod
Firas Dawod on 10 Mar 2022
Hi Dzana,
Could you able to have phase coherence (or sychronization) between two USRP N210 using MiMO extension cable? I tried the samething with MATLAB Simulink but it did not work, as there was no option to receive the clock through the MiMO cable in the SDRu receiver block.
please let me know if it is possible to do that in MATLAB Simulink.

Sign in to comment.

Accepted Answer

Karunya Choppara
Karunya Choppara on 20 Jul 2021
You can set a new IP address to the N210 radio using setsdruip function, as described on this page

More Answers (1)

Firas Dawod
Firas Dawod on 15 Apr 2022
I tried also to synchronize (phase cohernce) two USRP N200 with MIMO cable but it did not work as there is no option for mimo cable in sdruReciver. Therefore, we purchase USRP B210.


Find more on Communications Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!