Changes between Version 92 and Version 93 of Old/Tutorials/k0SDR/Tutorial00
- Timestamp:
- Jan 14, 2010, 6:27:28 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Old/Tutorials/k0SDR/Tutorial00
v92 v93 21 21 The 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. 22 22 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 == 25 24 26 25 To load the nodes with the right image: … … 28 27 * Step 1: Login to the console. 29 28 {{{ 30 ssh username@ 29 ssh username@console.sb5.orbit-lab.org 31 30 }}} 32 31 * Step 2: Image the nodes. 33 32 {{{ 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]] 43 40 }}} 44 41 … … 50 47 51 48 == 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. 49 This 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 61 66 {{{ 62 67 ./usrp1_rx_cfile.py -f 10e3 -N21000 -g 10 noise.dat 63 68 }}} 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. 65 71 * '-N21000': write 21000 data points to file. 66 72 * '-g 10': set the gain to 10. … … 68 74 69 75 70 Using the matlab script [ http://www.orbit-lab.org/attachment/wiki/Documentation/GNURadio/plotall.m plotall('noise.dat')], you will see the followingoutput:76 Using the matlab script [attachement:plotall.m plotall('noise.dat')], you will see similar output: 71 77 72 78 [[Image(noise.dat.jpeg)]] … … 74 80 75 81 2. '''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): 77 83 {{{ 78 84 ./usrp_siggen_multiple_sine.py -f 1e6 -w 10k -a 1000 -m 1 --sine 79 85 }}} 86 80 87 * '-f 1e6': tells the USRP to modulate the baseband waveform to 1MHz. 81 88 * '--sine': the type of the waveform that will be sent out is a sine wave.