usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

Error using USRP with Simulink : Expected protocol compatibility number [7 to 10], but got 12

AB
Azza Ben Mosbah
Fri, Mar 8, 2013 5:16 PM

Hello,

I am using Matlab 2012a in Linux environment : USRP with Simulink.
In fact, when I* "run an example"*, it works. But, when I try to "start
the simulation"
, I get this error :

Could not execute UHD driver command in 'createDriver_c': Could not
create a UHD driver using IP addr '192.168.10.2'. Attach a device at the
specified address, correct the specified address to match an already
attached device, or continue to work in off-line mode.
Error from UHD: RuntimeError:
Please update the firmware and FPGA images for your device.
See the application notes for USRP2/N-Series for instructions.
Expected protocol compatibility number [7 to 10], but got 12:
The firmware build is not compatible with the host code build.

I don't know what the problem exactly.
Because when I use USRP with GnuRadio, it works correctly. But, with
Simulink, I got this problem.
Any help is more than welcome. Thanks in advance.

Best regards,
Azza B.M.

Hello, I am using Matlab 2012a in Linux environment : USRP with Simulink. In fact, when I* "run an example"*, it works. But, when I try to *"start the simulation"*, I get this error : *Could not execute UHD driver command in 'createDriver_c': Could not create a UHD driver using IP addr '192.168.10.2'. Attach a device at the specified address, correct the specified address to match an already attached device, or continue to work in off-line mode. Error from UHD: RuntimeError: Please update the firmware and FPGA images for your device. See the application notes for USRP2/N-Series for instructions. Expected protocol compatibility number [7 to 10], but got 12: The firmware build is not compatible with the host code build.* I don't know what the problem exactly. Because when I use USRP with GnuRadio, it works correctly. But, with Simulink, I got this problem. Any help is more than welcome. Thanks in advance. Best regards, Azza B.M.
MD
Marcus D. Leech
Fri, Mar 8, 2013 5:31 PM

Hello,

I am using Matlab 2012a in Linux environment : USRP with Simulink.
In fact, when I*"run an example"*, it works. But, when I try to
"start the simulation", I get this error :

Could not execute UHD driver command in 'createDriver_c': Could not
create a UHD driver using IP addr '192.168.10.2'. Attach a device at
the specified address, correct the specified address to match an
already attached device, or continue to work in off-line mode.
Error from UHD: RuntimeError:
Please update the firmware and FPGA images for your device.
See the application notes for USRP2/N-Series for instructions.
Expected protocol compatibility number [7 to 10], but got 12:
The firmware build is not compatible with the host code build.

I don't know what the problem exactly.
Because when I use USRP with GnuRadio, it works correctly. But, with
Simulink, I got this problem.
Any help is more than welcome. Thanks in advance.

Best regards,
Azza B.M.


USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

It means the version of the UHD library used by SimuLink is incompatible
with the firmware that's running on the USRP2/N2XX device.

You should ask the MatLab folks to tell you which version of the
firmware they want you to use with SimuLink, then program that version of
the firmware into the device prior to your using SimuLInk.

You'll have to switch back to use Gnu Radio.

--
Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org

> Hello, > > I am using Matlab 2012a in Linux environment : USRP with Simulink. > In fact, when I*"run an example"*, it works. But, when I try to > *"start the simulation"*, I get this error : > > *Could not execute UHD driver command in 'createDriver_c': Could not > create a UHD driver using IP addr '192.168.10.2'. Attach a device at > the specified address, correct the specified address to match an > already attached device, or continue to work in off-line mode. > Error from UHD: RuntimeError: > Please update the firmware and FPGA images for your device. > See the application notes for USRP2/N-Series for instructions. > Expected protocol compatibility number [7 to 10], but got 12: > The firmware build is not compatible with the host code build.* > > > I don't know what the problem exactly. > Because when I use USRP with GnuRadio, it works correctly. But, with > Simulink, I got this problem. > Any help is more than welcome. Thanks in advance. > > Best regards, > Azza B.M. > > > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com It means the version of the UHD library used by SimuLink is incompatible with the firmware that's running on the USRP2/N2XX device. You should ask the MatLab folks to tell you which version of the firmware they want you to use with SimuLink, then program that version of the firmware into the device prior to your using SimuLInk. You'll have to switch back to use Gnu Radio. -- Marcus Leech Principal Investigator Shirleys Bay Radio Astronomy Consortium http://www.sbrac.org
MM
Mike McLernon
Fri, Mar 8, 2013 6:33 PM

Hi Azza,

For R2012a, the correct firmware is 003.002.003  see http://www.mathworks.com/programs/usrp/confirmation.html.

Hth,

Mike

From: USRP-users [mailto:usrp-users-bounces@lists.ettus.com] On Behalf Of Azza Ben Mosbah
Sent: Friday, March 08, 2013 12:16 PM
To: usrp-users@lists.ettus.com
Subject: [USRP-users] Error using USRP with Simulink : Expected protocol compatibility number [7 to 10], but got 12

Hello,

I am using Matlab 2012a in Linux environment : USRP with Simulink.
In fact, when I "run an example", it works. But, when I try to "start the simulation", I get this error :

Could not execute UHD driver command in 'createDriver_c': Could not create a UHD driver using IP addr '192.168.10.2'. Attach a device at the specified address, correct the specified address to match an already attached device, or continue to work in off-line mode.
Error from UHD: RuntimeError:
Please update the firmware and FPGA images for your device.
See the application notes for USRP2/N-Series for instructions.
Expected protocol compatibility number [7 to 10], but got 12:
The firmware build is not compatible with the host code build.

I don't know what the problem exactly.
Because when I use USRP with GnuRadio, it works correctly. But, with Simulink, I got this problem.
Any help is more than welcome. Thanks in advance.

Best regards,
Azza B.M.

Hi Azza, For R2012a, the correct firmware is 003.002.003 see http://www.mathworks.com/programs/usrp/confirmation.html. Hth, Mike From: USRP-users [mailto:usrp-users-bounces@lists.ettus.com] On Behalf Of Azza Ben Mosbah Sent: Friday, March 08, 2013 12:16 PM To: usrp-users@lists.ettus.com Subject: [USRP-users] Error using USRP with Simulink : Expected protocol compatibility number [7 to 10], but got 12 Hello, I am using Matlab 2012a in Linux environment : USRP with Simulink. In fact, when I "run an example", it works. But, when I try to "start the simulation", I get this error : Could not execute UHD driver command in 'createDriver_c': Could not create a UHD driver using IP addr '192.168.10.2'. Attach a device at the specified address, correct the specified address to match an already attached device, or continue to work in off-line mode. Error from UHD: RuntimeError: Please update the firmware and FPGA images for your device. See the application notes for USRP2/N-Series for instructions. Expected protocol compatibility number [7 to 10], but got 12: The firmware build is not compatible with the host code build. I don't know what the problem exactly. Because when I use USRP with GnuRadio, it works correctly. But, with Simulink, I got this problem. Any help is more than welcome. Thanks in advance. Best regards, Azza B.M.