Skip to content

Latest commit

 

History

History
127 lines (94 loc) · 4.21 KB

OGN-receiver-setup.md

File metadata and controls

127 lines (94 loc) · 4.21 KB

These instructions are for headless installation (that's without a need for keyboard and monitor connected to Raspberry Pi). Well, at least for the most part, you still have to connect to RPI to configure WiFi and enable SSH. I created a custom RPI image which has those already pre-configured for my home wifi so I can skip the step #1 below.

Set up SD card with Raspberry Pi OS Lite image.

1. Configure WiFi, SSH, timezone, hostname Skip this step if using pre-confgured RPI image
  1. Use instructions on How to configure RPI for headless set up with WiFi and SSH to configure WiFi and SSH before using SD card in Raspberry Pi. Use the following as the content of wpa_supplicat.conf file:
update_config=1
country=AU

network={
  ssid="MeMi"
  psk="<insert WiFi password here>"
  key_mgmt=WPA-PSK
  priority=1
}

network={
  ssid="Parents"
  scan_ssid=1
  psk="<insert WiFi password here>"
  key_mgmt=WPA-PSK
  priority=2
}
  1. Install SD card in RPI, boot and SSH into it. If you don’t know the IP address - try using raspberrypi.local host name (or ping it to find the IP address)
  2. Configure RPI to email its IP address on boot (original instructions are on http://cagewebdev.com/raspberry-pi-sending-emails-on-boot/) a) Create startup_mailer.py file
wget https://raw.githubusercontent.com/andrekolodochka/ogn/main/startup_mailer.py

b) Edit /etc/rc.local file and add a line to run the script on boot


if [ “$_IP” ]; then
printf “My IP address is %s\n” “$_IP”
python /home/pi/startup_mailer.py
fi
  1. Set Raspberry Pi settings through raspi-config
sudo raspi-config

a) 1. System options → S4 Hostname: set preferred hostname, such as YSRI-OGN-receiver

b) 5. Localization options → L2 Timezone: set to Australia/Sydney

2. Update existing and install new required packages
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y build-essential ntp ntpdate libjpeg-dev libconfig-dev fftw3-dev procserv lynx telnet rtl-sdr make cmake aptitude libjpeg8
3. Download rtl-dsr software and extract
sudo mkdir /opt/rtlsdr && cd /opt/rtlsdr && sudo wget http://download.glidernet.org/arm/rtlsdr-ogn-bin-ARM-latest.tgz && sudo tar -xzvf rtlsdr-ogn-bin-ARM-latest.tgz
cd rtlsdr-ogn
4. Follow instructions in INSTALL file
source setup-rpi.sh
source getEGM.sh
source install-service.sh
5. Download configuration file for YSRI Obviously this step is specific to Richmond RAAF airbase, you'll need to figure out your airfield's settings
wget -O /opt/rtldsr/rtlsdr-ogn/YSRI.conf https://raw.githubusercontent.com/andrekolodochka/ogn/main/YSRI.conf
6. Download rtlsdr-ogn.conf file into /etc directory and overwrite the existing file Again, this step is specific to my set up, the name and location of your configuration file rtl-sdr-ogn.conf refers to is likely to be different.
sudo wget -O /etc/rtldsr-ogn.conf https://raw.githubusercontent.com/andrekolodochka/ogn/main/rtlsdr-ogn.conf
7. Plug in the dongle and start the service
sudo service rtlsdr-ogn start 
Test and monitor/summary>
  1. Should see fair bit of activity on port 50001 (may need to wait a few mins after the start)
telnet localhost 50000
telnet localhost 50001
  1. Open http://:8081 and http://:8080
  2. Go to Glider RADAR and check whether the receiver is shown. Go to Onglide Range and check whether YSRI receiver is online.