Changes between Version 20 and Version 21 of Tutorials/Wireless/Basic Usage
- Timestamp:
- May 11, 2020, 1:17:35 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorials/Wireless/Basic Usage
v20 v21 20 20 === Configure and detect the radio === 21 21 * Once your node is ready and turned on, ssh into the Krypton's host 22 {{{ 22 {{{#!shell-session 23 23 console:~$ ssh root@sdr2-lg1.sb1.cosmos-lab.org 24 24 }}} … … 29 29 30 30 * 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 32 root@sdr-console:~$ uhd_find_devices --args="type=x300" 33 33 34 34 [INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501; UHD_3.14.0.HEAD-0-g6875d061 … … 49 49 50 50 * 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 52 root@sdr-console:~$ uhd_usrp_probe --args="resource=rio0,type=x300" 53 53 54 54 [INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501; UHD_3.14.0.HEAD-0-g6875d061 … … 196 196 === Configure and run the application === 197 197 * 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.gz200 201 root@sdr-console >tar -zxvf spectrum_view.tar.gz202 root@sdr-console >cd SPECTRUM_VIEW198 {{{#!shell-session 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 203 203 }}} 204 204 205 205 * 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 update208 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 gnulib206 {{{#!shell-session 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 209 209 }}} 210 210 211 211 212 212 * Now compile and make the websocket library. 213 {{{ 214 root@sdr-console >make websock213 {{{#!shell-session 214 root@sdr-console:~$ make websock 215 215 }}} 216 216 217 217 * Lastly compile the application - this will generate the executable ''app_read_sdr_samples'' that reads samples from the SDR. 218 {{{ 219 root@sdr-console >make218 {{{#!shell-session 219 root@sdr-console:~$ make 220 220 }}} 221 221 222 222 * 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_samples223 {{{#!shell-session 224 root@sdr-console:~$ ./app_read_sdr_samples 225 225 INFO 11:51:08.262 (main.cpp:623) - Starting command server at 5180 226 226 INFO 11:51:08.262 (main.cpp:175) - Starting websock server at 9002