On Friday, May 14, 2021 7:29:03 PM EEST Luca Attanasio wrote:
> Thanks a lot. So to have a capture behaviour similar to GQRX from command
> line is it possible to use`rtl_power`? I saw that the integration time (-i
> integration_interval) cannot be less than 1s and it seems like GQRX has a
> much lower value for that (am I right?). The range I have to capture is
> relatively short (1MHz). I also tried `rtl_power_fftw` but it behaves
> similarly.
> By the way, since I only use rtl_sdr I see it pointless to use `rx_power`
> from `rx_tools` based on SoapySDR.
I'm not familiar with the rtl programs, you might have to read the source code
if it's not obvious from the documentation.
I think the Gqrx FFT block has changed recently so Clayton might correct me if
I'm wrong, but in GNU radio the way it works is like this: upstream blocks
pass a buffer of samples which usually has an automatic size which might be
different to the FFT buffer size. There is an internal accumulator which has the
same size as the FFT size (power of 2 value set by the user from the
interface). For example 32768. Once there are enough samples in this
accumulator, the FFT is computed and the points which represent power are
passed to the GUI for rendering.
There is a tradeoff between FFT resolution (number of points) and the time
required to get the FFT values for a given sample rate, because the samples
arrive at a particular rate (the sample rate). If the sample rate is the same
as the FFT size, it will take one second to get the samples needed to perform
the FFT, plus the computation time overhead. Generally, to increase FFT
resolution and keep the same time for FFT computation, you need to also
increase the sample rate and it will take more computing power.
I think that nowadays Gqrx has a setting called FFT overlap which allows the
GUI display to run faster than the FFT computation rate, by displaying the
same FFT values on a subsequent frame, when the new FFT data is not yet ready.
A little fuzzy on details here since I haven't looked at Gqrx source code in a
while.
Best regards,
Adrian