| 1 | = Simple radio example with GNURADIO benchmark scripts = |
| 2 | |
| 3 | == Description == |
| 4 | This example will utilize an OEDL script to execute packet transfers over a radio link created using GNU Radio. This is will involve running a GNU Radio benchmark script two nodes each with a USRP. |
| 5 | |
| 6 | == Hardware / Software Resources utilized == |
| 7 | 1. Grid nodes with a USRP2 connect via Ethernet. |
| 8 | 2. ''baseline-12-04-gnu.ndz'': disk image loaded onto nodes. This image has all the precompiled - software required to configure the USRPs and all the required GNU Radio libraries. The USRP2's interface with the node is already configured. |
| 9 | 3. gnu-benchmark.rb - OEDL script to set up a GNU Radio system and execute a simple data transfer. |
| 10 | |
| 11 | == Set up == |
| 12 | * To get started first make a reservation on the [https://www.orbit-lab.org/schedule/ Orbit Scheduler] for using the Grid. |
| 13 | |
| 14 | * After logging into grid console, make sure all nodes are turned off |
| 15 | {{{ |
| 16 | nilanjan@console.grid:~$ omf tell -a offh -t system:topo:all |
| 17 | }}} |
| 18 | |
| 19 | * Verify state of node before continuing. Make sure all nodes are in the POWEROFF state. |
| 20 | {{{ |
| 21 | nilanjan@console.grid:~$ omf stat |
| 22 | }}} |
| 23 | |
| 24 | * Image nodes. Two (2) are required to run - check [https://www.orbit-lab.org/status/orbit/ inventory status] to find nodes with USRP2s. |
| 25 | {{{ |
| 26 | nilanjan@console.grid:~$ omf load -i baseline-12-04-gnu.ndz -t node1-1,node1-2 |
| 27 | }}} |
| 28 | |
| 29 | * After nodes are imaged, verify that nodes are in POWEROFF state. Otherwise issue the following to turn them off for a reboot |
| 30 | {{{ |
| 31 | nilanjan@console.grid:~$ omf tell -a offh -t system:topo:n210 |
| 32 | }}} |
| 33 | |
| 34 | * Turn nodes back on and verify they are in POWERON state |
| 35 | {{{ |
| 36 | nilanjan@console.grid:~$ omf tell -a on -t system:topo:n210 |
| 37 | }}} |
| 38 | |
| 39 | * Before proceeding, download the [http://www.orbit-lab.org/raw-attachment/wiki/Tutorials/GNURadio/FFTSpectrum/spectrum_console.cpp spectrum console application code] to your local directory. This is the application that will invoke the application to configure the USRP on the nodes. |
| 40 | |
| 41 | * Compile the application code. |
| 42 | {{{ |
| 43 | nilanjan@console.grid:~/UHD/SPECTRUM/w$ g++ spectrum_console.cpp -lboost_program_options-mt -loml2 -o spectrum_console |
| 44 | }}} |
| 45 | |
| 46 | == Running OEDL script == |