On a Raspberry Pi 3 B+ running Raspbian Stretch, when I run this command,
timeout 115 rtl_fm -d 0 -g 49 -M usb -s 32000 -r 32000 -F 1 -f 50.293M outfile.raw
I get the following messages, the last line of which is an error:
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Tuner gain set to 49.60 dB.
rtl_fm: symbol lookup error: rtl_fm: undefined symbol: rtlsdr_set_bias_tee
Does anyone know how to fix this?
The Internet says it is just a library issue and the following commands should fix it:
LD_LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH
sudo ldconfig
I did this and rebooted... same problem
Hardware:
Computer is a Raspberry Pi 3 B+ running the latest Raspbian Stretch.
RTL-SDR dongle is V3 with the following printed on it: RTL 2832U R820T2 TCX0 + Bias T + HF
A note about the Bias T: I am not using that function. Not on purpose, anyway. The antenna is a simple dipole and I have no need to feed power into the antenna line.
Background:
I am using the RTL-SDR as part of a WSPR listening station. A Kiwi-SDR is monitoring 7 other bands while the RTL-SDR is monitoring 6m. The output from the RTL-SDR is sent into sox for processing and then over to wsprd for analysis. The Pi seems to be able to handle quite a few channels like this; I am monitoring 7 total and the Pi handles it easily. More channels will be added as time goes on; still tweaking the software and the signal processing. This system has worked well for some months, however I thought it could be useful to change the command from
timeout 115 rtl_fm -d 0 -g 49 -M usb -s 32000 -r 32000 -F 1 -f 50.293M outfile.raw
to
timeout 115 rx_fm -d 0 -g 49 -M usb -s 32000 -r 32000 -F 1 -f 50.293M outfile.raw
At this point I have given up on that; rx_fm is a clone of rtl_fm with some improvements but I was never able to get it to work. Along the way --adding software to try to get rx_fm to work-- I broke something. For a week or so, I was getting the above error message when running rtl_fm as root (sudo) however not as a user (pi). Today, it is now affecting the user and so the 6m listening segment is now off line.
The thing that changed today --strange as it seems-- was some of the flags as shown below. With the new flags, the error message started. Restoring the original flags, the error message remains. The command with the new flags was
timeout 115 rtl_fm -d 0 -g 49 -M usb -s 96000 -r 96000 -F 1 -f 50.293M outfile.raw
(changed 32k to 96k, expecting some SNR benefits) Once I saw the above-referenced error, I changed it back to 32k.
This seems like it should be fairly straightforward, but it has me confused.
How do I address the "symbol lookup error" so the RTL-SDR can start working again?
rtl_fm
) $\endgroup$