You are on page 1of 8

2015

Getting started with USRP N210

Author: Rakesh
Email id: rakesh@tenettech.com

What is Gnu radio?


GNU Radio is a software library, which can be used to develop complete applications for
radio engineering and signal processing.
Introduction
GNU Radio is a free and open-source software development toolkit that provides
signal processing blocks to implement software radios. It can be used with readilyavailable low-cost external RF hardware to create software-defined radios, or without
hardware in a simulation-like environment.
GNU Radio is licensed under the GNU General Public License (GPL) version 3. All of
the code is copyright of the Free Software Foundation. While all the applications are
implemented using python language while critical signal processing path is done using
C++ language.
Idea behind GNURADIO
The goal is to give ordinary software people the ability to 'hack' the electromagnetic
spectrum, i.e. to understand the radio spectrum and think of clever ways to use it.
Why GNURADIO
Instead of purchasing multiple expensive radios, a single generic radio can be
implemented using gnu radio software and with support of minimal hardware to receive
and transmit processed signal at required frequencies and any data type can be passed
from one block to another i.e.it can be in bits, bytes, vectors, bursts or more complex data
types
Since the performance critical blocks are implemented in C++ using processor floating
point extensions the developers are able to implement real-time, high-throughput radio
systems in a simple-to-use, rapid-application-development environment.

#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726, Website: www.tenettech.com, Email: info@tenettech.com

One can use it to write applications to receive data out of digital streams or to send data
into digital streams, which is then transmitted using hardware. GNU Radio has filters,
channel codes, synchronisation elements, equalizers, demodulators, vocoders, decoders,
and many other elements which are called as blocks that are typically found in radio
systems.
Features
The main features of gnu radio are flexibility and configurability.
Extending GNU Radio is also quite easy, if you find a specific block that is missing you
can quickly create and add it.

#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726, Website: www.tenettech.com, Email: info@tenettech.com

Getting started with Ettus USRP N210

Ettus USRP N210

Setup USRP N210

USRP N210 demands 1Gbps Ethernet card interface to know whether your system Ethernet card
is of 1Gbps you can use ethtool
Ethtool installation procedure on Ubuntu is as fallows
Run
$ sudo apt-get install ethtool

#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726, Website: www.tenettech.com, Email: info@tenettech.com

$ sudo ethtool ethx


(ethx is the name of Ethernet port it may be eth0,eth1..)

In the above image Ethernet card Speed is 100Mbps for system with 1Gbps Ethernet card, Speed
will be 1000Mbps (1Gbps)
USRP N210 comes with IP address: 192.168.0.2 to communicate with N210 USRP System IP
address should be 192.168.0.1 and subnet mask is 255.255.255.0
To change IP address of system go to system setting in that select Network as shown below.

#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726, Website: www.tenettech.com, Email: info@tenettech.com

Ones it is done check IP of system by running ifconfig command as below


$ ifconfig

And run fallowing commands


$ ping 192.168.0.2
$ uhd_find_devices

Output should be
linux; GNU C++ version 4.4.3; Boost_104000; UHD_003.002.002-92735f8
--------------------------------------------------- UHD Device 0
-------------------------------------------------Device Address:
type: usrp2
addr: 192.168.10.2
name:
serial: E5R14U9UP
Now USRP is communicating with your PC!

#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726, Website: www.tenettech.com, Email: info@tenettech.com

To change the IP address of N210


Assume that we want to change N210 IP to 192.168.10.3
Run the following commands:
$ cd <install-path>/lib/uhd/utils
$sudo ./usrp2_recovery.py --ifc=eth0 --new-ip=192.168.10.3
Then, turn off power switch and reboot the USRP
Using the MIMO Cable
The MIMO cable allows two USRP devices to share reference clocks, time synchronization, and
the Ethernet interface. One of the devices will sync its clock and time references to the MIMO
cable. This device will be referred to as the slave, and the other device, the master.

N210 2x2 Reference Design

The slave device acquires the clock and time references from the master device.

The master and slave may be used individually or in a multi-device configuration.

External clocking is optional and should only be supplied to the master device.

Clock reference, time reference, and data are communicated over the MIMO cable.

Master and slave must have different IPv4 addresses in the same subnet.

#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726, Website: www.tenettech.com, Email: info@tenettech.com

GRC Flow graph of 2X2 MIMO System

A single UHD block is used in the GRC flowgraph. The block parameters are configured to set
up a
2x2 MIMO system. The settings of interest are:
Device addr: addr0=192.168.10.2, addr1=192.168.10.3
Num Mboards = 2
Mb0 Clk Src = Default
Mb0 Time Src = Default

Mb1 Clk Src = MIMO Cable


Mb1 Time Src = MIMO Cable
Front panel LEDs
The LEDs reveal the following about the state of the device:

LED A: transmitting
LED B: MIMO cable link
LED C: receiving
LED D: firmware loaded
LED E: reference lock
LED F: CPLD loaded
#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726, Website: www.tenettech.com, Email: info@tenettech.com

You might also like