@stonedcrab
Wrote Stretch Lite image to microSD card, booted RPi with it, and ran J Prochazka’s script
(1) The script did NOT proceed further unless I chose one of dump1090 to be installed. I chose dump1090-mutability and then dump978. Installation successfully completed, but dump978 map not displayed at IP_OF_PI/dump978.php
(2) Ran J Prochazka’s script again, and installed web portal. Now dump978 map visible at IP_OF_PI/dump978.php
.
(3) Removed the dump1090-mutability (which was force-installed by J Prochazka’s script) by following command
sudo dpkg --purge dump1090-mutability
sudo rm -rf /usr/share/dump1090-mutability
sudo reboot
Now the dongle is in use by dump978 as dump1090 has vanished.
However due to no UAT 978 traffic at the moment, cannot say if it is working or not. Will have to wait for say half a day or more. Even the ADS-B 1090 traffic is almost zero here at this hour.
.
UPDATE
(1) Checked file dump978-maint.sh
pi@raspberrypi:~ $ cat adsb-receiver/build/dump978/dump978-maint.sh
#!/bin/bash
# Start dump978 without logging.
while true; do
rtl_sdr -d 0 -f 978000000 -s 2083334 -g 48 - | /home/pi/adsb-receiver/build/dump978/dump978/dump978 | tee >(/home/pi/adsb-receiver/build/dump978/dump978/uat 2json /var/www/html/dump978/data) | /home/pi/adsb-receiver/build/dump978/dump978 /uat2esnt | /bin/nc -q1 127.0.0.1 30001
sleep 15
done
.
(2) Tried the first part of command in above file:
#First stopped dump978-maint.sh script and rtl_sdr to make the dongle free
pi@raspberrypi:~ $ sudo killall dump978-maint.sh
pi@raspberrypi:~ $ sudo killall rtl_sdr
#Issued command
pi@raspberrypi:~ $ rtl_sdr -d 0 -f 978000000 -s 2083334 -g 48
Found 1 device(s):
0: Realtek, RTL2832U, SN: 00000000
Using device 0: Generic RTL2832U
rtl_sdr, an I/Q recorder for RTL2832 based DVB-T receivers
Usage: -f frequency_to_tune_to [Hz]
[-s samplerate (default: 2048000 Hz)]
[-d device_index (default: 0)]
[-g gain (default: 0 for auto)]
[-p ppm_error (default: 0)]
[-b output_block_size (default: 16 * 16384)]
[-n number of samples to read (default: 0, infinite)]
[-S force sync output (default: async)]
filename (a '-' dumps samples to stdout)
.
(3) The above command failed to give output as expected.
Noted -s
in command instead of -S
(small s instead of Capital S).
Corrected command by replacing -s
by -S
.
Now the command is giving correct output.
#First stopped dump978-maint.sh script and rtl_sdr to make the dongle free
pi@raspberrypi:~ $ sudo killall dump978-maint.sh
pi@raspberrypi:~ $ sudo killall rtl_sdr
#Now issued the command
pi@raspberrypi:~ $ rtl_sdr -d 0 -f 978000000 -S 2083334 -g 48
Found 1 device(s):
0: Realtek, RTL2832U, SN: 00000000
Using device 0: Generic RTL2832U
Detached kernel driver
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
Sampling at 2048000 S/s.
Tuned to 978000000 Hz.
Tuner gain set to 48.00 dB.
Reading samples in sync mode...
(4) in file adsb-receiver/build/dump978/dump978-maint.sh
changed -s
by -S
pi@raspberrypi:~ $ sudo nano adsb-receiver/build/dump978/dump978-maint.sh
#Changed -s by -S and saved the file
#Rebooted
pi@raspberrypi:~ $ sudo reboot
.
(5) Checked any data collected
pi@raspberrypi:~ $ cat /var/www/html/dump978/data/aircraft.json
{
"now" : 1547839813,
"messages" : 0,
"aircraft" : [
]
}
(6) Found no data yet. Waiting for UAT978 planes to appear