Giter Club home page Giter Club logo

sil's Introduction

Python Client for Mode S Raw Data

The tool is designed in Python to dump raw ADS-B and Mode S message from a beast or AVR data stream.

1. Install dependencies

$ pip install pyModeS tendo pandas

2. Collecting data

[optional] Setting up the source (if you don't have a raw stream)

Install dump1090 and run following:

$ ./dump1090 --net --quiet

Now you will have the raw messages served on TCP ports 30002 (AVR format) and 30005 (beast format). You can check using telnet command.

$ telnet 127.0.0.1 30002
$ telnet 127.0.0.1 30005

Saving raw data using SIL script

Once you have a TCP raw message stream ready, use start_sil.py from this repository to collect data. First download this repository, or clone it use:

$ git clone https://github.com/junzis/sil.git
$ cd sil

Then you can starting save raw messages.

For example, collecting ADS-B only from a AVR stream:

$ python start_sil.py --port 30002 --type avr --df-filter 17

or, collecting multiple DF used Mode S Beast stream from a remote server

$ python start_sil.py --host [hostname_or_ip] --port 30005 --type beast --df-filter 17 20 21

Additional information

  • User python start_sil.py -h to see more options
  • Option --df-filter allows you to specify the Downlink Formats to save
  • Increase --buffer-size to decrease the frequency of saving data to disk
  • Data is saved per hour (UTC), under data folder, with format RAW_YYYYMMDD_HH.csv
  • CSV columns are: unix timestamp, downlink format, ICAO address, raw message

3. Start the script automatically

To start the script automatically, add the following to contrab:

@reboot python3 \[path_to_script]\start_sil.py [options] &

4. Decoding save data

You can decode saved data using the scripts under extra_tools. For example:

$ python extra_tools/decode_adsb_single_thread.py --fin [input_file] --fout [output_file] --lat0 [receiver_latitude] --lon0 [longitude]

sil's People

Contributors

junzis avatar xoolive avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sil's Issues

Question: Fields saved

What are the fields saved in the final CSV? Does each CSV have header? Are all received messages logged? Or is there a sampling period?

Bug in avr.py: replace "b" with ord(b)

Hello,

I could not make the original code work in avr mode; the buffer string would not write more than one character. I solved this by editing avr.py starting on line 23; replacing "b" with "ord(b)" and in line 32, replacing "chr(b)" with "b". This allows the if statements to work and the message to complete.

I'm a novice programmer, so this may not be the most elegant solution.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.