Matlab and USRP N210 configuration problems

Dear all,
I am trying to use USRP N210 with Matlab, but I am facing an error. The Matlab version that I am using is R2022a, the OS is Debian 11.
I have configured the ethernet port, giving the IP address: 192.168.10.1/24. The IP address of the USRP N210 is 192.168.10.23.
I can ping the USRP and when I run the command: "findsdru" in the command window I get the following result:
Platform: 'N200/N210/USRP2'
IPAddress: '192.168.10.23'
SerialNum: 'E9R20P5UP'
Status: 'Success'
However, once I try to run my code, or even the QPSK example provided by Matlab I get the following error:
Error using comm.SDRuTransmitter/setupImplLocal
Radio with IP address '192.168.10.2' is not of the specified platform 'N200/N210/USRP2'.
Error in comm.internal.SDRuBase/setupImpl
Can anyone help me please?

댓글 수: 10

The easiest way might be to configure the radio to 192.168.10.2 instead of 192.168.10.23
But I want to connect two USRPs N210 (tx and rx ) with my PC using a switch. I use the following syntax for allocating the USRPs:
Tx:
connectedRadios = findsdru
if strncmp(connectedRadios(1).Status, 'Success', 7)
platform = connectedRadios(1).Platform
address = connectedRadios(1).IPAddress
end
Rx:
connectedRadios = findsdru
if strncmp(connectedRadios(2).Status, 'Success', 7)
platform = connectedRadios(2).Platform
address = connectedRadios(2).IPAddress
end
connectedRadios = findsdru;
if strncmp(connectedRadios(1).Status, 'Success', 7)
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;
end
else
address = '192.168.10.2';
platform = 'N200/N210/USRP2';
end
I would suggest you step through that, and seeing if you get to the platform assignment, and if so what Platform shows up.
I have checked the given QPSK example. Even if I try to connect only one USRP and run only the transmitter code, again I face the same error
When you use that section of code, does it return a valid address or does it fail over to assigning the .2 address?
The address = connectedRadios.IPAddress return the right IP addresses in both cases, and afterwards it throws the error
What is your current code, the one that is recognizing the ip address but failing soon after?
yes, the following one
Platform: 'N200/N210/USRP2'
IPAddress: '192.168.10.23'
SerialNum: 'E9R20P5UP'
Status: 'Success'
Once I try to run my code, or even the QPSK example provided by Matlab I get the following error:
Error using comm.SDRuTransmitter/setupImplLocal
Radio with IP address '192.168.10.2' is not of the specified platform 'N200/N210/USRP2'.
Error in comm.internal.SDRuBase/setupImpl
You should use the debugger and "dbstop if error" to find out where in the example it is failing, and then trace back from there to figure out how the address is getting assigned.
You must be facing issue as the usrp is not used and it was going in else condition and specifying the IP. address as '192.168.10.2'. So, you are getting this error.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Communications Toolbox에 대해 자세히 알아보기

질문:

2022년 5월 30일

댓글:

2022년 6월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by