Changes between Version 3 and Version 4 of Resources/Notes/N310Usage


Ignore:
Timestamp:
Jul 29, 2020, 5:24:19 PM (8 weeks ago)
Author:
nilanjan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Resources/Notes/N310Usage

    v3 v4  
    88From a COSMOS console, load a baseline sdr image onto an experiment server - for this example ''srv1-lg1.sb1.cosmos-lab.org'' is used.
    99{{{#!shell-session
    10 console:~$ omf load -i baseline_uhd_1804.ndz -t srv1-lg1.sb1.cosmos-lab.org
     10console:~$ omf load -i baseline-uhd.ndz -t srv1-lg1.sb1.cosmos-lab.org
    1111console:~$ omf tell -a on -t srv1-lg1.sb1.cosmos-lab.org
    1212}}}
    1313
    14 After the experiment server is up, ssh into it and list the all interfaces.
     14After the experiment server (srv1-lg1) is up, ssh into it and list the all interfaces.
    1515{{{#!shell-session
    1616$ ifconfig -a
    1717eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
     18        inet6 fe80::1e34:daff:fe42:c3c  prefixlen 64  scopeid 0x20<link>
     19        ether 1c:34:da:42:0c:3c  txqueuelen 1000  (Ethernet)
     20        RX packets 137  bytes 18069 (18.0 KB)
     21        RX errors 0  dropped 119  overruns 0  frame 0
     22        TX packets 22  bytes 4234 (4.2 KB)
     23        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
     24
     25eno2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
     26        inet6 fe80::1e34:daff:fe42:c3d  prefixlen 64  scopeid 0x20<link>
     27        ether 1c:34:da:42:0c:3d  txqueuelen 1000  (Ethernet)
     28        RX packets 170  bytes 20064 (20.0 KB)
     29        RX errors 0  dropped 120  overruns 0  frame 0
     30        TX packets 20  bytes 4070 (4.0 KB)
     31        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
     32
     33enp134s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
    1834        inet 10.113.1.1  netmask 255.255.0.0  broadcast 10.113.255.255
    19         inet6 fe80::3697:f6ff:fe2a:c2e2  prefixlen 64  scopeid 0x20<link>
    20         ether 34:97:f6:2a:c2:e2  txqueuelen 1000  (Ethernet)
    21         RX packets 947973  bytes 1253989955 (1.2 GB)
     35        inet6 fe80::6a05:caff:fe1e:e4ec  prefixlen 64  scopeid 0x20<link>
     36        ether 68:05:ca:1e:e4:ec  txqueuelen 1000  (Ethernet)
     37        RX packets 169  bytes 30675 (30.6 KB)
    2238        RX errors 0  dropped 0  overruns 0  frame 0
    23         TX packets 712093  bytes 660515688 (660.5 MB)
     39        TX packets 140  bytes 18939 (18.9 KB)
    2440        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    25         device interrupt 20  memory 0xf7e00000-f7e20000
    26 
    27 enp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 8000
    28         inet 10.115.1.1  netmask 255.255.0.0  broadcast 10.115.255.255
    29         inet6 fe80::f652:14ff:fe83:b930  prefixlen 64  scopeid 0x20<link>
    30         ether f4:52:14:83:b9:30  txqueuelen 1000  (Ethernet)
    31         RX packets 18775  bytes 2348158 (2.3 MB)
    32         RX errors 0  dropped 17339  overruns 0  frame 0
    33         TX packets 637  bytes 267736 (267.7 KB)
     41        device interrupt 86  memory 0xd3880000-d38a0000
     42
     43lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
     44        inet 127.0.0.1  netmask 255.0.0.0
     45        inet6 ::1  prefixlen 128  scopeid 0x10<host>
     46        loop  txqueuelen 1000  (Local Loopback)
     47        RX packets 298  bytes 24341 (24.3 KB)
     48        RX errors 0  dropped 0  overruns 0  frame 0
     49        TX packets 298  bytes 24341 (24.3 KB)
    3450        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    3551
    36 enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
    37         inet6 fe80::3697:f6ff:fe2a:c2e1  prefixlen 64  scopeid 0x20<link>
    38         ether 34:97:f6:2a:c2:e1  txqueuelen 1000  (Ethernet)
    39         RX packets 1095  bytes 67703 (67.7 KB)
    40         RX errors 0  dropped 0  overruns 0  frame 0
    41         TX packets 571  bytes 177910 (177.9 KB)
    42         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    43 }}}
    44 
    45 
    46  * ''en01'' is the 1Gb control interface.
    47  * ''enp1s0'' is the 10Gb data interface
    48 
    49 Configure ''enp1s0'' so it can talk to the N310's data interface.
    50 {{{#!shell-session
    51 $ sudo ifconfig enp1s0 10.115.1.1 netmask 255.255.0.0 mtu 8000
    52 }}}
    53 
    54 Run ''uhd_find_devices'' to detect the available N310s
     52}}}
     53
     54The interfaces should be configured as shown in the table. The control interface should come up automatically however the data interface needs to be configured.
     55 || Interface name  ||  Speed  || Address || Description ||
     56 || eno1 || 10G || 10.115.1.1 || Data interface for sample streaming ||
     57 || enp134s0 || 1G || 10.113.1.1 || Control interface used for command streaming||
     58
     59
     60Configure ''eno1'' so it can talk to the N310's data interface and set the network tcp buffers as well.
     61{{{#!shell-session
     62$ ifconfig eno1 10.115.1.1 netmask 255.255.0.0 mtu 8000
     63$ sysctl -w net.core.wmem_max=62500000
     64$ sysctl -w net.core.rmem_max=62500000
     65}}}
     66
     67Run ''uhd_find_devices'' to detect the available N310s. This enumerates all the SDRs that were detected.
    5568{{{#!shell-session
    5669$ uhd_find_devices --args="type=n3xx"
    57 [INFO] [UHD] linux; GNU C++ version 7.3.0; Boost_106501; UHD_3.13.1.0-0-unknown
     70[INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.HEAD-0-gaea0e2de
    5871--------------------------------------------------
    5972-- UHD Device 0
    6073--------------------------------------------------
    6174Device Address:
    62     serial: 315A35A
     75    serial: 3176DF5
    6376    addr: 10.115.2.1
    6477    claimed: False
    6578    mgmt_addr: 10.113.2.1
    66     mgmt_addr: 10.115.2.1
    6779    product: n310
    6880    type: n3xx
     
    7385--------------------------------------------------
    7486Device Address:
    75     serial: 3176DF7
    76     addr: 10.115.3.1
     87    serial: 3196937
    7788    claimed: False
    7889    mgmt_addr: 10.113.3.1
    79     mgmt_addr: 10.115.3.1
    8090    product: n310
     91    reachable: No
    8192    type: n3xx
    82 }}}
    83 
    84 The above output enumerates all the SDRs that were detected. Use the ''uhd_usrp_probe'' command with ''mgmt_addr'' to list the device properties of this N310. The ip address must match correctly to the corresponding interface.
    85 
    86  ||   interface     ||   args    ||    address ||
    87  || control network || mgmt_addr || 10.113.2.1 ||
    88  || data network    ||      addr || 10.115.2.1 ||
     93
     94}}}
     95
     96Access UHD Device 0 by using the ''uhd_usrp_probe'' command with ''mgmt_addr'' and ''addr'' to list the device properties of this N310. The ip address must match correctly to the corresponding interface.
     97
     98 ||   args    ||    address || interface type ||
     99 || mgmt_addr || 10.113.2.1 || control ||
     100 ||      addr || 10.115.2.1 || data ||
    89101
    90102{{{#!shell-session
    91103$ uhd_usrp_probe --args="mgmt_addr=10.113.2.1,addr=10.115.2.1"
    92 [INFO] [UHD] linux; GNU C++ version 7.3.0; Boost_106501; UHD_3.13.1.0-0-unknown
    93 [INFO] [MPMD] Initializing 1 device(s) in parallel with args: mgmt_addr=10.113.2.1,type=n3xx,product=n310,serial=315A35A,claimed=False,addr=10.115.2.1
    94 [INFO] [0/DmaFIFO_0] Initializing block control (NOC ID: 0xF1F0D00000000004)
    95 [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1346 MB/s)
    96 [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1356 MB/s)
    97 [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1347 MB/s)
    98 [INFO] [MPM.PeriphManager] init() called with device args `time_source=internal,clock_source=internal,product=n310,mgmt_addr=10.113.2.1'.
    99 [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1355 MB/s)
     104
     105[INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.HEAD-0-gaea0e2de
     106[INFO] [MPMD] Initializing 1 device(s) in parallel with args: mgmt_addr=10.113.2.1,type=n3xx,product=n310,serial=3176DF5,claimed=False,addr=10.115.2.1
     107[INFO] [MPM.PeriphManager] init() called with device args `product=n310,mgmt_addr=10.113.2.1,time_source=internal,clock_source=internal'.
     108[INFO] [0/Replay_0] Initializing block control (NOC ID: 0x4E91A00000000004)
    100109[INFO] [0/Radio_0] Initializing block control (NOC ID: 0x12AD100000011312)
    101110[INFO] [0/Radio_1] Initializing block control (NOC ID: 0x12AD100000011312)
     
    104113[INFO] [0/DUC_0] Initializing block control (NOC ID: 0xD0C0000000000002)
    105114[INFO] [0/DUC_1] Initializing block control (NOC ID: 0xD0C0000000000002)
     115[INFO] [0/FIFO_0] Initializing block control (NOC ID: 0xF1F0000000000000)
     116[INFO] [0/FIFO_1] Initializing block control (NOC ID: 0xF1F0000000000000)
     117[INFO] [0/FIFO_2] Initializing block control (NOC ID: 0xF1F0000000000000)
     118[INFO] [0/FIFO_3] Initializing block control (NOC ID: 0xF1F0000000000000)
    106119  _____________________________________________________
    107120 /
     
    109122|     _____________________________________________________
    110123|    /
    111 |   |       Mboard: ni-n3xx-315A35A
    112 |   |   eeprom_version: 1
    113 |   |   mpm_version: 3.13.1.0-gbbce3e45
     124|   |       Mboard: ni-n3xx-3176DF5
     125|   |   eeprom_version: 2
     126|   |   mpm_version: 3.15.0.0-gaea0e2de
    114127|   |   pid: 16962
    115128|   |   product: n310
    116 |   |   rev: 5
     129|   |   rev: 6
    117130|   |   rpc_connection: remote
    118 |   |   serial: 315A35A
     131|   |   serial: 3176DF5
    119132|   |   type: n3xx
    120133|   |   MPM Version: 1.2
    121 |   |   FPGA Version: 5.2
    122 |   |   FPGA git hash: d0360f7.clean
     134|   |   FPGA Version: 5.3
     135|   |   FPGA git hash: fde2a94.clean
    123136|   |   RFNoC capable: Yes
    124137|   |
    125138|   |   Time sources:  internal, external, gpsdo, sfp0
    126139|   |   Clock sources: external, internal, gpsdo
    127 |   |   Sensors: gps_locked, gps_tpv, ref_locked, fan, gps_sky, gps_time, temp
     140|   |   Sensors: gps_time, gps_sky, gps_tpv, gps_gpgga, fan, ref_locked, temp, gps_locked
    128141|   |     _____________________________________________________
    129142|   |    /
     
    134147|   |   |   |   Name: Magnesium
    135148|   |   |   |   Antennas: TX/RX, RX2, CAL, LOCAL
    136 |   |   |   |   Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked
     149|   |   |   |   Sensors: lo_locked, ad9371_lo_locked, lowband_lo_locked
    137150|   |   |   |   Freq range: 1.000 to 6000.000 MHz
    138151|   |   |   |   Gain range all: 0.0 to 75.0 step 0.5 dB
     
    148161|   |   |   |   Name: Magnesium
    149162|   |   |   |   Antennas: TX/RX, RX2, CAL, LOCAL
    150 |   |   |   |   Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked
     163|   |   |   |   Sensors: lo_locked, ad9371_lo_locked, lowband_lo_locked
    151164|   |   |   |   Freq range: 1.000 to 6000.000 MHz
    152165|   |   |   |   Gain range all: 0.0 to 75.0 step 0.5 dB
     
    170183|   |   |   |   Name: Magnesium
    171184|   |   |   |   Antennas: TX/RX, RX2, CAL, LOCAL
    172 |   |   |   |   Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked
     185|   |   |   |   Sensors: lo_locked, ad9371_lo_locked, lowband_lo_locked
    173186|   |   |   |   Freq range: 1.000 to 6000.000 MHz
    174187|   |   |   |   Gain range all: 0.0 to 75.0 step 0.5 dB
     
    184197|   |   |   |   Name: Magnesium
    185198|   |   |   |   Antennas: TX/RX, RX2, CAL, LOCAL
    186 |   |   |   |   Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked
     199|   |   |   |   Sensors: lo_locked, ad9371_lo_locked, lowband_lo_locked
    187200|   |   |   |   Freq range: 1.000 to 6000.000 MHz
    188201|   |   |   |   Gain range all: 0.0 to 75.0 step 0.5 dB
     
    206219|   |   |   |   Name: Magnesium
    207220|   |   |   |   Antennas: TX/RX
    208 |   |   |   |   Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked
     221|   |   |   |   Sensors: lo_locked, ad9371_lo_locked, lowband_lo_locked
    209222|   |   |   |   Freq range: 1.000 to 6000.000 MHz
    210223|   |   |   |   Gain range all: 0.0 to 65.0 step 0.5 dB
     
    220233|   |   |   |   Name: Magnesium
    221234|   |   |   |   Antennas: TX/RX
    222 |   |   |   |   Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked
     235|   |   |   |   Sensors: lo_locked, ad9371_lo_locked, lowband_lo_locked
    223236|   |   |   |   Freq range: 1.000 to 6000.000 MHz
    224237|   |   |   |   Gain range all: 0.0 to 65.0 step 0.5 dB
     
    242255|   |   |   |   Name: Magnesium
    243256|   |   |   |   Antennas: TX/RX
    244 |   |   |   |   Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked
     257|   |   |   |   Sensors: lo_locked, ad9371_lo_locked, lowband_lo_locked
    245258|   |   |   |   Freq range: 1.000 to 6000.000 MHz
    246259|   |   |   |   Gain range all: 0.0 to 65.0 step 0.5 dB
     
    256269|   |   |   |   Name: Magnesium
    257270|   |   |   |   Antennas: TX/RX
    258 |   |   |   |   Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked
     271|   |   |   |   Sensors: lo_locked, ad9371_lo_locked, lowband_lo_locked
    259272|   |   |   |   Freq range: 1.000 to 6000.000 MHz
    260273|   |   |   |   Gain range all: 0.0 to 65.0 step 0.5 dB
     
    274287|   |   |       RFNoC blocks on this device:
    275288|   |   |
    276 |   |   |   * DmaFIFO_0
     289|   |   |   * Replay_0
    277290|   |   |   * Radio_0
    278291|   |   |   * Radio_1
     
    281294|   |   |   * DUC_0
    282295|   |   |   * DUC_1
     296|   |   |   * FIFO_0
     297|   |   |   * FIFO_1
     298|   |   |   * FIFO_2
     299|   |   |   * FIFO_3
    283300
    284301}}}
     
    294311After the image loader completes, power-cycle the N310 from the console and detect the N310 again.
    295312{{{#!shell-session
     313console:~$ omf tell -a offh -t srv1-lg1.sb1.cosmos-lab.org
    296314console:~$ omf tell -a on -t srv1-lg1.sb1.cosmos-lab.org
    297 console:~$ omf tell -a offh -t srv1-lg1.sb1.cosmos-lab.org
    298 }}}
    299 
     315}}}
     316