This guide covers connecting RTL2832U-based receive-only RTL-SDR USB dongles to a RemoteRF server or host. Support is included in the built-in rtlsdr schema.
Overview
RemoteRF supports RTL-SDR dongles through the built-in rtlsdr schema. Both remoterf-server and remoterf-host bundle PyRtlSdr along with a compatible native librtlsdr library, and clients receive a generated RtlSdr class for tuning, gain control, and synchronous IQ capture.
This built-in driver has been verified on the following models:
- RTL-SDR Blog V3
- RTL-SDR Blog V4
- Nooelec NESDR SMArt v5
Because RTL-SDR dongles use several tuner chips (such as the R820T/R820T2/R828D or E4000) and varying librtlsdr builds, RemoteRF probes optional features (bias tee, direct sampling, offset tuning, and dithering) when a session opens.
To set up an RTL-SDR on a server or host:
- Verify local USB permissions and tuner detection with
rtl_test -tunder the Linux account that runsserverrforhostrf. - Attach the dongle using
serverrf devices add(or by USB serial number). - Restart
serverrforhostrfand test a receive capture from a client.
Install and Detect
1. Install Diagnostic Utilities
The base remoterf-server and remoterf-host packages already include the Python wrapper and native librtlsdr library. To get the rtl_test command-line utility for hardware verification, install rtl-sdr into the active Conda environment on the machine that owns the dongle:
conda activate YOUR_REMOTERF_ENV
conda install -y -c conda-forge rtl-sdr2. Verify Local Detection
Plug in the RTL-SDR dongle and run a quick tuner test without sudo:
rtl_test -trtl_test -t should detect the dongle, identify its tuner chip, and exit without permission or kernel-driver errors. Note the reported serial number (for example, 00000001).
Device Configuration
Add the RTL-SDR to ~/.config/remoterf/devices.yml on the main server (or ~/.config/remoterf/host/devices.yml on a RemoteRF host):
devices:
- device_id: 4
device_type: rtlsdr
name: RTL-SDR FM
init:
serial: "00000001"You can also add the entry via the CLI (using the interactive wizard or non-interactive flags):
# Interactive guided wizard on the server:
serverrf devices add rtl-sdr
# Or non-interactively on the main server (by USB serial):
serverrf devices add rtl-sdr "RTL-SDR FM" --serial 00000001 --id 4
serverrf devices list
# Or on a RemoteRF host (by USB serial):
hostrf --device --add --rtl-sdr "4:RTL-SDR FM:serial=00000001"If your dongle does not have a unique USB serial programmed in EEPROM (or if you have a single dongle with a blank serial), you can select it by its zero-based USB index (init.device_index: 0):
# On the main server (by USB index):
serverrf devices add rtl-sdr "RTL-SDR FM" --index 0 --id 4
# Or on a RemoteRF host (by USB index):
hostrf --device --add --rtl-sdr "4:RTL-SDR FM:index=0"Prefer serial whenever possible, especially on machines with multiple dongles, since USB enumeration indices can change across reboots. When using serverrf devices add, the running server reloads devices automatically; if you edit devices.yml manually (or on a host), restart serverrf -s or hostrf -s.
Verification
Reserve the RTL-SDR from a client machine and test a synchronous IQ capture in Python:
from remoterf.drivers import ensure_driver
token = "RTLSDR_0@ucla"
ensure_driver(token=token)
from remoterf.drivers.rtlsdr import RtlSdr
sdr = RtlSdr(token)
sdr.sample_rate = 2_048_000
sdr.center_freq = 100_000_000
sdr.gain = "auto"
samples = sdr.read_samples(16_384)
print(samples.shape, samples.dtype)read_samples() returns normalized numpy.complex64 IQ samples, while read_bytes() returns raw unsigned 8-bit interleaved IQ bytes (up to 4 MiB per call).
Troubleshooting
| Issue | Resolution |
|---|---|
Kernel DVB driver busy (usb_claim_interface error -6) |
Linux DVB-T drivers (dvb_usb_rtl28xxu) may claim the dongle on plug-in. Unload the module with sudo modprobe -r dvb_usb_rtl28xxu or blacklist dvb_usb_rtl28xxu in /etc/modprobe.d/blacklist-rtlsdr.conf. |
| Permission denied | Install RTL-SDR udev rules, reload with sudo udevadm control --reload-rules && sudo udevadm trigger, reconnect the dongle, and verify rtl_test -t succeeds without sudo. |
Undefined native symbol (e.g., rtlsdr_set_dithering) |
PyRtlSdr loaded an older system librtlsdr. Upgrade remoterf-server or remoterf-host so the bundled native library is used. |
| Serial not found | Check the exact serial reported by rtl_test -t, program a unique serial with rtl_eeprom -s, or fall back to index=0 if only one dongle is attached. |