J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

28
Decoding the airspace above you with Java and $7 hardware Bert Jan Schrijver [email protected] @bjschrijver

Transcript of J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

Page 1: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

Decoding the airspace above you

with Java and $7 hardware

Bert Jan Schrijver [email protected]

@bjschrijver

Page 2: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

Outline• Background • Software Defined Radio • About ADS-B • Decoding ADS-B • Demo

@bjschrijver

Page 3: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

TL;DR• Now -> planes & Java • Afterwards -> free beer (at the bar)

@bjschrijver

Page 4: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

How it all started…

@bjschrijver

Page 5: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

Software Defined Radio• Radio communication system • Components implemented in software • Cheap DVB-T with RTL2832U chip ($7) • Hence: RTL-SDR • Details on www.rtl-sdr.com

@bjschrijver

Page 6: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

Software Defined Radio

@bjschrijver

Demo

Page 7: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

@bjschrijver

So how about Java?

Page 8: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

Java and RTL-SDR• RTL_TCP: Provides socket for RTL-SDR

device • Java can connect, set frequency and

stream data • Decode data signal in Java • First try: AIS (ship traffic) • First tries never succeed…

@bjschrijver

Page 9: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

ADS-B• Automatic Dependent Surveillance

Broadcast • Monitoring and collision avoidance • Installed on all airliners • Reports identity, position and more • Part of US and EU regulation

@bjschrijver

Page 10: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

ADS-B

@bjschrijver

Source: simflight.nl

Page 11: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

Java and ADS-B• Java connects to RTL_TCP socket • But now what? • No open source Java decoders

available • No other option than to write own

decoder… or is there?

@bjschrijver

Page 12: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

@bjschrijver

(insert legal notice here)

Page 13: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

How stuff works

@bjschrijver

Page 14: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

@bjschrijver

Demo! \o/

Page 15: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

How stuff works

@bjschrijver

Page 16: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

That’s cool, but…• In-house reception is sub-optimal • Always-on service would be nice • Laptop needed for work now and then

@bjschrijver

Page 17: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

Getting serious

@bjschrijver

Page 18: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

We love data• Keep system running for a while • Nicely stocked MongoDB • Now what? • Visualize it!

@bjschrijver

Page 19: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

Antenna range

@bjschrijver

Page 20: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

1 hour of data

@bjschrijver

Page 21: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

2 hours

@bjschrijver

Page 22: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

4 hours

@bjschrijver

Page 23: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

8 hours

@bjschrijver

Page 24: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

16 hours

@bjschrijver

Page 25: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

@bjschrijver

That’s all!

Page 26: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

@bjschrijver

Questions?

Page 27: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

Please care about conference quality.

Thanks for your time!

Page 28: J-Fall 2014: Decoding the airspace above you with Java and $7 hardware

Liked it? Tweet it!

@bjschrijver

[email protected]