linux下rtlsdr测试

依赖库安装

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 blacklist the kernel module
(dvb_usb_rtl28xxu), or enable automatic detaching at compile time.
 
usb_claim_interface error -6

执行如下操作后重启

cd /etc/modprobe.d
touch rtlsdr.conf
sudo gedit ./rtlsdr.conf
#打开后的文件中添加 blacklist dvb_usb_rtl28xxu 后保存
sudo reboot

 

 

 

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

-铁头娃-

谢谢

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值