I have tried to use Joe’s script to install both. Previously it worked OK, but now it failed on a few parts.
However, I did manage to install the dump978 and the start-up files but not the local web-server page (but the one at :8080 still works).
Several changes that I needed to do by hand - I had to re-assign the receiver sticks by hand.
The script picked them arbitrarily, but I knew their serials and hence the ID’s (using rtl_eeprom). It’s important because I had a FA Stick Plus (filter for 1090MHz, amp, serial 00001000), and a generic one (serial 00000010 originally, tried to change it to 00001010 but didn’t make a difference).
How to Change Serial Number of A Dongle
In tutorial below it will be changed from default 00000001 to 00000000.
(A) Dongle Plugged into Raspberry Pi
STEP-1
First stop the dump1090 to make Dongle free for use by rtl tools.
#Give one of the command according to version of dump1090 you have installed
#If you are not sure of version, give all three commands one by one
sudo systemctl stop dump1090
sudo systemctl stop dump1090-mutability
sudo systemctl stop dump1090-fa
.
STEP-2
Install package rtl-sdr, if not yet done.
The tool rtl_eeprom is part of package rtl-sdr
sudo apt-get update
sudo apt-get install rtl-sdr
.
STEP-3
Now give the command rtl_eeprom -s 00000000 to reset the serial number
The last line of output will ask confirmation to go ahead with change.
Type y and press Enter key
rtl_eeprom -s 00000000
Found 1 device(s):
0: Generic RTL2832U OEM
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Current configuration:
__________________________________________
Vendor ID: 0x0bda
Product ID: 0x2838
Manufacturer: Realtek
Product: RTL2838UHIDIR
Serial number: 00000001
Serial number enabled: yes
IR endpoint enabled: yes
Remote wakeup enabled: no
__________________________________________
New configuration:
__________________________________________
Vendor ID: 0x0bda
Product ID: 0x2838
Manufacturer: Realtek
Product: RTL2838UHIDIR
Serial number: 00000000
Serial number enabled: yes
IR endpoint enabled: yes
Remote wakeup enabled: no
__________________________________________
Write new configuration to device [y/n]? y
#After typing y and pressing Enter key, you will get this confirmation message
Configuration successfully written.
Please replug the device for changes to take effect.
Then you have to change the settings for the dump1090-fa (or whatever you have). For me it was this sequence:
sudo nano /etc/default/dump1090-fa
sudo systemctl restart dump1090-fa
sudo systemctl status dump1090-fa -l
Change the ID and gain to match what dongle you want. Also, for my dump1090-fa I had to change the NET_OPTIONS line to have the input like this: --net-ri-port 30001
Then do the same for the dump978:
sudo nano /home/pi/adsb-receiver/build/dump978/dump978-maint.sh
Of course, one will have ID 0 and the other ID 1.
Ah, and check to see if the dump978 created the autorun entry in
sudo nano /etc/rc.local
And also if is executable:
sudo chmod +x /etc/rc.local
But all this is probably off-topic here, I apologize.