Statistics
| Branch: | Tag: | Revision:

root / host / docs / usrp1.rst @ f5c62a46

History | View | Annotate | Download (2.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 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
Specifying the subdevice to use
26
------------------------------------------------------------------------
27
The USRP1 has multiple daughterboard slots, known as slot A and slot B.
28
The subdevice specification can be used to select
29
the daughterboard and subdevice for each channel.
30
For daughterboards with one one subdevice,
31
the subdevice name may be left blank for automatic selection.
32

    
33
Ex: The subdev spec markup string to select a WBX on slot B.
34
Notice the use of the blank subdevice name for automatic selection.
35

    
36
::
37

    
38
    B:
39

    
40
    -- OR --
41

    
42
    B:0
43

    
44
Ex: The subdev spec markup string to select a BasicRX on slot B.
45
Notice that the subdevice name is always specified in the 3 possible cases.
46

    
47
::
48

    
49
    B:AB
50

    
51
    -- OR --
52

    
53
    B:A
54

    
55
    -- OR --
56

    
57
    B:B
58

    
59
------------------------------------------------------------------------
60
OS Specific Notes
61
------------------------------------------------------------------------
62

    
63
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64
Setup Udev on Linux
65
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
On Linux, Udev handles USB plug and unplug events.
67
The following command creates a Udev rule for the USRP1
68
so that non-root users may access the device:
69

    
70
::
71

    
72
    echo 'ACTION=="add", BUS=="usb", SYSFS{idVendor}=="fffe", SYSFS{idProduct}=="0002", MODE:="0666"' > tmpfile
73
    sudo chown root.root tmpfile
74
    sudo mv tmpfile /etc/udev/rules.d/10-usrp.rules
75
    sudo udevadm control --reload-rules
76