@SoNic67 @TwenteRadar and others… Here’s a test release of dump1090 with AirSpy support for x86_64.
You’ll need to install the airspy libraries. On Ubuntu/Debian the package should be libairspy0
. For Fedora, it’s airspyone_host
.
I would suggest you NOT overwrite your existing dump1090-fa and run this separately with your airspy device.
You can run it with the following minimum options… --device-type airspy
if you have only 1 device but the help text has been updated so you can used --help
to see the AirSpy specific options. The following sample rate and formats are supported:
- –sample-rate 6 --sample-format sc16 (IQ format will actually run the AirSpy at 12MS/s)
- –sample-rate 10 --sample-format sc16 (IQ format will actually run the AirSpy at 20MS/s)
- –sample-rate 12 --sample-format u16 (the default if neither option is specified)
- –sample-rate 12 --sample-format sc16 (IQ format will actually run the AirSpy at 24MS/s)
- –sample-rate 20 --sample-format u16
- –sample-rate 24 --sample-format u16
You should probably also enable packing with --enable-packing
. I’m probably going to make this the default as you don’t actually lose anything by enabling it and it reduces the USB bandwidth requirement.
Make sure you try out the gain options. For linearity and sensitivity gain, the values are 0-21, for the individual vga, mixer and lna gains, the values are 0-15.
Here are the tables for linearity-gain and sensitivity gain. The tables are actually in reverse order with the highest gain (21) first.
Example --linearity-gain 20
will set vga-gain=12 mixer-gain=12 lna-gain=14.
linearity_vga_gains[GAIN_COUNT] = { 13, 12, 11, 11, 11, 11, 11, 10, 10, 10, 10, 10, 10, 10, 10, 10, 9, 8, 7, 6, 5, 4 };
linearity_mixer_gains[GAIN_COUNT] = { 12, 12, 11, 9, 8, 7, 6, 6, 5, 0, 0, 1, 0, 0, 2, 2, 1, 1, 1, 1, 0, 0 };
linearity_lna_gains[GAIN_COUNT] = { 14, 14, 14, 13, 12, 10, 9, 9, 8, 9, 8, 6, 5, 3, 1, 0, 0, 0, 0, 0, 0, 0 };
sensitivity_vga_gains[GAIN_COUNT] = { 13, 12, 11, 10, 9, 8, 7, 6, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4 };
sensitivity_mixer_gains[GAIN_COUNT] = { 12, 12, 12, 12, 11, 10, 10, 9, 9, 8, 7, 4, 4, 4, 3, 2, 2, 1, 0, 0, 0, 0 };
sensitivity_lna_gains[GAIN_COUNT] = { 14, 14, 14, 14, 14, 14, 14, 14, 14, 13, 12, 12, 9, 9, 8, 7, 6, 5, 3, 2, 1, 0 };
If you can, run dump1090 from the command line with --stats-every 1
and compare using airspy_adsb+dump1090-net-only and dump1090 with native airspy. In particular, look at “total usable messages”, and the surface and airborne positions and the global CPR attempts.
I’ve also uploaded a copy of view1090 that has features not yet published that give you summary information like so…
Tot: 125 Vis: 125 RSSI: Max -5.2+ Mean -23.7 Min -32.2- MaxD: 208.3nm+ -
Hex Mode Sqwk Flight Alt Spd Hdg Dist(nm) Bearing RSSI Msgs Ti
────────────────────────────────────────────────────────────────────────────────
This can give you a real-time summary of aircraft counts, signal strength, and max distance without having to use the web-apps.
You can use it like so…
view1090 --interactive-ttl 10 --lat <your_lat> --lon <your_lon> --interactive-show-distance
These features should be in the next official dump1090 release.
Looking forward to feedback!!