136 | | Here, the "Signal Source" generates samples for a 1 MHz cosine wave at the flowgraph sample rate, in this case 10 MHz. The samples then go into a "UHD Sink". The "UHD Sink" is what takes the signal samples generated in GNU radio and sends them to the USRP for transmission. Samples are generated |
137 | | |
138 | | When creating this flowgraph, you will need to set values for {{{samp_rate}}} as well as parameters in each of the blocks. Double clicking on a block will bring up an editor for all parameters that a block uses. See below for the parameters used in this experiment for each block: |
139 | | |
140 | | ||||||Figure 1: Gen-2 FDE Canceller Boxes in COSMOS Sandbox 2 || |
141 | | || [[Image(Gen2Architecture.jpg, 280px)]] || [[Image(Gen2Ceiling.jpg, 375px)]] || |
142 | | || (a) The FlexICoN Gen-2 RF Canceller Box and antenna || (b) Rack-mounted, reorganized Gen-2 RF Canceller Box || |
| 138 | Here, the "Signal Source" generates samples for a 1 MHz cosine wave at the flowgraph sample rate, in this case 10 MHz. The samples then go into a "UHD USRP Sink". The "UHD USRP Sink" is what takes the signal samples generated in GNU radio and sends them to the USRP for transmission. |
| 139 | |
| 140 | You can add blocks by clicking the magnifying glass to open a search bar and then search. Drag the block from the list into the flowgraph or double click and it will show up. To make connections, click on a blue tab and drag to another one. |
| 141 | |
| 142 | You will need to set values for {{{samp_rate}}} as well as parameters in each of the blocks. Double clicking on a block will bring up an editor for all parameters that a block uses. See below for the parameters used in this experiment for each block: |
| 143 | |
| 144 | ||||||||Figure 2: Transmitter Flowgraph Parameters || |
| 145 | || [[Image(x310_sb2_tx_usrp_sink.png, 280px)]] || [[Image(x310_sb2_tx_signal_source.png, 280px)]] || [[Image(x310_sb2_tx_options.png, 280px)]] |
| 146 | || (a) UHD USRP Sink || (b) Signal Source || (c) Options || |
| 147 | |
| 148 | Note that in the USRP Sink, we are setting the address to be 192.168.40.2. This is the same address we were setting up the network card interface to be able to communicate with earlier. |
| 149 | |
| 150 | After all of these parameters have been entered, press the green play button. It will prompt you to save the flowgraph, you can save it in the default directory with the filename {{{x310_tx.grc}}}. |
| 151 | |
| 152 | When the flowgraph runs, it should after some seconds open up a new GUI window with nothing on it. This is OK, it is blank simply because we used no GUI blocks. To stop it running, simply close this window. |
| 153 | |
| 154 | ==== Receiver ==== |
| 155 | |
| 156 | Start GNU Radio on {{{node1-2}}}: |
| 157 | |
| 158 | {{{root@node1-2:~# gnuradio-companion}}} |
| 159 | |
| 160 | We want to build a flowgraph that looks like the following: |
| 161 | |
| 162 | ||||Figure 3: Transmitter Flowgraph || |
| 163 | || [[Image(x310_sb2_rx_flowgraph.png, 600px)]] || |
| 164 | |
| 165 | Instead of a USRP Sink, we have a USRP Source. This gives us samples received by the radio receiver at the specified sample rate of 10 MHz. We then feed these samples into a "QT GUI Frequency Sink", which will allow us to see the frequency spectrum of the signal we are receiving. We need the following parameters set up: |
| 166 | |
| 167 | ||||||Figure 4: Transmitter Flowgraph Parameters || |
| 168 | || [[Image(x310_sb2_rx_usrp_source.png, 280px)]] || [[Image(x310_sb2_rx_options.png, 280px)]] || |
| 169 | || (a) UHD USRP Source || (b) Options || |