источник : http://gimmor.blogspot.ru/2014/01/sdr-dvb-t-realtek-rtl2832u-ubuntu.html
bash lsusb
Bus 001 Device 003: ID 0bda:2832 Realtek Semiconductor Corp. RTL2832U DVB-T
- Настройка прав для портов USB (в моем случае это нужно было сделать)
sudo groupadd usbusers
groups имя_пользователя # вывод списка групп в которых состоит пользователь.
groups isaifutdinov
sudo usermod -G usbusers -a isaifutdinov
-
Edit the file /etc/udev/rules.d/40-permissions.rules
-
Search for the following lines
bash # USB devices (usbfs replacement) SUBSYSTEM=="usb_device", MODE="0664"
- Change them to the following
# USB devices (usbfs replacement)
SUBSYSTEM=="usb_device", GROUP="usbusers", MODE="0664"
- перезагрузка компьютера
## Установка GnuRadio
sudo apt-get install gnuradio
при ошибки запуска GRC нужно установить модуль питона numpy:
sudo apt-get install numpy
Сборка из исходных кодов RTL-SDR
Загрузка исходных кодов RTL-SDR. Можно проделать в домашней директории, либо в директории для проектов (у меня ~/dev )
git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr/
mkdir build & cd build & sudo apt install cmake & cmake ../ & make
sudo make install & sudo ldconfig
Тестирование после сборки
sudo rtl_test -t
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000013
Using device 0: Generic RTL2832U OEM
Kernel driver is active, or device is claimed by second instance of librtlsdr.
In the first case, please either detach or blacklist the kernel module
(dvb_usb_rtl28xxu), or enable automatic detaching at compile time.
usb_claim_interface error -6
Failed to open rtlsdr device #0.
Надо выгрузить модули ядра , привязанные к устройству (это всё же телеприёмник). Добавить в файл /etc/modprobe.d/blacklist.conf следующие строки:
blacklist dvb_usb_rtl28xxu
blacklist rtl2830
blacklist dvb_usb_v2
и перезагрузить систему.
и перезагрузить систему.
sudo rtl_test -t
Found 1 device(s):
0: Generic, RTL2832U, SN: 77771111153705700
Using device 0: Generic RTL2832U
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.
No E4000 tuner found, aborting.
Простейшее прослушивание УКВ-радио (FM)
RTL-FM - консольная программа для декодирования FM. Aplay - консольное проигрывание звука.
rtl_fm -f 105.8M -s 200000 -r 48000 - | aplay -r 48k -f S16_LE
- Программы для SDR
sudo apt-get install gqrx-sdr ### SDR#
Written by prog (Youssef) for Windows. It is probably the best general purpose software for rtlsdr devices. Mono is slow and ugly on linux but if you restrict the sample rate it works fine. It's probably the easiest program to use, has the most diverse plugin ecosystem (example: Vasili_ru's plugins), and has the best DSP and features for dealing with the quirks of the rtlsdr dongles. As of 2015-09-14 the changes to Mono 4 allow SDR# to be viable to run on linux again. Make sure you have the latest Mono 4 though. This still requires soft linking in your system rtlsdr and portaudio library to the sdrshape.exe dir like below,
ln -s /usr/local/lib/librtlsdr.so librtlsdr.dll
ln -s /usr/lib/x86_64-linux-gnu/libportaudio.so.
2 libportaudio.so Just make sure you link your actual system rtlsdr and libportaudio, not my example path above. On debian/ubuntu find it by using locate, locate portaudio.so Roklobsta's rtlsdr.org has a more detailed SDR# linux configuration guide if you're having trouble. Update: As of 2015-10-15 ADBS# is no more. ADBS# is another easy to use application by prog, but specifically for plotting aviation transponders like gr-air-modes does. The distributed binaries also runs under linux with mono (or native in windows) and output virtualradar compatible data on 127.0.0.1:47806. If your antenna condition is crappy, try using filter = 1.
Изучить:
http://my-gnuradio.org/2014/11/16/rtl2832-dongl-i-gnuradio/
Установка программы CubicSDR
sudo add-apt-repository ppa:alexlarsson/flatpak
sudo apt update
sudo apt install flatpak
Загрузить приложение CubicSDR CubicSDR-0.2.1-x86_64.AppImage
Инстукции http://cubicsdr.readthedocs.io/en/latest/
Install CubicSDR:
flatpak flatpak install --bundle CubicSDR-0.2.0.flatpak
Once installed, run with flatpak run com.cubicsdr.
App To uninstall CubicSDR flatpak (or prepare for re-install):
flatpak uninstall com.cubicsdr.App