Difference between revisions of "AIS"

From wiki.opennauticalchart.org
Jump to: navigation, search
(webSDR)
(Replaced content with " == AIS decoders ==")
 
(58 intermediate revisions by the same user not shown)
Line 1: Line 1:
== AIS sources ==
 
=== webSDR ===
 
Many stations allow AIS tuning, see [https://rx-tx.info/map-sdr-points?freq_of=&freq_to=&bands=1031&country=All&title=&qth=&url= Map of SDR Receivers].
 
On Windows, [https://vac.muzychenko.net/en/ virtual audio cable] and [https://support.marinetraffic.com/en/articles/9552953-aismon AISmon] works well.
 
* Bremerhaven, DE http://dl1bir.spdns.de:8073/#freq=161975000,mod=wfm,sql=-150
 
* Vlissingen, NL http://sdrpa3bbl.duckdns.org:1500/#freq=161975000,mod=wfm,sql=-150
 
* London, GB http://maritime.nkpa.co.uk:8073/#freq=161975000,mod=wfm,sql=-150
 
* Edinburgh, GB https://websdr2.scotlandchat.co.uk/#freq=161975000,mod=wfm,sql=-150
 
* Malaga, ES  http://ea7cl.duckdns.org:8073/#freq=161975000,mod=wfm,sql=-150
 
* Kalamata, GR http://sv3smg.ddns.net:8073/#freq=162025000,mod=wfm,sql=-150
 
* Mangalia, RO http://yo4cil.home.ro:8073/#freq=161975000,mod=wfm,sql=-150
 
* Sydney, AUS http://meryl.ddns.net:8073/#freq=161975000,mod=wfm,sql=-150
 
*
 
* ...
 
  
=== NMEA ===
+
== AIS decoders ==
* <strike>https://www.aishub.net</strike> stopped NMEA stream mid 2024
+
==== Norway ====
+
Stream is filtered. Missing message types: 4/...
+
* https://www.kystverket.no/en/sea-transport-and-ports/ais/access-to-ais-data/
+
** tcp://153.44.253.27:5631
+
 
+
==== Florida ====
+
Reception area is limited.
+
* http://ssia-ais.erau.edu/
+
** tcp://ssia-ais.erau.edu:4000
+
 
+
=== API ===
+
* https://www.aishub.net
+
* https://aisstream.io
+
** <code>wscat -c wss://stream.aisstream.io/v0/stream -w 300 -x '{"APIKey": "***", "BoundingBoxes": [[[-180, -90],[180, 90]]], "FilterMessageTypes":["SafetyBroadcastMessage","LongRangeAisBroadcastMessage","BinaryBroadcastMessage","GroupAssignmentCommand"]}'</code>
+
* https://kx1t.com/ais
+
** <code>curl -s https://kx1t.com/ais/api/sse |grep 'data:' | awk '{print $2}'</code>
+
* https://mgoorman.nl
+
* http://anz-ais.ddns.net:8100
+
* https://www.aiscatcher.org/wageningen/
+
* https://big-g.co.uk/ais/
+
* ...
+
 
+
=== Historic ===
+
* ...
+
 
+
=== AIS decoders ===
+
==== Ais Decoder ====
+
* https://arundaleais.github.io/docs/ais/ais_decoder.html (WIN)
+
 
+
==== gpsdecode ====
+
* https://gpsd.gitlab.io/gpsd/gpsdecode.html
+
* <code>nc 153.44.253.27 5631 | gpsdecode | grep '"type":8'</code>
+
<pre>
+
{"class":"AIS","device":"stdin","type":8,"repeat":0,"mmsi":257057800,"scaled":true,
+
"dac":200,"fid":10,"vin":"00000000","length":215,"beam":60,"shiptype":8440,"shiptype_text":"Illegal ship type value.",
+
"hazard":5,"hazard_text":"Unknown","draught":0,"loaded":0,"loaded_text":"N/A (default)",
+
"speed_q":false,"course_q":false,"heading_q":false}
+
</pre>
+
<pre>
+
{"class":"AIS","device":"stdin","type":8,"repeat":0,"mmsi":215349000,"scaled":true,"dac":1,"fid":27,"linkage":90,"sender":0,"rtype":5,"rtype_text":"Ship route plan","start":"00-00T24:60Z","duration":262143,"waypoints":[{"lon":7.107972,"lat":62.844255},{"lon":7.112132,"lat":62.848032}]}
+
</pre>
+
<pre>
+
{"class":"AIS","device":"stdin","type":8,"repeat":0,"mmsi":215349000,"scaled":true,"dac":1,"fid":29,"linkage":90,"text":"LESSREMMAN - ELNES (VIA RORVIK; OUTSIDE) CAPT YURI"}
+
</pre>
+
* <code>nc ssia-ais.erau.edu 4000 | gpsdecode | -e grep '"type":8' -e grep '"type":27'</code>
+
<pre>
+
{"class":"AIS","device":"stdin","type":27,"repeat":0,"mmsi":368429323,"scaled":true,"status":"Not defined","accuracy":true,"lon":-81.0,"lat":29.2,"speed":0,"course":511,"raim":true,"gnss":false}
+
</pre>
+
<pre>
+
{"class":"AIS","device":"stdin","type":8,"repeat":0,"mmsi":369493715,"scaled":true,"dac":366,"fid":56,"data":"256:a83746ce99bb9edbd3eebb88bb7dcecba01df41d94f9397136c0c97eb4af8d69"}
+
</pre>
+
 
+
==== pyais ====
+
* https://github.com/M0r13n/pyais
+
* <code>pipx install pyais</code>
+
* <code>pipx ensurepath</code>
+
* <code>nc 153.44.253.27 5631 | ais-decode --json | grep '"msg_type": 8'</code>
+
<pre>
+
{"msg_type": 8, "repeat": 0, "mmsi": 257057800,
+
"dac": 200, "fid": 10, "vin": "00000000", "length": 21.5, "beam": 6.0, "shiptype": 8440,
+
"hazard": 5, "draught": 0.0, "loaded": 0,
+
"speed_q": false, "course_q": false, "heading_q": false}
+
</pre>
+
<pre>
+
{"msg_type": 8, "repeat": 0, "mmsi": 215349000, "dac": 1, "fid": 27,
+
"data": "FwFAGPP//3ggjnij9kTwQREIR+t9QIGPWI/RpYEAV0kfnN4B/oNCP0lbA/56ZH7oMAfMqQkAPXgPnOUSBujgIEAnJCF1QEOc0Uhdt0CLKQCQxYXBGjYZIXqkAkLbgkK4VwS3FHSHEE4JngLpEMz8"}
+
</pre>
+
<pre>
+
{"msg_type": 8, "repeat": 0, "mmsi": 215349000, "dac": 1, "fid": 29, "data": "FwUw4VOC2BYVIQEyChYkGAdIlCnI"}
+
</pre>
+
 
+
==== aisdecode ====
+
* https://github.com/madpsy/aisdecode/
+
* <code>./aisdecode-linux-amd64 -log-all-decodes decoded</code>
+
 
+
==== AIS-catcher ====
+
* input: https://docs.aiscatcher.org/configuration/input/tcp/
+
* output: https://docs.aiscatcher.org/configuration/output/console/
+
* web view: https://docs.aiscatcher.org/configuration/output/web-viewer/
+
* <code>AIS-catcher -t txt://153.44.253.27:5631 -o 5 -N 8101 GEOJSON false MESSAGE true REALTIME false</code>
+

Latest revision as of 07:56, 12 October 2025

AIS decoders