Native RTL-SDR reliability
Fixes the startup stall loop that kept "rtlsdr endpoint stalled; clearing and resynchronising" repeating until the dongle watchdog gave up — the failure mode seen on older hosts where rtl_tcp worked but the native USB driver did not.
- The bulk endpoint is armed after the profile's startup command batch (the order librtlsdr/rtl_tcp uses). Previously an HF/MW profile first in the list reset the endpoint while 16 transfers were in flight.
SET_DIRECT_SAMPLINGnow cancels and drains the bulk queue before it powers the tuner down and re-inits it.- Stall recovery is bounded at 10 consecutive stalls and reports the rate, link speed and next steps instead of looping forever.
- The USB link speed is logged at open and checked against the requested rate (a full-speed/1.1 link cannot carry >1 MSPS).
source.settings.transfers/source.settings.transferKibare now honoured (they were accepted but ignored), so a weak host can tune URB geometry without a rebuild.- Pre-4.6 kernels:
nusbonly claims withUSBDEVFS_DISCONNECT_CLAIM, which those kernels lack; the driver now falls back todetach_kernel_driver+claim_interface, the pair libusb uses.
Gain and diagnostics
- Gain resolves profile > dongle > automatic in one place, shared by dongle start and profile switch. Profile switches previously skipped the digital AGC (
digitalAgc). - Tenths-of-a-dB conversion rounds instead of truncating.
- The native driver logs the snapped hardware step (e.g.
requested 23.0 dB -> effective 22.9 dBon an R820T) and the manager logs where the value came from (gain_from=profile|dongle|auto). rtl_tcplogs every command at debug and reports the gain-table size (tuner_gain_steps, 29 for an R820T) rather than calling it a gain.cargo run --example rtlsdr_probeinitialises logging, prints speed/geometry/gain steps, and points at rtl_tcp and the transfer overrides on failure.
Client
- Admin → Decoders: the "Add decoder" mode picker keeps its selection (it was a reactive
valuewith noonChange, so a catalog refresh reverted it to FT8), and per-decoder mode/dongle pickers now show the stored value even when the catalog loads later — ACARS/AIS/VDL2 decoders no longer render as FT8. - ADS-B, AIS, VDL2 (messages + stations) and HFDL tables use positional
<Index>rows; the server replaces those arrays twice a second and the old identity-keyed<For>rebuilt every row on each snapshot, which was the table flicker.
CI
- The release job generates a portable
SHA256SUMSand a separateSHA256SUMS.desktop. Both used the nameSHA256SUMS, and the portable one was never generated, which failed the v2.21.0 release job and droppedSHA256SUMSplusno-sdr-desktop-2.21.0-linux-amd64.debfrom that release.
Full Changelog: v2.21.0...v2.21.1