plane-watch / pw-pipeline

Takes in ADSB information and churns out JSON
https://plane.watch
GNU General Public License v3.0
8 stars 1 forks source link

SBS-1 Not Working? #227

Closed mikenye closed 10 months ago

mikenye commented 11 months ago

When starting pw_ingest with this command line:

/usr/local/bin/pw_ingest --tag mlat-mux-wa --fetch sbs1://127.0.0.1:30003 --sink nats://nats-ingest.plane.watch:4222 simple

pw_ingest fails to start, with the following log:

Fri Nov 24 14:14:32 UTC 2023 ERR Do not have a reference lat/lon - will not decode surface position frames ref-lat=0 ref-lon=0
Fri Nov 24 14:14:32 UTC 2023 INF Monitoring listener Listener Port=9602
Fri Nov 24 14:14:32 UTC 2023 INF Including Ingest Tap
Fri Nov 24 14:14:32 UTC 2023 INF Just added a producer Section=Tracker num workers=5 source=127.0.0.1:30003
Fri Nov 24 14:14:32 UTC 2023 INF Fetching From Host: 127.0.0.1:30003 Name=127.0.0.1:30003 ProducerType=SBS1 section=127.0.0.1:30003
Fri Nov 24 14:15:03 UTC 2023 ERR error="Failed to Parse Input - not enough parameters: " Section=Tracker Tag=mlat-mux-wa
mikenye commented 10 months ago

sbs.out.txt

@bluntelk mlat-server sends a linefeed (hex 0a) every 30 seconds. A hex dump from nc is attached. This is likely a simple fix - ignore 0x0a :)

mikenye commented 10 months ago

Some actual MLAT results in SBS-1 format:

MSG,3,1,1,7C7D19,1,2023/11/30,12:00:52.336,2023/11/30,12:00:53.216,,2600,,,-32.159711,115.801493,,,4,2501,,
MSG,3,1,1,7C7D19,1,2023/11/30,12:00:56.511,2023/11/30,12:00:57.427,,2600,,,-32.144321,115.805593,,,5,1750,,
MSG,3,1,1,7C7D19,1,2023/11/30,12:01:00.970,2023/11/30,12:01:01.883,,2400,,,-32.16739,115.801208,,,5,2010,,
MSG,3,1,1,7C7D19,1,2023/11/30,12:01:05.881,2023/11/30,12:01:06.701,,2400,,,-32.170264,115.800277,,,4,2412,,
MSG,3,1,1,7C7D19,1,2023/11/30,12:01:11.946,2023/11/30,12:01:12.845,,3100,,,-32.163343,115.803916,,,3,2907,,
mikenye commented 10 months ago

mlat-results.sbs.out.txt

Hexdump of mlat-server output with some results.

bluntelk commented 10 months ago

I have pushed a fix for this - let's test it out!