Hi Sylvain,
I have no idea why the call is so slow for you. Here it is
pretty fast under Windows as well as under Linux.
The callback
rtlsdr_callback(unsigned char *buf, uint32_t len, void *ctx)
has the value 32768 for len with the standard parameters
in Linrad. Even if I increase to 524288, the time to call
rtlsdr_set_center_freq() remains 40 milliseconds in
Linrad.
I am using mingw32 and I had problems generating libusb.a due
to some bug I have now forgotten about. Maybe you would get a
better response with the libusb.a that you can find in linrad-libs here:
http://www.sm5bsz.com/linuxdsp/install/compile/wincompile.htm
(The source code is at the bottom of the page and the changes
are in libusb/os/poll_windows.c)
Regards
Leif
> Thanks for the tips. The delay I am talking about is the time required just
> to process this call :
>
> /*.......*/
> rc = rtlsdr_set_center_freq(rtlsdr_device, fMHZ*1e6 + fHZ );
> /*.....*/
> this very simple call is taking several hundreds of milliseconds, sampling
> at 1MSPS
>
> regards
> sylvain
>
>
> 2013/7/4 jdow <
jd...@earthlink.net>
>
> > The number of bytes stored up in buffers already queued for processing
> > will make a huge difference in the apparent time to change frequencies.
> >
> > 1 megabyte of buffers at 1 Msps will take 1 second to clear. Cut the
> > number of buffers used to a bare minimum and you'll be able to scan
> > quicker.
> >
> > Track down the other sources of latency and you can probably speed the
> > system even more. Although if you use an FFT to pinpoint signals within
> > the 1 MHz band (maybe 800 kHz usable) at 1 Msps you get another one
> > quarter second of latency if you use 262144 FFT bins.
> >
> > {^_^}
> >
> >
> > On 2013/07/03 12:37, Leif Asbrink wrote:
> >
> >> Hi all,
> >>
> >> From "a point of view of a C programmer." I think the frequency
> >>>
> >> change is reasonably fast. This call:
> >> rtlsdr_set_center_freq(dev_**rtlsdr, frequency);
> >> does the frequency cange. Under Windows XP on Compaq 6510b
> >> with Intel Centrino Duo it returns in 42 to 44 milliseconds.
> >> Under Debian squeeze on a Pentium4 it returns in 37 ms.
> >>
> >> That is with Linrad when sampling at 1 MHz. The call to change
> >> the frequency is of course not in a thread involved with the
> >> sampling.
> >>
> >> Regards
> >>
> >> Leif / SM5BSZ
> >>
> >>
> >>
> >>
> >>
> >> jdow <
jd...@earthlink.net> wrote:
> >>
> >> It is. It is a very slow process comparatively speaking. Older versions
> >>> which exposed the "LO Frequency" setting highlight this feature.
> >>>
> >>> {^_^}
> >>>
> >>> On 2013/07/02 12:39, Paweł Jałocha wrote:
> >>>
> >>>> Anybody can say whether this is possible: change the centre frequency
> >>>> of RTL-SDR
> >>>> radio while the samples are being acquired. This seems to crash (stop)
> >>>> the
> >>>> acquisition. I speak from a point of view of a C programmer. The goal is
> >>>> scanning or hopping across frequencies.
> >>>>
> >>>> Thank you, Pawel.
> >>>>
> >>>
> >>> --
> >>> You received this message because you are subscribed to the Google
> >>> Groups "Ultra Cheap SDR" group.
> >>> To unsubscribe from this group and stop receiving emails from it, send
> >>> an email to ultra-cheap-sdr+unsubscribe@**
googlegroups.com<
ultra-cheap-sdr%2Bunsu...@googlegroups.com>
> >>> .
> >>> To post to this group, send email to ultra-cheap-sdr@googlegroups.**com<
ultra-c...@googlegroups.com>
> >>> .
> >>> Visit this group at
http://groups.google.com/**group/ultra-cheap-sdr<
http://groups.google.com/group/ultra-cheap-sdr>
> >>> .
> >>> For more options, visit
https://groups.google.com/**groups/opt_out<
https://groups.google.com/groups/opt_out>
> >>> .
> >>>
> >>>
> >>>
> >>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Ultra Cheap SDR" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to ultra-cheap-sdr+unsubscribe@**
googlegroups.com<
ultra-cheap-sdr%2Bunsu...@googlegroups.com>
> > .
> > To post to this group, send email to ultra-cheap-sdr@googlegroups.**com<
ultra-c...@googlegroups.com>
> > .
> > Visit this group at
http://groups.google.com/**group/ultra-cheap-sdr<
http://groups.google.com/group/ultra-cheap-sdr>
> > .
> > For more options, visit
https://groups.google.com/**groups/opt_out<
https://groups.google.com/groups/opt_out>
> > .
> >
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups "Ultra Cheap SDR" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
ultra-cheap-s...@googlegroups.com.
> To post to this group, send email to
ultra-c...@googlegroups.com.