Find a file
Matthias Wirth 82c5ff6724 Fix possible missing \n termination of TSV messages
If the \n termination of TSV messages is missing, faup1090 encounters
the following error:
Caught background error: list must have an even number of elements
    while executing
"array set row [split $line "\t"]"
    (object "::faup1090" method "::FaupConnection::data_available" body line 28)

This missing termination with \n can happen when p == end is true in the
overrun check. vsnprintf will always terminate the string with \0, so if
the vsnprintf is called to write the to the last position in the buffer
(end-1), it will write \0 instead to terminate the string as not to
overflow the buffer.
To catch that possibility the overrun check is changed to p < end as
then vsnprintf is assured to have had enough room to write the \0
termination to end-1.
2019-04-08 20:29:56 +02:00
bladerf bladeRF docs and custom bitstream. 2017-02-03 00:36:41 +00:00
compat fixed a tiny change to an #ifndef comment 2016-03-31 13:46:17 -04:00
debian Bump version for piaware lat/lon fix 2019-03-29 19:05:26 -05:00
debian-wheezy Give up on a single control file for jessie+stretch, just handle the dependency difference separately. 2018-06-29 12:54:33 -05:00
public_html Minimal skyview changes for nav_alt changes 2019-03-19 18:48:13 +00:00
testfiles Initial commit of Dump1090, a simple Mode S decoder. 2013-01-05 13:52:25 +01:00
tools Update aircraft db docs 2018-07-24 17:31:43 +01:00
.gitattributes Compress vrs.csv since it's basically readonly. 2016-09-10 17:43:10 +01:00
.gitignore wheezy packaging and initscript 2016-07-11 18:49:52 +01:00
.travis.yml More build deps 2019-03-04 15:43:45 +00:00
anet.c IPv6 support (in theory). 2016-02-16 13:00:55 +00:00
anet.h IPv6 support (in theory). 2016-02-16 13:00:55 +00:00
comm_b.c More WIP 2017-12-07 10:34:08 -06:00
comm_b.h WIP: More Comm-B & ADS-B decoding. 2017-06-15 18:07:40 +01:00
convert.c Whitespace changes only: cleaning up trailing whitespace at EOL 2017-06-15 18:17:07 +01:00
convert.h Whitespace changes only: cleaning up trailing whitespace at EOL 2017-06-15 18:17:07 +01:00
convert_benchmark.c Whitespace changes only: cleaning up trailing whitespace at EOL 2017-06-15 18:17:07 +01:00
COPYING GPL. 2015-01-20 16:49:01 +00:00
cpr.c Whitespace changes only: cleaning up trailing whitespace at EOL 2017-06-15 18:17:07 +01:00
cpr.h Whitespace changes only: cleaning up trailing whitespace at EOL 2017-06-15 18:17:07 +01:00
cprtests.c Whitespace changes only: cleaning up trailing whitespace at EOL 2017-06-15 18:17:07 +01:00
crc.c Whitespace changes only: cleaning up trailing whitespace at EOL 2017-06-15 18:17:07 +01:00
crc.h Whitespace changes only: cleaning up trailing whitespace at EOL 2017-06-15 18:17:07 +01:00
demod_2400.c WIP on new faup1090 output, data aging, refactoring 2017-12-02 17:38:33 +00:00
demod_2400.h Whitespace changes only: cleaning up trailing whitespace at EOL 2017-06-15 18:17:07 +01:00
dump1090.c Arrange to return a non-zero exit code if the SDR thread unexpectedly halts 2019-03-07 18:35:47 +00:00
dump1090.h Track and report autopilot FMS/MCP separately; also report autopilot altitude source. 2019-03-19 18:44:09 +00:00
faup1090.c faup1090: write _v on every line, bump TSV_VERSION 2019-03-19 18:10:38 +00:00
icao_filter.c Whitespace changes only: cleaning up trailing whitespace at EOL 2017-06-15 18:17:07 +01:00
icao_filter.h Whitespace changes only: cleaning up trailing whitespace at EOL 2017-06-15 18:17:07 +01:00
interactive.c More WIP 2017-12-07 10:34:08 -06:00
Jenkinsfile Build automation 2018-08-28 23:15:31 +01:00
LICENSE GPL. 2015-01-20 16:49:01 +00:00
Makefile Merge branch 'more_mode_s' into dev 2018-05-09 16:20:58 +01:00
mode_ac.c More WIP 2017-12-07 10:34:08 -06:00
mode_s.c Clarify some comments in v1 TSS 2019-03-19 18:23:49 +00:00
mode_s.h WIP: More Comm-B & ADS-B decoding. 2017-06-15 18:07:40 +01:00
net_io.c Fix possible missing \n termination of TSV messages 2019-04-08 20:29:56 +02:00
net_io.h faup1090: write _v on every line, bump TSV_VERSION 2019-03-19 18:10:38 +00:00
prepare-build.sh Build automation 2018-08-28 23:15:31 +01:00
README-json.md More CPR stats. 2015-02-19 18:53:11 +00:00
README.md readme tweaks. 2017-02-09 13:40:08 +00:00
sdr.c Whitespace changes only: cleaning up trailing whitespace at EOL 2017-06-15 18:17:07 +01:00
sdr.h Whitespace changes only: cleaning up trailing whitespace at EOL 2017-06-15 18:17:07 +01:00
sdr_bladerf.c WIP on new faup1090 output, data aging, refactoring 2017-12-02 17:38:33 +00:00
sdr_bladerf.h Whitespace changes only: cleaning up trailing whitespace at EOL 2017-06-15 18:17:07 +01:00
sdr_ifile.c WIP on new faup1090 output, data aging, refactoring 2017-12-02 17:38:33 +00:00
sdr_ifile.h Whitespace changes only: cleaning up trailing whitespace at EOL 2017-06-15 18:17:07 +01:00
sdr_rtlsdr.c Just use fprintf. 2019-03-07 18:19:23 +00:00
sdr_rtlsdr.h Whitespace changes only: cleaning up trailing whitespace at EOL 2017-06-15 18:17:07 +01:00
stats.c Whitespace changes only: cleaning up trailing whitespace at EOL 2017-06-15 18:17:07 +01:00
stats.h Whitespace changes only: cleaning up trailing whitespace at EOL 2017-06-15 18:17:07 +01:00
track.c Track and report autopilot FMS/MCP separately; also report autopilot altitude source. 2019-03-19 18:44:09 +00:00
track.h Track and report autopilot FMS/MCP separately; also report autopilot altitude source. 2019-03-19 18:44:09 +00:00
util.c WIP on new faup1090 output, data aging, refactoring 2017-12-02 17:38:33 +00:00
util.h WIP on new faup1090 output, data aging, refactoring 2017-12-02 17:38:33 +00:00
view1090.c Whitespace changes only: cleaning up trailing whitespace at EOL 2017-06-15 18:17:07 +01:00

dump1090-fa Debian/Raspbian packages

This is a fork of dump1090-mutability customized for use within FlightAware's PiAware software.

It is designed to build as a Debian package.

Building under jessie

Dependencies - bladeRF

You will need a build of libbladeRF. You can build packages from source:

$ git clone https://github.com/Nuand/bladeRF.git $ cd bladeRF $ dpkg-buildpackage -b

Or Nuand has some build/install instructions including an Ubuntu PPA at https://github.com/Nuand/bladeRF/wiki/Getting-Started:-Linux

Or FlightAware provides armhf packages as part of the piaware repository; see https://flightaware.com/adsb/piaware/install

Dependencies - rtlsdr

This is packaged with jessie. "sudo apt-get install librtlsdr-dev"

Actually building it

Nothing special, just build it ("dpkg-buildpackage -b")

Building under wheezy

First run "prepare-wheezy-tree.sh". This will create a package tree in package-wheezy/. Build in there ("dpkg-buildpackage -b")

The wheezy build does not include bladeRF support.

Building manually

You can probably just run "make" after installing the required dependencies. Binaries are built in the source directory; you will need to arrange to install them (and a method for starting them) yourself.

"make BLADERF=no" will disable bladeRF support and remove the dependency on libbladeRF.

"make RTLSDR=no" will disable rtl-sdr support and remove the dependency on librtlsdr.