2017 © Pedro Peláez
 

library sbs1

SBS1 packet decoder

image

afk11/sbs1

SBS1 packet decoder

  • Saturday, July 7, 2018
  • by thomaskerin
  • Repository
  • 1 Watchers
  • 1 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 167 % Grown

The README.md

sbs1

This project provides simple library for decoding ADSB information from SBS-1 format., (*1)

SBS1 format is a CSV format produced by ADSB decoders., (*2)

This package enables decoding raw messages, and generating messages from a 'stream' type (a file handle or socket)., (*3)

The software can decode messages produced on port 30003 by dump1090 (started with the --net flag). There are many cheap (~10$) devices that can be used for this., (*4)

Installation

composer require afk11/sbs1

Examples

Parse raw messages

parsing_messages.php, (*5)

Stream from file

stream_from_file.php, (*6)

Stream from Socket

This example is missing, but it's essentially a one line difference to stream_from_file.php., (*7)

Replace the line calling readFile with a call to readTcpStream:, (*8)

-foreach ($streamReader->readFile($lineReader, $file) as $line) {
+foreach ($streamReader->readTcpStream($lineReader, "127.0.0.1", 30003) as $line) {

The Versions

07/07 2018