Skip to content

Instantly share code, notes, and snippets.

@tanmayee30
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanmayee30/e05412f8191e27d81c8a to your computer and use it in GitHub Desktop.
Save tanmayee30/e05412f8191e27d81c8a to your computer and use it in GitHub Desktop.

Prerequisites

###What is ADS-B Receiver?
Automatic Dependent Survelliance Broadcast.Where automatic suggest us that it is always on without requiring any operator's intervention, Dependent as it depends on GPS signal for positional data And broadcast simply means that it continuosly send aircraft's position to other aircraft /ground station.

SDR

It is software defined radio.It is nothing but transponder i.e.it can receive as well as transmit signals.

###RTL-SDR
It is nothing but cheap Real time Air Radar.ADS-B periodically broadcasts location and altitude information to the air traffic controllers. RTL-SDR can be used to listen these ADS-B signals .
ADS-B broadcasts at 1090MHz.RTL-SDR with R820T tuner has the best sensitivity at 1090MHz.

Principal of working

1.ADS-B Reads GPS signal
2.Interpreats the received information and transmitts it to the ground station.
3.Ground station retransmitts that received information to the controller screen or cockpit display of the aircraft.

Requirements to Setup a system using ADS-B Rx

1.Working [RTL-SDR] (http://www.rtl-sdr.com/about-rtl-sdr/) dongle.
2.Vertically Polarised Antenna to 1090MHz.
3.Software for listening and decoding ADS-B.
4.Software to graphically display received data.

Softwares used for decoding signals.

SDR#, SDR-RADIO V2,HDSDR(windows),SDR-RADIO.COM V2(windows),Linrad,GQRX,CubicSDR,Studio1,dump1090,GNU Radio.

conditions to be considered while choosing software

1.The software should be open source.
2.Its code should be available on github.
3.It should be compatible with linux as well as windows.(Ideally).
Thus,we have choosen dump1090.

#Practical Implementation on Linux.

Prerequisites for installation of software.

Check for the availability of following prerequisites by typing them in command line for dump1090. 1.g++
2.git
3.make
4.cmake
5.libusb
If all these are available on your machine then go for installation of dump1090.
If not then refer to the instruction given below to install them.
1.For installing g++ type command in terminal

sudo apt-get install g++

2.For installing git type command in terminal

sudo apt-get install git

3.For installing cmake click here
4.For installing libusb type command in terminal

sudo apt-get install libusb-1.0-0-dev

Once you are done with the above installation try installing rtl-sdr. To know how to install rtl-sdr clik here
Now,
You can download dump1090 from github repositoryand then clone it with your desktop.. After that you just need to just type command

make

Then go to the directory of dump1090.You ready to begin with dump1090. Type following command in the terminal.

./dump1090 --interactive

Also,to check its representation on localhost 8080 type commnad

./dump1090 --interactive--net

###Errors that may takes place while installation:
#####Error 1
Found 1 device(s):
0: pxQ#, , SN: ��# (currently selected) usb_open error -3 Please fix the device permissions, e.g. by installing the udev rules file rtl-sdr.rules Error opening the RTLSDR device: Permission denied

Cause : Non Root user Solution1 : sudo Solution2 : Change udev rules : http://www.instructables.com/id/rtl-sdr-on-Ubuntu/step3/Setup-udev-rules/

#####Error 2
Kernel driver is active, or device is claimed by second instance of librtlsdr. In the first case, please either detach or blacklist the kernel module (dvb_usb_rtl28xxu), or enable automatic detaching at compile time.

usb_claim_interface error -6 Error opening the RTLSDR device: Device or resource busy

Cause : Driver loaded Solution : unload driver : sudo rmmod dvb_usb_rtl28xxu rtl2832

Note: After installing the libraries you will likely need to unload the DVB-T drivers, which Linux uses by default. To unload them temporarily type “sudo rmmod dvb_usb_rtl28xxu” into terminal. This solution is only temporary as when you replug the dongle or restart the PC, the DVB-T drivers will be reloaded. For a permanent solution, create a text file “rtlsdr.conf” in /etc/modprobe.d and add the line “blacklist dvb_usb_rtl28xxu”.

After succesful installation of the software you can observe the signals via terminal. ######Note: Antenna should be in line of sight range.

#Reference Links 1.http://www.rtl-sdr.com/adsb-aircraft-radar-with-rtl-sdr/
2.http://f1jxq.net/ham-radio-amateur-2/receive-decode-adsb-acars-gps-aircraft-sdr/
3.http://sdr.osmocom.org/trac/wiki/rtl-sdr
4.http://www.instructables.com/id/rtl-sdr-on-Ubuntu/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment