Help with broken ADS-B after addition of UAT978

Hello all

I have been running a dump1090 for some time now and I just added a radio for UAT978. I followed the instructions on one of the discussion pages and entered the following commands after I plugged the orange flightaware receiver into the Pi.

sudo piaware-config uat-receiver-type sdr
sudo piaware-config rtlsdr-device-index 00001090
sudo piaware-config uat-sdr-device driver=rtlsdr,serial=00000978

Then sudo reboot

Piaware starts but neither the 1090 or 978 comes up.

Here is what I get with the status inquiry

pi@piaware:~$ sudo systemctl status piaware -l
â—Ź piaware.service - FlightAware ADS-B uploader
Loaded: loaded (/lib/systemd/system/piaware.service; enabled)
Active: active (running) since Fri 2020-11-13 20:35:16 UTC; 8min ago
Docs: PiAware - ADS-B and MLAT Receiver - FlightAware
Main PID: 516 (piaware)
CGroup: /system.slice/piaware.service
└─516 /usr/bin/piaware -p /run/piaware/piaware.pid -plainlog -statusfile /run/piaware/status.json

Nov 13 20:42:31 piaware sudo[1411]: pam_unix(sudo:session): session closed for user root
Nov 13 20:42:31 piaware piaware[516]: no ADS-B data program seen listening on port 30005 for 70 seconds, next check in 60s
Nov 13 20:42:37 piaware sudo[1420]: piaware : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/netstat --program --tcp --wide --all --numeric
Nov 13 20:42:37 piaware sudo[1420]: pam_unix(sudo:session): session opened for user root by (uid=0)
Nov 13 20:42:37 piaware sudo[1420]: pam_unix(sudo:session): session closed for user root
Nov 13 20:42:37 piaware piaware[516]: no ADS-B data program is serving on port 30005, not starting multilateration client yet
Nov 13 20:43:31 piaware sudo[1477]: piaware : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/netstat --program --tcp --wide --all --numeric
Nov 13 20:43:31 piaware sudo[1477]: pam_unix(sudo:session): session opened for user root by (uid=0)
Nov 13 20:43:31 piaware sudo[1477]: pam_unix(sudo:session): session closed for user root
Nov 13 20:43:31 piaware piaware[516]: no ADS-B data program seen listening on port 30005 for 130 seconds, next check in 60s
pi@piaware:~$

pi@piaware:~$ sudo systemctl status dump1090-fa -l
â—Ź dump1090-fa.service - dump1090 ADS-B receiver (FlightAware customization)
Loaded: loaded (/lib/systemd/system/dump1090-fa.service; enabled)
Active: activating (auto-restart) (Result: exit-code) since Fri 2020-11-13 20:44:55 UTC; 5s ago
Docs: PiAware - ADS-B and MLAT Receiver - FlightAware
Process: 1589 ExecStart=/usr/share/dump1090-fa/start-dump1090-fa --write-json %t/dump1090-fa --quiet (code=exited, status=1/FAILURE)
Main PID: 1589 (code=exited, status=1/FAILURE)

Nov 13 20:44:55 piaware systemd[1]: Unit dump1090-fa.service entered failed state.
pi@piaware:~$

pi@piaware:~$ sudo systemctl status dump978-fa
â—Ź dump978-fa.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
pi@piaware:~$

Any ideas what I am missing?

Thanks

Richard Minton

You have used rtl_eeprom to change the serials to the correct ones?

Ok I just found those commands and performed them.

rtl_eeprom -s 00001090

rtl_eeprom -s 00000978

unplugged, replugged and re-booted still no joy

You understand you must only have one SDR plugged in for each command?

I just tried again, confirmed one dongle at a time and the 1090 is back to working but still 978 is still down.

Are you sure that’s what was in that thread?
Can you quote the relevant post from that other thread maybe?

 

From Piaware advance configuration page:

Setting name Possible values Default value Description
uat-sdr-device see link in description driver=rtlsdr configures the sdr device to use in UAT mode; supported values can be found on the SoapySDR github page

 

From SoapySDR Settings page on Github

Device string examples

Here is how to use RTLSDR dongle via SoapySDR library with SoapyRTLSDR plugin:

device_string = "driver=rtlsdr,rtl=0";

Same thing, but identifying the device with its serial number:

device_string = "driver=rtlsdr,serial=00000349";

 

Did you reboot your Pi after issuing configuration commands shown above?

Ok I think I have the serialized properly but getting an error

pi@piaware:~$ rtl_test -t
Found 2 device(s):
0: Realtek, RTL2832U, SN: 00001090
1: Realtek, RTL2832U, SN: 00000978

Using device 0: Generic RTL2832U
usb_claim_interface error -6
Failed to open rtlsdr device #0.

First stop all to free the dongles for test

sudo systemctl stop piaware dump1090-fa dump978-fa   

Now test dongle 0
rtl_test -d 0 -t

Next test dongle 1
rtl_test -d 1 -t

After tests are finished, reboot Pi to restore system to normal
sudo reboot

Ok this is what I got

first when I stopped everything I received this:

pi@piaware:~$ sudo systemctl stop piaware dump1090-fa dump978-fa

Failed to stop dump978-fa.service: Unit dump978-fa.service not loaded.

Then testing the dongles

Dongle 0

pi@piaware:~$ rtl_test -d 0 -t
Found 2 device(s):
0: Realtek, RTL2832U, SN: 00001090
1: Realtek, RTL2832U, SN: 00000978

Using device 0: Generic RTL2832U
Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
Sampling at 2048000 S/s.
No E4000 tuner found, aborting.

Now Dongle 1

pi@piaware:~$ rtl_test -d 1 -t
Found 2 device(s):
0: Realtek, RTL2832U, SN: 00001090
1: Realtek, RTL2832U, SN: 00000978

Using device 1: Generic RTL2832U
Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
Sampling at 2048000 S/s.
No E4000 tuner found, aborting.

I then rebooted

Your dump978-fa installation has some issue as indicated by above responce.

What is output of following command?

apt policy dump978-fa

pi@piaware:~$ apt policy dump878-fa

E: Invalid operation policy

Seems your distro is very old. Try this

apt-cache policy dump978-fa

If above also fails, try with sudo

sudo apt-cache policy dump978-fa

It says unable to locate package dump978-fa. I’m on version 4.0

What is output of following command?

cat /etc/os-release

pi@piaware:~$ cat /etc/os-release

PRETTY_NAME=“Raspbian GNU/Linux 8 (jessie)”

NAME=“Raspbian GNU/Linux”

VERSION_ID=“8”

VERSION=“8 (jessie)”

ID=raspbian

ID_LIKE=debian

HOME_URL=“http://www.raspbian.org/”

SUPPORT_URL=“RaspbianForums - Raspbian”

BUG_REPORT_URL=“RaspbianBugs - Raspbian”

The dump978-fa did NOT get installed. What method/command you used to install it?

 

You have jessie, too old.

I am not sure if dump978-fa ver 4.0 can be insalled on it. @obj can confirm this.

From what I had seen on here I assumed it was already installed. I just tried to install it:

sudo apt-get install dump978-fa
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package dump978-fa

looks like I need to start over with a new distro