Nooelec R820T2 SDR & DVB-T not working in gqrx

747 views
Skip to first unread message

cat22

unread,
Dec 7, 2017, 3:37:49 AM12/7/17
to Gqrx SDR
OS: Linux, OpenSuse Leap 42.3 x86_64
I have the NooElec R820T2 SDR & DVB-T NESDR Mini 2.
What settings do i use under gqrx in the I/O devices dialog?
gnuradio runs but i have not built any thing with it, just ran it
and when it came up with no errors i just exited.
gqrx runs but there is no waterfall and no sound either.
I compiled and installed both gnuradio and gqrx from source
lsusb shows:
   0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
lsmod shows:
   rtl2832_sdr            36864  0
   videobuf2_vmalloc      16384  1 rtl2832_sdr
   videobuf2_v4l2         24576  1 rtl2832_sdr
   videobuf2_core         40960  2 rtl2832_sdr,videobuf2_v4l2
   rtl2832                24576  1
   dvb_usb_rtl28xxu       40960  1
   dvb_usb_v2             40960  1 dvb_usb_rtl28xxu
   usbcore               241664  9 usbhid,ehci_hcd,xhci_pci,dvb_usb_v2,rtl2832_sdr,btusb,dvb_usb_rtl28xxu,xhci_hcd,ehci_pci

 rtl_test shows (and no further output):
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Detached kernel driver
Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
[R82XX] PLL not locked!
Sampling at 2048000 S/s.

Info: This tool will continuously read from the device, and report if
samples get lost. If you observe no further output, everything is fine.

Reading samples in async mode...

rtl_fm -M wbfm -f 97.3M -s 150k -r 75k | play -r 75k -t raw -e s -b 16 -c 1 -V1 -
plays a local fm station ok, a bit scratchy but ok

cat22

unread,
Dec 7, 2017, 3:46:21 AM12/7/17
to Gqrx SDR
I also tried running gqrx from the command line and got the output below so its not seeing the device but i dont know why
Also, this is gqrx version 2.9
# gqrx
gr-osmosdr v0.1.4-98-gc653754d (0.1.5git) gnuradio 3.7.12git-295-ga0adcd33
built-in source types: file osmosdr fcd rtl_tcp rfspace redpitaya
Resampling audio 96000 -> 48000
BookmarksFile is /home/erbenton/.config/gqrx/bookmarks.csv
gr-osmosdr v0.1.4-98-gc653754d (0.1.5git) gnuradio 3.7.12git-295-ga0adcd33
built-in source types: file osmosdr fcd rtl_tcp rfspace redpitaya

FATAL: No supported devices found to pick from.

Trying to fill up 1 missing channel(s) with null source(s).
This is being done to prevent the application from crashing
due to gnuradio bug #528.


Failed to set RX input rate to 1.8e+06
Your device may not be working properly.

Alexander Fasching

unread,
Dec 7, 2017, 3:57:25 AM12/7/17
to gq...@googlegroups.com
Looks like your gr-osmosdr does not support the RTL-SDR.

On my system, I get:
built-in source types: file fcd rtl rtl_tcp uhd hackrf bladerf rfspace
airspy

Did you build it yourself?

On 12/07/2017 09:46 AM, cat22 wrote:
> I also tried running gqrx from the command line and got the output below
> so its not seeing the device but i dont know why
> Also, this is gqrx version 2.9
> # gqrx
> gr-osmosdr v0.1.4-98-gc653754d (0.1.5git) gnuradio 3.7.12git-295-ga0adcd33
> built-in source types: file osmosdr fcd rtl_tcp rfspace redpitaya
> Resampling audio 96000 -> 48000
> BookmarksFile is /home/erbenton/.config/gqrx/bookmarks.csv
> gr-osmosdr v0.1.4-98-gc653754d (0.1.5git) gnuradio 3.7.12git-295-ga0adcd33
> built-in source types: file osmosdr fcd rtl_tcp rfspace redpitaya
>
> *FATAL: No supported devices found to pick from.*
>
> Trying to fill up 1 missing channel(s) with null source(s).
> This is being done to prevent the application from crashing
> due to gnuradio bug #528.
>
>
> Failed to set RX input rate to 1.8e+06
> Your device may not be working properly.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Gqrx SDR" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to gqrx+uns...@googlegroups.com
> <mailto:gqrx+uns...@googlegroups.com>.
> To post to this group, send email to gq...@googlegroups.com
> <mailto:gq...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gqrx/c1c0cb62-806f-44d8-bdcc-f321e7ecc1a4%40googlegroups.com
> <https://groups.google.com/d/msgid/gqrx/c1c0cb62-806f-44d8-bdcc-f321e7ecc1a4%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

cat22

unread,
Dec 7, 2017, 4:40:15 AM12/7/17
to Gqrx SDR
yes, i built gnuradio, osmosdr and gqrx from source. They are all the latest versions
in gr-osmosdr the README says i(in part)
   RTL2832U based DVB-T dongles through librtlsdr
so i checked to be sure i had librtlsdr:
   /usr/lib64/librtlsdr.so.0
   /usr/lib64/librtlsdr.so.0.5git

Alexander Fasching

unread,
Dec 7, 2017, 5:51:06 AM12/7/17
to gq...@googlegroups.com
If CMake can't find librtlsdr, then it builds gr-osmosdr without RTL-SDR
support.
Try rebuilding it. You can override the detected settings with
'cmake -DENABLE_RTL=ON ..'
> --
> You received this message because you are subscribed to the Google
> Groups "Gqrx SDR" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to gqrx+uns...@googlegroups.com
> <mailto:gqrx+uns...@googlegroups.com>.
> To post to this group, send email to gq...@googlegroups.com
> <mailto:gq...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gqrx/b66173ca-7bcc-4419-a782-ee76ccc87cf7%40googlegroups.com
> <https://groups.google.com/d/msgid/gqrx/b66173ca-7bcc-4419-a782-ee76ccc87cf7%40googlegroups.com?utm_medium=email&utm_source=footer>.

cat22

unread,
Dec 7, 2017, 7:20:24 AM12/7/17
to Gqrx SDR
Yeh, that fails.
I cleaned out build and ran "cmake -DENABLE_RTL=ON .."
I get this
-- Configuring Osmocom RTLSDR support...
--   Dependency LIBRTLSDR_FOUND = FALSE
CMake Error at /usr/local/lib/cmake/gnuradio/GrComponent.cmake:75 (message):
  user force-enabled Osmocom RTLSDR but configuration checked failed
Call Stack (most recent call first):
  lib/CMakeLists.txt:156 (GR_REGISTER_COMPONENT)

but

# ls -l /usr/lib64/librtlsdr*
lrwxrwxrwx 1 root root    25 Dec  7 04:09 /usr/lib64/librtlsdr.so -> /usr/lib64/librtlsdr.so.0
lrwxrwxrwx 1 root root    19 Dec  7 00:52 /usr/lib64/librtlsdr.so.0 -> librtlsdr.so.0.5git
-rwxr-xr-x 1 root root 71080 Jun  9 12:18 /usr/lib64/librtlsdr.so.0.5git

( i created the first librtlsdr.so link as i thought that might be the issue -  but nope)
Also, i checked using file, librtlsdr.so.0.5git is 64 bit (was thinking what if it was 32 bit, then it would fail to link)
The CMakeCache.txt file (attached) seems to be looking in the right place but doesnt find what its looking for
I attched the output and error logs along with my CMakeCache.txt file maybe you can see the issue there?
To me it looks like it was looking at the right place for librtlsdr but its confusing as to whether it found it or not.
Thanks
CMakeCache.txt
CMakeError.log
CMakeOutput.log

cat22

unread,
Dec 7, 2017, 7:48:05 AM12/7/17
to Gqrx SDR
I think i found the answer, rrtlsdr-dev wasnt installed so the rtl-sdr.h file was missing which led cmake thinking the library wasn't there
I did get gr-osmosdr to compile and link successfully now , but i need to recompile gnuradio and gqrx and see if this fixes things
I'll post back in a bit with my findings, but it looks promising!

cat22

unread,
Dec 7, 2017, 8:43:08 AM12/7/17
to Gqrx SDR
Got it! Its working now!
Reply all
Reply to author
Forward
0 new messages