Changes between Version 5 and Version 6 of Tutorials/Wireless/Basic Usage


Ignore:
Timestamp:
May 16, 2019, 6:11:04 PM (6 years ago)
Author:
nilanjan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/Wireless/Basic Usage

    v5 v6  
    44In this tutorial we'll demonstrate how to navigate from the COSMOS sandbox to a single SDR on a node and run an application to read samples from the SDR.
    55
    6 === Prerequisites ===
    7 Before getting started you'll need the following:
    8  1. sign up for a [https://cosmos-lab.org/portal-2/ COSMOS account]
    9  2. create a reservation for sandbox 1 using the [https://wiki.cosmos-lab.org/cPanel/controlPanel/start scheduler].
    10  3. some minimal knowledge or interest of Linux
    11 
    126=== Set up ===
    13  * After your reservation request has been approved, you'll receive access to the sandbox1 console.
    14 Open a terminal into console.sb1.cosmos-lab.org with a tunnel set up from localhost:5000 to srv1-lg1.sb1.cosmos-lab.org:9002
    15 {{{
    16                                        Welcome to
    17    _____ ____   _____ __  __  ____   _____      _               ____
    18   / ____/ __ \ / ____|  \/  |/ __ \ / ____|    | |        /\   |  _ \
    19  | |   | |  | | (___ | \  / | |  | | (___ _____| |       /  \  | |_) | ___  _ __ __ _
    20  | |   | |  | |\___ \| |\/| | |  | |\___ \_____| |      / /\ \ |  _ < / _ \| '__/ _` |
    21  | |___| |__| |____) | |  | | |__| |____) |    | |____ / ____ \| |_) | (_) | | | (_| |
    22   \_____\____/|_____/|_|  |_|\____/|_____/     |______/_/    \_\____(_)___/|_|  \__, |
    23                                                                                  __/ |
    24                                                                                 |___/
    25  Hostname         : console.sb1.cosmos-lab.org
    26  Operating system : Ubuntu 16.04.5 LTS; Kernel: 4.15.0-45-generic; Arch: x86_64;
    27  CPU              : 6 x Intel(R) Xeon(R) CPU E5-2630 v2 @ 2.60GHz
    28                     1 socket(s) with 6 core(s) per socket and 1 thread(s) per core
    29  Memory           : 3.9G
    30  Uptime           : up 4 days, 14 hours, 15 minutes
    31  Users logged in  : 0
    32 Last login: Tue Feb 26 19:06:09 2019 from 165.230.132.125
    33 }}}
    34 
    35  * We can see the available nodes under this sandbox using the ''omf stat -t all'' command. The nodes list below should coinside with the [https://wiki.cosmos-lab.org/cPanel/controlPanel/start Inventory/Status page].
    36 {{{
    37 nilanjan@console:~$ omf stat -t all
    38 
    39 -----------------------------------------------
    40  Node: srv1-lg1.sb1.cosmos-lab.org       State: POWEROFF
    41  Node: srv2-lg1.sb1.cosmos-lab.org       State: POWEROFF
    42 -----------------------------------------------
    43 }}}
    44 
    45  * For this example we'll use the node ''srv1-lg1.sb1.cosmos-lab.org'' and load the ''baseline-sdr.ndz'' image onto it. This image already has the applications pre-compiled and drivers installed.
    46 {{{
    47 console:~$ omf load -i baseline-sdr.ndz  -t srv1-lg1.sb1.cosmos-lab.org
    48 }}}
    49  After the image is successfully loaded turn on the node, give it some time to boot and then ssh into it.
    50 {{{
    51 console:~$ omf tell -a on -t srv1-lg1.sb1.cosmos-lab.org
    52 console:~$ ssh native@srv1-lg1.sb1.cosmos-lab.org
    53 }}}
    54 
    55  * Once you're in ''srv1-lg1.sb1.cosmos-lab.org'' configure the network interface so it can talk to the N310's data interface.
    56 {{{
    57 sudo ifconfig enp1s0 10.115.1.1 netmask 255.255.0.0 mtu 8000
    58 }}}
     7For this example we used the Krypton SDR on console.sb1.cosmos-lab.org. Follow the steps below to gain access to this console and set up your node with an appropriate image.
     8 1. Sign up for a [https://cosmos-lab.org/portal-2/ COSMOS account]
     9 2. [Documentation/Short/CreateRes Create a resource reservation on sandbox 1]
     10 3. [Documentation/Short/Login Login into your reserved domain.]
     11 4. Load baseline-uhd1.ndz on your resource. [Documentation/Short/LoadImage  - this is done via OMF commands.]
     12
     13When opening a terminal into console.sb1.cosmos-lab.org set up a tunnel from localhost:5002 to sdr2-lg1.sb1.cosmos-lab.org:9002. This will be used by the web app to connect to a server running on the Krypton's host.
     14
     15=== Configure and detect the radio ===
     16 * Once your node is ready and turned on, ssh into the Krypton's host
     17{{{
     18console:~$ ssh root@sdr2-lg1.sb1.cosmos-lab.org
     19}}}
     20
     21* Configure and load the appropriate PCIe driver to access the Krypton's radio. Detailed steps for driver install and radio detection are on the [https://wiki.cosmos-lab.org/wiki/tutorials/krypton_usage Krypton usage page]. If the drivers are already pre-install on the image, just start the modules using ''niusrprio_pcie''.
     22{{{
     23root@sdr2-lg1:~# /usr/local/bin/niusrprio_pcie start
     24}}}
     25
    5926
    6027 Run ''uhd_find_devices' and check if the N310 is detected
    6128{{{
    62 native@localhost:~$ uhd_find_devices
    63 
    64 [INFO] [UHD] linux; GNU C++ version 7.3.0; Boost_106501; UHD_3.13.1.0-0-unknown
     29root@sdr2-lg1:~# uhd_find_devices --args="type=x300"
     30
     31[INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501; UHD_3.14.0.HEAD-0-g6875d061
    6532--------------------------------------------------
    6633-- UHD Device 0
    6734--------------------------------------------------
    6835Device Address:
    69     serial: 315A35A
    70     addr: 10.115.2.1
    71     claimed: False
    72     mgmt_addr: 10.113.2.1
    73     mgmt_addr: 10.115.2.1
    74     product: n310
    75     type: n3xx
    76 
    77 
    78 --------------------------------------------------
    79 -- UHD Device 1
    80 --------------------------------------------------
    81 Device Address:
    82     serial: 3176DF7
    83     addr: 10.115.3.1
    84     claimed: False
    85     mgmt_addr: 10.113.3.1
    86     mgmt_addr: 10.115.3.1
    87     product: n310
    88     type: n3xx
    89 
    90 }}}
    91 
    92  The above output enumerates all the SDRs that were detected.
    93  Use the ''uhd_usrp_probe'' command with a ''mgmt_addr'' to get more details on a specific n310.
    94 {{{
    95 native@localhost:~$ uhd_usrp_probe --args="mgmt_addr=10.113.2.1,addr=10.115.2.1"
    96 [INFO] [UHD] linux; GNU C++ version 7.3.0; Boost_106501; UHD_3.13.1.0-0-unknown
    97 [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
    98 [INFO] [0/DmaFIFO_0] Initializing block control (NOC ID: 0xF1F0D00000000004)
    99 [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1346 MB/s)
    100 [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1356 MB/s)
    101 [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1347 MB/s)
    102 [INFO] [MPM.PeriphManager] init() called with device args `time_source=internal,clock_source=internal,product=n310,mgmt_addr=10.113.2.1'.
    103 [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1355 MB/s)
    104 [INFO] [0/Radio_0] Initializing block control (NOC ID: 0x12AD100000011312)
    105 [INFO] [0/Radio_1] Initializing block control (NOC ID: 0x12AD100000011312)
     36    serial: 31557B9
     37    fpga: HG
     38    name:
     39    product: X310
     40    resource: RIO0
     41    type: x300
     42
     43}}}
     44
     45 The above output enumerates all the SDRs that were detected. Krypton has only one PCIe radio device of type=x300.
     46
     47 Use the ''uhd_usrp_probe'' command to get more details on the x300.
     48{{{
     49root@sdr2-lg1:~# uhd_usrp_probe --args="type=x300"
     50
     51[INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501; UHD_3.14.0.HEAD-0-g6875d061
     52[INFO] [X300] X300 initialization sequence...
     53[INFO] [X300] Connecting to niusrpriorpc at localhost:5444...
     54[INFO] [X300] Using LVBITX bitfile /usr/local/share/uhd/images/usrp_x310_fpga_HG.lvbitx...
     55[INFO] [X300] Radio 1x clock: 200 MHz
     56[INFO] [GPS] Found an internal GPSDO: LC_XO, Firmware Rev 0.929a
     57[INFO] [0/DmaFIFO_0] Initializing block control (NOC ID: 0xF1F0D00000000000)
     58[INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1301 MB/s)
     59[INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1303 MB/s)
     60[INFO] [0/Radio_0] Initializing block control (NOC ID: 0x12AD100000000001)
     61[INFO] [0/Radio_1] Initializing block control (NOC ID: 0x12AD100000000001)
    10662[INFO] [0/DDC_0] Initializing block control (NOC ID: 0xDDC0000000000000)
    10763[INFO] [0/DDC_1] Initializing block control (NOC ID: 0xDDC0000000000000)
    108 [INFO] [0/DUC_0] Initializing block control (NOC ID: 0xD0C0000000000002)
    109 [INFO] [0/DUC_1] Initializing block control (NOC ID: 0xD0C0000000000002)
     64[INFO] [0/DUC_0] Initializing block control (NOC ID: 0xD0C0000000000000)
     65[INFO] [0/DUC_1] Initializing block control (NOC ID: 0xD0C0000000000000)
    11066  _____________________________________________________
    11167 /
    112 |       Device: N300-Series Device
     68|       Device: X-Series Device
    11369|     _____________________________________________________
    11470|    /
    115 |   |       Mboard: ni-n3xx-315A35A
    116 |   |   eeprom_version: 1
    117 |   |   mpm_version: 3.13.1.0-gbbce3e45
    118 |   |   pid: 16962
    119 |   |   product: n310
    120 |   |   rev: 5
    121 |   |   rpc_connection: remote
    122 |   |   serial: 315A35A
    123 |   |   type: n3xx
    124 |   |   MPM Version: 1.2
    125 |   |   FPGA Version: 5.2
    126 |   |   FPGA git hash: d0360f7.clean
     71|   |       Mboard: X310
     72|   |   revision: 12
     73|   |   revision_compat: 7
     74|   |   product: 30810
     75|   |   mac-addr0: 00:11:22:33:44:55
     76|   |   mac-addr1: 66:77:88:99:aa:bb
     77|   |   gateway: 192.168.10.1
     78|   |   ip-addr0: 192.168.10.2
     79|   |   subnet0: 255.255.255.0
     80|   |   ip-addr1: 192.168.40.2
     81|   |   subnet1: 255.255.255.0
     82|   |   ip-addr2: 255.255.255.255
     83|   |   subnet2: 255.255.255.0
     84|   |   ip-addr3: 255.255.255.255
     85|   |   subnet3: 255.255.255.0
     86|   |   serial: 31557B9
     87|   |   FW Version: 6.0
     88|   |   FPGA Version: 35.1
     89|   |   FPGA git hash: 4c165a5
    12790|   |   RFNoC capable: Yes
    12891|   |
    129 |   |   Time sources:  internal, external, gpsdo, sfp0
    130 |   |   Clock sources: external, internal, gpsdo
    131 |   |   Sensors: gps_locked, gps_tpv, ref_locked, fan, gps_sky, gps_time, temp
     92|   |   Time sources:  internal, external, gpsdo
     93|   |   Clock sources: internal, external, gpsdo
     94|   |   Sensors: gps_gpgga, gps_gprmc, gps_time, gps_locked, gps_servo, ref_locked
    13295|   |     _____________________________________________________
    13396|   |    /
    13497|   |   |       RX Dboard: A
     98|   |   |   ID: UBX-TDD (0x0203)
     99|   |   |   Serial: 31584CF
    135100|   |   |     _____________________________________________________
    136101|   |   |    /
    137102|   |   |   |       RX Frontend: 0
    138 |   |   |   |   Name: Magnesium
    139 |   |   |   |   Antennas: TX/RX, RX2, CAL, LOCAL
    140 |   |   |   |   Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked
    141 |   |   |   |   Freq range: 1.000 to 6000.000 MHz
    142 |   |   |   |   Gain range all: 0.0 to 75.0 step 0.5 dB
    143 |   |   |   |   Gain range rfic: 0.0 to 0.0 step 0.0 dB
    144 |   |   |   |   Gain range dsa: 0.0 to 0.0 step 0.0 dB
    145 |   |   |   |   Gain range amp: 0.0 to 0.0 step 0.0 dB
    146 |   |   |   |   Bandwidth range: 20000000.0 to 100000000.0 step 0.0 Hz
     103|   |   |   |   Name: UBX RX
     104|   |   |   |   Antennas: TX/RX, RX2, CAL
     105|   |   |   |   Sensors: lo_locked
     106|   |   |   |   Freq range: 10.000 to 6000.000 MHz
     107|   |   |   |   Gain range PGA0: 0.0 to 31.5 step 0.5 dB
     108|   |   |   |   Bandwidth range: 160000000.0 to 160000000.0 step 0.0 Hz
    147109|   |   |   |   Connection Type: IQ
    148110|   |   |   |   Uses LO offset: No
    149111|   |   |     _____________________________________________________
    150112|   |   |    /
    151 |   |   |   |       RX Frontend: 1
    152 |   |   |   |   Name: Magnesium
    153 |   |   |   |   Antennas: TX/RX, RX2, CAL, LOCAL
    154 |   |   |   |   Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked
    155 |   |   |   |   Freq range: 1.000 to 6000.000 MHz
    156 |   |   |   |   Gain range all: 0.0 to 75.0 step 0.5 dB
    157 |   |   |   |   Gain range rfic: 0.0 to 0.0 step 0.0 dB
    158 |   |   |   |   Gain range dsa: 0.0 to 0.0 step 0.0 dB
    159 |   |   |   |   Gain range amp: 0.0 to 0.0 step 0.0 dB
    160 |   |   |   |   Bandwidth range: 20000000.0 to 100000000.0 step 0.0 Hz
     113|   |   |   |       RX Codec: A
     114|   |   |   |   Name: ads62p48
     115|   |   |   |   Gain range digital: 0.0 to 6.0 step 0.5 dB
     116|   |     _____________________________________________________
     117|   |    /
     118|   |   |       RX Dboard: B
     119|   |   |   ID: UBX-TDD (0x0203)
     120|   |   |   Serial: 31584EE
     121|   |   |     _____________________________________________________
     122|   |   |    /
     123|   |   |   |       RX Frontend: 0
     124|   |   |   |   Name: UBX RX
     125|   |   |   |   Antennas: TX/RX, RX2, CAL
     126|   |   |   |   Sensors: lo_locked
     127|   |   |   |   Freq range: 10.000 to 6000.000 MHz
     128|   |   |   |   Gain range PGA0: 0.0 to 31.5 step 0.5 dB
     129|   |   |   |   Bandwidth range: 160000000.0 to 160000000.0 step 0.0 Hz
    161130|   |   |   |   Connection Type: IQ
    162131|   |   |   |   Uses LO offset: No
    163132|   |   |     _____________________________________________________
    164133|   |   |    /
    165 |   |   |   |       RX Codec: A
    166 |   |   |   |   Name: AD9371 Dual ADC
     134|   |   |   |       RX Codec: B
     135|   |   |   |   Name: ads62p48
     136|   |   |   |   Gain range digital: 0.0 to 6.0 step 0.5 dB
     137|   |     _____________________________________________________
     138|   |    /
     139|   |   |       TX Dboard: A
     140|   |   |   ID: UBX-TDD (0x0202)
     141|   |   |   Serial: 31584CF
     142|   |   |     _____________________________________________________
     143|   |   |    /
     144|   |   |   |       TX Frontend: 0
     145|   |   |   |   Name: UBX TX
     146|   |   |   |   Antennas: TX/RX, CAL
     147|   |   |   |   Sensors: lo_locked
     148|   |   |   |   Freq range: 10.000 to 6000.000 MHz
     149|   |   |   |   Gain range PGA0: 0.0 to 31.5 step 0.5 dB
     150|   |   |   |   Bandwidth range: 160000000.0 to 160000000.0 step 0.0 Hz
     151|   |   |   |   Connection Type: QI
     152|   |   |   |   Uses LO offset: No
     153|   |   |     _____________________________________________________
     154|   |   |    /
     155|   |   |   |       TX Codec: A
     156|   |   |   |   Name: ad9146
    167157|   |   |   |   Gain Elements: None
    168158|   |     _____________________________________________________
    169159|   |    /
    170 |   |   |       RX Dboard: B
    171 |   |   |     _____________________________________________________
    172 |   |   |    /
    173 |   |   |   |       RX Frontend: 0
    174 |   |   |   |   Name: Magnesium
    175 |   |   |   |   Antennas: TX/RX, RX2, CAL, LOCAL
    176 |   |   |   |   Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked
    177 |   |   |   |   Freq range: 1.000 to 6000.000 MHz
    178 |   |   |   |   Gain range all: 0.0 to 75.0 step 0.5 dB
    179 |   |   |   |   Gain range rfic: 0.0 to 0.0 step 0.0 dB
    180 |   |   |   |   Gain range dsa: 0.0 to 0.0 step 0.0 dB
    181 |   |   |   |   Gain range amp: 0.0 to 0.0 step 0.0 dB
    182 |   |   |   |   Bandwidth range: 20000000.0 to 100000000.0 step 0.0 Hz
    183 |   |   |   |   Connection Type: IQ
    184 |   |   |   |   Uses LO offset: No
    185 |   |   |     _____________________________________________________
    186 |   |   |    /
    187 |   |   |   |       RX Frontend: 1
    188 |   |   |   |   Name: Magnesium
    189 |   |   |   |   Antennas: TX/RX, RX2, CAL, LOCAL
    190 |   |   |   |   Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked
    191 |   |   |   |   Freq range: 1.000 to 6000.000 MHz
    192 |   |   |   |   Gain range all: 0.0 to 75.0 step 0.5 dB
    193 |   |   |   |   Gain range rfic: 0.0 to 0.0 step 0.0 dB
    194 |   |   |   |   Gain range dsa: 0.0 to 0.0 step 0.0 dB
    195 |   |   |   |   Gain range amp: 0.0 to 0.0 step 0.0 dB
    196 |   |   |   |   Bandwidth range: 20000000.0 to 100000000.0 step 0.0 Hz
    197 |   |   |   |   Connection Type: IQ
    198 |   |   |   |   Uses LO offset: No
    199 |   |   |     _____________________________________________________
    200 |   |   |    /
    201 |   |   |   |       RX Codec: B
    202 |   |   |   |   Name: AD9371 Dual ADC
    203 |   |   |   |   Gain Elements: None
    204 |   |     _____________________________________________________
    205 |   |    /
    206 |   |   |       TX Dboard: A
     160|   |   |       TX Dboard: B
     161|   |   |   ID: UBX-TDD (0x0202)
     162|   |   |   Serial: 31584EE
    207163|   |   |     _____________________________________________________
    208164|   |   |    /
    209165|   |   |   |       TX Frontend: 0
    210 |   |   |   |   Name: Magnesium
    211 |   |   |   |   Antennas: TX/RX
    212 |   |   |   |   Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked
    213 |   |   |   |   Freq range: 1.000 to 6000.000 MHz
    214 |   |   |   |   Gain range all: 0.0 to 65.0 step 0.5 dB
    215 |   |   |   |   Gain range rfic: 0.0 to 0.0 step 0.0 dB
    216 |   |   |   |   Gain range dsa: 0.0 to 0.0 step 0.0 dB
    217 |   |   |   |   Gain range amp: 0.0 to 0.0 step 0.0 dB
    218 |   |   |   |   Bandwidth range: 20000000.0 to 100000000.0 step 0.0 Hz
    219 |   |   |   |   Connection Type: IQ
    220 |   |   |   |   Uses LO offset: No
    221 |   |   |     _____________________________________________________
    222 |   |   |    /
    223 |   |   |   |       TX Frontend: 1
    224 |   |   |   |   Name: Magnesium
    225 |   |   |   |   Antennas: TX/RX
    226 |   |   |   |   Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked
    227 |   |   |   |   Freq range: 1.000 to 6000.000 MHz
    228 |   |   |   |   Gain range all: 0.0 to 65.0 step 0.5 dB
    229 |   |   |   |   Gain range rfic: 0.0 to 0.0 step 0.0 dB
    230 |   |   |   |   Gain range dsa: 0.0 to 0.0 step 0.0 dB
    231 |   |   |   |   Gain range amp: 0.0 to 0.0 step 0.0 dB
    232 |   |   |   |   Bandwidth range: 20000000.0 to 100000000.0 step 0.0 Hz
    233 |   |   |   |   Connection Type: IQ
    234 |   |   |   |   Uses LO offset: No
    235 |   |   |     _____________________________________________________
    236 |   |   |    /
    237 |   |   |   |       TX Codec: A
    238 |   |   |   |   Name: AD9371 Dual DAC
    239 |   |   |   |   Gain Elements: None
    240 |   |     _____________________________________________________
    241 |   |    /
    242 |   |   |       TX Dboard: B
    243 |   |   |     _____________________________________________________
    244 |   |   |    /
    245 |   |   |   |       TX Frontend: 0
    246 |   |   |   |   Name: Magnesium
    247 |   |   |   |   Antennas: TX/RX
    248 |   |   |   |   Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked
    249 |   |   |   |   Freq range: 1.000 to 6000.000 MHz
    250 |   |   |   |   Gain range all: 0.0 to 65.0 step 0.5 dB
    251 |   |   |   |   Gain range rfic: 0.0 to 0.0 step 0.0 dB
    252 |   |   |   |   Gain range dsa: 0.0 to 0.0 step 0.0 dB
    253 |   |   |   |   Gain range amp: 0.0 to 0.0 step 0.0 dB
    254 |   |   |   |   Bandwidth range: 20000000.0 to 100000000.0 step 0.0 Hz
    255 |   |   |   |   Connection Type: IQ
    256 |   |   |   |   Uses LO offset: No
    257 |   |   |     _____________________________________________________
    258 |   |   |    /
    259 |   |   |   |       TX Frontend: 1
    260 |   |   |   |   Name: Magnesium
    261 |   |   |   |   Antennas: TX/RX
    262 |   |   |   |   Sensors: lo_locked, lowband_lo_locked, ad9371_lo_locked
    263 |   |   |   |   Freq range: 1.000 to 6000.000 MHz
    264 |   |   |   |   Gain range all: 0.0 to 65.0 step 0.5 dB
    265 |   |   |   |   Gain range rfic: 0.0 to 0.0 step 0.0 dB
    266 |   |   |   |   Gain range dsa: 0.0 to 0.0 step 0.0 dB
    267 |   |   |   |   Gain range amp: 0.0 to 0.0 step 0.0 dB
    268 |   |   |   |   Bandwidth range: 20000000.0 to 100000000.0 step 0.0 Hz
    269 |   |   |   |   Connection Type: IQ
     166|   |   |   |   Name: UBX TX
     167|   |   |   |   Antennas: TX/RX, CAL
     168|   |   |   |   Sensors: lo_locked
     169|   |   |   |   Freq range: 10.000 to 6000.000 MHz
     170|   |   |   |   Gain range PGA0: 0.0 to 31.5 step 0.5 dB
     171|   |   |   |   Bandwidth range: 160000000.0 to 160000000.0 step 0.0 Hz
     172|   |   |   |   Connection Type: QI
    270173|   |   |   |   Uses LO offset: No
    271174|   |   |     _____________________________________________________
    272175|   |   |    /
    273176|   |   |   |       TX Codec: B
    274 |   |   |   |   Name: AD9371 Dual DAC
     177|   |   |   |   Name: ad9146
    275178|   |   |   |   Gain Elements: None
    276179|   |     _____________________________________________________
     
    286189|   |   |   * DUC_1
    287190
    288 }}}
    289 
    290 === Run application ===
    291 From root/SPECTRUM_VIEW directory run the pre-compiled application that can read samples from the N310.
    292 {{{
    293 native@localhost:~$ cd SPECTRUM_VIEW/
    294 native@localhost:~/SPECTRUM_VIEW$ ./app_read_n310_samples
     191
     192
     193}}}
     194
     195=== Run the application ===
     196From root/SPECTRUM_VIEW directory run the pre-compiled application that can read samples from the Krypton's radio. There are two channels inside the radio which are being read out but only the first channel is displayed.
     197{{{
     198root@sdr2-lg1:~/SPECVIEW_VIEW# cd SPECTRUM_VIEW/
     199root@sdr2-lg1:~/SPECVIEW_VIEW# ./app_read_sdr_samples
    295200 INFO  11:51:08.262 (main.cpp:623) - Starting command server at 5180
    296201 INFO  11:51:08.262 (main.cpp:175) - Starting websock server at 9002
    297202...........
    298203}}}
    299 In short the application runs a server listening for commands. Just to briefly demonstrate the functionality, open the spectrum_view.html file in a Chrome browser, this will issues commands to configure the N310 and display a short spectrum width.
    300 When the viewer is first opened, you should see the text CONNECTED below the plot.
     204
     205In short the application runs a server listening for commands. Just to briefly demonstrate some functionality, open the spectrum_view.html file in a Chrome browser.
     206
     207When the viewer is first opened, the page display should be similar to the following
    301208 || [[Image(basic_usage_spectrum_view_1.png, width=500px)]] ||
     209
     210Ensure the localhost field is set to ''localhost:5002'' and the device type field is set to ''type=x300''.
     211
     212Click the ''connect'' button once and a "WebSocket Connection" statement should be output by the application.
     213Now click on ''make'' to create a device handle. Finally click on ''submit'' to adjust the radio parameters and the ''Go'' button to display a short spectrum bandwidth.
    302214
    303215Keep the default values for RATE, FREQ, GAIN and click on the HALTED button. This should display the spectrum if all went well.