root / host / docs / usrp1.rst @ 5058145d
History | View | Annotate | Download (3.1 kB)
| 1 |
======================================================================== |
|---|---|
| 2 |
UHD - USRP1 Application Notes |
| 3 |
======================================================================== |
| 4 |
|
| 5 |
.. contents:: Table of Contents |
| 6 |
|
| 7 |
------------------------------------------------------------------------ |
| 8 |
Addressing the device |
| 9 |
------------------------------------------------------------------------ |
| 10 |
A USRP1 can be identified though its 8 digit serial number, |
| 11 |
designated by the "serial" key in the device address. |
| 12 |
|
| 13 |
The device address string representation for a USRP1 with serial 12345678: |
| 14 |
|
| 15 |
:: |
| 16 |
|
| 17 |
serial=12345678 |
| 18 |
|
| 19 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 20 |
Change the serial number |
| 21 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 22 |
The USRP1 serial number can be changed to any 8 byte string. Examples: |
| 23 |
|
| 24 |
:: |
| 25 |
|
| 26 |
cd <prefix>/share/uhd/utils |
| 27 |
./usrp1_serial_burner --new=87654321 |
| 28 |
|
| 29 |
-- OR -- |
| 30 |
|
| 31 |
./usrp1_serial_burner --new=Beatrice |
| 32 |
|
| 33 |
-- OR -- |
| 34 |
|
| 35 |
./usrp1_serial_burner --old=12345678 --new=87654321 |
| 36 |
|
| 37 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 38 |
Specify a non-standard image |
| 39 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 40 |
The standard USRP1 images installer comes with two FPGA images: |
| 41 |
* **usrp1_fpga.rbf:** 2 DDCs + 2 DUCs |
| 42 |
* **usrp1_fpga_4rx.rbf:** 4 DDCs + 0 DUCs |
| 43 |
|
| 44 |
By default, the USRP1 uses the FPGA image with 2 DDCs and 2 DUCs. |
| 45 |
However, a device address parameter can be used to override |
| 46 |
the FPGA image selection to use an alternate or a custom FPGA image. |
| 47 |
See the images application notes for installing custom images. |
| 48 |
|
| 49 |
Example device address string representations to specify non-standard firmware and/or FPGA images: |
| 50 |
|
| 51 |
:: |
| 52 |
|
| 53 |
fpga=usrp1_fpga_4rx.rbf |
| 54 |
|
| 55 |
-- OR -- |
| 56 |
|
| 57 |
fw=usrp1_fw_custom.ihx |
| 58 |
|
| 59 |
-- OR -- |
| 60 |
|
| 61 |
fpga=usrp1_fpga_4rx.rbf, fw=usrp1_fw_custom.ihx |
| 62 |
|
| 63 |
------------------------------------------------------------------------ |
| 64 |
Specifying the subdevice to use |
| 65 |
------------------------------------------------------------------------ |
| 66 |
The USRP1 has multiple daughterboard slots, known as slot A and slot B. |
| 67 |
The subdevice specification can be used to select |
| 68 |
the daughterboard and subdevice for each channel. |
| 69 |
For daughterboards with one one subdevice, |
| 70 |
the subdevice name may be left blank for automatic selection. |
| 71 |
|
| 72 |
Ex: The subdev spec markup string to select a WBX on slot B. |
| 73 |
Notice the use of the blank subdevice name for automatic selection. |
| 74 |
|
| 75 |
:: |
| 76 |
|
| 77 |
B: |
| 78 |
|
| 79 |
-- OR -- |
| 80 |
|
| 81 |
B:0 |
| 82 |
|
| 83 |
Ex: The subdev spec markup string to select a BasicRX on slot B. |
| 84 |
Notice that the subdevice name is always specified in the 3 possible cases. |
| 85 |
|
| 86 |
:: |
| 87 |
|
| 88 |
B:AB |
| 89 |
|
| 90 |
-- OR -- |
| 91 |
|
| 92 |
B:A |
| 93 |
|
| 94 |
-- OR -- |
| 95 |
|
| 96 |
B:B |
| 97 |
|
| 98 |
------------------------------------------------------------------------ |
| 99 |
OS Specific Notes |
| 100 |
------------------------------------------------------------------------ |
| 101 |
|
| 102 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 103 |
Setup Udev on Linux |
| 104 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 105 |
On Linux, Udev handles USB plug and unplug events. |
| 106 |
The following command creates a Udev rule for the USRP1 |
| 107 |
so that non-root users may access the device: |
| 108 |
|
| 109 |
:: |
| 110 |
|
| 111 |
echo 'ACTION=="add", BUS=="usb", SYSFS{idVendor}=="fffe", SYSFS{idProduct}=="0002", MODE:="0666"' > tmpfile
|
| 112 |
sudo chown root.root tmpfile |
| 113 |
sudo mv tmpfile /etc/udev/rules.d/10-usrp.rules |
| 114 |
sudo udevadm control --reload-rules |
| 115 |
|