I am also having the rtl_fm scanning bug which was first reported in http://lists.gnumonks.org/pipermail/osmocom-sdr/2013-February/000485.html
The scanning mode in rtl_fm hangs during the re-tuning process. This makes it impossible to use rtl_fm in scanning mode. I am using Ubuntu 12.10 with libusb 2:1.0.12-2, the latest git master version of rtl-sdr, and an Elonics E4000 (Realtek, RTL2838UHIDIR).
Here are the steps to reproduce:
1. Find some frequency FREQ_NOISE that is not in use, and some frequency FREQ_SIGNAL which is in use constantly (i.e., like a commercial FM station). Find an appropriate squelch value SQUELCH which will stop FREQ_NOISE but pass FREQ_SIGNAL. 2. rtl_fm -f ${FREQ_NOISE} -l ${SQUELCH}. The program should not pass any audio, but it will exit cleanly with ^C. 3. rtl_fm -f ${FREQ_SIGNAL} -l ${SQUELCH}. The program should pass audio and exit cleanly with ^C 4. rtl_fm -f ${FREQ_SIGNAL} -f ${FREQ_NOISE} -l 0. The scan will pause on the first channel and pass audio. 5. rtl_fm -f ${FREQ_NOISE} -f ${FREQ_SIGNAL} -l ${SQUELCH}. The program will not output any audio, even though the first frequency is squelched out and the scanning function should skip immediately to the second frequency. Additionally, it will not exit if sent a SIGINT with ^C, and it must be killed with a SIGKILL.
I've made a stack trace of this behavior. The program hangs very consistently at the same location each time: http://pastebin.com/wzE09MCi
Thread 1 (the USB buffer reading thread) hangs while waiting for the data_write mutex lock in rtl_fm.c:642. I presume the thread has exhausted its supply of data and isn't getting any more. Thread 2 is slightly more interesting, because it hangs during the libusb system calls within the tuning function rtlsdr_set_center_freq() in librtlsdr.c:796. My guess is that it's making a blocking call that never returns.
Can anyone else reproduce this bug?
Colin Stagner <cbs228 <at> gmail.com> writes:
I am also having the rtl_fm scanning bug which was first reported in http://lists.gnumonks.org/pipermail/osmocom-sdr/2013-February/000485.html
Can anyone else reproduce this bug?
I am having the same problem.
EzTV666, Ubuntu 12.04, kernel 3.2.0-23, latest rtl_sdr from git, 2013-04-30
rtl_fm works fine when only one frequency is specified, hangs after first frequency is skipped.
Mine doesn't hang, it just makes a noise. If I change just the demodulator to AM instead of FM, it doesn't do it. If I set the squelch level up around 1000 it takes out the signals, but not the noise.
OpenBSD 5.2, ftl_fm from git about 4/23/2013
Alan
-----
Radio Astronomy - the ultimate DX
--- On Tue, 4/30/13, Chourico lists@the-reapers.com wrote:
From: Chourico lists@the-reapers.com Subject: Re: rtl_fm scanning To: osmocom-sdr@lists.osmocom.org Date: Tuesday, April 30, 2013, 7:53 AM
Colin Stagner <cbs228 <at> gmail.com> writes:
I am also having the rtl_fm scanning bug which was first reported in http://lists.gnumonks.org/pipermail/osmocom-sdr/2013-February/000485.html
Can anyone else reproduce this bug?
I am having the same problem.
EzTV666, Ubuntu 12.04, kernel 3.2.0-23, latest rtl_sdr from git, 2013-04-30
rtl_fm works fine when only one frequency is specified, hangs after first frequency is skipped.
I haven't had a chance to check on the Raspberry Pi to see if this issue is fixed by forcing synchronous mode, but I suspect it is.
http://lists.gnumonks.org/pipermail/osmocom-sdr/2013-April/000588.html
- Ben
On Apr 30, 2013, at 11:07 AM, Alan Corey wrote:
Mine doesn't hang, it just makes a noise. If I change just the demodulator to AM instead of FM, it doesn't do it. If I set the squelch level up around 1000 it takes out the signals, but not the noise.
OpenBSD 5.2, ftl_fm from git about 4/23/2013
Alan
Radio Astronomy - the ultimate DX
--- On Tue, 4/30/13, Chourico lists@the-reapers.com wrote:
From: Chourico lists@the-reapers.com Subject: Re: rtl_fm scanning To: osmocom-sdr@lists.osmocom.org Date: Tuesday, April 30, 2013, 7:53 AM
Colin Stagner <cbs228 <at> gmail.com> writes:
I am also having the rtl_fm scanning bug which was first reported in http://lists.gnumonks.org/pipermail/osmocom-sdr/2013-February/000485.html
Can anyone else reproduce this bug?
I am having the same problem.
EzTV666, Ubuntu 12.04, kernel 3.2.0-23, latest rtl_sdr from git, 2013-04-30
rtl_fm works fine when only one frequency is specified, hangs after first frequency is skipped.
Under OpenBSD only sync mode works, and that's only with Stuart Henderson's patches from http://www.openbsd.org/cgi-bin/cvsweb/ports/comms/rtl-sdr/patches/.%C2%A0 I'm scanning a bunch of 120 MHz AM aircraft freqs right now and I don't hear the noise, but scanning FM I do. rtl_adsb, rtl_tcp, etc. aren't fixed yet.
I'm running libusb 1.0.9p3 from the OpenBSD ports collection under 5.2. I have a 5.0 machine with 1.0.9 built from a tarball that works a few minutes and gives a "library -99" error.
Alan
-----
Radio Astronomy - the ultimate DX
--- On Tue, 4/30/13, Ben Moore benjamin.n.moore@gmail.com wrote:
From: Ben Moore benjamin.n.moore@gmail.com Subject: Re: rtl_fm scanning To: osmocom-sdr@lists.osmocom.org Date: Tuesday, April 30, 2013, 3:16 PM
I haven't had a chance to check on the Raspberry Pi to see if this issue is fixed by forcing synchronous mode, but I suspect it is. http://lists.gnumonks.org/pipermail/osmocom-sdr/2013-April/000588.html - Ben
On Apr 30, 2013, at 11:07 AM, Alan Corey wrote: Mine doesn't hang, it just makes a noise. If I change just the demodulator to AM instead of FM, it doesn't do it. If I set the squelch level up around 1000 it takes out the signals, but not the noise.
OpenBSD 5.2, ftl_fm from git about 4/23/2013
Alan
-----
Radio Astronomy - the ultimate DX
--- On Tue, 4/30/13, Chourico lists@the-reapers.com wrote:
From: Chourico lists@the-reapers.com Subject: Re: rtl_fm scanning To: osmocom-sdr@lists.osmocom.org Date: Tuesday, April 30, 2013, 7:53 AM
Colin Stagner <cbs228 <at> gmail.com> writes:
I am also having the rtl_fm scanning bug which was first reported in http://lists.gnumonks.org/pipermail/osmocom-sdr/2013-February/000485.html
Can anyone else reproduce this bug?
I am having the same problem.
EzTV666, Ubuntu 12.04, kernel 3.2.0-23, latest rtl_sdr from git, 2013-04-30
rtl_fm works fine when only one frequency is specified, hangs after first frequency is skipped.