V5.0.5-airspy dump1090-fa with native AirSpy support now available

Found AirSpy board 1
Board ID Number: 0 (AIRSPY)
Firmware Version: AirSpy NOS v1.0.0-rc10-6-g4008185 2020-05-08
Part ID Number: 0x6906002B 0x00000030
Serial Number: 0x056C68DC2145A09F
Supported sample rates:
10.000000 MSPS
2.500000 MSPS
Close board 1

Is it possible that something is not configured properly for dump1090-fa?

dump1090-fa
Wed Aug 4 16:38:09 2021 CEST dump1090-fa unknown starting up.
Demod Default 2.4 MS/s demodulator:
–demod-smoother-window: 1 samples
–demod-preamble-threshold: 3.00db factor: 1.41
–demod-preamble-strictness: 3
–demod-preamble-window: 0 samples → 0 samples Width: 0
–demod-demod-window: 0 samples → 0 samples Width: 0
–demod-mark-limits: true
–demod-drop-dup-msgs: false

rtlsdr: no supported devices found.

Yep. That’s the next thing to check…

$ sudo cat /etc/default/dump1090-fa
$ sudo piaware-config

dump1090-fa won’t automatically start unless ENABLED=yes

ENABLED=yes

RECEIVER_OPTIONS=" --airspy-linearity-gain 21
–sample-rate 12 --sample-format u16o12
–device-type airspy --airspy-enable-packing"
DECODER_OPTIONS=" --demod hirate --demod-preamble-threshold 0.9
–demod-smoother-window 1 --demod-msg-window -4:4
–wisdom /etc/dump1090-fa/wisdom.local
–demod-drop-dup-msgs --max-range 360 --fix"
NET_OPTIONS=" --net --net-heartbeat 60 --net-ro-size 1300
–net-ro-interval 0.2 --net-ri-port 0
–net-ro-port 30002 --net-sbs-port 30003
–net-bi-port 30004,30104 --net-bo-port 30005"
JSON_OPTIONS=“–json-location-accuracy 2”

PIAWARE_LAT=47.40709
PIAWARE_LON=19.25503

pi@raspberrypi:~ $ sudo piaware-config
allow-auto-updates yes # value set at /etc/piaware.conf:7
allow-manual-updates yes # value set at /etc/piaware.conf:8
manage-config no # value set at /etc/piaware.conf:9
pi@raspberrypi:~ $

That looks correct. One thing I noticed is that the version of dump1090 doesn’t look right…

Wed Aug 4 16:38:09 2021 CEST dump1090-fa unknown starting up

The version should be “v5.0.5-airspy” instead of “unknown”.
How exactly did you install dump1090-fa?
What file you download?
It should have been one of the dump1090-fa zip files from here…

I followed the description of v.5.0 - where I found something about the installation. Compiled from source.

I thought that it contains the latest version.

Is it enough to deal with dump1090 only (from the release) ?

Now, dump version is ok but still does not start.

pi@raspberrypi:~ $ dump1090-fa
Wed Aug 4 17:11:56 2021 CEST dump1090-fa-airspy v5.0.5-airspy starting up.
Demod Default 2.4 MS/s demodulator:
–demod-smoother-window: 1 samples
–demod-preamble-threshold: 3.00db factor: 1.41
–demod-preamble-strictness: 3
–demod-preamble-window: 0 samples → 0 samples Width: 0
–demod-demod-window: 0 samples → 0 samples Width: 0
–demod-mark-limits: true
–demod-drop-dup-msgs: false

rtlsdr: no supported devices found.


I have an extra (standalone) dump fork for SDRPlay - still installed but it is not configured to start at boot. It works through an api.

I hope that it is ok - since I would rather keep it as a spare…

Let’s start by running dump1090-fa manually and see what happens…

$ sudo systemctl stop dump1090-fa
$ /usr/bin/dump1090-fa --device airspy --airspy-linearity-gain 21 --quiet --stats --stats-every 10

Do a ctrl-c after it starts and paste the output.

Then…

In one Linux terminal, run

$ sudo journalctl -o cat -fu dump1090-fa

In another linux terminal run

$ sudo systemctl restart dump1090-fa

Paste the initial output of the journalctl command.

BTW, it’ll be easier to read the pasted output if you use the </> format button at the top of the post message window. You can also enclose the output in three “backticks” like so…

image

Attempt on starting from command line has failed with the same result.

At the end of the text, still “rtlsdr: no supported devices found” was shown.


 sudo journalctl -o cat -fu dump1090-fa
Failed to read wisdom file /etc/dump1090-fa/wisdom.local: Permission denied
dump1090-fa.service: Main process exited, code=exited, status=1/FAILURE
dump1090-fa.service: Failed with result 'exit-code'.
dump1090-fa.service: Service RestartSec=30s expired, scheduling restart.
dump1090-fa.service: Scheduled restart job, restart counter is at 83.
Stopped dump1090 ADS-B receiver (FlightAware customization).
Started dump1090 ADS-B receiver (FlightAware customization).
Failed to read wisdom file /etc/dump1090-fa/wisdom.local: Permission denied
dump1090-fa.service: Main process exited, code=exited, status=1/FAILURE
dump1090-fa.service: Failed with result 'exit-code'.
dump1090-fa.service: Service RestartSec=30s expired, scheduling restart.
dump1090-fa.service: Scheduled restart job, restart counter is at 84.
Stopped dump1090 ADS-B receiver (FlightAware customization).
Started dump1090 ADS-B receiver (FlightAware customization).
Failed to read wisdom file /etc/dump1090-fa/wisdom.local: Permission denied
dump1090-fa.service: Main process exited, code=exited, status=1/FAILURE
dump1090-fa.service: Failed with result 'exit-code'.

I really appreciate your effort, thank you!
.
…shall I set the privileges to read enabled for everyone for wisdom.local ? If yes, pls help with a command line.

update:

sudo chmod a+r wisdom.local

After restarting dump1090-fa

pi@raspberrypi:~ $ sudo journalctl -o cat -fu dump1090-fa
sample-format    : u16o12
lna_gain         : -1 (not set)
mixer_gain       : -1 (not set)
vga_gain         : -1 (not set)
linearity_gain   : 21
sensitivity_gain : -1 (not set)
lna_agc    : off
mixer_agc  : off
packing    : on
rf_bias    : off

:slight_smile: :slight_smile:

Thank you!!!


Now, another problem…

`AirSpy: FIFO FULL!  Dropped 98304 samples.  Current Dropped: 98304
AirSpy: FIFO FULL!  Dropped 98304 samples.  Current Dropped: 98304
AirSpy: FIFO FULL!  Dropped 98304 samples.  Current Dropped: 98304
AirSpy: FIFO FULL!  Dropped 98304 samples.  Current Dropped: 98304
`

I play with "–demod-smoother-window " to solve it…

Thanks again, have a nice day!

Hello guys,

I noted that a “renice” may help if you are at the edge of dropping packets. Instead of changing a performance-sensitive value like “–demod-smoother-window” or another one, you can try to elevate the priority of the process (dump). Not much, just a bit.

sudo renice --5 <PID>

I’m not sure you’re in the correct thread, if you just want to use your airspy for ADS-B, use airspy_adsb as the decoder and just feed it into the original dump1090-fa.

This effort here is nice but it’s not the most effective way to use your airspy for ADS-B.

These links will get you going with airspy_adsb, the ADS-B decoder written by one of the airspy creators.
GitHub - wiedehopf/airspy-conf: Configure airspy_adsb for use with readsb or piaware.
HOWTO: Airspy mini and Airspy R2: Piaware / dump1090-fa configuration

Thanks for the info.

Update:
You are really right. Airspy_adsb gives an outstanding result.

Thankyou for  info 
but i'm still getting long  piles of info and not the correct info list 

I have no idea what this means or what help you’d like.

ive still got wrong info after using 
sudo journalctl -o cat -fu dump1090-fa
im only getting a very long file 

OK but you’ve given me absolutely no information other than “it’s broke”.
You know the routine.

  • What’s your current contents of /etc/default/dump1090-fa?
  • What’s in the very long file?
  • What makes you think it’s wrong?
  • What were you expecting?
OK but you’ve given me absolutely no information other than “it’s broke”.
You know the routine.

What’s your current contents of /etc/default/dump1090-fa?
What’s in the very long file?
What makes you think it’s wrong?
What were you expecting?

Reply

suffolk3000
9m
ENABLED=yes

#RECEIVER_GAIN=" --airspy-lna-gain 15 --airspy-mixer-gain 15 --airspy-vga-gain 15"
#RECEIVER_GAIN=" --airspy-sensitivity-gain 21"
RECEIVER_GAIN=" --airspy-linearity-gain 21"
#RECEIVER_FORMAT="–sample-rate 10 --sample-format sc16"
RECEIVER_FORMAT="–sample-rate 20 --sample-format u16o12"
RECEIVER_OPTIONS="–device-type airspy --airspy-enable-packing ${RECEIVER_GAIN} ${RECEIVER_FORMAT} --stats --stats-every 10"
DEMOD_OPTIONS=" --demod hirate --demod-preamble-threshold 0 --demod-smoother-window 4 --demod-msg-window -7:7 --demod-preamble-strictness 3"
NET_OPTIONS=" --max-range 720 --net --net-heartbeat 60 --net-ro-size 1300
–net-ro-interval 0.2 --net-ri-port 0
–net-ro-port 30002 --net-sbs-port 30003
–net-bi-port 30004,30104 --net-bo-port 30005"

 PIAWARE_LAT=52.2475
 PIAWARE_LON=0.7103
CPU load: 26.0%
1301 ms for demodulation
933 ms for reading from USB
363 ms for network input and background tasks
Thu Aug 5 23:16:47 2021 BST Caught SIGTERM, shutting down…
Stopping dump1090 ADS-B receiver (FlightAware customization)…
Thu Aug 5 23:16:47 2021 BST Waiting for receive thread termination
Statistics: Thu Aug 5 21:48:15 2021 BST - Thu Aug 5 23:16:47 2021 BST
Local receiver:
106225336320 samples processed
0 samples dropped
0 Mode A/C messages received
29566227 Mode-S message preambles received
19321277 with bad message format or invalid CRC
6378470 with unrecognized ICAO address
152409 suspected duplicate messages
3866480 accepted with correct CRC
-32.3 dBFS noise power
-18.3 dBFS mean signal power
-9.7 dBFS peak signal power
0 messages with signal power above -3dBFS
Messages from network clients:
0 Mode A/C messages received
5001 Mode S messages received
0 with bad message format or invalid CRC
0 with unrecognized ICAO address
0 duplicate messages
5001 accepted with correct CRC
Decoder:
3871481 total usable messages
169831 DF0 messages
559024 DF4 messages
153846 DF5 messages
1348780 DF11 messages
23756 DF16 messages
619054 DF17 messages
5001 DF18 messages
731828 DF20 messages
260361 DF21 messages
0 surface position messages received
227278 airborne position messages received
223787 global CPR attempts with valid positions
19 global CPR attempts with bad data
9 global CPR attempts that failed the range check
1 global CPR attempts that failed the speed check
275 global CPR attempts with insufficient data
2754 local CPR attempts with valid positions
0 aircraft-relative positions
0 receiver-relative positions
718 local CPR attempts that did not produce useful positions
0 local CPR attempts that failed the range check
29 local CPR attempts that failed the speed check
0 CPR messages that look like transponder failures filtered
0 non-ES altitude messages from ES-equipped aircraft ignored
202 unique aircraft tracks
5 aircraft tracks where only one message was seen
6 aircraft tracks which were not marked reliable

lines above not right but ?? should be this below eg

Demod HiRate:
Successful Message Demod Offsets
Demod window width: 15
Offset Count
-7: 0
-6: 0
-5: 0
-4: 11
-3: 48
-2: 393
-1: 7457
0: 17648
1: 3939
2: 787
3: 217
4: 32
5: 0
6: 0
7: 0


You need to place RECEIVER_OPTIONS after DEMOD_OPTIONS and add ${DEMOD_OPTIONS} to RECEIVER_OPTIONS just before –stats`.

Right now DEMOD_OPTIONS is being ignored because you don’t reference it anywhere.

Sorted i would not have spotted that  
thankyou GTO 
Statistics: Fri Aug  6 00:00:16 2021 BST - Fri Aug  6 00:00:26 2021 BST
Local receiver:
     199950336 samples processed
             0 samples dropped
             0 Mode A/C messages received
        459809 Mode-S message preambles received
          366861 with bad message format or invalid CRC
           86553 with unrecognized ICAO address
             263 suspected duplicate messages
            6395 accepted with correct CRC
  -32.4 dBFS noise power
  -17.9 dBFS mean signal power
  -10.4 dBFS peak signal power
      0 messages with signal power above -3dBFS
Messages from network clients:
         0 Mode A/C messages received
         0 Mode S messages received
           0 with bad message format or invalid CRC
           0 with unrecognized ICAO address
           0 duplicate messages
           0 accepted with correct CRC
Decoder:
      6395 total usable messages
         264 DF0 messages
        1008 DF4 messages
         275 DF5 messages
        2361 DF11 messages
           4 DF16 messages
         939 DF17 messages
        1141 DF20 messages
         403 DF21 messages
         0 surface position messages received
       344 airborne position messages received
       340 global CPR attempts with valid positions
         0 global CPR attempts with bad data
           0 global CPR attempts that failed the range check
           0 global CPR attempts that failed the speed check
         0 global CPR attempts with insufficient data
         4 local CPR attempts with valid positions
           0 aircraft-relative positions
           0 receiver-relative positions
         0 local CPR attempts that did not produce useful positions
           0 local CPR attempts that failed the range check
           0 local CPR attempts that failed the speed check
         0 CPR messages that look like transponder failures filtered
         0 non-ES altitude messages from ES-equipped aircraft ignored
         0 unique aircraft tracks
         0 aircraft tracks where only one message was seen
         0 aircraft tracks which were not marked reliable
       Successful Message Demod Offsets
       Demod window width: 15
       Offset         Count
        -7:               5
        -6:               4
        -5:              11
        -4:              12
        -3:              26
        -2:             143
        -1:            1006
         0:            2993
         1:            1380
         2:             347
         3:             182
         4:             123
         5:              96
         6:              52
         7:              15
latest list