| 68 | |
| 69 | |
| 70 | 2. '''Transmitter and Receiver at 1MHz''' The transmitter sends out waveform at 1MHz, and the receiver receives at 1MHz as well. |
| 71 | At the Transmitter node1-1: |
| 72 | {{{ |
| 73 | ./usrp_siggen_multiple_sine.py -f 1e6 -w 10k -a 1000 -m 1 --sine |
| 74 | }}} |
| 75 | * '-f 1e6': tells the GnuRadio to modulate the baseband waveform to 1MHz. |
| 76 | * '--sine': the format of the waveform that will be sent out is a sine wave. |
| 77 | * '-w 10k': set the original baseband frequency to 10k, |
| 78 | * '-a 1000': set the amplitude to 1000. |
| 79 | * '-m 1': only transmit one sine wave, instead of multiple sine waves. |
| 80 | |
| 81 | At the receiver node1-2: |
| 82 | {{{ |
| 83 | ./usrp1_rx_cfile.py -f 1e6 -N21000 -g 10 rx_1m.dat |
| 84 | }}} |
| 85 | * '-f 1e6': tells the GnuRadio to listen to the frequency band 1MHz. |
| 86 | * '-N21000': sample 21000 data points. |
| 87 | * '-g 10': set the gain to 10. |
| 88 | * 'rx_1m.data': set the file name that will store the data samples. |
| 89 | |
| 90 | |
| 91 | Again, using the matlab script [http://www.orbit-lab.org/attachment/wiki/Documentation/GNURadio/plotall.m plotall('noise.dat')], you can get the following figure: |
| 92 | |
| 93 | [[Image(Documentation/GNURadio:rx_1m.dat.jpeg)]] |