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
Walter Roberson
2022년 5월 30일
The easiest way might be to configure the radio to 192.168.10.2 instead of 192.168.10.23
Giti Dimrov
2022년 5월 30일
Walter Roberson
2022년 5월 30일
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
2022년 5월 30일
Walter Roberson
2022년 5월 31일
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
2022년 5월 31일
Walter Roberson
2022년 5월 31일
What is your current code, the one that is recognizing the ip address but failing soon after?
Giti Dimrov
2022년 5월 31일
Walter Roberson
2022년 5월 31일
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
2022년 6월 30일
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에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!