Changes between Version 6 and Version 7 of Tutorials/Wireless/Spectrum Sensing


Ignore:
Timestamp:
Nov 7, 2019, 5:07:24 AM (5 years ago)
Author:
prasanthi
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/Wireless/Spectrum Sensing

    v6 v7  
    2424* Once your node is ready and turned on, ssh into the Krypton's host
    2525  {{{
    26      console:~$ ssh root@sdr2-lg1.sb1.cosmos-lab.org
     26     console:~$ ssh root@sdr2-s1-lg1
    2727  }}}
    2828
     
    3535* Run ''uhd_find_devices' and check if the X310 is detected
    3636{{{
    37 root@sdr-console> uhd_find_devices --args="type=x300"
    38 
    39 [INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501; UHD_3.14.0.HEAD-0-g6875d061
     37root@sdr2-s1-lg1:~# uhd_find_devices --args="type=x300"
     38[INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501; UHD_3.14.1.1-release
    4039--------------------------------------------------
    4140-- UHD Device 0
    4241--------------------------------------------------
    4342Device Address:
    44     serial: 31557B9
    45     fpga: HG
     43    serial: 3166636
     44    fpga: XG
    4645    name:
    4746    product: X310
     
    5554* 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.
    5655{{{
    57 root@sdr-console> uhd_usrp_probe --args="resource=rio0,type=x300"
     56root@sdr2-s1-lg1:~# uhd_usrp_probe --args="resource=rio0,type=x300"
    5857
    5958[INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501; UHD_3.14.0.HEAD-0-g6875d061
     
    202201Download the application source code from the attachment section below.
    203202{{{
    204 root@sdr-console> wget https://wiki.cosmos-lab.org/raw-attachment/wiki/tutorials/basic_usage/spectrum_view.tar.gz
    205 
    206 root@sdr-console> tar -zxvf spectrum_view.tar.gz
     203root@sdr2-s1-lg1:~# wget https://wiki.cosmos-lab.org/raw-attachment/wiki/tutorials/basic_usage/spectrum_view.tar.gz
     204
     205root@sdr2-s1-lg1:~# tar -zxvf spectrum_view.tar.gz
    207206
    208207}}}
     
    210209Please refer to the README file in SPECTRUM_VIEW directory for instructions on compiling and running the application. Before compiling the application, install and compile a few dependencies.
    211210{{{
    212 root@sdr2-s2-lg1:~# apt update
    213 root@sdr2-s2-lg1:~# apt-get -y install libboost-all-dev liblog4cxx-dev cmake libfftw3-dev libxml2-dev libpopt-dev libsqlite3-dev pkg-config libxml2-utils gnulib
    214 
    215 root@sdr2-s2-lg1:~# git clone https://github.com/zaphoyd/websocketpp.git
    216 root@sdr2-s2-lg1:~# pushd websocketpp
    217 root@sdr2-s2-lg1:~/websocketpp# cmake . -DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON
    218 root@sdr2-s2-lg1:~/websocketpp# make -j 4
    219 root@sdr2-s2-lg1:~/websocketpp# make install
    220 root@sdr2-s2-lg1:~/websocketpp# popd
     211root@sdr2-s1-lg1:~# apt update
     212root@sdr2-s1-lg1:~# apt-get -y install libboost-all-dev liblog4cxx-dev cmake libfftw3-dev libxml2-dev libpopt-dev libsqlite3-dev pkg-config libxml2-utils gnulib
     213
     214root@sdr2-s1-lg1:~# git clone https://github.com/zaphoyd/websocketpp.git
     215root@sdr2-s1-lg1:~# pushd websocketpp
     216root@sdr2-s1-lg1:~/websocketpp# cmake . -DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON
     217root@sdr2-s1-lg1:~/websocketpp# make -j 4
     218root@sdr2-s1-lg1:~/websocketpp# make install
     219root@sdr2-s1-lg1:~/websocketpp# popd
    221220}}}
    222221
    223222Now if all the dependencies installed successfully, compile application.
    224223{{{
    225 root@sdr-console> make
    226 root@sdr-console> make install
    227 }}}
     224root@sdr2-s1-lg1:~/SPECTRUM_VIEW# make
     225}}}
     226
     227==== Run the experiment ====
    228228
    229229From within the ''SPECTRUM_VIEW'' directory make and run the application to 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.