I have AIS catcher running in a tmux session, not as a service. it’s setup to run device index 1, and it runs fine even after reboot. flightaware is using rtl-sdr with 0, although I just added the serial number (000002) to the dump1090-fa config. still no dice after reboot until I run the script above. then it suddenly comes alive.
before reboot
journalctl -u dump1090-fa
Aug 21 18:51:29 AIS-ADSB systemd[1]: dump1090-fa.service: Consumed 1min 54.483s CPU time.
Aug 21 18:52:17 AIS-ADSB systemd[1]: Started dump1090-fa.service - dump1090 ADS-B receiver (FlightAware customization).
Aug 21 18:52:18 AIS-ADSB dump1090-fa[1485]: Wed Aug 21 18:52:17 2024 PDT dump1090-fa 9.0 starting up.
Aug 21 18:52:18 AIS-ADSB dump1090-fa[1485]: rtlsdr: using device #0: Generic RTL2832U OEM (RTLSDRBlog, Blog V4, SN 00000002)
Aug 21 18:52:18 AIS-ADSB dump1090-fa[1485]: Found Rafael Micro R828D tuner
Aug 21 18:52:18 AIS-ADSB dump1090-fa[1485]: RTL-SDR Blog V4 Detected
Aug 21 18:52:19 AIS-ADSB dump1090-fa[1485]: rtlsdr: tuner gain set to about 58.6 dB (gain step 29) (tuner AGC enabled)
Aug 21 18:52:19 AIS-ADSB dump1090-fa[1485]: adaptive: using 50% duty cycle
Aug 21 18:52:19 AIS-ADSB dump1090-fa[1485]: adaptive: enabled adaptive gain control with gain limits 0.0dB (step 0) … 58.6dB (step 29)
Aug 21 18:52:19 AIS-ADSB dump1090-fa[1485]: adaptive: enabled dynamic range control, target dynamic range 30.0dB
Aug 21 18:52:29 AIS-ADSB dump1090-fa[1485]: adaptive: reached upper gain limit, halting dynamic range scan here
lines 892-933/933 (END)
journalctl -u dump978-fa
Aug 22 15:24:15 AIS-ADSB systemd[1]: dump978-fa.service: Scheduled restart job, restart counter is at 2460.
Aug 22 15:24:15 AIS-ADSB systemd[1]: Stopped dump978-fa.service - dump978 ADS-B UAT receiver.
Aug 22 15:24:15 AIS-ADSB systemd[1]: Started dump978-fa.service - dump978 ADS-B UAT receiver.
Aug 22 15:24:15 AIS-ADSB dump978-fa[7334]: raw-port: listening for connections on 0.0.0.0:30978
Aug 22 15:24:15 AIS-ADSB dump978-fa[7334]: raw-port: listening for connections on [::]:30978
Aug 22 15:24:15 AIS-ADSB dump978-fa[7334]: json-port: listening for connections on 0.0.0.0:30979
Aug 22 15:24:15 AIS-ADSB dump978-fa[7334]: json-port: listening for connections on [::]:30979
Aug 22 15:24:15 AIS-ADSB dump978-fa[7334]: Configuration error: No matching SoapySDR device found (cause: SoapySDR::Device::make() no match)
Aug 22 15:24:15 AIS-ADSB systemd[1]: dump978-fa.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Aug 22 15:24:15 AIS-ADSB systemd[1]: dump978-fa.service: Failed with result ‘exit-code’.
Not sure where SoapySDR is coming from. it’s a RTL-SDR.
in /etc/default/dump978.conf I have: (not sure it’s the correct path for this file to be):
dump978-fa configuration
This is sourced by /usr/share/dump978-fa/start-dump978-fa as a
shellscript fragment.
If you are using a PiAware sdcard image, this config file is regenerated
on boot based on the contents of piaware-config.txt; any changes made to this
file will be lost.
dump978-fa won’t automatically start unless ENABLED=yes
ENABLED=yes
RECEIVER_OPTIONS=“–sdr driver=rtlsdr --format CS8”
DECODER_OPTIONS=“”
NET_OPTIONS=“–raw-port 30978 --json-port 30979”
DUMP978_DEVICE_TYPE=“–sdr driver=rtlsdr,serial=00000002”
—after reboot—
AIS still working fine on RTL-SDR device 1.
journalctl -u dump1090-fa:
Aug 22 15:38:35 AIS-ADSB systemd[1]: Started dump1090-fa.service - dump1090 ADS-B receiver (FlightAware customization).
Aug 22 15:38:36 AIS-ADSB dump1090-fa[566]: Thu Aug 22 15:38:36 2024 PDT dump1090-fa 9.0 starting up.
Aug 22 15:38:36 AIS-ADSB dump1090-fa[566]: rtlsdr: using device #0: Generic RTL2832U OEM (RTLSDRBlog, Blog V4, SN 00000002)
Aug 22 15:38:37 AIS-ADSB dump1090-fa[566]: Found Rafael Micro R828D tuner
Aug 22 15:38:37 AIS-ADSB dump1090-fa[566]: rtlsdr: tuner gain set to about 58.6 dB (gain step 29) (tuner AGC enabled)
Aug 22 15:38:37 AIS-ADSB dump1090-fa[566]: [R82XX] PLL not locked!
Aug 22 15:38:37 AIS-ADSB dump1090-fa[566]: [R82XX] PLL not locked!
Aug 22 15:38:37 AIS-ADSB dump1090-fa[566]: adaptive: using 50% duty cycle
Aug 22 15:38:37 AIS-ADSB dump1090-fa[566]: adaptive: enabled adaptive gain control with gain limits 0.0dB (step 0) … 58.6dB (step 29)
Aug 22 15:38:37 AIS-ADSB dump1090-fa[566]: adaptive: enabled dynamic range control, target dynamic range 30.0dB
Aug 22 15:38:37 AIS-ADSB dump1090-fa[566]: Allocating 4 zero-copy buffers
Aug 22 15:38:47 AIS-ADSB dump1090-fa[566]: adaptive: available dynamic range (7.4dB) < required dynamic range (30.0dB), switching to downward scan
Aug 22 15:38:47 AIS-ADSB dump1090-fa[566]: adaptive: changing gain from 58.6dB (step 29) to 49.6dB (step 28) because: probing dynamic range gain lower bound
Aug 22 15:38:47 AIS-ADSB dump1090-fa[566]: rtlsdr: tuner gain set to 49.6 dB (gain step 28)
Aug 22 15:38:57 AIS-ADSB dump1090-fa[566]: adaptive: available dynamic range (16.3dB) < required dynamic range (30.0dB), continuing downwards scan
Aug 22 15:38:57 AIS-ADSB dump1090-fa[566]: adaptive: changing gain from 49.6dB (step 28) to 48.0dB (step 27) because: probing dynamic range gain lower bound
Aug 22 15:38:57 AIS-ADSB dump1090-fa[566]: rtlsdr: tuner gain set to 48.0 dB (gain step 27)
Aug 22 15:39:22 AIS-ADSB dump1090-fa[566]: adaptive: available dynamic range (20.3dB) < required dynamic range (30.0dB), continuing downwards scan
Aug 22 15:39:22 AIS-ADSB dump1090-fa[566]: adaptive: changing gain from 48.0dB (step 27) to 44.5dB (step 26) because: probing dynamic range gain lower bound
Aug 22 15:39:22 AIS-ADSB dump1090-fa[566]: rtlsdr: tuner gain set to 44.5 dB (gain step 26)
Aug 22 15:39:32 AIS-ADSB dump1090-fa[566]: adaptive: available dynamic range (22.2dB) < required dynamic range (30.0dB), continuing downwards scan
Aug 22 15:39:32 AIS-ADSB dump1090-fa[566]: adaptive: changing gain from 44.5dB (step 26) to 43.9dB (step 25) because: probing dynamic range gain lower bound
Aug 22 15:39:32 AIS-ADSB dump1090-fa[566]: rtlsdr: tuner gain set to 43.9 dB (gain step 25)
Aug 22 15:39:42 AIS-ADSB dump1090-fa[566]: adaptive: available dynamic range (21.0dB) < required dynamic range (30.0dB), continuing downwards scan
Aug 22 15:39:42 AIS-ADSB dump1090-fa[566]: adaptive: changing gain from 43.9dB (step 25) to 43.4dB (step 24) because: probing dynamic range gain lower bound
Aug 22 15:39:42 AIS-ADSB dump1090-fa[566]: rtlsdr: tuner gain set to 43.4 dB (gain step 24)
Aug 22 15:39:52 AIS-ADSB dump1090-fa[566]: adaptive: available dynamic range (21.9dB) < required dynamic range (30.0dB), continuing downwards scan
Aug 22 15:39:52 AIS-ADSB dump1090-fa[566]: adaptive: changing gain from 43.4dB (step 24) to 42.1dB (step 23) because: probing dynamic range gain lower bound
Aug 22 15:39:52 AIS-ADSB dump1090-fa[566]: rtlsdr: tuner gain set to 42.1 dB (gain step 23)
Aug 22 15:40:02 AIS-ADSB dump1090-fa[566]: adaptive: available dynamic range (23.6dB) < required dynamic range (30.0dB), continuing downwards scan
Aug 22 15:40:02 AIS-ADSB dump1090-fa[566]: adaptive: changing gain from 42.1dB (step 23) to 40.2dB (step 22) because: probing dynamic range gain lower bound
Aug 22 15:40:02 AIS-ADSB dump1090-fa[566]: rtlsdr: tuner gain set to 40.2 dB (gain step 22)
Aug 22 15:40:12 AIS-ADSB dump1090-fa[566]: adaptive: available dynamic range (27.0dB) < required dynamic range (30.0dB), continuing downwards scan
Aug 22 15:40:12 AIS-ADSB dump1090-fa[566]: adaptive: changing gain from 40.2dB (step 22) to 38.6dB (step 21) because: probing dynamic range gain lower bound
Aug 22 15:40:12 AIS-ADSB dump1090-fa[566]: rtlsdr: tuner gain set to 38.6 dB (gain step 21)
Aug 22 15:40:22 AIS-ADSB dump1090-fa[566]: adaptive: available dynamic range (28.6dB) < required dynamic range (30.0dB), continuing downwards scan
Aug 22 15:40:22 AIS-ADSB dump1090-fa[566]: adaptive: changing gain from 38.6dB (step 21) to 37.2dB (step 20) because: probing dynamic range gain lower bound
Aug 22 15:40:22 AIS-ADSB dump1090-fa[566]: rtlsdr: tuner gain set to 37.2 dB (gain step 20)
Aug 22 15:40:32 AIS-ADSB dump1090-fa[566]: adaptive: available dynamic range (30.1dB) >= required dynamic range (30.0dB), stopping downwards scan here
Aug 22 15:40:34 AIS-ADSB dump1090-fa[566]: adaptive: available dynamic range (29.5dB) + half gain step down (0.4dB) < required dynamic range (30.0dB), starting downwa>
Aug 22 15:40:34 AIS-ADSB dump1090-fa[566]: adaptive: changing gain from 37.2dB (step 20) to 36.4dB (step 19) because: dynamic range fell below target value
Aug 22 15:40:34 AIS-ADSB dump1090-fa[566]: rtlsdr: tuner gain set to 36.4 dB (gain step 19)
lines 60-101/101 (END)
and 978 dump:
Aug 22 15:40:55 AIS-ADSB systemd[1]: dump978-fa.service: Failed with result ‘exit-code’.
Aug 22 15:41:25 AIS-ADSB systemd[1]: dump978-fa.service: Scheduled restart job, restart counter is at 5.
Aug 22 15:41:25 AIS-ADSB systemd[1]: Stopped dump978-fa.service - dump978 ADS-B UAT receiver.
Aug 22 15:41:25 AIS-ADSB systemd[1]: Started dump978-fa.service - dump978 ADS-B UAT receiver.
Aug 22 15:41:25 AIS-ADSB dump978-fa[769]: raw-port: listening for connections on 0.0.0.0:30978
Aug 22 15:41:25 AIS-ADSB dump978-fa[769]: raw-port: listening for connections on [::]:30978
Aug 22 15:41:25 AIS-ADSB dump978-fa[769]: json-port: listening for connections on 0.0.0.0:30979
Aug 22 15:41:25 AIS-ADSB dump978-fa[769]: json-port: listening for connections on [::]:30979
Aug 22 15:41:25 AIS-ADSB dump978-fa[769]: Configuration error: No matching SoapySDR device found (cause: SoapySDR::Device::make() no match)
Aug 22 15:41:25 AIS-ADSB systemd[1]: dump978-fa.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Aug 22 15:41:25 AIS-ADSB systemd[1]: dump978-fa.service: Failed with result ‘exit-code’.
lines 60-101/101 (END)