Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for RTL-SDR Blog V4 #1783

Closed
rtlsdrblog opened this issue Aug 19, 2023 · 8 comments
Closed

Add support for RTL-SDR Blog V4 #1783

rtlsdrblog opened this issue Aug 19, 2023 · 8 comments

Comments

@rtlsdrblog
Copy link

Hi, I've just released the RTL-SDR Blog V4 (https://www.rtl-sdr.com/rtl-sdr-blog-v4-dongle-initial-release/) which is based on the R828D tuner chip. But the hardware is slightly different as it uses a different LO frequency for the R828D compared to what is hardcoded in the drivers, and the RF inputs need to be switched in a different way.

I've created a fork of the Osmocom drivers here https://github.com/rtlsdrblog/rtl-sdr-blog-minimal, and a more heavily modified one here with other unrelated changes https://github.com/rtlsdrblog/rtl-sdr-blog. These repo's were modified to add support for the V4, and the -minimal fork has the minimal amount of changed to make it work. I've submitted a patch to Osmocom to try and upstream the main changes for the V4, but the Osmocom rtl-sdr project might be dead as I see that patch requests have been unanswered for a few years.

If it's not upstreamed is there some other way to support the RTL-SDR Blog V4?

On Windows it's easy as I can just tell users to replace the .dll file, and on Linux users can just update the system RTL-SDR driver. But for MacOS and Android the driver gets shipped with the package, and it's a bit harder to update.

The forked drivers continue to support older RTL-SDRs and other brands/generic models too, nothing has been removed.

@nmaster2042
Copy link

nmaster2042 commented Aug 19, 2023

I think V4 will be usable when building SDRAngel from source, building your fork before of the rtlsdr lib.
If the fork exposes the same functions and settings, it will work, like changing DLL on windows.
I bought a V4 so I'll see if it's actually working like I think.

@rtlsdrblog
Copy link
Author

Compilation from source will work, but I would guess a lot of people are using the MacOS and Android packages which are prepackaged with the older driver.

@srcejon
Copy link
Collaborator

srcejon commented Aug 19, 2023

I ordered one the other day, so will take a look when it arrives.

@rtlsdrblog
Copy link
Author

Just noting that Osmocom replied to my upstream request so it's likely that it will be upstreamed soon. So probably the only changes required will be pulling the Osmocom code when its patched, and updating the packages.

@alphafox02
Copy link

I have one here now. Just tried with SDRAngel and as rtlsdrblog noted, needs updated in SDRAngel.

Outside of SDRAngel it was as simple as pulling the latest osmocom rtlsdr w/ it's changes now and making a deb package for 22.04. I then sudo cp /usr/lib/x86_64-linux-gnu/librtlsdr.* /usr/lib/sdrangel and restarting sdrangel works great.

@srcejon
Copy link
Collaborator

srcejon commented Aug 26, 2023

Patch updates RTLSDR driver and sets lower frequency limit to 0, to support the HF upsampler. Anything else needed?

@rtlsdrblog
Copy link
Author

Yep that's all that's needed, thanks!

@srcejon
Copy link
Collaborator

srcejon commented Sep 4, 2023

Released in 7.15.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants