Skip to content

buczek-j/usrp-utils

Repository files navigation

usrp-utils

GNU-Radio and UHD Python3 install

Either install GNU Radio via Pybomb or PPA Installation:

Pybmob Route

Install instructions were taken from from here

sudo apt-get install python3-pip
sudo pip3 install pybombs
pybombs auto-config
pybombs recipes add-defaults
pybombs prefix init ~/prefix-3.8 -R gnuradio-default
source ~/prefix-3.8/setup_env.sh
python3 ~/prefix-3.8/lib/uhd/utils/uhd_images_downloader.py

You can test your installation by connecting your usrp and running the program for a command line fft plotter:

python3 ~/prefix-3.8/lib/uhd/examples/python/curses_fft.py -f 2.4e9

Note that you will need to source the setup_env.sh everytime you open a terminal. So it is recommended to copy the command source ~/prefix-3.8/setup_env.sh into your ~/.bashrc with the command:

echo "source ~/prefix-3.8/setup_env.sh" >> ~/.bashrc

Ubuntu PPA Installation

Install instructions were taken from here

sudo add-apt-repository ppa:gnuradio/gnuradio-releases-3.8
sudo apt-get update
sudo apt install gnuradio

Clone this Repo/Branch

Use the following command to clone this repo at this specific branch and setup BasicArducopter as a submodule:

git clone -b main --recurse-submodules https://github.com/buczek-j/usrp-utils

Useful commands:

To see all locally connected usrp devices: uhd_find_devices

To get more information on connected usrps: uhd_usrp_probe

Troubleshooting

gnu-radio building

If you get the error:

error: ‘get_system_time’ is not a member of ‘uhd::time_spec_t’
       result = uhd::time_spec_t::get_system_time();

When trying to run the command pybombs prefix init ~/prefix-3.8 -R gnuradio-default

uhd_find_devices

If you get the error

[ERROR] [USB] USB open failed: insufficient permissions.

When trying to run uhd_find_devices, then run the commands:

sudo cp ~/prefix-3.8/src/uhd/host/utils/uhd-usrp.rules /etc/udev/rules.d/

sudo udevadm control --reload-rules

sudo udevadm trigger

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published