RTL SDR on Raspberry-Pi

4,105 views
Skip to first unread message

Brian O'Connor

unread,
Nov 20, 2013, 11:37:21 PM11/20/13
to ultra-c...@googlegroups.com

Just received my DVB-T and having trouble getting it to talk on a Raspberry-Pi for Flight Radar24.
What am I missing, please?

Thanks,
Brian

pi@raspberrypi:~$ cat /etc/modprobe.d/no-rtl.conf
  blacklist dvb_usb_rtl28xxu
  blacklist rtl2832
  blacklist rtl2830
pi@raspberrypi:~$

pi@raspberrypi:~$ lsmod
Module                  Size  Used by
snd_bcm2835            16432  0
snd_pcm                77728  1 snd_bcm2835
snd_seq                53482  0
snd_timer              20110  2 snd_pcm,snd_seq
snd_seq_device          6462  1 snd_seq
snd                    58744  5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
snd_page_alloc          5169  1 snd_pcm
leds_gpio               2243  0
led_class               3570  1 leds_gpio
pi@raspberrypi:~$

pi@raspberrypi:~$ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 006: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 005: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
pi@raspberrypi:~$

pi@raspberrypi:~$ rtl_test -t
Found 1 device(s):
  0:  ezcap USB 2.0 DVB-T/DAB/FM dongle

Using device 0: ezcap USB 2.0 DVB-T/DAB/FM dongle

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
Failed to open rtlsdr device #0.
pi@raspberrypi:~$

pi@raspberrypi:~$ history
    ..
    ..
    69  sudo su
   70  ls
   71  cd rtl-sdr
   72  ls -al
   73  cd build
   74  ls -altr
    ------
   76  cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON
   77  make
   78  rtl_test -t
pi@raspberrypi:~$

pi@raspberrypi:~$ dmesg | grep -i dvb
pi@raspberrypi:~$ dmesg | grep -i 2838
[    4.274702] usb 1-1.2.1.4: New USB device found, idVendor=0bda, idProduct=2838
[    4.331716] usb 1-1.2.1.4: Product: RTL2838UHIDIR
pi@raspberrypi:~$

Adam Nielsen

unread,
Nov 21, 2013, 12:53:55 AM11/21/13
to ultra-c...@googlegroups.com
> Just received my DVB-T and having trouble getting it to talk on a
> Raspberry-Pi for Flight Radar24.
> What am I missing, please?

Everything looks fine, I'm not sure why you're getting a busy error
(-6) when you try to access the device. Something else must be using
it - "ps" doesn't list any active programs? Have you
restarted/replugged the device after blacklisting the modules, just in
case?

Cheers,
Adam.

Brian O'Connor

unread,
Nov 21, 2013, 5:00:17 AM11/21/13
to ultra-c...@googlegroups.com
Thanks, Adam.  Found I needed to define the USB DVB/T device in

  /etc/udev/rules.d/rtl-sdr.rules

as follows:

# Realtek Semiconductor Corp. RTL2838 DVB-T  
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2838", MODE:="0666", GROUP="adm", SYMLINK+="rtl_sdr"

Looks like my device was not listed in the file provided.

Cheers,
 Brian

Amogh Desai

unread,
Jan 22, 2014, 10:26:00 AM1/22/14
to ultra-c...@googlegroups.com
Hi 

Can you decode FM/AM or SSB  directly from the raspberry Pi ?? I mean without using rtl_tcp ??

-Amogh

David J Taylor

unread,
Jan 22, 2014, 10:37:34 AM1/22/14
to ultra-c...@googlegroups.com
From: Amogh Desai

Hi

Can you decode FM/AM or SSB directly from the raspberry Pi ?? I mean
without using rtl_tcp ??

-Amogh
===================================================

Yes, Amogh, look for rtl_fm:

http://kmkeen.com/rtl-demod-guide/

Cheers,
David
--
SatSignal Software - Quality software written to your requirements
Web: http://www.satsignal.eu
Email: david-...@blueyonder.co.uk

Reply all
Reply to author
Forward
0 new messages