#3716·rtl_433

RFE: Support switching gain at runtime (like frequency hopping with multiple -f and -H)

Author: devZer0Created Sep 30, 2026Updated Sep 30, 2026

Feature request

rtl_433 can already hop between frequencies during runtime:

-f freq1 -f freq2 -H hop_interval

I would like to have the same for gain, for example:

-g gain1 -g gain2 -H hop_interval

Motivation

I receive several sensors with very different signal strengths. Some are close and strong (a high gain overloads the receiver, RSSI near 0 dB), others are far away or weak (they need a high gain). No single gain value works for all of them.

Current workaround and its problems

I run rtl_433 in a shell loop with different -g values and use -T to end each run. This has several drawbacks:

The SDR device is closed and reopened many times. This seems to be unstable: I see USB errors such as rtlsdr_demod_write_reg failed with -9 and sometimes the stick stops working until it is replugged.

I'm not sure it is good for the hardware to be re-initialized this often.

There are gaps of one to two seconds at every restart, during which packets are lost.

Proposed behavior

Multiple -g values are cycled through at every hop interval (-H), without closing the device.

When combined with multiple -f, it would be useful to be able to define either separate gain values per frequency or independent cycling. Either is fine for my use case.