Matlab and USRP N210 configuration problems
Ältere Kommentare anzeigen
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 Kommentare
Walter Roberson
am 30 Mai 2022
The easiest way might be to configure the radio to 192.168.10.2 instead of 192.168.10.23
Giti Dimrov
am 30 Mai 2022
Walter Roberson
am 30 Mai 2022
The example at https://www.mathworks.com/help/supportpkg/usrpradio/ug/qpsk-transmitter-with-usrp-tm-hardware.html has
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.
Giti Dimrov
am 30 Mai 2022
Walter Roberson
am 31 Mai 2022
When you use that section of code, does it return a valid address or does it fail over to assigning the .2 address?
Giti Dimrov
am 31 Mai 2022
Walter Roberson
am 31 Mai 2022
What is your current code, the one that is recognizing the ip address but failing soon after?
Giti Dimrov
am 31 Mai 2022
Walter Roberson
am 31 Mai 2022
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.
Pooja Kumari
am 30 Jun. 2022
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.
Antworten (0)
Kategorien
Mehr zu Communications Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!