Using RTL-USB to receive radios

Source: Internet
Author: User
Tags git clone

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.