Calling rtlsdr_* while receiving in async mode

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-sdr@lists.osmocom.org/.

Oliver Jowett oliver.jowett at gmail.com
Mon Feb 16 14:28:20 UTC 2015


On 15 February 2015 at 13:38, Oliver Jowett <oliver.jowett at gmail.com> wrote:

> What's the "right way" to call rtlsdr_* functions while receiving samples
> via rtlsdr_read_async()?
> e.g. to change frequency or gain mid-run.
>

Some work in this area:

https://github.com/mutability/librtlsdr/tree/async-rearrangements -
Rearranging rtlsdr_read_async() so that rtlsdr callbacks are not done from
within the libusb callback. This allows you to safely call rtlsdr_* from
within the async callback.

https://github.com/mutability/librtlsdr/tree/thread-safety - makes device
access threadsafe (in theory), so you can safely call rtlsdr_* from
multiple threads (including while rtlsdr_read_async is running)

Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/osmocom-sdr/attachments/20150216/6054abbb/attachment.htm>


More information about the osmocom-sdr mailing list