Skip to main content

AIS Cursor-on-Target Gateway.

Project description

Screenshot of AIS points in ATAK-Div Developer Edition.

aiscot receives AIS Sentences from an AIS Receiver, such as ais-decoder, converts them to Cursor-on-Target, and transmits the CoT to a UDP destination.

For use with CoT systems such as ATAK, WinTAK, RaptorX, Falconview, etc. See https://www.civtak.org/ for more information on the TAK program.

Utilized for an open ocean boat race in the Northern Pacific Ocean, as described in this article: http://ampledata.org/boat_race_support.html

Installation

The command-line daemon aiscot can be install from this source tree (A), or from the Python Package Index (PyPI) (B).

  1. To install from this source tree:

    $ git checkout https://github.com/ampledata/aiscot.git
    $ cd aiscot/
    $ python setup.py install
  2. To install from PyPI:

    $ pip install aiscot

Usage

The aiscot daemon has several runtime arguments:

$ aiscot --help
usage: aiscot [-h] [-P AIS_PORT] -C COT_HOST

optional arguments:
  -h, --help            show this help message and exit
  -P AIS_PORT, --ais_port AIS_PORT
                        AIS UDP Port
  -C COT_HOST, --cot_host COT_HOST
                        Cursor-on-Target Host or Host:Port

For minimum operation, -P AIS_PORT & -C COT_HOST are required.

The following example listens for AIS Sentences on UDP 0.0.0.0:5050, and forwards CoT messages to UDP 172.17.2.222:4242:

$ aiscot -P 5050 -C 172.17.2.222:4242

Example Cursor-on-Target Event

The aiscot daemon will output CoT XML Events similar to this example:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<event version="2.0" type="a-f-G-E-V-C" uid="AIS.993692014"
    time="2020-09-25T14:15:01.639741Z" start="2020-09-25T14:15:01.639741Z"
    stale="2020-09-25T15:15:01.639741Z" how="h-e">
  <point lat="37.815" lon="-122.78695" hae="10" ce="10" le="10" />
  <detail>
    <uid Droid="6N                  @" />
  </detail>
</event>

Build Status

Master:

https://travis-ci.com/ampledata/aiscot.svg?branch=master

Develop:

https://travis-ci.com/ampledata/aiscot.svg?branch=develop

Source

Github: https://github.com/ampledata/aiscot

Author

Greg Albrecht W2GMD oss@undef.net

http://ampledata.org/

License

Apache License, Version 2.0. See LICENSE for details.

Debugging Cursor-on-Target

The publicly available ATAK source was a good reference for some of the parsing errors the ATAK-Civ Development Build was giving me, namely Invalid CoT message received: Missing or invalid CoT event and/or point attributes. Many errors are unfortunately caught in a single try/catch block:

https://github.com/deptofdefense/AndroidTacticalAssaultKit-CIV/blob/6dc1941f45af3f9716e718dccebf42555a8c08fd/commoncommo/core/impl/cotmessage.cpp#L448

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiscot-3.0.0.tar.gz (6.6 kB view details)

Uploaded Source

File details

Details for the file aiscot-3.0.0.tar.gz.

File metadata

  • Download URL: aiscot-3.0.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for aiscot-3.0.0.tar.gz
Algorithm Hash digest
SHA256 1b48d6719074fa4ad87447f34f0925664fa9a53b28093aac1a21a76d1ab84ae1
MD5 0f9d8fc9e1ec0e34e5ff8869a0379ac6
BLAKE2b-256 d136fea86934d093529b59309429919f57504a2c3d15921d3f8c1afcd58191fd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page