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

Direct sampling - Q branch #43

Open
G8JNJ opened this issue Jan 6, 2022 · 4 comments
Open

Direct sampling - Q branch #43

G8JNJ opened this issue Jan 6, 2022 · 4 comments

Comments

@G8JNJ
Copy link

G8JNJ commented Jan 6, 2022

Hi,

Very useful software, but would it be possible to add an option to select the RTL I or Q inputs in addition to the 24-1300MHz tuner input ?

The popular RTL-SDR V3 will support direct sampling using this method.

This would be helpful when tracing interference on the shortwave bands.

Thanks for your consideration.

Martin

@pavels
Copy link
Owner

pavels commented Jan 6, 2022

Hi

how should be this implemented actually?

At this point, we are plotting power - for that the code calculates sum of squares of I and Q and further performs more math to take into account sampling and other stuff

I am not the author of the original rtlpower implementation and to be honest, DSP is not my field of expertise - sof if this is to be done, i will need some guidance as to how to actually do it.

@G8JNJ
Copy link
Author

G8JNJ commented Jan 7, 2022

Hi Pavel,

Unfortunately I'm not a software guy, so my knowledge of these things is very limited.

The RTL-SDR V3 takes advantage of the ability to select the I or the Q branch (input) on the RTL2832 chip. In normal use the 820T/T2 tuner chip feeds an IF signal signal only to the I input on the RTL2832. The RTL-SDR V3 (along with some other modified dongles) feeds frequencies <24MHz into the previously unused Q input, and when this input is selected it can provide reception of the short wave bands.

https://www.rtl-sdr.com/rtl-sdr-blog-v-3-dongles-user-guide/

Some versions of rtl_power have command line switches that will allow you to choose between the I or the Q Branch, which are typically along the lines of commands used in rtl_tcp [-i direct sampling(1: I-ADC input enabled), 2: Q-ADC input enabled)]

Such as this

https://github.com/bclswl0827/rtl-sdr

@psa-jforestier
Copy link

Hello.

I would like this feature too.

The rtl-sdr lib have the function rtlsdr_set_direct_sampling to define the sampling mode . From the rtl_power source, the parameter must be set to 2 to enable direct sampling of Q branch. This function is imported in processing-rtlspektrum-lib bust not used in spektrum.

@pavels
Copy link
Owner

pavels commented May 7, 2024

Hi - i will take a look at this - i have very little time for this project now, but i will try

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

No branches or pull requests

3 participants