Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

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

Transcript of Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

Page 1: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

Decoding the airspace above you

with Java and $7 hardware

Bert Jan Schrijver [email protected]

@bjschrijver

Page 2: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

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

@bjschrijver

Page 3: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

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

@bjschrijver

Page 4: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

How it all started…

@bjschrijver

Page 5: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

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: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

Software Defined Radio

@bjschrijver

Demo

Page 7: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

@bjschrijver

So how about Java?

Page 8: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

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: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

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: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

ADS-B

@bjschrijver

Source: simflight.nl

Page 11: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

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: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

@bjschrijver

(insert legal notice here)

Page 13: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

How stuff works

@bjschrijver

Page 14: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

@bjschrijver

Demo! \o/

Page 15: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

How stuff works

@bjschrijver

Page 16: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

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: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

Getting serious

@bjschrijver

Page 18: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

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

@bjschrijver

Page 19: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

Antenna range

@bjschrijver

Page 20: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

1 hour of data

@bjschrijver

Page 21: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

2 hours

@bjschrijver

Page 22: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

4 hours

@bjschrijver

Page 23: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

8 hours

@bjschrijver

Page 24: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

16 hours

@bjschrijver

Page 25: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

@bjschrijver

That’s all!

Page 26: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

@bjschrijver

Questions?

Page 27: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

Please care about conference quality.

Thanks for your time!

Page 28: Decoding the airspace above you with Java and $7 hardware - Bert Jan Schrijver

Liked it? Tweet it!

@bjschrijver

[email protected]