Advertisement
metalx1000

RTL-SDR airplane locator

Oct 28th, 2016 (edited)
902
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.34 KB | None | 0 0
  1. sudo aptitude install git libusb-1.0-0-dev libc6-dev librtlsdr-dev
  2.  
  3. #old and build false 'git  clone  git://github.com/MalcolmRobb/dump1090.git'
  4.  
  5. wget "https://github.com/antirez/dump1090/archive/refs/heads/master.zip"
  6. unzip master.zip
  7. cd  dump1090-master
  8. make
  9.  [djt] I got errors at this point where pkg-config could not be found on my minimal Linux.  Installing pkg-config cured this problem, but if you had no errors from the make step you will not need not need to do steps 5 and 6.
  10.  
  11. sudo  apt-get install  pkg-config
  12. make
  13.  
  14.  
  15.  
  16. web-interface
  17. ./dump1090 --interactive --net --net-http-port 8080
  18. brave-browser "http://localhost:8080"
  19. Normal usage
  20. To capture traffic directly from your RTL device and show the captured traffic on standard output, just run the program without options at all:
  21. ./dump1090
  22.  
  23.  
  24. To just output hexadecimal messages:
  25. ./dump1090 --raw
  26.  
  27.  
  28. To run the program in interactive mode:
  29. ./dump1090 --interactive
  30.  
  31.  
  32. To run the program in interactive mode, with networking support, and connect with your browser to http://localhost:8080 to see live traffic:
  33. ./dump1090 --interactive --net
  34.  
  35.  
  36. In iteractive mode it is possible to have a less information dense but more "arcade style" output, where the screen is refreshed every second displaying all the recently seen aircrafts with some additional information such as altitude and flight number, extracted from the received Mode S packets.
  37. Using files as source of data
  38. To decode data from file, use:
  39. ./dump1090 --ifile /path/to/binfile
  40.  
  41.  
  42. The binary file should be created using rtl_sdr like this (or with any other program that is able to output 8-bit unsigned IQ samples at 2Mhz sample rate).
  43. rtl_sdr -f 1090000000 -s 2000000 -g 50 output.bin
  44.  
  45.  
  46. In the example rtl_sdr a gain of 50 is used, simply you should use the highest gain availabe for your tuner. This is not needed when calling Dump1090 itself as it is able to select the highest gain supported automatically.
  47. It is possible to feed the program with data via standard input using the --ifile option with "-" as argument.
  48. Additional options
  49. Dump1090 can be called with other command line options to set a different gain, frequency, and so forth. For a list of options use:
  50. ./dump1090 --help
  51.  
  52.  
  53. Everything is not documented here should be obvious, and for most users calling it without arguments at all is the best thing to do.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement