Step by step how to integrate airspy into existing piaware

(November 2016)
There are many ways to do it but here is my attempt. Please provide feedback and I will update this post.

Download airspy_adsb to home dir
cd
wget airspy.com/downloads/airspy_adsb-linux-arm.tgz
tar xzf airspy_adsb-linux-arm.tgz

disable dump1090 using the dongle
sudo piaware-config receiver-type other

restart piaware for settings to take place
sudo piaware-config -restart

Test run airspy (remove -b if bias-t is not required. Start with gain at 21)
sudo /home/pi/airspy_adsb -c 127.0.0.1:30104:BEAST -b -g 21 -p -w 4 &

Check dump1090 to see that you can see aircraft.
**
If this works then add this command to /etc/rc.local
You will need to use the editor as root.
sudo vi (or whatever your favourite editor is) /etc/rc.local**

/home/pi/airspy_adsb -c 127.0.0.1:30104:BEAST -b -g 21 -p -w 4 -d 2 &

(remove -b if bias-t is not required. Start with gain at 21)
(try with -d2 on an RPI3 to reduce the CPU load)
reboot to test that it automatically starts

You can have the process listen on 30005 (and feed this into MLAT) however, you will not be able to add any other feeds (like UAT 978 or acars). To do this add -l 30005:BEAST and remember to disable port 30005 in dump1090(fa or mutability). I had to do this for a radarcape as dump1090 messed with the GPS timestamps.

Here is the help file from my Odroid version
Options:
-s <serial_number> Device serial number
-t Aircraft timeout in seconds
-g <rf_gain> RF gain: 0…21
-w Worker threads
-d Decimation factor
-f Forward Error Correction (FEC) bits
-c ::format] Add a Push Client
-l :format] Add a Server
-n Use the highest native sample rate
-b Enable Bias-Tee
-p Enable Bit Packing
-v Verbose mode
-h Display this help screen
Available output formats:

  • AVR - Raw AVR format
  • AVR-STRICT - Raw AVR format with only CRC valid frames
  • ASAVR - Raw Airspy AVR format
  • Beast - Raw Beast Binary forma
2 Likes