Changes between Version 9 and Version 10 of Tutorials/Wireless/Spectrum Sensing
- Timestamp:
- Nov 7, 2019, 5:28:23 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorials/Wireless/Spectrum Sensing
v9 v10 199 199 200 200 ==== Prepare the application ==== 201 Download the application source code from the attachment section below.201 * Download the application source code from the attachment section below. 202 202 {{{ 203 203 root@sdr2-s1-lg1:~# wget https://wiki.cosmos-lab.org/raw-attachment/wiki/tutorials/basic_usage/spectrum_view.tar.gz … … 207 207 }}} 208 208 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.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. 210 210 {{{ 211 211 root@sdr2-s1-lg1:~# apt update … … 225 225 }}} 226 226 ==== Setup SSH tunnel ==== 227 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. 228 227 * Set up SSH tunnel from your local port 5002 to sdr2-s1-lg1.bed.cosmos-lab.org:9002 (See [https://wiki.cosmos-lab.org/wiki/tutorials/ssh_tunnel]) 228 This will be used by the web app to connect to a server running on the Krypton's host. 229 229 230 230 ==== Run the experiment ==== 231 231 232 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.232 * 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. 233 233 {{{ 234 234 root@sdr2-s1-lg1:~/SPECTRUM_VIEW# ./app_read_sdr_samples … … 238 238 }}} 239 239 240 In 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. 240 In short the application runs a server listening for commands. 241 * Just to briefly demonstrate some functionality, open the spectrum_view.html file in a Chrome browser. 241 242 242 243 When the viewer is first opened, the page display should be similar to the following … … 245 246 Ensure the localhost field is set to ''localhost:5002'' and the device type field is set to ''type=x300''. 246 247 247 Click the ''connect'' button once and a "WebSocket Connection" statement should be output by the application.248 Now 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.248 * Click the ''connect'' button once and a "WebSocket Connection" statement should be output by the application. 249 Now click on ''connect'' again to create a device handle. Finally click on ''submit'' to adjust the radio parameters and the ''Halted'' button to display a spectrogram. 249 250 250 251 Keep the default values for RATE, FREQ, GAIN and click on the HALTED button. This should display the spectrum if all went well.