Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/sbs1Public

SBS1 packet decoder

NotificationsYou must be signed in to change notification settings

afk11/sbs1

Repository files navigation

This project provides simple library for decodingADSB information from SBS-1 format.

SBS1 format is a CSV format produced by ADSB decoders.

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

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.

Installation

composer require afk11/sbs1

Examples

Parse raw messages

parsing_messages.php

Stream from file

stream_from_file.php

Stream from Socket

This example is missing, but it's essentially a one line differenceto stream_from_file.php.

Replace the line calling readFile with a call to readTcpStream:

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

About

SBS1 packet decoder

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp