KejPi / AbracaDABra

Abraca DAB radio: DAB/DAB+ Software Defined Radio (SDR)
MIT License
67 stars 8 forks source link

"Tuner Gain" issue #34

Closed gvanem closed 2 years ago

gvanem commented 2 years ago

When running the official 1.2 version under a debugger (cdb.exe), I note a lot of these qDebug() messages:

[unknown:0] - RTLSDR: Failed to set tuner gain
[unknown:0] - RTLSDR: Failed to set tuner gain
...

Now I've built it myself using clang-cl.exe (x64) and see no such traces. Linked as a console program: AbracaDABra-gv-trace

AFAICS an issue with the librtlsdr that is bundled with this release. Where is it from?

PS. In my build, I use this RTLSDR library using WinUSB directly. No libusb involved.

KejPi commented 2 years ago

RTL-SDR comes from here: https://github.com/osmocom/rtl-sdr.git I have built all my libs in MingGW64 (including also libusb-1.0.25). All was built with gcc. I use the app under Windows 10 most of the time and never saw any problem with gain settings using RTL-SDR dongle v3. I have not seen any problem with Nooelec with E4k tuner either, but I use this dongle under Mac.

EDIT: I have tried with old-dab's version of RTLSDR in past but I had a problem when cancelling the input thread, that is why I stayed with original version. On the other hand, old-dab's version has better AGC handling, I can try it again later nevertheless the version packed in release should work too.

gvanem commented 2 years ago

Not a big deal. Probably some issue with libusb (?). Works like a charm with WinUSB though.