github gbozo/no-sdr v2.21.1
v2.21.1 — native USB startup reliability

one hour ago

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_SAMPLING now 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.transferKib are now honoured (they were accepted but ignored), so a weak host can tune URB geometry without a rebuild.
  • Pre-4.6 kernels: nusb only claims with USBDEVFS_DISCONNECT_CLAIM, which those kernels lack; the driver now falls back to detach_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 dB on an R820T) and the manager logs where the value came from (gain_from=profile|dongle|auto).
  • rtl_tcp logs 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_probe initialises 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 value with no onChange, 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 SHA256SUMS and a separate SHA256SUMS.desktop. Both used the name SHA256SUMS, and the portable one was never generated, which failed the v2.21.0 release job and dropped SHA256SUMS plus no-sdr-desktop-2.21.0-linux-amd64.deb from that release.

Full Changelog: v2.21.0...v2.21.1

Don't miss a new no-sdr release

NewReleases is sending notifications on new releases.