LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

rtl_sdr

Capture raw radio samples with RTL-SDR dongle

TLDR

Capture to file
$ rtl_sdr -f [100M] [capture.bin]
copy
Set sample rate
$ rtl_sdr -f [100M] -s [2.4M] [capture.bin]
copy
Set gain
$ rtl_sdr -f [100M] -g [40] [capture.bin]
copy
Capture duration
$ rtl_sdr -f [100M] -n [1000000] [capture.bin]
copy
Frequency offset correction
$ rtl_sdr -f [100M] -p [55] [capture.bin]
copy
Select device
$ rtl_sdr -d [0] -f [100M] [capture.bin]
copy
Direct sampling mode
$ rtl_sdr -f [3M] -D [2] [capture.bin]
copy

SYNOPSIS

rtl_sdr [-f freq] [-s rate] [-g gain] [options] output

DESCRIPTION

rtl_sdr captures raw radio signals using RTL-SDR dongles, which are inexpensive USB devices based on the RTL2832U chipset originally designed for DVB-T television reception. By reading raw I/Q (in-phase/quadrature) samples from the device, it enables software-defined radio experimentation across a wide frequency range, typically 24 MHz to 1766 MHz depending on the tuner chip.The tool writes raw 8-bit I/Q sample data to a file or stdout, which can then be processed by other applications to decode various signal types including FM radio, ADS-B aircraft tracking, weather satellites, and pager systems. The sample rate parameter controls the bandwidth captured, with higher rates covering more spectrum but requiring more USB bandwidth and storage.Gain and frequency correction parameters help optimize reception quality. Setting gain to zero enables automatic gain control, while manual values allow fine-tuning for specific signals. The PPM correction compensates for the oscillator frequency error inherent in low-cost dongles, which can be calibrated against a known reference signal.

PARAMETERS

-f FREQ

Center frequency (Hz).
-s RATE
Sample rate (Hz).
-g GAIN
Gain (0 for auto).
-n SAMPLES
Number of samples.
-p PPM
Frequency correction.
-d INDEX
Device index.
-D MODE
Direct sampling mode.
-S
Enable synchronous mode.

INSTALL

sudo apt install rtl-sdr
copy
sudo dnf install rtl-sdr
copy
sudo pacman -S rtl-sdr
copy
sudo apk add rtl-sdr
copy
sudo zypper install rtl-sdr
copy
brew install rtl-sdr
copy
nix profile install nixpkgs#rtl-sdr
copy

CAVEATS

Requires RTL-SDR compatible device. USB bandwidth limits sample rate. Heat affects frequency stability.

HISTORY

rtl_sdr is part of librtlsdr, enabling RTL2832U-based DVB-T dongles for SDR. Created by Steve Markgraf and others, it revolutionized accessible software-defined radio.

SEE ALSO

rtl_fm(1), rtl_power(1), gqrx(1), gnuradio(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid