Version 8 (modified by 2 years ago) ( diff ) | ,
---|
Site Navigation
Getting Started with COSMOS SDR Resources
Description
In this tutorial we'll demonstrate how to run a basic wireless experiment using software defined radios in the COSMOS testbed. Two COSMOS nodes will be used: one to transmit a signal, and the other to receive it. This tutorial will also give some information about the basic orbit workflow, so be sure to read to the end.
Prerequisites
All tutorials on the COSMOS wiki assume that you have already created a user account through the new user registration form.
In order to access the test bed, create a reservation on the online scheduler and have it approved by the reservation service. Access to the resources are granted after the reservation is confirmed. Please see the page describing the COSMOS work flow page for more information.
Resources required
For this example we used two USRP 2974 SDRs on sandbox 1. These SDRs have an onboard SOM with an i7 processor, which is the device you're loading the orbit image onto and connecting to over ssh. They also have an fpga connected to the four antennas. We won't have to worry about the specifics of the USRP for this tutorial but you can look at the links on this page for more information.
Tutorial Setup
Follow the steps below to gain access to this console and set up your node with an appropriate image.
- Create a resource reservation for sandbox 1.
- Once your reservation is approved, login into the console using ssh. Since you are using sandbox 1, you will ssh to
YOUR_USERNAME@console.sb1.cosmos-lab.org
- Use OMF commands to load the baseline-uhd.sdr image on your resources.
OMF is a command line utility that is run from the console in order to manage nodes: turn them on and off, save the contents of the hard disk as an "image", and load saved images back onto them.
In this case, we're loading the "baseline-sdr.ndz" image, which is a pre-built image provided for researchers to use as a starting point. The image contains UHD 3.15 and Gnuradio 3.8 and uses Ubuntu 18.04.
omf load -i baseline-sdr.ndz -t sdr2-s1-lg1,sdr2-md1This is a good opportunity to look at the output of the image loading process. At first glance, it can look like a lot of text, but there is some useful information there to help you understand what is going on. Here is the output of running the above command:
We can see from this output that the image loading process has two phases: the first, noted in red, in which OMF is waiting for the nodes to boot up and load a client which will receive the omf image data and write it to disk; and the second, noted in blue, in which OMF actually performs the imaging process. This output shows a successful imaging process— we can tell because of the text noted in pink, which says that the imaging process is done and there were two nodes successfully imaged. The filename displayed there will contain a list of all the nodes which were successfully imaged.
Once in a while, you may see an imaging process where some or all of the nodes fail to image. This can happen because something goes wrong either in the first step (a node fails to boot up and register with the imaging process) or in the second step (the node fails to load the image onto its hard disk). If there is a failure, it will be noted in the output at the end of the imaging process— there will be additional files listed for nodes that fail to check in, and nodes in which imaging failed.
Always check the output to make sure that your nodes were successfully imaged.
- Once the nodes are successfully imaged, turn them on and check the status
omf tell -a on -t sdr2-s1-lg1,sdr2-md1
omf stat -t sdr2-s1-lg1,sdr2-md1
- After waiting for the nodes to power up and boot, you will be able to ssh to them from the console:
NOTE: for some nodes, such as the server machines, it can take several minutes for a node to finish the booting process. This is normal, and you'll have to wait until the nodes is fully booted before you can ssh to it.
ssh root@sdr2-s1-lg1
- Once you have an ssh session on either machine, you can verify that it is the proper type of node by looking at the output of
lshw
:
Experiment Execution
Configure and detect the radio
NOTE: The USRP 2974 requires a PCIe driver to control the FPGA with the embedded PC. In the provided images, this will load automatically on boot. If it has issues, you can run it manually via systemctl restart niusrprio.service
.
Detailed steps for driver installation and radio detection are on the Krypton usage page. There is also a trouble shooting section at the bottom on that page to update the Krypton's internal firmware if necessary.
- Use
uhd_find_devices
to make sure that the onboard x310 SDR is detected:
Attachments (7)
-
lshw.png
(26.1 KB
) - added by 2 years ago.
output of lshw
-
image-save.png
(447.9 KB
) - added by 2 years ago.
Output of image loading
-
find_devices.png
(78.0 KB
) - added by 2 years ago.
Output of uhd_find_devices
-
uhd_probe.png
(177.7 KB
) - added by 2 years ago.
Output of uhd_usrp_probe
-
rx-ascii-no-sig.png
(29.1 KB
) - added by 2 years ago.
Received DFT with no tx
-
rx-ascii-sine-sig.png
(29.9 KB
) - added by 2 years ago.
Received DFT with transmitted sine wave
-
rx-ascii-square-sig.png
(30.0 KB
) - added by 2 years ago.
Received DFT with transmitted square wave
Download all attachments as: .zip