Just realized my patch attachments are getting scrubbed by the list. Hopefully this plain text paste works.
diff --git a/lib/rtl/rtl_source_c.cc b/lib/rtl/rtl_source_c.cc index 5e3306b..644bf7a 100644 --- a/lib/rtl/rtl_source_c.cc +++ b/lib/rtl/rtl_source_c.cc @@ -455,6 +455,8 @@ double rtl_source_c::get_sample_rate() osmosdr::freq_range_t rtl_source_c::get_freq_range( size_t chan ) { osmosdr::freq_range_t range; + char manufact[256]; + char product[256];
if (_dev) { if (_no_tuner) { @@ -464,6 +466,8 @@ osmosdr::freq_range_t rtl_source_c::get_freq_range( size_t chan ) return range; }
+ rtlsdr_get_usb_strings( _dev, manufact, product, NULL ); + enum rtlsdr_tuner tuner = rtlsdr_get_tuner_type(_dev);
if ( tuner == RTLSDR_TUNER_E4000 ) { @@ -478,6 +482,8 @@ osmosdr::freq_range_t rtl_source_c::get_freq_range( size_t chan ) range += osmosdr::range_t( 438e6, 924e6 ); } else if ( tuner == RTLSDR_TUNER_R820T ) { range += osmosdr::range_t( 24e6, 1766e6 ); + } else if ( tuner == RTLSDR_TUNER_R828D && strcmp(manufact, "RTLSDRBlog") == 0 && strcmp(product, "Blog V4") == 0 ) { + range += osmosdr::range_t( 0e6, 1766e6 ); } else if ( tuner == RTLSDR_TUNER_R828D ) { range += osmosdr::range_t( 24e6, 1766e6 ); }
Regards, Carl
On Thu, Aug 31, 2023 at 12:06 AM osmocom-sdr-request@lists.osmocom.org wrote:
Send osmocom-sdr mailing list submissions to osmocom-sdr@lists.osmocom.org
To subscribe or unsubscribe via email, send a message with subject or body 'help' to osmocom-sdr-request@lists.osmocom.org
You can reach the person managing the list at osmocom-sdr-owner@lists.osmocom.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of osmocom-sdr digest..."
Today's Topics:
- [PATCH] Adjust gr-osmosdr lower tuning limit for the RTL-SDR Blog V4 (Carl Laufer)
Message: 1 Date: Wed, 30 Aug 2023 23:55:57 +1200 From: Carl Laufer admin@rtl-sdr.com Subject: [PATCH] Adjust gr-osmosdr lower tuning limit for the RTL-SDR Blog V4 To: osmocom-sdr@lists.osmocom.org Message-ID: CAP8SZq0i9JGFpBgvgHLfBeoTUoec0+XGoVh3Vr=_GQYqiJeL6Q@mail.gmail.com Content-Type: multipart/mixed; boundary="00000000000077e36a0604229e75"
Patch to detect the RTL-SDR Blog V4 in gr-osmosdr, and set the lower limit to 0 MHz.
Regards, Carl