Hi,
I tried that, but I am still getting an error as shown below:
edtroy@ubuntu:~/prefix/default$ gnuradio-companion
<<< Welcome to GNU Radio Companion 3.7.12git-269-g8aa965c6 >>>
Block paths:
/home/edtroy/prefix/default/share/gnuradio/grc/blocks
Loading: "/home/edtroy/prefix/default/src/gr-tutorial/examples/tutorial6/gr-tutorial-broadcast-fm-rx.grc"
>>> Done
Generating: '/home/edtroy/prefix/default/src/gr-tutorial/examples/tutorial6/top_block.py'
Executing: /usr/bin/python2 -u /home/edtroy/prefix/default/src/gr-tutorial/examples/tutorial6/top_block.py
gr-osmosdr v0.1.4-98-gc653754d (0.1.5git) gnuradio 3.7.12git-269-g8aa965c6
built-in source types: file osmosdr fcd rtl rtl_tcp uhd hackrf bladerf rfspace airspy soapy redpitaya
[INFO] [UHDlinux; GNU C++ version 6.3.0 20170406; Boost_106200; UHD_3.11.0.git-191-g1cd96dde]
Using device #0 Generic RTL2832U OEM
usb_open error -3
Please fix the device permissions, e.g. by installing the udev rules file rtl-sdr.rules
FATAL: Failed to open rtlsdr device.
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.
I changed the file I wrote to /etc/udev/rules.d/rtl-sdr.rules to the following--changing 2838 to 4014 since that was the other instance of the dongle that I found, as explained below. I also tried with no rtl-sdr.rules file and that did not work either:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="4014", GROUP="adm", MODE="0666", SYMLINK+="rtl_sdr"
Ed
FedericobestHi,I think you've forgotten to blacklist the dvbt driver. In Ubuntu, you have to add the following line to /etc/modprobe.d/blacklist.conf: blacklist dvb_usb_rtl28xxu.
2017-09-28 17:11 GMT-03:00 Ed Troy <etroy@aeroconsult.com>:
I am trying to run a simple fm receiver example using a RTL-SDR dongle. It is connected. But, when I run, I get the following errors:
gr-osmosdr v0.1.4-98-gc653754d (0.1.5git) gnuradio 3.7.12git-269-g8aa965c6
built-in source types: file osmosdr fcd rtl rtl_tcp uhd hackrf bladerf rfspace airspy soapy redpitaya
[INFO] [UHDlinux; GNU C++ version 6.3.0 20170406; Boost_106200; UHD_3.11.0.git-191-g1cd96dde]
Using device #0 Generic RTL2832U OEM
usb_open error -3
Please fix the device permissions, e.g. by installing the udev rules file rtl-sdr.rules
FATAL: Failed to open rtlsdr device.
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.
So, I did a lsusb command and got the following:
edtroy@ubuntu:/etc/udev/rules.d$ lsusb
Bus 001 Device 004: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Bus 001 Device 002: ID 0bda:4014 Realtek Semiconductor Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 004: ID 0e0f:0008 VMware, Inc.
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
I'm not sure which is the device that I should use, but I think it is Device 004. So, I wrote a file named rtlsdr.rules that I put in the directory /etc/udev/rules.d/ . That file consists of the following:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2838", GROUP="adm", MODE="0666", SYMLINK+="rtl_sdr"
But, when I try to run the example, I still get the above error. Any ideas what I am doing wrong and need to do to get RTLSDR dongle to work?
Ed
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
-- RF, Microwave, Antenna, and Analog Design, Development, Simulation, and Research consulting http://aeroconsult.com Aerospace Consulting LLC P.O. Box 536 Buckingham, Pa 18912 (215) 345-7184 (215) 345-1309
No comments:
Post a Comment