| 1 | == Using two RFNoC streams simultaneously on a single USRP device == |
| 2 | |
| 3 | === Description === |
| 4 | |
| 5 | This example shows how to run two concurrent streams (RX or TX) on a single USRP device using GNU Radio on Orbit Wireless Testbed. The example assumes usage of node 21-1 on the Grid, along with the USRP node 23-1. However, any node connected to a USRP X310 may be used instead. Information on SDR availability on particular nodes can be found on [https://www.orbit-lab.org/cPanel/controlPanel/start Orbit] by clicking on ''Status Page'', then on ''grid'', and then filtering the displayed nodes by SDR devices equipped. |
| 6 | |
| 7 | === Set Up === |
| 8 | |
| 9 | 1. Make a reservation on [https://www.orbit-lab.org/cPanel/controlPanel/start Orbit] to use the Grid. |
| 10 | 2. Make sure the node of interest is turned off: |
| 11 | {{{username@console.grid:~$ omf tell -a offh -t node21-1}}} |
| 12 | 3. Load the ''rfnoc-tutorial.ndz'' image onto the node. Note that this process might take several minutes. |
| 13 | {{{username@console.grid:~$ omf load -i rfnoc-tutorial.ndz -t node21-1}}} |
| 14 | 4. Turn on the node. After issuing the "on" command, wait a couple of minutes for the node to boot up. |
| 15 | {{{username@console.grid:~$ omf tell -a on -t node21-1}}} |
| 16 | 5. Connect to the node using SSH with X11 tunneling enabled: |
| 17 | {{{username@console.grid:~$ ssh -Y root@node21-1}}} |
| 18 | |
| 19 | === Running the Simulation === |
| 20 | |
| 21 | After the node is imaged, make sure the USRP device connected at 10.10.23.1 is imaged with the required RFNoC FPGA image. The implemented RFNoC blocks on the currently loaded image can be checked by running |
| 22 | |
| 23 | {{{uhd_usrp_probe --args "type=x300,addr=10.10.23.1"}}} |
| 24 | |
| 25 | The RFNoC blocks will be shown at the very end of the listing that appears. If the required blocks are not listed, the image that contains several useful blocks can be loaded by running |
| 26 | |
| 27 | {{{uhd_image_loader --fpga-path /usr/local/share/uhd/images/usrp_x310_fpga_RFNOC_HG.bit --args "type=x300,addr=10.10.23.1"}}} |
| 28 | |
| 29 | When a new image is loaded, the USRP needs to be power cycled. In order to do this, run the following commands from the grid console (not from the node21-1 itself): |
| 30 | |
| 31 | {{{ |
| 32 | username@console.grid:~$ omf tell -a offh -t node23-1 |
| 33 | username@console.grid:~$ omf tell -a on -t node23-1 |
| 34 | }}} |
| 35 | |
| 36 | |
| 37 | || [[Image(s2.png, width=500px)]] || |