Changes between Version 92 and Version 93 of Old/Tutorials/k0SDR/Tutorial00


Ignore:
Timestamp:
Jan 14, 2010, 6:27:28 PM (14 years ago)
Author:
seskar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Old/Tutorials/k0SDR/Tutorial00

    v92 v93  
    2121The image above shows TX_A connected to RX_B through a 50 ohm attenuator. Likewise, side B of both nodes are connected through an attenuator. The ports are connected by wires in order to minimize noise. However, both TX and RX can use actual antenna.
    2222
    23 == Setting up Sandbox 5 ==
    24 I assume you’ve read the tutorial about Orbit, and you know how to reserve a time slot, how to log into the nodes, and how to image the nodes. (Otherwise, read [wiki:HowToGetStarted Getting Started].)
     23== Imaging nodes on Sandbox 5 ==
    2524
    2625To load the nodes with the right image:
     
    2827 * Step 1: Login to the console.
    2928    {{{
    30           ssh username@ console.sb5.orbit-lab.org
     29          ssh username@console.sb5.orbit-lab.org
    3130    }}}
    3231 * Step 2: Image the nodes.
    3332    {{{
    34           imageNodes [[1,1],[1,2]] gnuradio.ndz
    35          
    36           Other images are: baseline-2.1.ndz (for building from scratch, supported)
    37                             gnuradio_visual.ndz (for visual outputs, unsupported)
    38     }}}
    39  * Step 3: Power up node1-1 and node1-2.
    40     {{{
    41           wget -O - -q 'http://cmc:5012/cmc/on?x=1&y=1'
    42           wget -O - -q 'http://cmc:5012/cmc/on?x=1&y=2'
     33          omf load [[1,1],[1,2]] gnuradio.ndz
     34    }}}
     35    Other possible images are: baseline.ndz (for building from scratch, supported) gnuradio_visual.ndz (for visual outputs, unsupported)
     36
     37 * Step 3: Power up the nodes.
     38    {{{
     39          omf tell on [[1,1],[1,2]]
    4340    }}}
    4441
     
    5047
    5148== Example: Transmitting/Receiving Sine Waves ==
    52 Before you run these examples, do the following:
    53 
    54 copy http://www.orbit-lab.org/attachment/wiki/Documentation/GNURadio/usrp_siggen_multiple_sine.py usrp_siggen_multiple_sine.py to node1-1 (transmitter)
    55 
    56 copy http://www.orbit-lab.org/attachment/wiki/Documentation/GNURadio/usrp1_rx_cfile.py usrp1_rx_cfile.py to node1-2 (receiver).
    57 
    58 Give your scripts permission to run. (chmod +x filename)
    59 
    60  1. '''Receiver only''' The transmitter doesn't send any thing, only the receiver receives. In this case, what the receiver receives is white noise.
     49This basic example illustrates a simple sine wave transmitter and receiver. In order to run it, copy [attachment:usrp_siggen_multiple_sine.py] script to node1-1 (in this case node1-1 will be the transmitter) and [attachment:usrp1_rx_cfile.py] to node1-2 (in this case the receiver):
     50
     51   * On node1-1
     52    {{{
     53          wget http://www.orbit-lab.org/attachment/wiki/Documentation/GNURadio/Tutorial/GettingStarted/usrp_siggen_multiple_sine.py
     54          chmod +x usrp_siggen_multiple_sine.py
     55    }}}
     56
     57   * On node1-2
     58    {{{
     59          wget http://www.orbit-lab.org/attachment/wiki/Documentation/GNURadio/Tutorial/GettingStarted/usrp1_rx_cfile.py
     60          chmod +x usrp1_rx_cfile.py
     61    }}}
     62
     63
     64 1. '''Receiver only''' If the transmitter is off, the receiver receives only white noise.
     65   On node1-2 run
    6166   {{{
    6267      ./usrp1_rx_cfile.py -f 10e3 -N21000 -g 10 noise.dat
    6368   }}}
    64     * '-f 10e3': tells the GnuRadio to listen to the frequency band centered at 10kHz.
     69   Script arguments are:
     70    * '-f 10e3': tells the receiver to listen to the frequency band centered at 10kHz.
    6571    * '-N21000': write 21000 data points to file.
    6672    * '-g 10': set the gain to 10.
     
    6874
    6975
    70     Using the matlab script [http://www.orbit-lab.org/attachment/wiki/Documentation/GNURadio/plotall.m plotall('noise.dat')], you will see the following output:
     76    Using the matlab script [attachement:plotall.m plotall('noise.dat')], you will see similar output:
    7177
    7278[[Image(noise.dat.jpeg)]]
     
    7480
    75812. '''Transmitter and Receiver at 1MHz''' The transmitter sends out waveform at 1MHz, and the receiver receives at 1MHz as well.
    76    At the Transmitter node1-1:
     82   At the transmitter (node1-1):
    7783   {{{
    7884       ./usrp_siggen_multiple_sine.py -f 1e6 -w 10k -a 1000 -m 1 --sine
    7985   }}}
     86   
    8087    * '-f 1e6': tells the USRP to modulate the baseband waveform to 1MHz.
    8188    * '--sine': the type of the waveform that will be sent out is a sine wave.