Changes between Version 16 and Version 17 of Tutorials/Wireless/Basic Usage
- Timestamp:
- Jan 7, 2020, 7:12:49 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorials/Wireless/Basic Usage
v16 v17 193 193 194 194 === Configure and run the application === 195 Download the application source code from the attachment section below.195 * Download the application source code from the attachment section below. 196 196 {{{ 197 197 root@sdr-console> wget https://wiki.cosmos-lab.org/raw-attachment/wiki/tutorials/basic_usage/spectrum_view.tar.gz … … 201 201 }}} 202 202 203 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.203 * 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. 204 204 {{{ 205 205 root@sdr-console> apt update … … 208 208 209 209 210 Now compile and make the websocket library.210 * Now compile and make the websocket library. 211 211 {{{ 212 212 root@sdr-console> make websocket 213 213 }}} 214 214 215 Lastly compile the application - this will generate the executable ''app_read_sdr_samples'' that reads samples from the SDR.215 * Lastly compile the application - this will generate the executable ''app_read_sdr_samples'' that reads samples from the SDR. 216 216 {{{ 217 217 root@sdr-console> make 218 218 }}} 219 219 220 221 Run the application - this will start a server that listens for commands to configure the radio and stream received spectrum samples. 220 * Run the application - this will start a server that listens for commands to configure the radio and stream received spectrum samples. 222 221 {{{ 223 222 root@sdr-console> ./app_read_sdr_samples … … 229 228 230 229 === Visualize spectrum samples === 231 Download the spectrum visualizer web client to your desktop. It is all in another zip file - ''spectrum_view.zip''. Unzip this folder and open ''spectrum_view.html'' in a Chrome browser.232 233 When the viewer is first opened, the page display should be similar to the following230 * Download the spectrum visualizer web client to your desktop. It is all in another zip file - ''spectrum_view.zip''. Unzip this folder and open ''spectrum_view.html'' in a Chrome browser. 231 232 When the viewer is first opened, the page display should be similar to the following 234 233 || [[Image(basic_usage_spectrum_view_1.png, width=500px)]] || 235 234 236 235 237 238 Ensure the localhost field is set to ''localhost:5002''. (Recall from the set up section to create a tunnel from localhost:5002 to sdr2-lg1.sb1.cosmos-lab.org:9002 since the ''app_read_sdr_samples'' application has a websock server listening on that host:port.) 239 Ensurethe device type field is set to ''type=x300''.240 241 242 Click the ''connect'' button once and a "Websocket Connection" statement should be output by the application. 243 Now click on ''make'' to create a device handle.244 245 The RF radio parameters are already populated with default values for 2.4 GHz WIFI band. To view other active spectrum bands change the RATE, FREQ, GAIN fields to236 * Set the localhost field to ''localhost:5002''. (Recall from the set up section to create a tunnel from localhost:5002 to sdr2-lg1.sb1.cosmos-lab.org:9002 since the ''app_read_sdr_samples'' application has a websock server listening on that address:port.) 237 238 Set the device type field is set to ''type=x300''. 239 240 Click the ''connect'' button once and a "Websocket Connection" statement should be output by the application. 241 242 Now click on ''make'' to create a device handle. 243 244 The RF radio parameters are already populated with default values for 2.4 GHz WIFI band. To view other active spectrum bands change the RATE, FREQ, GAIN fields to 246 245 247 246 || RF Parameter || value || description || … … 249 248 || FREQ || 1925e6 || Center frequency || 250 249 || GAIN || 30 || Receive gain || 251 Then click on ''Submit'' to update the SDR.252 253 Click on the ''Halted'' button to begin streaming samples from the radio to the browser. This should display the spectrum if all went well.250 Then click on ''Submit'' to update the SDR. 251 252 Click on the ''Halted'' button to begin streaming samples from the radio to the browser. This should display the spectrum if all went well. 254 253 || [[Image(basic_usage_spectrum_view_3.png, width=500px)]] || 255 254 256 255 257 256 === Troubleshooting === 258 Check the troubleshooting section in the [https://wiki.cosmos-lab.org/wiki/tutorials/krypton_usage Krypton usage page] for common errors.257 * Check the troubleshooting section in the [https://wiki.cosmos-lab.org/wiki/tutorials/krypton_usage Krypton usage page] for common errors.