-
Notifications
You must be signed in to change notification settings - Fork 38
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
Enable Direct Sampling #29
Comments
At the moment, there is no such option, but if my quick search on the subject is correct, it should not be difficult to implement this option, as librtlsdr seems to support it. But I also noticed that there are several different methods to achieve "direct sampling" on rtl dongles, so it would be helpful to know a bit more about how do you use direct sampling with other software, what settings do you set, ... I assume you have some sort of a hardware mod to make it work? |
Thanks for the quick response! So with the V3 dongle it comes enabled in the hardware already. rtl_power has the -D option
In gqrx it is enabled by setting the bash variable before starting the app
Hope this helps |
Ok, thank you for info. I will try to help you with this, just have a bit of patience... |
Thank you! Lol. The timing was quite by mistake. Been searching for a few days now how to do this. Well, now I know the best time to open feature requests :P |
I have still some issues trying to test things here, so you will probably have to wait at least till Sunday to hear more from me, but I just got an idea for you to try in the meantime: if you install librtlsdr form https://github.com/librtlsdr/librtlsdr and use it with rtl-power-fftw, the same method of setting environment variable as gqrx uses, should work as well. |
I have now been able to try this method, and librtlsdr seems to correctly pick up the LIBRTLSDR_OPT env variable. |
I confirm this works. Thank you very much. Makes sense to keep the specifics of each device separate. |
Hmm. I have just noticed that it does not seem to get below 12MHz. I am running
and the output headers are:
Saving to binary the .met file shows
|
If I try the above command on my dongle, I get some output on stderr indicating problems:
It would seem that librtlsdr cannot tune device to a lower frequency ... As I have no experience in this direct tuning mode, I can only ask you more about your process:
|
Oh oops! Yes, I did put in the wrong variable. Putting the correct variable I get similar output to yours. rtl_power seems to pick up the LIBRTLSDR_OPT variable but returns -2. Not sure if that is good. I wasn't able to scan a single frequency (not sure how) so did a 1M range. It works but the 1 second minimum is a pain. Just a note: I built this rtl_power as part of librtlsdr from https://github.com/librtlsdr
EDIT: I notice I was supposed to do the single frequency on rtl_power_fttw. Here's the output:
|
I played around a bit and as things were getting weird I started to comprehend the whole problem a little bit more ... So we are back to needing to implement this specific mode in-program, as we can not do it transparently (by only librtlsdr knowing of this option). But this is not by just by setting the direct mode value in librtlsdr, the whole operation of the program (which currently is built around setting of gain and frequency tuning) needs to change. Also, if I understand this correctly, in direct sampling mode, the only relevant settings that have an effect on the measurement itself are: sampling rate, number of samples to be collected and number of bins in the output spectra. Am I correct in this observation? |
Great! Glad you've got a hold on the problem. Unfortunately, I am pretty new to the SDR world and I am out of my depth here. I'm not sure about the settings that affect measurements in direct mode (or in any other mode really). |
By the way would it help if we got you a v3 dongle? |
At the moment, I definitely cannot receive any meaningful direct sampling data with the dongle I have, so in this regard it could help, yes. But on the other hand, shipping to Europe is a bit tedious these days, and I would also need to have a good idea of some reference signal to capture so that it would be useful for testing. I will first try to figure out what others are doing to enable direct sampling, and when I have something ready, I will publish a branch for you to try... Also, another question: have you validated that the data you get from gqrx is comparable to what you get with rtl_power directly? What kind of signal are you trying to measure? |
I think it would be really helpful to have a hw modded dongle so you're not working completely in the dark. I'm not sure what signals you can work with in your area. If there are no signals maybe also getting a signal generator would help. A cheap one is the tinySA spectrum analyzer which has the ability to generate signals as well. On shipping to Europe it would probably be better to just send you $$ and you can purchase how/where works best for you. I haven't validated the data at all tbh. I am currently trying to track some interference.. |
Hi. I hope all is well. Any word on the way forward? |
I would like to use rtl_power_fftw for frequencies below 24MHz. This requires initializing the rtlsdr with direct sampling enabled. Is there a way to enable direct sampling with rtl-power-fftw?
The text was updated successfully, but these errors were encountered: