Run adsbdec in Termux.
Build it in Termux, to avoid setting up libusb in cross-compilation environments.
git clone https://github.com/bczhc/adsbdec-termux --recursive
cd adsbdec-termux
mkdir build
cd build
cmake .. -G Ninja
ninja
Connect the Airspy device via USB, and grant the USB permission. Please follow Termux-usb.
Then a basic usage is like:
termux-usb -e './adsbdec -D' /dev/bus/usb...
An ADSB open source decoder for the airspy R2
adsbdec [-d] [-c] [-e] [-m] [-g 0-21] [-f filename] [-s addr[:port]]
wBy default receive samples from airspy and output long adsb frames (DF14/17/18/20/21/24) in raw avr format on stdout
-d : output short frames too
-e : use 1 bit error correction
-m : output avrmlat format (ie : with 12Mhz timestamp)
-b : output binary beast format
-g 0-21 : set linearity gain
-f : input from filename instead of airspy (raw signed 16 bits real format)
-s addr[:port] : send ouput via TCP to server at address addr:port (default port : 30001)
-l addr[:port] : listen to addr:port (default port : 30002) and accept a TCP connection where to send output
Man could use adsbdec to send data to any other avr format compatible server (VRS, feeders for main adsb web site, etc )
For VRS select "Push receiver" , "AVR format", and :
adsbdec -e -s 192.168.0.10:30001
If you need that adsbdec act as server (like dump1090) :
adsbdec -e -l 192.168.0.10:30002
Need libusb and libairspy
Just do
make