SDR: test USB dongle
Revision as of 12:34, 16 October 2012 by Onnowpurbo (talk | contribs) (New page: ==Persiapan== Buat directory mkdir /usr/local/src/SDR cd /usr/local/src/SDR Instalasi paket pendukung sudo apt-get install cmake swig libcppunit-dev python-cheetah doxygen \ libboo...)
Persiapan
Buat directory
mkdir /usr/local/src/SDR cd /usr/local/src/SDR
Instalasi paket pendukung
sudo apt-get install cmake swig libcppunit-dev python-cheetah doxygen \ libboost-all-dev python-sphinx fftw3-dev python-numpy libqwt-dev \ libusb++-dev libusb-dev libusb-1.0-0-dev libgsl0-dev python-wxgtk2.6 git qtcreator
Install GNURadio
Lakukan
cd /usr/local/src/SDR git clone git://gnuradio.org/gnuradio
Compile
cd /usr/local/src/SDR/gnuradio mkdir build cd build cmake ../ make sudo make install sudo ldconfig
Install rtl_sdr
Lakukan
cd /usr/local/src/SDR git clone git://git.osmocom.org/rtl-sdr.git
Masuk ke directory rtl-sdr & lakukan
cd /usr/local/src/SDR/rtl-sdr/ mkdir build cd build cmake ../
make sudo make install sudo ldconfig
Aturan udev yang penting agar USB dongle terdetek dengan baik perlu di copy menggunakan perintah berikut
cd /usr/local/src/SDR/rtl-sdr/ sudo cp rtl-sdr.rules /etc/udev/rules.d/40-basic-permissions.rules /etc/init.d/udev restart
Kita dapat meng-unplug & replug USB dongle. Cek menggunakan perintah
lsusb
Keluar
Bus 001 Device 002: ID 0bda:0158 Realtek Semiconductor Corp. USB 2.0 multicard reader Bus 006 Device 002: ID 1bcf:0005 Sunplus Innovation Technology Inc. Bus 001 Device 003: ID 0bda:2838 Realtek Semiconductor Corp.
Testing
Lakukan
cd /usr/local/src/SDR/rtl-sdr/build/src ./rtl_test
Keluar
Found 1 device(s): 0: ezcap USB 2.0 DVB-T/DAB/FM dongle Using device 0: ezcap USB 2.0 DVB-T/DAB/FM dongle Found Elonics E4000 tuner Supported gain values (14): -1.0 1.5 4.0 6.5 9.0 11.5 14.0 16.5 19.0 21.5 24.0 29.0 34.0 42.0 Reading samples in async mode...