Install & Configure SDR receiver
This guide specifically is for the Nooelec NESDR Mini 2+ USB RTL-SDR and ADS-B Receiver Set in a Debian or Ubuntu based environment, but should work for other similar SDR receivers (Especially Realtek ones).
- Plug in your SDR receiver to USB
- Run command:
lsusb | grep DVB
- If there are no results, make sure the USB device is plugged into a working USB port.
- Note down the two 4-digit values separated by a colon. This is the Vendor ID and Device ID of your SDR receiver. I will use the ones shown in this screenshot for this guide, but use your own values if they differ:
- Open/Create the following file (as root): /etc/modprobe.d/blacklist-dvb.conf
- Add the line:
blacklist dvb_usb_rtl28xxu
- Save and close the file
- This will block the default driver that is installed for this device. That driver does not work for general SDR purposes
- Install the rtl-sdr package:
sudo apt install rtl-sdr
- Open/Create the following file (as root): /etc/udev/rules.d/20.rtlsdr.rules
- Add the line:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2838", GROUP="adm", MODE="0666", SYMLINK+="rtl_sdr"
- Save and close the file
- Add your user to the adm user group so that it has permission to access the device. In the command below change the end to your ubuntu username:
-
sudo usermod -a -G adm william
-
- Unplug your USB device and then run this command to load the new rule:
-
sudo udevadm control --reload-rules
-
- Plug your USB device back in and run this command to test it:
rtl_test
- If all is working the process will keep running with no further output. You can use Ctrl-C to stop the process now.
- If you have an SDR program (like SDR++), open it and see if you can access the device
- A good first test is to tune to a local radio station
- Congrats! Now it's time to start listening to some stuff
- If you're looking to decode messages from nearby devices you'll likely want rtl-433 as well:
sudo apt install rtl-433
Issues
rtl_test Errors
If you receive a "Failed to open rtlsdr device #0" error when running the rtl_test
command, something is already accessing your USB SDR receiver. Close any applications that might be using it and try again.
If you receive any gibberish characters for the device name, this likely means there is a permissions issue. Try again as root and review the instructions for setting up the udev rules/permissions.
SDR++ app not displaying/receiving
For me, SDR++ sometimes does not start receiving properly. Sometimes it does. I've not found a solution for this and I've not had this issue in other applications, so the only solution I currently have is to use a different app.
No Comments