[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] RTL SDR & GNU Radio new linux machine.
From: |
Cinaed Simson |
Subject: |
Re: [Discuss-gnuradio] RTL SDR & GNU Radio new linux machine. |
Date: |
Mon, 24 Oct 2016 12:29:30 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
On 10/24/2016 09:40 AM, Paul Zander wrote:
> I too am lost in an obstacle course in getting RTL_SDR to work.
> Background:
> 1. The hardware worked with windows and SDR#. Audio in the speakers
> on the first try.
> 2. I first tried the GNURadio v3.7.10.1 as a live .iso. PLL not locked
> 3. Then I installed Debian Stretch and downloaded the packages.
>
> I have also installed /etc/modprobe.d/rtl_blacklist.conf and
> /etc/udev/rules.d/rtl-sdr.rules.
>
> === GRC 3.7.10 ===
>
> Executing: /usr/bin/python -u /DATA/GNUradio/myProjects/RTL/top_block.py
>
> linux; GNU C++ version 6.2.0 20160822; Boost_106100;
> UHD_003.009.005-0-unknown
>
> gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.10
> built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf
> bladerf rfspace airspy soapy redpitaya
> Cannot connect to server socket err = No such file or directory
> Cannot connect to server request channel
> jack server is not running or cannot be started
> JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for
> 4294967295, skipping unlock
> JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for
> 4294967295, skipping unlock
> Found Rafael Micro R820T tuner
> Using device #0 Realtek RTL2838UHIDIR SN: 00000001
> Found Rafael Micro R820T tuner
> [R82XX] PLL not locked!
> Exact sample rate is: 2000000.052982 Hz
> [R82XX] PLL not locked!
> gr::log :INFO: audio source - Audio sink arch: alsa
> aUaUaUaUaUaUaUaUaUaUaUaUaUaUaU
> === rtl_test ===
> $ rtl_test
> Found 1 device(s):
> 0: Realtek, RTL2838UHIDIR, SN: 00000001
>
> Using device 0: Generic RTL2832U OEM
> 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.
This typically means the receiver is receiving to much noise to lock on
to the signal.
Try tuning to a different frequency.
May be an antenna problem or maybe the device and/or the antenna are to
close to your computer.
>
> 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...
> lost at least 208 bytes
>
>
> === rtl_fm ===
> $ rtl_fm -f 88.5M -M wbfm | aplay
> Found 1 device(s):
> 0: Realtek, RTL2838UHIDIR, SN: 00000001
>
> Using device 0: Generic RTL2832U OEM
> Found Rafael Micro R820T tuner
> Tuner gain set to automatic.
> Tuned to 88771000 Hz.
> Oversampling input by: 6x.
> Oversampling output by: 1x.
> Buffer size: 8.03ms
> Exact sample rate is: 1020000.026345 Hz
> Playing raw data 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
> Sampling at 1020000 S/s.
> Output at 170000 Hz.
>
>
> ------------------------------------------------------------------------
> *From:* Cinaed Simson <address@hidden>
> *To:* address@hidden
> *Sent:* Sunday, October 23, 2016 9:16 PM
> *Subject:* Re: [Discuss-gnuradio] RTL SDR & GNU Radio new linux machine.
>
> On 10/23/2016 04:35 PM, address@hidden
> <mailto:address@hidden> wrote:
>> Hi,
>>
>> I just built Gnu Radio from source on a new/fresh linux machine (Ubuntu
>> 16)
>>
>> For some reason, my RTL-SDR device cannot be opened.
>>
>> I get this error:
>>
>> usb_claim_interface error -6
>
> Try installing the enclosed file in
>
> /etc/modprobe.d/rtl-blacklist.conf
>
> It's most likely the kernel is loading the driver for a rtl ethernet
> card preventing the driver for the rtl dongle from being loaded.
>
> Blacklisting the driver for the rtl dongle prevents the kernel from
> trying to load its rtl driver when the dongle is connected.
>
> You may have to reboot.
>
> Also, check to see if the file
>
> /etc/udev/rules.d/rtl-sdr.rules
>
> exists.
>
> And type
>
> groups
>
> and make sure you're a member of the group
>
> usb
>
> -- Cinaed
>
>
>>
>> 1) The device is present, it shows in dmesg
>>
>> 2) I do not think it is a udev permissions error -
>> a) the rules are installed in /dev/udev/rules.d/15-rtl-sdr.rules
>> b) Running GnuRadio as ROOT - has the same result.
>>
>> 3) Also Running any of the RTL tool commands have the same errors.
>>
>> tried this: http://gnuradio.org/redmine/issues/659
> <http://gnuradio.org/redmine/issues/659>- become root as
>> workaround - does not help
>>
>> 4) I do see the device: /dev/swradio0 - show up
>>
>> 5) DMESG output is below
>>
>> My hunch is this:
>> Something is grabbing the interface
>> And that is stopping GNU radio from using it.
>>
>> Sort of stuck.... Any suggestions?
>>
>> ========================
>> address@hidden <mailto:address@hidden>:~$ dmesg
>> [ 1390.155412] usb 3-7: new high-speed USB device number 14 using
>> xhci_hcd
>> [ 1390.351122] usb 3-7: New USB device found, idVendor=0bda,
>> idProduct=2838
>> [ 1390.351132] usb 3-7: New USB device strings: Mfr=1, Product=2,
>> SerialNumber=3
>> [ 1390.351138] usb 3-7: Product: RTL2838UHIDIR
>> [ 1390.351144] usb 3-7: Manufacturer: Realtek
>> [ 1390.351149] usb 3-7: SerialNumber: 00000001
>> [ 1390.358518] usb 3-7: dvb_usb_v2: found a 'Realtek RTL2832U reference
>> design' in warm state
>> [ 1390.411917] usb 3-7: dvb_usb_v2: will pass the complete MPEG2
>> transport stream to the software demuxer
>> [ 1390.411928] DVB: registering new adapter (Realtek RTL2832U reference
>> design)
>> [ 1390.415941] i2c i2c-6: Added multiplexed i2c bus 7
>> [ 1390.415945] rtl2832 6-0010: Realtek RTL2832 successfully attached
>> [ 1390.415950] usb 3-7: DVB: registering adapter 0 frontend 0 (Realtek
>> RTL2832 (DVB-T))...
>> [ 1390.416003] r820t 7-001a: creating new instance
>> [ 1390.427516] r820t 7-001a: Rafael Micro r820t successfully identified
>> [ 1390.428198] rtl2832_sdr rtl2832_sdr.1.auto: Registered as swradio0
>> [ 1390.428211] rtl2832_sdr rtl2832_sdr.1.auto: Realtek RTL2832 SDR
>> attached
>> [ 1390.428212] rtl2832_sdr rtl2832_sdr.1.auto: SDR API is still slightly
>> experimental and functionality changes may follow
>> [ 1390.434674] Registered IR keymap rc-empty
>> [ 1390.434714] input: Realtek RTL2832U reference design as
>> /devices/pci0000:00/0000:00:14.0/usb3/3-7/rc/rc0/input26
>> [ 1390.434794] rc0: Realtek RTL2832U reference design as
>> /devices/pci0000:00/0000:00:14.0/usb3/3-7/rc/rc0
>> [ 1390.435000] rc rc0: lirc_dev: driver ir-lirc-codec (dvb_usb_rtl28xxu)
>> registered at minor = 0
>> [ 1390.435044] input: MCE IR Keyboard/Mouse (dvb_usb_rtl28xxu) as
>> /devices/virtual/input/input27
>> [ 1390.435158] usb 3-7: dvb_usb_v2: schedule remote query interval to
>> 200 msecs
>> [ 1390.451269] usb 3-7: dvb_usb_v2: 'Realtek RTL2832U reference design'
>> successfully initialized and connected
>> address@hidden <mailto:address@hidden>:~$ lf /dev/swradio0
>> crw-rw-rw-+ 1 root video 81, 0 Oct 23 16:29 /dev/swradio0
>> address@hidden <mailto:address@hidden>:~$
>> ========================
>>
>> -Duane.
>>
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> address@hidden <mailto:address@hidden>
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden <mailto:address@hidden>
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>