GNU Radio Installation for Mac (Intel and M1/2/3/4)
I recommend you install Gnu Radio using Anaconda (instructions to install Anaconda linked here Links to an external site.), which will also install a recent version of Python and its associated scientific computing libraries.
After installing Anaconda, open the Terminal application. If the install worked correctly, then you should be able to use the conda commands below to create a new Anaconda environment for the GNU Radio installation:
conda create --name gr
conda activate gr
Note: you can use any environment name that you would like, “gr” is just a suggestion
Then, enter the following commands to install both GNU Radio and the additional Osmocom blocks needed to use the dongle:
conda install -c conda-forge gnuradio
conda install -c conda-forge gnuradio-osmosdr
After finishing this step, you should be able to type `gnuradio-companion` into the terminal to start the Gnu Radio Companion (GRC) application.
Whenever you start a new Terminal session, you will need to type conda activate gr to activate the environment where you have GRC and the osmosdr software installed.
Once you have your dongle, connect and extend the antenna, plug the dongle into the computer, open the Terminal app, activate the environment (run conda activate gr), and type the command below into the Terminal:
osmocom_fft -f 89.1M --averaging --peak-hold -g 40 -s 1.018M
If everything is working right, you should see a window showing the power across a frequency band centered at 89.1 MHz. There should be a bit of a peak at 89.1 MHz because of UF’s FM radio station that is at that frequency.
GNURadio Installation (Windows)
The GNU Radio Wiki WindowsInstall Page Links to an external site.provides several ways to install GNU Radio on a Windows machine. I suggest to try one of these two methods:
If you do not already have Anaconda installed:
I would recommend you try the Windows Radioconda Installer from here: https://wiki.gnuradio.org/index.php?title=InstallingGR
If you already are using Anaconda:
You can try the following:
Open the Anaconda prompt (type “Anaconda prompt” into the search bar in the Windows taskbar). Update your base conda environment:
conda update -n base conda
Then install libmamba as the solver:
conda install -n base conda-libmamba-solver conda config --set solver libmamba
Create a new Anaconda environment for the GNU Radio installation by entering the following commands (from Github Issue Discussion Links to an external site.):
conda create --name myenv
conda activate myenv
Note: you can use any environment name that you would like, “myenv” is just a placeholder.
Then, enter the following commands to install both GNU Radio and the additional Osmocom blocks needed to use the dongle:
conda install -c conda-forge gnuradio
conda install -c conda-forge gnuradio-osmosdr
After installing, you should be able to type “GNU Radio Companion” into the search bar in the Windows taskbar and open the program. However, it is very likely that the dongle will not work yet. This is because you may have to change the default driver it uses.
Once you have your dongle, plug it in to the computer, open the Anaconda prompt, activate the environment (run conda activate myenv), and type rtl_test.
If this fails (with error message similar to Failed to open rtlsdr device), it is likely that the drivers for the dongle need to be reinstalled. To do this, the instructions provided here Links to an external site.can be used.
After updating the driver, try to run rtl_test again (after a few seconds, use Ctrl+C to exit). If you get error messages talking about “lost bytes”, this shouldn’t be a problem. If you want to get rid of these messages, try using the -s option to specify the sampling rate. For example, type rtl_test -s 264800to run the test using a sample rate of 264.8kHz.
After updating the driver, you should be all set!