After SDR swap, dump1090 is NOT producing data on localhost:30005

Please, someone help… I have no idea why it’s not working.

dump1090-fa is producing data according to its /run/aircraft.jsonfile…

I’ve reinstalled piaware and dump1090-fa. It was working until I replaced my SDRs with the NooElec, NESDR Nano 2+. Too bad I already took the old ones and installed them in a different machine…

Some output for you…

piaware-status

PiAware master process (piaware) is running with pid 709.
PiAware ADS-B client (faup1090) is running with pid 794.
PiAware ADS-B UAT client (faup978) is running with pid 743.
PiAware mlat client (fa-mlat-client) is running with pid 870.
Local ADS-B receiver (dump1090-fa) is running with pid 778.
Local ADS-B UAT receiver (dump978-fa) is running with pid 546.

dump1090-fa (pid 778) is listening for ES connections on port 30005.
dump978-fa (pid 546) is listening for UAT connections on port 30978.
faup1090 is connected to the ADS-B receiver.
faup978 is connected to the ADS-B UAT receiver.
piaware is connected to FlightAware.

dump978 is producing data on localhost:30978.
dump1090 is NOT producing data on localhost:30005.

Your feeder ID is XXXXXXXXXXXXXXXXXXXXXXXXXX (configured at /etc/piaware.conf:7)

sudo journalctl --no-pager -u dump1090-fa
(Omitting the data before the last reboot)

-- Boot 85aac59db7554d3786bab4088b169227 --
Apr 16 20:19:28 pianosacam systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Apr 16 20:19:28 pianosacam dump1090-fa[543]: Sun Apr 16 20:19:28 2023 PDT  dump1090-fa 8.2 starting up.
Apr 16 20:19:28 pianosacam dump1090-fa[543]: rtlsdr: using device #1: Generic RTL2832U OEM (NooElec, NESDR Nano 2+, SN stx:1090:0)
Apr 16 20:19:29 pianosacam dump1090-fa[543]: Detached kernel driver
Apr 16 20:19:29 pianosacam dump1090-fa[543]: Found Rafael Micro R820T tuner
Apr 16 20:19:29 pianosacam dump1090-fa[543]: rtlsdr: tuner gain set to about 58.6 dB (gain step 29) (tuner AGC enabled)
Apr 16 20:19:29 pianosacam dump1090-fa[543]: adaptive: using 50% duty cycle
Apr 16 20:19:29 pianosacam dump1090-fa[543]: adaptive: enabled adaptive gain control with gain limits 0.0dB (step 0) .. 58.6dB (step 29)
Apr 16 20:19:29 pianosacam dump1090-fa[543]: adaptive: enabled dynamic range control, target dynamic range 30.0dB
Apr 16 20:19:29 pianosacam dump1090-fa[543]: Allocating 4 zero-copy buffers
Apr 16 20:19:39 pianosacam dump1090-fa[543]: adaptive: available dynamic range (29.3dB) < required dynamic range (30.0dB), switching to downward scan
Apr 16 20:19:39 pianosacam dump1090-fa[543]: adaptive: changing gain from 58.6dB (step 29) to 49.6dB (step 28) because: probing dynamic range gain lower bound
Apr 16 20:19:39 pianosacam dump1090-fa[543]: rtlsdr: tuner gain set to 49.6 dB (gain step 28)
Apr 16 20:19:49 pianosacam dump1090-fa[543]: Sun Apr 16 20:19:49 2023 PDT  Caught SIGTERM, shutting down..
Apr 16 20:19:49 pianosacam systemd[1]: Stopping dump1090 ADS-B receiver (FlightAware customization)...
Apr 16 20:19:49 pianosacam dump1090-fa[543]: Sun Apr 16 20:19:49 2023 PDT  Waiting for receive thread termination
Apr 16 20:19:50 pianosacam dump1090-fa[543]: Reattached kernel driver
Apr 16 20:19:50 pianosacam dump1090-fa[543]: Sun Apr 16 20:19:50 2023 PDT  Normal exit.
Apr 16 20:19:50 pianosacam systemd[1]: dump1090-fa.service: Succeeded.
Apr 16 20:19:50 pianosacam systemd[1]: Stopped dump1090 ADS-B receiver (FlightAware customization).
Apr 16 20:19:50 pianosacam systemd[1]: dump1090-fa.service: Consumed 2.729s CPU time.
Apr 16 20:19:50 pianosacam systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Apr 16 20:19:50 pianosacam dump1090-fa[778]: Sun Apr 16 20:19:50 2023 PDT  dump1090-fa 8.2 starting up.
Apr 16 20:19:50 pianosacam dump1090-fa[778]: rtlsdr: using device #1: Generic RTL2832U OEM (NooElec, NESDR Nano 2+, SN stx:1090:0)
Apr 16 20:19:50 pianosacam dump1090-fa[778]: Detached kernel driver
Apr 16 20:19:50 pianosacam dump1090-fa[778]: Found Rafael Micro R820T tuner
Apr 16 20:19:51 pianosacam dump1090-fa[778]: rtlsdr: tuner gain set to about 58.6 dB (gain step 29) (tuner AGC enabled)
Apr 16 20:19:51 pianosacam dump1090-fa[778]: adaptive: using 50% duty cycle
Apr 16 20:19:51 pianosacam dump1090-fa[778]: adaptive: enabled adaptive gain control with gain limits 0.0dB (step 0) .. 58.6dB (step 29)
Apr 16 20:19:51 pianosacam dump1090-fa[778]: adaptive: enabled dynamic range control, target dynamic range 30.0dB
Apr 16 20:19:51 pianosacam dump1090-fa[778]: Allocating 4 zero-copy buffers
Apr 16 20:20:42 pianosacam dump1090-fa[778]: adaptive: reached upper gain limit, halting dynamic range scan here

cat /run/dump1090-fa/aircraft.json

{ "now" : 1681701977.1,
  "messages" : 13,
  "aircraft" : [
  ]
}

cat /run/dump1090-fa/stats.json

{
"latest":{"start":1681701951.3,"end":1681701951.3,"local":{"samples_processed":0,"samples_dropped":0,"modeac":0,"modes":0,"bad":0,"unknown_icao":0,"accepted":[0,0],"strong_signals":0,"gain_db":58.6},"remote":{"modeac":0,"modes":0,"bad":0,"unknown_icao":0,"accepted":[0,0]},"cpr":{"surface":0,"airborne":0,"global_ok":0,"global_bad":0,"global_range":0,"global_speed":0,"global_skipped":0,"local_ok":0,"local_aircraft_relative":0,"local_receiver_relative":0,"local_skipped":0,"local_range":0,"local_speed":0,"filtered":0},"altitude_suppressed":0,"cpu":{"demod":0,"reader":0,"background":0},"tracks":{"all":0,"single_message":0,"unreliable":0},"messages":0,"messages_by_df":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},
"last1min":{"start":1681701891.3,"end":1681701951.3,"local":{"samples_processed":144048128,"samples_dropped":0,"modeac":0,"modes":1401538,"bad":3215121,"unknown_icao":583791,"accepted":[0,1],"signal":-24.2,"noise":-23.9,"peak_signal":-24.2,"strong_signals":0,"gain_db":58.6},"remote":{"modeac":0,"modes":0,"bad":0,"unknown_icao":0,"accepted":[0,0]},"cpr":{"surface":0,"airborne":0,"global_ok":0,"global_bad":0,"global_range":0,"global_speed":0,"global_skipped":0,"local_ok":0,"local_aircraft_relative":0,"local_receiver_relative":0,"local_skipped":0,"local_range":0,"local_speed":0,"filtered":0},"altitude_suppressed":0,"cpu":{"demod":9223,"reader":1901,"background":465},"tracks":{"all":1,"single_message":2,"unreliable":2},"messages":1,"messages_by_df":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0],"adaptive":{"gain_db":58.6,"dynamic_range_limit_db":58.6,"gain_changes":0,"loud_undecoded":0,"loud_decoded":0,"noise_dbfs":-30.9,"gain_seconds":[[58.6,60]]}},
"last5min":{"start":1681701651.3,"end":1681701951.3,"local":{"samples_processed":719978496,"samples_dropped":0,"modeac":0,"modes":6990866,"bad":16024258,"unknown_icao":2914642,"accepted":[0,12],"signal":-23.6,"noise":-23.7,"peak_signal":-22.6,"strong_signals":0,"gain_db":58.6},"remote":{"modeac":0,"modes":0,"bad":0,"unknown_icao":0,"accepted":[0,0]},"cpr":{"surface":0,"airborne":0,"global_ok":0,"global_bad":0,"global_range":0,"global_speed":0,"global_skipped":0,"local_ok":0,"local_aircraft_relative":0,"local_receiver_relative":0,"local_skipped":0,"local_range":0,"local_speed":0,"filtered":0},"altitude_suppressed":0,"cpu":{"demod":45698,"reader":9445,"background":2318},"tracks":{"all":12,"single_message":12,"unreliable":12},"messages":12,"messages_by_df":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,10,0,0,0,0,0,0,0,0,0,0,0,0,0],"adaptive":{"gain_db":58.6,"dynamic_range_limit_db":58.6,"gain_changes":0,"loud_undecoded":0,"loud_decoded":0,"noise_dbfs":-30.9,"gain_seconds":[[58.6,300]]}},
"last15min":{"start":1681701591.2,"end":1681701951.3,"local":{"samples_processed":765198336,"samples_dropped":0,"modeac":0,"modes":7428398,"bad":17024187,"unknown_icao":3097489,"accepted":[0,13],"signal":-23.4,"noise":-23.6,"peak_signal":-21.9,"strong_signals":0,"gain_db":58.6},"remote":{"modeac":0,"modes":0,"bad":0,"unknown_icao":0,"accepted":[0,0]},"cpr":{"surface":0,"airborne":0,"global_ok":0,"global_bad":0,"global_range":0,"global_speed":0,"global_skipped":0,"local_ok":0,"local_aircraft_relative":0,"local_receiver_relative":0,"local_skipped":0,"local_range":0,"local_speed":0,"filtered":0},"altitude_suppressed":0,"cpu":{"demod":48478,"reader":10027,"background":2454},"tracks":{"all":13,"single_message":12,"unreliable":12},"messages":13,"messages_by_df":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,11,0,0,0,0,0,0,0,0,0,0,0,0,0],"adaptive":{"gain_db":58.6,"dynamic_range_limit_db":58.6,"gain_changes":0,"loud_undecoded":0,"loud_decoded":0,"noise_dbfs":-30.9,"gain_seconds":[[58.6,318]]}},
"total":{"start":1681701591.2,"end":1681701951.3,"local":{"samples_processed":765198336,"samples_dropped":0,"modeac":0,"modes":7428398,"bad":17024187,"unknown_icao":3097489,"accepted":[0,13],"signal":-23.4,"noise":-23.6,"peak_signal":-21.9,"strong_signals":0,"gain_db":58.6},"remote":{"modeac":0,"modes":0,"bad":0,"unknown_icao":0,"accepted":[0,0]},"cpr":{"surface":0,"airborne":0,"global_ok":0,"global_bad":0,"global_range":0,"global_speed":0,"global_skipped":0,"local_ok":0,"local_aircraft_relative":0,"local_receiver_relative":0,"local_skipped":0,"local_range":0,"local_speed":0,"filtered":0},"altitude_suppressed":0,"cpu":{"demod":48478,"reader":10027,"background":2454},"tracks":{"all":13,"single_message":12,"unreliable":12},"messages":13,"messages_by_df":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,11,0,0,0,0,0,0,0,0,0,0,0,0,0],"adaptive":{"gain_db":58.6,"dynamic_range_limit_db":58.6,"gain_changes":0,"loud_undecoded":0,"loud_decoded":0,"noise_dbfs":-30.9,"gain_seconds":[[58.6,318]]}}
}

lsusb

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Bus 001 Device 004: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Bus 001 Device 003: ID 04d9:1702 Holtek Semiconductor, Inc. Keyboard LKS02
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

sudo systemctl status dump1090-fa -l

● dump1090-fa.service - dump1090 ADS-B receiver (FlightAware customization)
     Loaded: loaded (/lib/systemd/system/dump1090-fa.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2023-04-16 20:19:50 PDT; 7min ago
       Docs: https://flightaware.com/adsb/piaware/
   Main PID: 778 (dump1090-fa)
      Tasks: 3 (limit: 1599)
        CPU: 1min 24.532s
     CGroup: /system.slice/dump1090-fa.service
             └─778 /usr/bin/dump1090-fa --quiet --device-type rtlsdr --device-index stx:1090:0 --gain 60 --adaptive-range --fix --lat 48.20535 --lon -120.12155 --max-range 360 --net-ro-port 30002 --net-sbs-port 30>

Apr 16 20:19:50 pianosacam dump1090-fa[778]: Sun Apr 16 20:19:50 2023 PDT  dump1090-fa 8.2 starting up.
Apr 16 20:19:50 pianosacam dump1090-fa[778]: rtlsdr: using device #1: Generic RTL2832U OEM (NooElec, NESDR Nano 2+, SN stx:1090:0)
Apr 16 20:19:50 pianosacam dump1090-fa[778]: Detached kernel driver
Apr 16 20:19:50 pianosacam dump1090-fa[778]: Found Rafael Micro R820T tuner
Apr 16 20:19:51 pianosacam dump1090-fa[778]: rtlsdr: tuner gain set to about 58.6 dB (gain step 29) (tuner AGC enabled)
Apr 16 20:19:51 pianosacam dump1090-fa[778]: adaptive: using 50% duty cycle
Apr 16 20:19:51 pianosacam dump1090-fa[778]: adaptive: enabled adaptive gain control with gain limits 0.0dB (step 0) .. 58.6dB (step 29)
Apr 16 20:19:51 pianosacam dump1090-fa[778]: adaptive: enabled dynamic range control, target dynamic range 30.0dB
Apr 16 20:19:51 pianosacam dump1090-fa[778]: Allocating 4 zero-copy buffers
Apr 16 20:20:42 pianosacam dump1090-fa[778]: adaptive: reached upper gain limit, halting dynamic range scan here

cat /etc/default/dump1090-fa


# dump1090-fa configuration
# This is sourced by /usr/share/dump1090-fa/start-dump1090-fa as a
# shellscript fragment.

# dump1090-fa won't automatically start unless ENABLED=yes
ENABLED=yes

# SDR device type. Use "none" for a net-only configuration
RECEIVER=rtlsdr
# serial number or device index of device to use (only needed if there is more than one SDR connected)
RECEIVER_SERIAL=stx:1090:0
# Initial receiver gain, in dB. If adaptive gain is enabled (see below) the actual gain
# may change over time
RECEIVER_GAIN=60

# Adjust gain to try to achieve optimal dynamic range / noise floor?
ADAPTIVE_DYNAMIC_RANGE=yes
# Target dynamic range in dB (leave blank to autoselect based on SDR type)
ADAPTIVE_DYNAMIC_RANGE_TARGET=
# Reduce gain when loud message bursts from nearby aircraft are seen?
ADAPTIVE_BURST=no
# Gain range to allow when changing gain, in dB (empty = no limit)
ADAPTIVE_MIN_GAIN=
ADAPTIVE_MAX_GAIN=

# Turn on options to reduce load on slower CPUs, at the expense of slightly worse decoder performance.
# Setting "auto" will enable these options only if the CPU appears to be a slow CPU (currently this
# means armv6 only, e.g. Pi Zero)
SLOW_CPU=auto
# Local wisdom file used to select DSP implementations; uses built-in ranking if the file is missing
WISDOM=/etc/dump1090-fa/wisdom.local

# Correct CRC errors where possible
ERROR_CORRECTION=yes

# Receiver location, used for some types of position decoding. Provide the location as
# signed decimal degrees. If not given here, dump1090 will also try to read a receiver
# location from /var/cache/piaware/location.env (written automatically by PiAware, if installed)
RECEIVER_LAT=
RECEIVER_LON=
# Maximum range, in NM. Positions more distant than this are ignored. No limit if not set.
MAX_RANGE=360

# Network ports to listen on for connections
NET_RAW_INPUT_PORTS=
NET_RAW_OUTPUT_PORTS=30002
NET_SBS_OUTPUT_PORTS=30003
NET_BEAST_INPUT_PORTS=30004,30104
NET_BEAST_OUTPUT_PORTS=30005

# Accuracy of location written to JSON output
JSON_LOCATION_ACCURACY=1

# Additional options can be added here:
EXTRA_OPTIONS=""

# If OVERRIDE_OPTIONS is set, only those options are used; all other options
# in this config file are ignored.
OVERRIDE_OPTIONS=""

# This is a marker to make it easier for scripts to identify a v6-style config file
CONFIG_STYLE=6

I’m picking you followed a re-serial guide previously to give them different ID’s. And have not replicated it?. So it will be hooking one stick but not the 2nd due conflict

@Pianosafarm
Check antenna connection to the 1090 dongle.
The dongle and dump1090 seem to work OK, but there is no input RF signal to the dongle. Possibly bad/loos connection, or wrong connector. (RP-sma instead of sma).

I’m mostly suspecting at this time that as @abcd567 says it’s an antenna problem. I’ve got spares, so I’ll try replacing that.
One other factor that makes me more confident in this analysis is that it has been seeing some traffic, but not nearly as much as a receiver 100’ away in a ‘worse’ location.

Once last night it said dump1090 was producing data.

Serials are set and configured.

The configuration showing the stx:1090:0 being configured is in my first post in the /etc/default/dump1090-fa file.

rtl_test -t

Found 2 device(s):
  0:  NooElec, NESDR Nano 2+, SN: stx:978:0
  1:  NooElec, NESDR Nano 2+, SN: stx:1090:0

Using device 0: Generic RTL2832U OEM
Detached kernel driver
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 
[R82XX] PLL not locked!
Sampling at 2048000 S/s.
No E4000 tuner found, aborting.
Reattached kernel driver

Andd… This morning the USB bus won’t even recognize one of the SDRs. That’s irritating.

[ 1326.083504] usb 1-1-port1: attempt power cycle
[ 1326.686842] usb 1-1.1: new full-speed USB device number 14 using xhci_hcd
[ 1326.687124] usb 1-1.1: Device not responding to setup address.
[ 1326.895117] usb 1-1.1: Device not responding to setup address.
[ 1327.102845] usb 1-1.1: device not accepting address 14, error -71
[ 1327.182884] usb 1-1.1: new full-speed USB device number 15 using xhci_hcd
[ 1327.183159] usb 1-1.1: Device not responding to setup address.
[ 1327.391193] usb 1-1.1: Device not responding to setup address.
[ 1327.598857] usb 1-1.1: device not accepting address 15, error -71
[ 1327.599426] usb 1-1-port1: unable to enumerate USB device
'''

Unplug sdr and replug into another usb port.
If using a usb cable, remove it, and plug the sdr directly into usb port.

I tried both of them in different ports, neither was using a cable, they were plugged directly into the Pi.

So I just went ahead and bought two new SDRs. So far, so good. I’ll test the remaining ones I have on my home PC.

I consider this solved, with the underlying problem of the SDR was failing.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.