| 2 | |
| 3 | === Description === |
| 4 | This tutorial shows a simple radio example - transmit a sine wave using an USRP X310 on ORBIT SB2, receive it on another X310 and view it. |
| 5 | |
| 6 | === Set Up === |
| 7 | Make a reservation on the [https://www.orbit-lab.org/schedule/ Orbit Scheduler] for using SB2. |
| 8 | ==== Prepare the nodes ==== |
| 9 | * Load baseline-uhd-3_13.ndz on nodes 1-1 and 1-2. |
| 10 | {{{ |
| 11 | prasanthi@console.sb2:~$ omf load -i baseline-uhd-3_13.ndz -t node1-1,node1-2 |
| 12 | }}} |
| 13 | * Once imaging is done, turn the nodes on and log in |
| 14 | {{{ |
| 15 | prasanthi@console.sb2:~$ omf tell -a on -t node1-1,node1-2 |
| 16 | prasanthi@console.sb2:~$ ssh root@node1-1 |
| 17 | }}} |
| 18 | |
| 19 | ==== Prepare network setup for USRP access ==== |
| 20 | |
| 21 | |
| 22 | |
| 23 | === Run the experiment === |
| 24 | * Run rfnoc_spec_sense_display on the receive node. The command below starts the application to receive spectrum sensing samples from 4 USRP X310s at 100MSPS. |
| 25 | {{{ |
| 26 | root@node1-19:~/uhd/host/build/examples# ./rfnoc_spec_sense_display --args="addr0=10.10.23.11,addr1=10.10.23.12,addr2=10.10.23.13,addr3=10.10.23.14,skip_ddc,skip_duc" --freq 5e9 --gain 15 --ddc-args="input_rate=200000000.0,output_rate=100000000.0" --num-usrp 4 --spec-sense-args="avg_size=256" |
| 27 | }}} |
| 28 | * Run rfnoc_spreader on the transmit node. The command below starts the application to send a 50MHz wide PN signal on node23-17. |
| 29 | {{{ |
| 30 | root@node1-20:~/uhd/host/build/examples# ./rfnoc_spreader --args="addr=10.10.23.17,skip_ddc,skip_duc" --freq 5e9 --gain 15 --duc-args="input_rate=50000000.0,output_rate=200000000.0" |
| 31 | }}} |
| 32 | * Download spec_sense_display.html and open it in your browser. Once you click the Start button, you should see power spectrum display as shown below. |
| 33 | |
| 34 | || [[Image(spec_sense_display.jpg)]]|| |
| 35 | |