USRP1 B100 and B200 installation notes (USB) » History » Version 5

ROQUE, Damien, 04/07/2015 05:05 PM

1 3 ROQUE, Damien
h1. USRP1, B100 and B200 installation notes
2 1 ROQUE, Damien
3 3 ROQUE, Damien
This documentation explains how to install an USRP device operated through USB interface (ex.: USRP1, B100, B200...). In the following, we assume that a Debian based operating system has been successfully installed along with UHD and GNURadio (see for example [[Debian Wheezy 7 installation guidelines]] and [[UHD and GNURadio installation]]).
4 1 ROQUE, Damien
5 1 ROQUE, Damien
h2. System integration
6 1 ROQUE, Damien
7 3 ROQUE, Damien
First of all, it is necessary to make @udev@ aware of USRP devices.
8 1 ROQUE, Damien
<pre>
9 1 ROQUE, Damien
sudo cp /usr/local/lib/uhd/utils/uhd-usrp.rules /etc/udev/rules.d/
10 1 ROQUE, Damien
sudo udevadm control --reload-rules
11 1 ROQUE, Damien
sudo udevadm trigger
12 1 ROQUE, Damien
</pre>
13 1 ROQUE, Damien
14 3 ROQUE, Damien
h2. Hardware detection and firmware update
15 1 ROQUE, Damien
16 3 ROQUE, Damien
Power/connect the USRP device and try to detect it.
17 1 ROQUE, Damien
<pre>
18 3 ROQUE, Damien
uhd_find_devices
19 1 ROQUE, Damien
</pre>
20 3 ROQUE, Damien
Then, inspect the hardware configuration of the transceiver.
21 1 ROQUE, Damien
<pre>
22 3 ROQUE, Damien
uhd_usrp_probe
23 1 ROQUE, Damien
</pre>
24 1 ROQUE, Damien
25 4 ROQUE, Damien
Eventually, the last instruction will ask for a firmware update.
26 4 ROQUE, Damien
<pre>
27 4 ROQUE, Damien
sudo /usr/local/lib/uhd/utils/uhd_images_downloader.py
28 4 ROQUE, Damien
</pre>
29 4 ROQUE, Damien
30 1 ROQUE, Damien
h2. Performances assessment
31 1 ROQUE, Damien
32 4 ROQUE, Damien
You can perform a rate benchmarking.
33 1 ROQUE, Damien
<pre>
34 3 ROQUE, Damien
/usr/local/lib/uhd/examples/benchmark_rate --duration 20 --rx_rate <wanted-rate>     # Reception test
35 5 ROQUE, Damien
/usr/local/lib/uhd/examples/benchmark_rate --duration 20 --tx_rate <wanted-rate>     # Transmission test
36 1 ROQUE, Damien
</pre>
37 3 ROQUE, Damien
where @<wanted-rate>@ should be less than 8 MS/s for USB 2.0 and 61.44 MS/s for USB 3.0.
38 1 ROQUE, Damien
39 3 ROQUE, Damien
If @OOOOOO...@ or @UUUUUUU...@ appears on the standard output, it means that incoming samples (from the computer to the USRP) are dropped or outgoing samples (from the USRP to the computer) are not provided at expected rate. This defect can result from various causes: lack of CPU-time of the computer, overloaded interface... See "this page": for detailed explanation.