dump1090看飞机(ads-b)解决电视棒出错问题

当你成功从github下载好了antirez/dump1090的dump1090

也安装了librtlsdr-dev libusb-1.0-0-dev这两款软件

最后也make好了

电视棒也插上了

就差

./dump1090 --interactive

你期待的结果是这样的
dump1090看飞机(ads-b)解决电视棒出错问题_第1张图片

然而 你的却是这样的

root@le1239:/home/dump1090# ./dump1090  --interactive
Found 1 device(s):
0: , , SN:  (currently selected)
rtlsdr_write_reg failed with -1
Resetting device...
rtlsdr_write_reg failed with -4
rtlsdr_write_reg failed with -4
rtlsdr_write_reg failed with -4
rtlsdr_write_reg failed with -4
rtlsdr_write_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_read_reg failed with -4
rtlsdr_write_reg failed with -4
rtlsdr_read_reg failed with -4
rtlsdr_write_reg failed with -4
rtlsdr_read_reg failed with -4
rtlsdr_write_reg failed with -4
rtlsdr_read_reg failed with -4
rtlsdr_write_reg failed with -4
No supported tuner found
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
Enabled direct sampling mode, input 1
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
Max available gain is: 0.00
Setting gain to: 0.00
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
Exact sample rate is: 2000000.052982 Hz
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_write_reg failed with -4
rtlsdr_write_reg failed with -4
Gain reported by device: 0.00
Failed to submit transfer 0!

输入lsusb查看
在这里插入图片描述
发现没有问题,电视棒好好的躺在那里

研究了几天,我换了好几个软件 ,换了好几个docker,

我用电脑的虚拟机这样搞就没问题,用我的小主机去搞 就总失败,原来是因为

我的usb延长线太长了,小主机usb功率不够,所以就会出现上面的问题

解决的办法就是换一根 电阻小的usb延长线 或者将电视棒直接连在主机上

树莓派等arm版本出现类似错误

dump1090的issues

cc -g -o dump1090 dump1090.o anet.o  -L -lrtlsdr -lpthread -lm
/usr/bin/ld: dump1090.o: in function `modesInitRTLSDR':
/home/julien/Downloads/dump1090-master/dump1090.c:340: undefined reference to `rtlsdr_get_device_count'
/usr/bin/ld: /home/julien/Downloads/dump1090-master/dump1090.c:348: undefined reference to `rtlsdr_get_device_usb_strings'
/usr/bin/ld: /home/julien/Downloads/dump1090-master/dump1090.c:353: undefined reference to `rtlsdr_open'
/usr/bin/ld: /home/julien/Downloads/dump1090-master/dump1090.c:360: undefined reference to `rtlsdr_set_tuner_gain_mode'
/usr/bin/ld: /home/julien/Downloads/dump1090-master/dump1090.c:372: undefined reference to `rtlsdr_set_tuner_gain'
/usr/bin/ld: /home/julien/Downloads/dump1090-master/dump1090.c:377: undefined reference to `rtlsdr_set_freq_correction'
/usr/bin/ld: /home/julien/Downloads/dump1090-master/dump1090.c:379: undefined reference to `rtlsdr_set_center_freq'
/usr/bin/ld: /home/julien/Downloads/dump1090-master/dump1090.c:380: undefined reference to `rtlsdr_set_sample_rate'
/usr/bin/ld: /home/julien/Downloads/dump1090-master/dump1090.c:381: undefined reference to `rtlsdr_reset_buffer'
/usr/bin/ld: /home/julien/Downloads/dump1090-master/dump1090.c:383: undefined reference to `rtlsdr_get_tuner_gain'
/usr/bin/ld: /home/julien/Downloads/dump1090-master/dump1090.c:378: undefined reference to `rtlsdr_set_agc_mode'
/usr/bin/ld: /home/julien/Downloads/dump1090-master/dump1090.c:368: undefined reference to `rtlsdr_get_tuner_gains'
/usr/bin/ld: dump1090.o: in function `readerThreadEntryPoint':
/home/julien/Downloads/dump1090-master/dump1090.c:460: undefined reference to `rtlsdr_read_async'
/usr/bin/ld: dump1090.o: in function `main':
/home/julien/Downloads/dump1090-master/dump1090.c:2632: undefined reference to `rtlsdr_close'
collect2: error: ld returned 1 exit status
make: *** [Makefile:12: dump1090] Error 1

下载这个版本的

git clone https://github.com/joergsteinkamp/dump1090.git

你可能感兴趣的:(linux,sdr)