root / host / docs / usrp1.rst @ 94c450b3
History | View | Annotate | Download (1.3 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 serial number, |
| 11 |
designated by the "serial" key in the device address. |
| 12 |
|
| 13 |
The device address string representation for a USRP1 with serial 1234 |
| 14 |
|
| 15 |
:: |
| 16 |
|
| 17 |
serial=1234 |
| 18 |
|
| 19 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 20 |
Change the USRP1's serial number |
| 21 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 22 |
TODO |
| 23 |
|
| 24 |
------------------------------------------------------------------------ |
| 25 |
OS Specific Notes |
| 26 |
------------------------------------------------------------------------ |
| 27 |
|
| 28 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 29 |
Setup Udev on Linux |
| 30 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 31 |
On Linux, Udev handles USB plug and unplug events. |
| 32 |
The following command creates a Udev rule for the USRP1 |
| 33 |
so that non-root users may access the device: |
| 34 |
|
| 35 |
:: |
| 36 |
|
| 37 |
echo 'ACTION=="add", BUS=="usb", SYSFS{idVendor}=="fffe", SYSFS{idProduct}=="0002", MODE:="0666"' > tmpfile
|
| 38 |
sudo chown root.root tmpfile |
| 39 |
sudo mv tmpfile /etc/udev/rules.d/10-usrp.rules |
| 40 |
sudo udevadm control --reload-rules |
| 41 |
|