Changes between Version 20 and Version 21 of Tutorials/Wireless/Basic Usage


Ignore:
Timestamp:
May 11, 2020, 1:17:35 AM (4 years ago)
Author:
msherman
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/Wireless/Basic Usage

    v20 v21  
    2020=== Configure and detect the radio ===
    2121* Once your node is ready and turned on, ssh into the Krypton's host
    22 {{{
     22{{{#!shell-session
    2323console:~$ ssh root@sdr2-lg1.sb1.cosmos-lab.org
    2424}}}
     
    2929
    3030* Run ''uhd_find_devices' and check if the X310 is detected
    31 {{{
    32 root@sdr-console> uhd_find_devices --args="type=x300"
     31{{{#!shell-session
     32root@sdr-console:~$ uhd_find_devices --args="type=x300"
    3333
    3434[INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501; UHD_3.14.0.HEAD-0-g6875d061
     
    4949
    5050* Use the ''uhd_usrp_probe'' command to get more details on the x300. Specifying ''resource=rio0'' ensures only the directly connected radio is probed, instead of the radios on the network.
    51 {{{
    52 root@sdr-console> uhd_usrp_probe --args="resource=rio0,type=x300"
     51{{{#!shell-session
     52root@sdr-console:~$ uhd_usrp_probe --args="resource=rio0,type=x300"
    5353
    5454[INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501; UHD_3.14.0.HEAD-0-g6875d061
     
    196196=== Configure and run the application ===
    197197* Download the application source code from the attachment section below.
    198 {{{
    199 root@sdr-console> wget https://wiki.cosmos-lab.org/raw-attachment/wiki/tutorials/basic_usage/spectrum_view.tar.gz
    200 
    201 root@sdr-console> tar -zxvf spectrum_view.tar.gz
    202 root@sdr-console> cd SPECTRUM_VIEW
     198{{{#!shell-session
     199root@sdr-console:~$ wget https://wiki.cosmos-lab.org/raw-attachment/wiki/tutorials/basic_usage/spectrum_view.tar.gz
     200
     201root@sdr-console:~$ tar -zxvf spectrum_view.tar.gz
     202root@sdr-console:~$ cd SPECTRUM_VIEW
    203203}}}
    204204
    205205* Please refer to the README file in SPECTRUM_VIEW directory for instructions on compiling and running the application. Before compiling install a few required libraries.
    206 {{{
    207 root@sdr-console> apt update
    208 root@sdr-console> apt-get -y install libboost-all-dev liblog4cxx-dev cmake libfftw3-dev libxml2-dev libpopt-dev libsqlite3-dev pkg-config libxml2-utils gnulib
     206{{{#!shell-session
     207root@sdr-console:~$ apt update
     208root@sdr-console:~$ apt-get -y install libboost-all-dev liblog4cxx-dev cmake libfftw3-dev libxml2-dev libpopt-dev libsqlite3-dev pkg-config libxml2-utils gnulib
    209209}}}
    210210
    211211
    212212* Now compile and make the websocket library.
    213 {{{
    214 root@sdr-console> make websock
     213{{{#!shell-session
     214root@sdr-console:~$ make websock
    215215}}}
    216216
    217217* Lastly compile the application - this will generate the executable ''app_read_sdr_samples'' that reads samples from the SDR.
    218 {{{
    219 root@sdr-console> make
     218{{{#!shell-session
     219root@sdr-console:~$ make
    220220}}}
    221221
    222222* Run the application - this will start a server that listens for commands to configure the radio and stream received spectrum samples.
    223 {{{
    224 root@sdr-console> ./app_read_sdr_samples
     223{{{#!shell-session
     224root@sdr-console:~$ ./app_read_sdr_samples
    225225 INFO  11:51:08.262 (main.cpp:623) - Starting command server at 5180
    226226 INFO  11:51:08.262 (main.cpp:175) - Starting websock server at 9002