Changes between Version 6 and Version 7 of Tutorials/Wireless/Spectrum Sensing
- Timestamp:
- Nov 7, 2019, 5:07:24 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorials/Wireless/Spectrum Sensing
v6 v7 24 24 * Once your node is ready and turned on, ssh into the Krypton's host 25 25 {{{ 26 console:~$ ssh root@sdr2- lg1.sb1.cosmos-lab.org26 console:~$ ssh root@sdr2-s1-lg1 27 27 }}} 28 28 … … 35 35 * Run ''uhd_find_devices' and check if the X310 is detected 36 36 {{{ 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 37 root@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 40 39 -------------------------------------------------- 41 40 -- UHD Device 0 42 41 -------------------------------------------------- 43 42 Device Address: 44 serial: 31 557B945 fpga: HG43 serial: 3166636 44 fpga: XG 46 45 name: 47 46 product: X310 … … 55 54 * 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. 56 55 {{{ 57 root@sdr -console>uhd_usrp_probe --args="resource=rio0,type=x300"56 root@sdr2-s1-lg1:~# uhd_usrp_probe --args="resource=rio0,type=x300" 58 57 59 58 [INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501; UHD_3.14.0.HEAD-0-g6875d061 … … 202 201 Download the application source code from the attachment section below. 203 202 {{{ 204 root@sdr -console>wget https://wiki.cosmos-lab.org/raw-attachment/wiki/tutorials/basic_usage/spectrum_view.tar.gz205 206 root@sdr -console>tar -zxvf spectrum_view.tar.gz203 root@sdr2-s1-lg1:~# wget https://wiki.cosmos-lab.org/raw-attachment/wiki/tutorials/basic_usage/spectrum_view.tar.gz 204 205 root@sdr2-s1-lg1:~# tar -zxvf spectrum_view.tar.gz 207 206 208 207 }}} … … 210 209 Please 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. 211 210 {{{ 212 root@sdr2-s 2-lg1:~# apt update213 root@sdr2-s 2-lg1:~# apt-get -y install libboost-all-dev liblog4cxx-dev cmake libfftw3-dev libxml2-dev libpopt-dev libsqlite3-dev pkg-config libxml2-utils gnulib214 215 root@sdr2-s 2-lg1:~# git clone https://github.com/zaphoyd/websocketpp.git216 root@sdr2-s 2-lg1:~# pushd websocketpp217 root@sdr2-s 2-lg1:~/websocketpp# cmake . -DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON218 root@sdr2-s 2-lg1:~/websocketpp# make -j 4219 root@sdr2-s 2-lg1:~/websocketpp# make install220 root@sdr2-s 2-lg1:~/websocketpp# popd211 root@sdr2-s1-lg1:~# apt update 212 root@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 214 root@sdr2-s1-lg1:~# git clone https://github.com/zaphoyd/websocketpp.git 215 root@sdr2-s1-lg1:~# pushd websocketpp 216 root@sdr2-s1-lg1:~/websocketpp# cmake . -DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON 217 root@sdr2-s1-lg1:~/websocketpp# make -j 4 218 root@sdr2-s1-lg1:~/websocketpp# make install 219 root@sdr2-s1-lg1:~/websocketpp# popd 221 220 }}} 222 221 223 222 Now if all the dependencies installed successfully, compile application. 224 223 {{{ 225 root@sdr-console> make 226 root@sdr-console> make install 227 }}} 224 root@sdr2-s1-lg1:~/SPECTRUM_VIEW# make 225 }}} 226 227 ==== Run the experiment ==== 228 228 229 229 From 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.