依赖库安装
sudo apt-get install libusb-1.0-0-dev
下载源码
git clone git://git.osmocom.org/rtl-sdr.git
编译、安装
cd rtl-sdr/
mkdir build
cd build
cmake ../
make
sudo make install
sudo ldconfig
测试
#查看硬件信息
rtl_test -t
#收听调频广播
rtl_fm -f 96.3e6 -M wbfm -s 2048000 -r 8000 - | aplay
#记录IQ数据(To tune to 392.0 MHz, and set the sample-rate to 1.8 MS/s)
rtl_sdr ./capture.bin -s 2.048e6 -f 91.091e6 -g 0
问题解决
如果运行 rtl_test -t 时出现如下错误:
0: Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
Kernel driver is active, or device is claimed by second instance of librtlsdr.
In the first case, please either detach or blacklis