{"id":395,"date":"2025-08-22T04:55:40","date_gmt":"2025-08-22T04:55:40","guid":{"rendered":"https:\/\/mingyueji.ece.ufl.edu\/?page_id=395"},"modified":"2025-08-22T04:55:40","modified_gmt":"2025-08-22T04:55:40","slug":"gnu-radio-installation","status":"publish","type":"page","link":"https:\/\/faculty.eng.ufl.edu\/mingyueji\/teaching\/ece4514c-communication-systems-and-components-fall-2025\/gnu-radio-installation\/","title":{"rendered":"GNU Radio Installation"},"content":{"rendered":"<h1 class=\"page-title\">GNU Radio Installation for Mac (Intel and M1\/2\/3\/4)<\/h1>\n<div id=\"todo-date-mount-point\">&nbsp;<\/div>\n<p>I recommend you install Gnu Radio using Anaconda (instructions to install Anaconda linked&nbsp;<a class=\"instructure_file_link inline_disabled external\" href=\"https:\/\/docs.anaconda.com\/anaconda\/install\/windows\/\" target=\"_blank\" rel=\"noopener\">here<span class=\"external_link_icon\" role=\"presentation\">&nbsp;<span class=\"screenreader-only\">Links to an external site.<\/span><\/span><\/a>), which will also install a recent version of Python and its associated scientific computing libraries.<\/p>\n<p>After installing Anaconda, open the Terminal application. If the install worked correctly, then you should be able to use the&nbsp;<code>conda<\/code>&nbsp;commands below to create a new Anaconda environment for the GNU Radio installation:<\/p>\n<p><code>conda create --name gr<\/code><\/p>\n<p><code>conda activate gr<\/code><\/p>\n<p><strong>Note<\/strong>: you can use any environment name that you would like, &#8220;gr&#8221; is just a suggestion<\/p>\n<p>Then, enter the following commands to install both GNU Radio and the additional Osmocom blocks needed to use the dongle:<\/p>\n<p><code>conda install -c conda-forge gnuradio<\/code><\/p>\n<p><code>conda install -c conda-forge gnuradio-osmosdr<\/code><\/p>\n<p>After finishing this step, you should be able to type `gnuradio-companion` into the terminal to start the Gnu Radio Companion (GRC) application.<\/p>\n<p>Whenever you start a new Terminal session, you will need to type<code>&nbsp;conda activate gr<\/code>&nbsp;to activate the environment where you have GRC and the osmosdr software installed.<\/p>\n<p>Once you have your dongle, connect and extend the antenna, plug the dongle into the computer, &nbsp;open the Terminal app, activate the environment (run&nbsp;<code>conda activate gr<\/code>), and type the command below into the Terminal:<\/p>\n<p><code>osmocom_fft -f 89.1M --averaging --peak-hold -g 40 -s 1.018M<\/code><\/p>\n<p>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&#8217;s FM radio station that is at that frequency.<\/p>\n<h1 class=\"page-title\">GNURadio Installation (Windows)<\/h1>\n<div id=\"todo-date-mount-point\">&nbsp;<\/div>\n<p>The&nbsp;<a class=\"instructure_file_link inline_disabled external\" href=\"https:\/\/wiki.gnuradio.org\/index.php\/WindowsInstall\" target=\"_blank\" rel=\"noopener\">GNU Radio Wiki WindowsInstall Page<span class=\"external_link_icon\" role=\"presentation\">&nbsp;<span class=\"screenreader-only\">Links to an external site.<\/span><\/span><\/a>provides several ways to install GNU Radio on a Windows machine. I suggest to try one of these two methods:<\/p>\n<p><strong>If you do not already have Anaconda installed:<\/strong><\/p>\n<p>I would recommend you try&nbsp;the Windows Radioconda Installer from here:&nbsp;<a class=\"c-link external\" href=\"https:\/\/wiki.gnuradio.org\/index.php?title=InstallingGR\" target=\"_blank\" rel=\"noopener\" data-stringify-link=\"https:\/\/wiki.gnuradio.org\/index.php?title=InstallingGR\" data-sk=\"tooltip_parent\">https:\/\/wiki.gnuradio.org\/index.php?title=InstallingGR <\/a><\/p>\n<p><a class=\"c-link external\" href=\"https:\/\/wiki.gnuradio.org\/index.php?title=InstallingGR\" target=\"_blank\" rel=\"noopener\" data-stringify-link=\"https:\/\/wiki.gnuradio.org\/index.php?title=InstallingGR\" data-sk=\"tooltip_parent\"><span class=\"external_link_icon\" role=\"presentation\"> <span class=\"screenreader-only\">Links to an external site.<\/span><\/span><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>If you already are using Anaconda:<\/strong><\/p>\n<p>You can try the following:<\/p>\n<p>Open the Anaconda prompt (type &#8220;Anaconda prompt&#8221; into the search bar in the Windows taskbar). Update your base conda environment:<\/p>\n<pre>conda update -n base conda<\/pre>\n<p>Then install libmamba as the solver:<\/p>\n<pre>conda install -n base conda-libmamba-solver\nconda config --set solver libmamba<\/pre>\n<p>Create a new Anaconda environment for the GNU Radio installation by entering the following commands (from&nbsp;<a class=\"instructure_file_link inline_disabled external\" href=\"https:\/\/github.com\/conda\/conda\/issues\/9004\" target=\"_blank\" rel=\"noopener\">Github Issue Discussion<span class=\"external_link_icon\" role=\"presentation\">&nbsp;<span class=\"screenreader-only\">Links to an external site.<\/span><\/span><\/a>):<\/p>\n<p><code>conda create --name myenv<\/code><\/p>\n<p><code>conda activate myenv<\/code><\/p>\n<p><strong>Note<\/strong>: you can use any environment name that you would like, &#8220;myenv&#8221; is just a placeholder.<\/p>\n<p>Then, enter the following commands to install both GNU Radio and the additional Osmocom blocks needed to use the dongle:<\/p>\n<p><code>conda install -c conda-forge gnuradio<\/code><\/p>\n<p><code>conda install -c conda-forge gnuradio-osmosdr<\/code><\/p>\n<p>&nbsp;<\/p>\n<p>After installing, you should be able to type &#8220;GNU Radio Companion&#8221; 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.<\/p>\n<p>Once you have your dongle, plug it in to the computer, open the Anaconda prompt, activate the environment (run&nbsp;<code>conda activate myenv<\/code>), and type&nbsp;<code>rtl_test<\/code>.<\/p>\n<p>If this fails (with error message similar to&nbsp;<em>Failed to open rtlsdr device<\/em>),&nbsp;it is likely that the drivers for the dongle need to be reinstalled. To do this, the instructions provided&nbsp;<a class=\"instructure_file_link inline_disabled external\" href=\"https:\/\/www.rtl-sdr.com\/getting-the-rtl-sdr-to-work-on-windows-10\/\" target=\"_blank\" rel=\"noopener\">here<span class=\"external_link_icon\" role=\"presentation\">&nbsp;<span class=\"screenreader-only\">Links to an external site.<\/span><\/span><\/a>can be used.&nbsp;<\/p>\n<p>After updating the driver, try to run&nbsp;<code>rtl_test<\/code>&nbsp;again (after a few seconds, use Ctrl+C to exit). If you get error messages talking about &#8220;lost bytes&#8221;, this shouldn&#8217;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&nbsp;<code>rtl_test -s 264800<\/code>to run the test using a sample rate of 264.8kHz.&nbsp;<\/p>\n<p>After updating the driver, you should be all set!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GNU Radio Installation for Mac (Intel and M1\/2\/3\/4) &nbsp; I recommend you install Gnu Radio using Anaconda (instructions to install Anaconda linked&nbsp;here&nbsp;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 [&hellip;]<\/p>\n","protected":false},"author":1389,"featured_media":0,"parent":383,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"featured_post":"","footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-395","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/faculty.eng.ufl.edu\/mingyueji\/wp-json\/wp\/v2\/pages\/395","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/faculty.eng.ufl.edu\/mingyueji\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/faculty.eng.ufl.edu\/mingyueji\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/faculty.eng.ufl.edu\/mingyueji\/wp-json\/wp\/v2\/users\/1389"}],"replies":[{"embeddable":true,"href":"https:\/\/faculty.eng.ufl.edu\/mingyueji\/wp-json\/wp\/v2\/comments?post=395"}],"version-history":[{"count":0,"href":"https:\/\/faculty.eng.ufl.edu\/mingyueji\/wp-json\/wp\/v2\/pages\/395\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/faculty.eng.ufl.edu\/mingyueji\/wp-json\/wp\/v2\/pages\/383"}],"wp:attachment":[{"href":"https:\/\/faculty.eng.ufl.edu\/mingyueji\/wp-json\/wp\/v2\/media?parent=395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}