Archive | SDR RSS feed for this section

Sceptre on Fedora 36

17 Sep
sudo dnf install bzip2-devel
sudo ln -s /usr/lib64/ /usr/lib64/
sudo dnf install python2.7

Setting up Ettus USRP X300

18 Dec

Increase Socket Buffers
sudo vi /etc/sysctl.conf
# Increase buffers for USRP

Realtime Priority
sudo vi /etc/security/limits.conf
# Add for USRP realtime priority
myusername - rtprio 99

Will require re-login

Adjust Ethernet MTU

Note intervening switches need jumbo frames enabled.

Set CPU Performance
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

Change GRUB
sudo vi /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="pti=off spectre_v2=off l1tf=off nospec_store_bypass_disable no_stf_barrier"
sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Updating Firmware and FPGA
uhd_usrp_probe --args "addr="
sudo /usr/local/lib64/uhd/utils/
/usr/local/bin/uhd_image_loader --args="type=x300,addr="

Cycle power on the USRP

cd /usr/local/lib64/uhd/examples
./benchmark_rate --rx_rate 100E6 --tx_rate 100E6 --args "addr="


Setting up the Airspy R2

4 Jun

Add udev Rules
sudo vi /etc/udev/rules.d/99-airspy.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60a1", MODE:="0666"
sudo udevadm control --reload-rules

CMakeLists.txt for

30 May

If you want to compile outside of either the GR source tree or OOT module, this is the minimum required CMakeLists.txt (courtesy of Johnathan Corgan)

cmake_minimum_required(VERSION 2.6)
project(dialtone CXX)

find_package(Boost "1.35" COMPONENTS system)
find_package(Gnuradio "3.7.2" REQUIRED)


target_link_libraries(dialtone ${Boost_LIBRARIES} ${GNURADIO_ALL_LIBRARIES})

Setting up the Ettus USRP E310

29 Jun

Add udev Rules for E310 Serial Console
sudo vi /etc/udev/rules.d/99-usrp-e310.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", MODE:="0666"
sudo udevadm control --reload-rules

Serial Console Login
Plug in power and wait a few seconds for E310 to boot, then plug in microUSB.
dmesg to figure out the assigned serial port (i.e. /dev/ttyUSB4)
screen /dev/ttyUSB4 115200
Login as root

Setting Static IP
vi /etc/network/interfaces
# Wired or wireless interfaces
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
iface eth1 inet dhcp

/etc/init.d/networking stop


21 Dec

Pulse Audio
Prior to installation of gqrx make sure pulseaudio is available during build by installing the following:

Install gqrx
git clone
cd gqrx
mkdir build
cd build
qmake-qt5 ..
make -j8
sudo make install

Typical device strings
For the b200:

For the X310 with LFRX in slot 2:

For the X310 with WBX in slot 1:

For the N210 with LFRX:

When switching between devices in gqrx the gain control changes will segfault the application.  Fix this by deleting the “gains” section in:

Sending gqrx audio to fldigi
Install fldigi with yum

Configure fldigi sound card to use pulseaudio, leaving server string empty

Launch pulseaudio volume control, and under recording tab, fldigi capture from monitor of built-in audio analog stereo, and set level to 0 dB.

Adjust fldigi waterfall upper signal level and signal range.

Sending gqrx audio to UDP

Streaming audio over UDP

Configure the network settings in the Network tab of the audio settings window:
UDP host: localhost
UDP port: 7355

Verify the data is coming through at the opposite end using netcat:
nc -l -u 7355
nc -l -u localhost 7355
nc -l -u 7355

Pipe the output of netcat to other applications.
The following example will send the audio to the ALSA player application:
nc -l -u 7355 | aplay -r 48k -f S16_LE -t raw -c 1

The following command line will re-sample the raw audio to 22.05 kHz and send it to multimon-ng and decode POCSAG data (thanks to André Schmelzer for this):
nc -l -u 7355 | \
sox -t raw -esigned-integer -b16 -r 48000 - -esigned-integer -b16 -r 22050 -t raw - | \
multimon-ng -t raw -a SCOPE -a POCSAG512 -a POCSAG1200 -a POCSAG2400 -f alpha -

Setting up the Ettus USRP B200

10 Jun

Add udev Rules
sudo vi /etc/udev/rules.d/99-usrp-b200.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2500", ATTRS{idProduct}=="0020", MODE:="0666"
sudo udevadm control --reload-rules

Realtime Priority
sudo vi /etc/security/limits.conf
# Add for USRP realtime priority
myusername – rtprio 99

Will require re-login

Update Firmware
sudo /usr/local/lib64/uhd/utils/

uhd_find_devices --args="type=b200"

cd /usr/local/lib64/uhd/examples
./benchmark_rate --rx_rate 60E6 --args "type=b200, master_clock_rate=60E6"

Baudline Tips

20 Apr

Install extra Fedora fonts
sudo yum install xorg-x11-fonts-misc
sudo yum install xorg-x11-fonts-ISO8859-1-75dpi

Reading data file from GNU Radio
GNU Radio file sink with input type complex writes IEEE 754 single-precision floats:
f = scipy.fromfile(open("filename"), dtype=scipy.complex64)

Baudline file raw parameters
Decompression: OFF
Initial byte offset: 0
Sample Rate: custom
Channels: 2
Quadrature: ON
Flip Complex: ON
Decode Format: 32 bit float, little endian
Normalization: 1 maximum sample value

GNURadio Tricks

20 Apr

Dynamic recording of files
Create a QT GUI Check Box with ID “Record” and set type to Boolean, and Default Value to False.

Create a variable with ID “file_name” and set Value to:
'data.bin' if Record==True else '/dev/null'

Create a File Sink with file “file_name”

USRP N210 and HDSDR Setup

10 Feb

Notes on setup of HDSDR software with the USRP N210 via the ExtIO interface

Instructions here

Click to access application_note_usrp_and_hdsdr_spectrum_monitoring.pdf

Configuration as of 7/23/2013
Window 7 64-bit
Ettus USRP N210 Rev 4
UHD 003.005.003 for Windows
UHD 003.005.000 for USRP
HDSDR 2.63
ExtIO USRP 1.5.1

Install UHD driver for Windows
Install uhd_003.005.003-release_Win64.exe from:
This will place utility file in C:\Program Files (x86)\UHD\share\uhd\utils\

Install ExtIO compatible UHD for USRP
As of 7/23/2013 must use UHD 003.005.000 from:

Unzip and copy usrp_n210_fw.bin and usrp_n210_r4_fpga.bin to C:\Program Files (x86)\UHD\share\uhd\utils\

Open up a shell and cd to C:\Program Files (x86)\UHD\share\uhd\utils\

Run the following:
usrp_n2xx_simple_net_burner --addr --fw usrp_n210_fw.bin --fpga usrp_n210_r4_fpga.bin

Install HDSDR

Install ExtIO

Update USRP firmware before returning to GNU Radio
Running usrp_n2xx_simple_net_burner.exe will download and update USRP with the the latest firmware

Windows shortcut
Install USRP ExtIO Firmware
"C:\Program Files (x86)\UHD\share\uhd\utils\usrp_n2xx_simple_net_burner.exe" --addr "" --fw "usrp_n210_fw.bin" --fpga "usrp_n210_r4_fpga.bin"

Windows shortcut
Restore USRP Latest Firmware
"C:\Program Files (x86)\UHD\share\uhd\utils\usrp_n2xx_simple_net_burner.exe" --addr ""