Get ready:
1. Hardware: RTL-SDR r820t2 tuner, a treasure on 30 or so a
2. CentOS
1. Download RTL-SDR software
git clone git://git.osmocom.org/rtl-sdr.git
2. Compile & Install
$CD cmake
$cmake.
$make Install
Increase/etc/modprobe.d/no-rtl.conf
Blacklist Dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830
3. Receive FM Broadcast
$rtl _fm-f 955e5-m wbfm-s 480k-r 48000-| Aplay-r 48k-f S16_le
4. Reset USB port
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/ioctl.h >
#include <linux/usbdevice_fs.h>
void main (int argc, char **argv)
{
const char *filename;
int FD;
filename = argv[1];
FD = open (filename, o_wronly);
IOCTL (FD, Usbdevfs_reset, 0);
Close (FD);
return;
}
[Root@dev sdr]# gcc-o reset reset.c
reset.c:in function ' main ':
reset.c:13:2: warning:implicit declaration of F Unction ' Close ' [-wimplicit-function-declaration] close
(FD);
^
[root@dev sdr]# Lsusb bus
001 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub bus
002 Device 001:id 1d6b:0001 Linux Foundation 1.1 root Hub bus
001 Device 002:id 0e0f:000b VMware, Inc.
Bus 002 Device 002:id 0e0f:0003 VMware, Inc. virtual Mouse Bus 002-Device 003:id 0e0f:0002
VMware, Inc. virtual USB Hub bus
002 Device 004:id 0e0f:0008 VMware, Inc.
Bus 001 Device 003:id 0bda:2838 Realtek Semiconductor Corp. RTL2838-DVB-T
[Root@dev sdr]#./reset/dev/bus/usb/001/0
[Root@dev sdr]#
5. Receiving Aircraft flight data
git clone https://github.com/antirez/dump1090.git
export pkg_config_path=/root/sources/sdr/rtl-sdr/rtl-sdr/ cmake/
make
./dump1090--interactive
Reference:
http://www.rtlsdr.org
Http://sdr.osmocom.org/trac/wiki/rtl-sdr
Http://www.evil0x.com/posts/6401.html
Http://www.cnblogs.com/k1two2/p/5758136.html