Difference between revisions of "ADS-B: Instalasi gr-air-modes"

From OnnoWiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Persiapan==
+
gr-air-modes untuk bisa monitor transmisi ADS-B membutuhkan
 +
* UHD
 +
* GNURadio
 +
* RTL-SDR
 +
* gr_osmoSDR
  
 +
Lakukan sampai selesai proses
  
Instalasi paket pendukung
+
* [[GNURadio: Compile GNURadio + UHD]]
  
sudo apt-get install cmake swig libcppunit-dev python-cheetah doxygen \
 
libboost-all-dev python-sphinx libfftw3-dev python-numpy libqwt-dev \
 
libusb-dev libusb-dev libusb-1.0-0-dev libgsl-dev python-wxgtk3.0 git qtcreator \
 
bison flex
 
  
Upgrade CMAKE
 
  
sudo du
+
==Instalasi gr-air-modes==
apt remove --purge cmake
 
cd /opt/
 
wget https://github.com/Kitware/CMake/releases/download/v3.16.2/cmake-3.16.2-Linux-x86_64.sh
 
chmod +x /opt/cmake-3.16.2-Linux-x86_64.sh
 
sudo bash /opt/cmake-3.16.2-Linux-x86_64.sh
 
sudo ln -s /opt/cmake-3.16.2-Linux-x86_64/bin/* /usr/local/bin
 
sudo ln -s /opt/cmake-3.16.2-Linux-x86_64/bin/* /usr/bin
 
cmake --version
 
 
 
Buat directory
 
 
 
mkdir -y /usr/local/src/SDR
 
cd /usr/local/src/SDR
 
 
 
 
 
==Install UHD + GNURadio==
 
 
 
Compile SWIG
 
 
 
sudo su
 
sudo apt-get install bison flex
 
cd /usr/local/src
 
git clone https://github.com/swig/swig.git
 
cd swig
 
sudo apt-get install automake
 
./autogen.sh
 
./configure
 
make
 
make install
 
 
 
Compile UHD
 
 
 
mkdir -p /usr/local/src/SDR
 
cd /usr/local/src/SDR
 
git clone https://github.com/EttusResearch/uhd
 
cd /usr/local/src/SDR/uhd/
 
git tag -l
 
 
 
git checkout v3.15.0.0
 
cd host
 
mkdir build
 
cd build
 
cmake ../
 
make
 
make test
 
sudo make install
 
sudo ldconfig
 
export LD_LIBRARY_PATH=/usr/local/lib
 
 
 
Compile GNURadio
 
 
 
cd /usr/local/src/SDR
 
git clone --recursive https://github.com/gnuradio/gnuradio.git
 
cd gnuradio
 
git checkout maint-3.8
 
git submodule update --init --recursive
 
mkdir build
 
cd build
 
cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 ../
 
make
 
make test
 
sudo make install
 
sudo ldconfig
 
 
 
==Install rtl_sdr==
 
 
 
Lakukan
 
 
 
cd /usr/local/src/SDR
 
git clone git://git.osmocom.org/rtl-sdr.git
 
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.
 
 
 
==Install gr_osmoSDR==
 
 
 
Masuk ke directory
 
 
 
cd /usr/local/src/SDR/
 
git clone git://git.osmocom.org/gr-osmosdr
 
  
cd /usr/local/src/SDR/gr-osmosdr/
+
Install
git checkout gr3.8
 
mkdir build
 
cd build/
 
cmake ../
 
make
 
sudo make install
 
sudo ldconfig
 
  
==Instalasi gr-air-modes==
+
apt install pyqt4-dev-tools
  
 
Lakukan
 
Lakukan
Line 130: Line 21:
 
  cd /usr/local/src/SDR
 
  cd /usr/local/src/SDR
 
  git clone https://github.com/bistromath/gr-air-modes.git
 
  git clone https://github.com/bistromath/gr-air-modes.git
 
 
  cd /usr/local/src/SDR/gr-air-modes/
 
  cd /usr/local/src/SDR/gr-air-modes/
 
  mkdir build
 
  mkdir build

Latest revision as of 17:54, 2 January 2020

gr-air-modes untuk bisa monitor transmisi ADS-B membutuhkan

  • UHD
  • GNURadio
  • RTL-SDR
  • gr_osmoSDR

Lakukan sampai selesai proses


Instalasi gr-air-modes

Install

apt install pyqt4-dev-tools

Lakukan

cd /usr/local/src/SDR
git clone https://github.com/bistromath/gr-air-modes.git
cd /usr/local/src/SDR/gr-air-modes/
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig

Jalankan gr-air-modes

Jalankan menggunakan perintah

modes_rx -d -P

Keluar

gr-air-modes warning: numpy+scipy not installed, FlightGear interface not supported
gr-osmosdr supported device types: file fcd rtl rtl_tcp 
Using device #0: ezcap USB 2.0 DVB-T/DAB/FM dongle
Found Elonics E4000 tuner
Gain is 34
Rate is 4000000
Using Volk machine: ssse3_32
>>> gr_fir_ccf: using SSE
(-52 0.0000000000) Type 17 BDS0,9-1 (track report) from 8a0261 with velocity 270kt heading 103 VS 2304
(-52 0.0000000000) Type 11 (all call reply) from 8a0261 in reply to interrogator 0 with capability level 6
(-52 0.0000000000) Type 17 BDS0,9-1 (track report) from 8a0261 with velocity 270kt heading 103 VS 2304
(-52 0.0000000000) Type 11 (all call reply) from 8a0261 in reply to interrogator 0 with capability level 6

Catatan Antenna

with a piece of wire in the rtl283 antenna socket resulted in decodes from one aircraft almost overhead. Time for a better 1090MHz antenna. The J pole previously used was easy to build from 2 pieces of semi rigid cable so time to make another.It was tuned with a tracking generator/directional coupler/ spectrum analyser and achieved 32dB retun loss after tweaking. Putting this on the end of 35' of cable in the loft resulted in many more decodes and a torrent of data in the terminal:-


Membuat Virtual Radar

Next time to plot the data. The article pointed to Virtual radar server at http://www.virtualradarserver.co.uk/Mono.aspx so this was installed. Launching it with and clicking on the http link for local host resulted in the following map with 8 aircraft:-

The rtl2832 is not as sensitive as the Modesbeast I also have but it is only 5% of the cost!

Referensi

Pranala Menarik