OrangePi: mengoperasikan RTL-SDR: Difference between revisions
From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
| Line 61: | Line 61: | ||
{ | { | ||
"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== | ==Edit init== | ||
Revision as of 07:28, 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
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": "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