| 161 | | If the commands ''uhd_find_devices'' & ''uhd_usrp_probe '' return No UHD Devices Found, please refer to the trouble shooting section. |
| 162 | | |
| 163 | | * Set up node1-1 to transmit a single frequency sine wave with a frequency of 100k Hz sampled at a rate of 8 Msamples / second and modulated upto 5000MHz |
| 164 | | {{{ |
| 165 | | ./tx_waveforms --wave-freq 100e3 --wave-type SINE --freq 5000e6 --rate 8e6 |
| | 161 | If the commands ''uhd_find_devices'' & ''uhd_usrp_probe '' return No UHD Devices Found, please refer to the troubleshooting section. |
| | 162 | |
| | 163 | * On node1-1 use the waveform generator to continuously transmit a single frequency sine wave with a frequency of 100k Hz sampled at a rate of 8 MSamples / second and modulated upto 5000MHz |
| | 164 | {{{ |
| | 165 | root@node1-1:~/uhd/host/build/examples# ./tx_waveforms --wave-freq 100e3 --wave-type SINE --freq 5000e6 --rate 8e6 --gain 20 |
| | 166 | |
| | 167 | linux; GNU C++ version 4.6.1; Boost_104601; UHD_003.004.003-0-unknown |
| | 168 | |
| | 169 | |
| | 170 | Creating the usrp device with: ... |
| | 171 | -- Opening a USRP2/N-Series device... |
| | 172 | -- Current recv frame size: 1472 bytes |
| | 173 | -- Current send frame size: 1472 bytes |
| | 174 | Using Device: Single USRP: |
| | 175 | Device: USRP2 / N-Series Device |
| | 176 | Mboard 0: USRP2-REV4 |
| | 177 | RX Channel: 0 |
| | 178 | RX DSP: 0 |
| | 179 | RX Dboard: A |
| | 180 | RX Subdev: XCVR2450 (0x0061) |
| | 181 | TX Channel: 0 |
| | 182 | TX DSP: 0 |
| | 183 | TX Dboard: A |
| | 184 | TX Subdev: XCVR2450 (0x0060) |
| | 185 | |
| | 186 | Setting TX Rate: 8.000000 Msps... |
| | 187 | |
| | 188 | UHD Warning: |
| | 189 | The hardware does not support the requested TX sample rate: |
| | 190 | Target sample rate: 8.000000 MSps |
| | 191 | Actual sample rate: 7.692308 MSps |
| | 192 | Actual TX Rate: 7.692308 Msps... |
| | 193 | |
| | 194 | Setting TX Freq: 5000.000000 MHz... |
| | 195 | Actual TX Freq: 5000.000000 MHz... |
| | 196 | |
| | 197 | Setting TX Gain: 20.000000 dB... |
| | 198 | Actual TX Gain: 20.000000 dB... |
| | 199 | |
| | 200 | Setting device timestamp to 0... |
| | 201 | Checking TX: LO: locked ... |
| | 202 | Press Ctrl + C to stop streaming... |
| | 203 | }}} |
| | 204 | |
| | 205 | * Now set up the USRP2 on node1-2 to sniff the spectrum at 5000MHz using the rx_ascii_art_dft tool |
| | 206 | {{{ |
| | 207 | root@node1-2:~/uhd/host/build/examples# ../../examples/rx_ascii_art_dft --freq 5000e6 --gain 20 --rate 8e6 --frame-rate 10 --ref-lvl -50 --dyn-rng 70 |
| | 208 | }}} |
| | 209 | |
| | 210 | * The output should display a frequency spectrum in the terminal using the ascii art! |
| | 211 | {{{ |
| | 212 | -50 | |
| | 213 | | |
| | 214 | ! | |
| | 215 | ||| |
| | 216 | -60 ||| |
| | 217 | ||| |
| | 218 | ||| |
| | 219 | ||| |
| | 220 | -70 ||| |
| | 221 | ||| |
| | 222 | |||| |
| | 223 | |||| |
| | 224 | -80 !|||||!!. |
| | 225 | ||||||||| |
| | 226 | ||||||||| |
| | 227 | . ||||||||| .| |
| | 228 | !| ||||||||| || |
| | 229 | -90 . !|||.|||||||||.||! : |
| | 230 | :. !| :|||||||||||||||||||:. .| ::| |
| | 231 | . .:.| ||!! ||||.||||||||||||||||||||||| .:|| !||| |
| | 232 | || |||| ||||: |||||||||||||||||||||||||||||||||: ||||. : !| |
| | 233 | -100 .: . ||.||||! ||||||||||||||||||||||||||||||||||||||||.|||||.|: .|| ! . |
| | 234 | .. || ||||:!|||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||| :||.|| |
| | 235 | || || |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ||||:|||||| ! |
| | 236 | . . || .|:|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |.| !||.! | |
| | 237 | -110 !.|:|. ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||:|||.|||||||.: |
| | 238 | ||||||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |
| | 239 | |||||||:||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |
| | 240 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |
| | 241 | -120 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |
| | 242 | dBfs 4997MHz 4998MHz 4999MHz 5000MHz 5001MHz 5002MHz 5003MHz O |
| | 243 | }}} |
| | 244 | |
| | 245 | * Now going back to node1-1, turn off the waveform generator so nothing is transmitted. That is do a ''ctrl-c'' in the node1-1 terminal. The frequency spectrum display on node1-2 should display the noise floor |
| | 246 | {{{ |
| | 247 | -50 |
| | 248 | |
| | 249 | |
| | 250 | |
| | 251 | -60 |
| | 252 | |
| | 253 | |
| | 254 | |
| | 255 | -70 |
| | 256 | |
| | 257 | |
| | 258 | |
| | 259 | -80 |
| | 260 | |
| | 261 | |
| | 262 | |
| | 263 | |
| | 264 | -90 |
| | 265 | |
| | 266 | ! |
| | 267 | :. : : | || | | ! ! |
| | 268 | -100 . |. . .||! | ||! |!:. || :| | | .:|| ! . |
| | 269 | ! |: |!|| | ||||! | |||.||||:||:|| || |:||||::|.| ! !.! .|. |
| | 270 | . :| ||: ::||.||||:|:!||||| |!!||||||||||||||!||:|||||||||||:|:||| :.:.|||||!: | |
| | 271 | | :|:.||:||| ||||||||||||||||||:|||||||||||||||||||||||||||||||||||||| ||||||||||| :: . : . | |
| | 272 | -110 !|:| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||.|||||||||||.||! :|.| | |. |
| | 273 | !| |!|||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ||||| |!||| |. |
| | 274 | || ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ||||| || |
| | 275 | ||:|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||!|||||.|| |
| | 276 | -120 :||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |
| | 277 | dBfs 4997MHz 4998MHz 4999MHz 5000MHz 5001MHz 5002MHz 5003MHz O |