====== ADS-B via Dump1090 ======
FIXME Ryan says
Also sending to FlightRadar24, attached. FR24 installs easily on a PiAware installation - it’s seamless.
FIXME DO IT!
===== Flightaware Stats =====
* [[http://flightaware.com/adsb/stats/user/drabine|Flightaware ADS-B Stats for Me]]
* [[http://flightaware.com/adsb/stats/user/rmyadsk|Flightaware ADS-B Stats for Ryan]]
* [[http://flightaware.com/adsb/stats/user/virg|Flightaware ADS-B Stats for Virg]]
===== Raspberry Pi Configuration =====
* This is the base configuration program to use for say expanding the disk or waiting for network before booting, etc...
sudo raspi-config
===== Antenna Install =====
{{:airplanes:adsb:img_20160924_110233.jpg?300|}} {{:airplanes:adsb:img_20160924_102626.jpg?300|}}
===== Information =====
Some interesting dumps in linux. I could not get the windows version of this program to see the device correctly.
[ 60.050285] usb 1-3: new high-speed USB device number 11 using xhci_hcd
[ 60.246389] usb 1-3: New USB device found, idVendor=0bda, idProduct=2838
[ 60.246394] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 60.246396] usb 1-3: Product: RTL2838UHIDIR
[ 60.246398] usb 1-3: Manufacturer: Realtek
[ 60.246399] usb 1-3: SerialNumber: 00000001
[ 60.302998] usb 1-3: dvb_usb_v2: found a 'Realtek RTL2832U reference design' in warm state
[ 60.357477] usb 1-3: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer
[ 60.357490] DVB: registering new adapter (Realtek RTL2832U reference design)
[ 60.357935] i2c i2c-20: Added multiplexed i2c bus 21
[ 60.363547] i2c i2c-20: Added multiplexed i2c bus 22
[ 60.363554] usb 1-3: DVB: registering adapter 0 frontend 0 (Realtek RTL2832 (DVB-T))...
[ 60.376902] r820t 20-001a: creating new instance
[ 60.392666] r820t 20-001a: Rafael Micro r820t successfully identified
[ 60.398237] usb 1-3: Registered as swradio0
[ 60.398240] i2c i2c-20: rtl2832_sdr: Realtek RTL2832 SDR attached
[ 60.398242] usb 1-3: rtl2832_sdr: SDR API is still slightly experimental and functionality changes may follow
[ 60.404649] Registered IR keymap rc-empty
[ 60.404753] input: Realtek RTL2832U reference design as /devices/pci0000:00/0000:00:14.0/usb1/1-3/rc/rc0/input23
[ 60.404860] rc0: Realtek RTL2832U reference design as /devices/pci0000:00/0000:00:14.0/usb1/1-3/rc/rc0
[ 60.411243] usb 1-3: dvb_usb_v2: schedule remote query interval to 400 msecs
[ 60.414008] IR RC5(x/sz) protocol handler initialized
[ 60.414012] IR NEC protocol handler initialized
[ 60.414168] input: MCE IR Keyboard/Mouse (dvb_usb_rtl28xxu) as /devices/virtual/input/input24
[ 60.414291] IR MCE Keyboard/mouse protocol handler initialized
[ 60.415182] IR JVC protocol handler initialized
[ 60.420965] IR Sony protocol handler initialized
[ 60.421151] IR XMP protocol handler initialized
[ 60.421160] IR SANYO protocol handler initialized
[ 60.421313] usb 1-3: dvb_usb_v2: 'Realtek RTL2832U reference design' successfully initialized and connected
[ 60.421345] usbcore: registered new interface driver dvb_usb_rtl28xxu
[ 60.423071] IR Sharp protocol handler initialized
[ 60.423501] IR RC6 protocol handler initialized
[ 60.427011] lirc_dev: IR Remote Control driver registered, major 248
[ 60.429020] rc rc0: lirc_dev: driver ir-lirc-codec (dvb_usb_rtl28xxu) registered at minor = 0
[ 60.429022] IR LIRC bridge handler initialized
Bus 001 Device 006: ID 0bda:0139 Realtek Semiconductor Corp. RTS5139 Card Reader Controller
Bus 001 Device 011: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
|__ Port 3: Dev 11, If 0, Class=Vendor Specific Class, Driver=dvb_usb_rtl28xxu, 480M
rtl2830,rtl2832
===== Dump1090 =====
[[https://www.ab9il.net/software-defined-radio/dump1090-linux.html]] <- good information
In linux this worked fine
* Update
sudo apt-get update
* To build **dump1090**
sudo apt-get install git cmake libusb-1.0-0.dev build-essential
sudo apt-get install build-essential debhelper librtlsdr-dev libusb-1.0-0-dev pkg-config tcl8.5-dev autoconf python3-dev python-virtualenv libz-dev git tclx8.4 tcllib tcl-tls itcl3
* grab the repository
git clone git://github.com/MalcolmRobb/dump1090.git
* Compile
cd dump1090
make
* Remove these modules
sudo rmmod dvb_usb_rtl28xxu
* To run
* Live feed: (i didn't udev rules so had to run as sudo, but that's fine)
sudo ./dump1090 --interactive
* Network real time map! (Unlike the Windows software, it can plot planes on a builtin http interface using Google Maps)
sudo ./dump1090 --enable-agc --aggressive --net --net-http-port 8080
===== Flightaware Dongle =====
* Add this to the **/etc/modprobe.d/blacklist.conf**
blacklist dvb_usb_rtl28xxu
* Use this command line for the actual dongle from Flightaware
sudo ./dump1090 --aggressive --net --net-http-port 8080 --gain 45 --quiet
Then open your browser and go to [[http://127.0.0.1:8080]] to watch planes fly above you.
===== Running Piaware in Ubuntu =====
* Found this link here [[http://pastebin.com/eKbm118F]] originally pointed to here [[http://discussions.flightaware.com/ads-b-flight-tracking-f21/installing-piaware-on-ubuntu-t19244.html]] (good old google, found it quick)
- Into home directory and clone the software we need
git clone https://github.com/flightaware/dump1090_mr.git
- FAILS. This is a losing battle, they are relying on the Pi... don't fight it, just buy another Pi (-8