Difference between revisions of "OrangePi: mengoperasikan RTL-SDR"

From OnnoWiki
Jump to navigation Jump to search
Line 19: Line 19:
 
  sudo ldconfig
 
  sudo ldconfig
  
 +
 +
Deteksi Card / Dongle
 +
 +
rtl_test -t
  
 
==Instalasi multimonNG==
 
==Instalasi multimonNG==

Revision as of 14:55, 13 June 2018

Instalasi Pendukung

sudo su
apt-get update
apt-get -y install git cmake build-essential libusb-1.0 libusb-1.0-0-dev \
libpulse-dev libx11-dev libpulse-dev libx11-dev python-pkg-resources qtcreator \
libtool autoconf automake libfftw3-dev

Instalasi Driver RTL-SDR

cd ~/
git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr
mkdir build
cd build
cmake ../ -DINSTALL_UDEV_RULES=ON
make
sudo make install
sudo ldconfig


Deteksi Card / Dongle

rtl_test -t

Instalasi multimonNG

cd ~/
git clone https://github.com/EliasOenal/multimonNG.git
cd multimonNG
mkdir build
cd build
qmake ../multimon-ng.pro
make
sudo make install

Decode APRS

# rtl_fm -f 144.800M -s 22050 | multimon-ng -t raw -a AFSK1200 -f alpha /dev/stdin
rtl_fm -f 144.390M -s 22050 | multimon-ng -t raw -a AFSK1200 -f alpha /dev/stdin


Akan keluar kira-kira

Found 1 device(s):

 0:  Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
multimon-ng 1.1.5
  (C) 1996/1997 by Tom Sailer HB9JNX/AE4WA
  (C) 2012-2018 by Elias Oenal
Available demodulators: POCSAG512 POCSAG1200 POCSAG2400 FLEX EAS UFSK1200 CLIPFSK FMSFSK AFSK1200 AFSK2400 AFSK2400_2 AFSK2400_3 HAPN4800 FSK9600 DTMF ZVEI1  ZVEI2 ZVEI3 DZVEI PZVEI EEA EIA CCIR MORSE_CW DUMPCSV X10 SCOPE
Enabled demodulators: AFSK1200
Found Rafael Micro R820T tuner
Tuner gain set to automatic.
Tuned to 144643575 Hz.
Oversampling input by: 46x.
Oversampling output by: 1x.
Buffer size: 8.08ms
Exact sample rate is: 1014300.020041 Hz
cb transfer status: 5, canceling...
Failed to submit transfer 2
Please increase your allowed usbfs buffer size with the following command:
echo 0 > /sys/module/usbcore/parameters/usbfs_memory_mb
cb transfer status: 5, canceling...
r82xx_write: i2c wr failed=-4 reg=0a len=1
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
rtlsdr_demod_write_reg failed with -4
rtlsdr_demod_read_reg failed with -4
WARNING: Failed to set sample rate.
Output at 22050 Hz.

Kalibrasi Drift

cd ~/
git clone https://github.com/asdil12/kalibrate-rtl.git
cd kalibrate-rtl
git checkout arm_memory
./bootstrap
./configure
make
sudo make install


Kalibrasi

kal -s GSM900
kal -c 100


Instalasi MultimonAPRS

cd ~/
git clone https://github.com/asdil12/pymultimonaprs.git
cd pymultimonaprs
chmod a+x setup.py
./setup.py build
sudo ./setup.py install


Edit

sudo nano /etc/pymultimonaprs.json

Siapkan

Hasilnya,

{
       "callsign": "NOCALL-10"
       "passcode": "12345",
       "gateway": ["euro.aprs2.net:14580","noam.aprs2.net:14580"],
       "preferred_protocol": "any",
       "append_callsign": true,
       "source": "rtl",
       "rtl": {
               "freq": 144.390,
               "ppm": 0,
               "gain": 0,
               "offset_tuning": false,
               "device_index": 0
       },
       "alsa": {
               "device": "default"
       },
       "beacon": {
               "lat": -6.168589,
               "lng": 106.865090,
               "table": "R",
               "symbol": "&",
               "comment": "PyMultimonAPRS iGate",
               "status": {
                       "text": "Running on OrangePi with RTL dongle",
                       "file": false
               },
               "weather": false,
               "send_every": 300,
               "ambiguity": 0
       }
}

Edit init

sudo nano /etc/init.d/pymultimonaprs
#!/bin/sh
### BEGIN INIT INFO
# Provides: pymultimonaprs
# Required-Start: $all
# Required-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start/stop of pymultimonaprs
### END INIT INFO

case "$1" in
 start)
   sudo pymultimonaprs --syslog &
   ;;
 stop)
   sudo killall pymultimonaprs
   ;;
 *)
   echo "Usage: /etc/init.d/pymultimonaprs {start|stop}"
   exit 1
   ;;
esac

exit 0


Permission execute

sudo chmod +x /etc/init.d/pymultimonaprs


sudo update-rc.d pymultimonaprs defaults
sudo reboot