OrangePi: mengoperasikan RTL-SDR

From OnnoWiki
Jump to navigation Jump to search

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

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


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


sudo nano /etc/pymultimonaprs.json

Passcode bisa di generate dari situs https://apps.magicbug.co.uk/passcode/index.php


{
 "callsign": "N0CALL-10",
 "passcode": "12345",
 "gateway": "poland.aprs2.net:14580",
 "append_callsign": true,
 "source": "rtl",
 "rtl": {
  "freq": 144.390,
  "ppm": -28.195,
  "gain": 0
 },
 "alsa": {
  "device": "default"
 },
 "beacon": {
  "lat": 51.73900,
  "lng": 19.81130,
  "table": "/",
  "symbol": "&",
  "comment": "PyMultimonAPRS RX iGate",
  "status": {
   "text": "Running on OrangePi with RTL dongle",
   "file": false
  },
  "weather": false,
  "send_every": 300
 }
}



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