UHD with libusrp?

Hello,

I have an issue with my GNURadio installation.
I’m using Ubuntu 10.11 32 bits.

I have an USRP1 designated for an OpenBTS application. I need to add to
this app an USRPN200 (without using OpenBTS).

My issue is that USRPN200 need UHD with newer version of GNURadio, and
OpenBTS need libusrp libraries.

How can I perfom that?
An user on OpenBTS discuss-list spokes to install GNU Radio 3.3.5 with
the
latest version of GNURadio and modify environments variables like that :


BASE=/opt/gnuradio-3.5
export PATH=${PATH}:${BASE}/bin
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${BASE}/lib64
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${BASE}/lib64/pkgconfig
export PYTHONPATH=${PYTHONPATH}:${BASE}/lib64/python2.7/site-packages/

But I don’t understand these lines (I’m a newbies with Linux…)

Can anyone help me to solve this issue?

Thanks!

Vanessa

OpenBTS 2.8 has support for using UHD. That might be an easier route to
take.

Cheers,
Ben

On Tue, Apr 24, 2012 at 7:54 AM, Vanessa Q.

Hi Ben!

Thanks for your response.

If I install OpenBTS 2.8, it will work with my USRP1? And I will be able
to
use my USRPN200 with an other software (without using OpenBTS)?

I’m a little lost with these version of GNURadio (with / without
libusrp)
Cheers,

Vanessa
2012/4/28 Ben H. [email protected]

mmmh the problem probably comes from
transceiver: usrp_standard.cc:1024: virtual bool
usrp_standard_tx::set_tx_freq(int, double): Assertion `dac_rate () ==
128000000’ failed.

For patching GNU Radio to 52 MHz, I need to comment the line assert
(dac_rate() == 128000000); at line 1024. How can I modify that?

Cheers,

Vanessa

2012/5/2 Vanessa Q. [email protected]

On 04/30/2012 01:12 AM, Vanessa Q. wrote:

Hi Ben!

Thanks for your response.

If I install OpenBTS 2.8, it will work with my USRP1? And I will be able to
use my USRPN200 with an other software (without using OpenBTS)?

I’m a little lost with these version of GNURadio (with / without libusrp)
Cheers,

Looks like my accidentally missed the list in my last reply.

  • I think installing the gnuradio whatever version you like – for
    gnuradio purposes is best.

  • Install libusrp from source or from the software repository – for the
    purpose of compiling libusrp1 support in OpenBTS.

Here was my reply:

I think that your solution is almost functional!

I installed like this :
Ubuntu 10.10 (French version)
GNU Radio + UHD from git (GNU Radio 3.6.0)
libusrp-dev from apt-get install tool
openbts 2.6.0mamou

My USRP1 is patched to 52MHz. So I think it’s the problem now.

If I run OpenBTS without using …/Transceiver52 in OpenBTS.config file,
it
start but crash after 2 seconds with these lines :

1335942704.565352 3078735568:
Welcome to OpenBTS. Type “help” to see available commands.
OpenBTS> 1335942707.5675 ALARM 3069897584
TRXManager.cpp:85:clockHandler:
TRX clock interface timed out, assuming TRX is dead.
1335942707.5675 ALARM 3069897584 TRXManager.cpp:85:clockHandler: TRX
clock
interface timed out, assuming TRX is dead.
Abandon

Now, if I run OpenBTS with using …/Transceiver52, it crash before it
started :

1335942865.288961 3078358736:
Starting the system…
1335942865.2890 FORCE 3078358736 Logger.cpp:109:gSetLogFile: setting log
path to
1335942865.2891 ERROR 3078358736 Logger.cpp:114:gSetLogFile: cannot open
“”
for logging.
1335942865.2891 FORCE 3078358736 Logger.cpp:120:gSetLogFile: new log
path
1335942865.2891 ALARM 3078358736 OpenBTS.cpp:129:main: OpenBTS starting,
ver 2.6.0Mamou build date May 1 2012
1335942865.2891 ALARM 3078358736 OpenBTS.cpp:129:main: OpenBTS starting,
ver 2.6.0Mamou build date May 1 2012
1335942865.2948 FORCE 3078112976 Logger.cpp:194:gLogInit: Setting
initial
global logging level to NOTICE
1335942865.2949 FORCE 3078112976 Logger.cpp:109:gSetLogFile: setting log
path to test.TRX.out
transceiver: usrp_standard.cc:1024: virtual bool
usrp_standard_tx::set_tx_freq(int, double): Assertion `dac_rate () ==
128000000’ failed.
1335942873.3055 WARN 3078358736 TRXManager.cpp:254:sendCommandPacket:
TRX
link timeout on attempt 1
1335942873.3057 ALARM 3069520752 TRXManager.cpp:85:clockHandler: TRX
clock
interface timed out, assuming TRX is dead.
1335942873.3057 ALARM 3069520752 TRXManager.cpp:85:clockHandler: TRX
clock
interface timed out, assuming TRX is dead.
Abandon

So, I think the problem is the clock!
How can I patch GNURadio 3.6.0 or libusrp for that?
With GNURadio 3.2.2 we need to patch files from /usrp/host/lib/legacy/*
files but with the newer version, I don’t know how to patch these
files…

Thanks a lot !

Vanessa

2012/4/30 Josh B. [email protected]

Yeah I succeeded!

I installed libusrp from apt-get install tool (libusrp-dev).

The problem was that this library isn’t configured for working with
52MHz
clock of my USRP1.
So I installed this library and then I replaced these files from
/usr/lib
by other files that I compiled myself from an older version of GNU Radio
(3.2.2) on an other computer.

It’s an unofficial installation but it work with latest version of GNU
Radio and UHD :smiley:

Thank you a lot all!

Vanessa

2012/5/2 Thomas T. [email protected]

Hi!

It is a way to install libusrp-dev with the apt-get install tools of
Ubuntu
12.04?
The packages is not compatible with the newest release of Ubuntu :cry:

Thanks

2012/5/3 Vanessa Q. [email protected]

On Wed, May 2, 2012 at 3:20 AM, Vanessa Q.
[email protected] wrote:

So, I think the problem is the clock!
How can I patch GNURadio 3.6.0 or libusrp for that?
With GNURadio 3.2.2 we need to patch files from /usrp/host/lib/legacy/*
files but with the newer version, I don’t know how to patch these files…

The ‘TRX clock’ error is slightly misleading and refers to the GSM
frame / timeslot counter. It is mostly unrelated to 52 MHz clock that
drives the hardware. The most common reason for TRX clock errors is
that the transceiver fails to start - no device present, tuning fails,
missing permissions, etc.

To be clear, GNURadio is not required for OpenBTS operation. But,
OpenBTS requires libusrp in order to use the USRP1, and libusrp is
contained only in older versions of GNURadio. Version 3.4.2 was the
last that contained libusrp.

My suggestion for 52 MHz USRP1 operation with OpenBTS is the following
configuration:

openbts p2.8
gnuradio 3.4.2 (the last version with libusrp)

No other USRP related packages are necessary and no code needs to be
patched. While there are still some users that prefer version 2.6
derived versions because of the easier text file based configuration,
I suggest version 2.8 because of better maintenance and support you
will likely receive.

Also, with libusrp no longer being supported by GNURadio, the OpenBTS
mailing list may be a better place to ask questions.

http://sourceforge.net/mail/?group_id=230904

Thomas