Skip to content

Troubleshooting

begreeen edited this page Sep 2, 2018 · 20 revisions

RTL-SDR source is now launching

Detecting problem

  1. Run the software in terminal:
./PW-Sat2_Ground_Station
  1. Choose "RTL-SDR" in Signal Source and click "Run Source". Observe terminal and look for similar debug output:
/home/pwsat2/pw-sat2-gs/main/app/../grc_linux/grc_part -s "rtl-sdr"
RTL-SDR
Gtk-Message: Failed to load module "canberra-gtk-module"
gr-osmosdr v0.1.4-127-g4d83c606 (0.1.5git) gnuradio 3.7.12.0
built-in source types: file fcd rtl rtl_tcp uhd rfspace redpitaya 
[INFO] [UHD] linux; GNU C++ version 5.4.0 20160609; Boost_105800; UHD_3.14.0.0-62-g3b42e6f0
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
Traceback (most recent call last):
  File "grc_part.py", line 49, in <module>
  File "grc/source/rtl_sdr_source/rtl_sdr_source.py", line 333, in main
  File "grc/source/rtl_sdr_source/rtl_sdr_source.py", line 166, in __init__
  File "osmosdr/osmosdr_swig.py", line 962, in make
RuntimeError: Failed to open rtlsdr device.
[1397] Failed to execute script grc_part
  1. To add udev rules follow next steps.

  2. Run sudo lsusb, look for similar line: Bus 001 Device 008: ID 0bda:2838 Realtek Semiconductor Corp.. The important parts are 0bda (the vendor id) and 2838 (the product id).

  3. Create a new file as root named /etc/udev/rules.d/20.rtlsdr.rules that contains the following line: SUBSYSTEM=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2838", GROUP="adm", MODE="0666", SYMLINK+="rtl_sdr" With the vendor and product ids for your particular dongle.

  4. Restart machine