wiki:Tutorials/k0SDR/Tutorial01b

Version 1 (modified by nilanjan, 10 years ago) ( diff )

Simple radio example with GNURADIO benchmark scripts

Description

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.

Hardware / Software Resources utilized

  1. Grid nodes with a USRP2 connect via Ethernet.
  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.
  3. gnu-benchmark.rb - OEDL script to set up a GNU Radio system and execute a simple data transfer.

Set up

  • After logging into grid console, make sure all nodes are turned off
    nilanjan@console.grid:~$ omf tell -a offh -t system:topo:all
    
  • Verify state of node before continuing. Make sure all nodes are in the POWEROFF state.
    nilanjan@console.grid:~$ omf stat
    
  • Image nodes. Two (2) are required to run - check inventory status to find nodes with USRP2s.
    nilanjan@console.grid:~$ omf load -i baseline-12-04-gnu.ndz -t node1-1,node1-2
    
  • After nodes are imaged, verify that nodes are in POWEROFF state. Otherwise issue the following to turn them off for a reboot
    nilanjan@console.grid:~$ omf tell -a offh -t system:topo:n210
    
  • Turn nodes back on and verify they are in POWERON state
    nilanjan@console.grid:~$ omf tell -a on -t system:topo:n210
    
  • Before proceeding, download the spectrum console application code to your local directory. This is the application that will invoke the application to configure the USRP on the nodes.
  • Compile the application code.
    nilanjan@console.grid:~/UHD/SPECTRUM/w$ g++ spectrum_console.cpp -lboost_program_options-mt -loml2 -o spectrum_console
    

Running OEDL script

Note: See TracWiki for help on using the wiki.