For feeders · AISMesh Relay

One receiver. Many networks.

AISMesh Relay reads your receiver, checks each sentence, drops the duplicates and sends the stream to AISMesh and to the networks you already feed, at the same time. A live dashboard shows what your antenna hears.

At launch. Downloads arrive when the network opens. The commands below show how installing will work; they do nothing yet.
5 platformsRaspberry Pi, Linux, macOS, Windows, Docker
No default passwordA password made for your install and shown once
Full streamTo AISMesh by HTTPS with your token
Live dashboardMap, range, message rate, uptime
What it does

In, checked, out

Everything your receivers hear goes in on the left. Each sentence is checked once, then goes out to each destination in the form that destination wants.

INPUTS USB or serial receiverdAISy or NMEA at 38 400 baud UDPAIS-catcher, rtl-ais, OpenCPN TCP client or serverNetwork receivers, multiplexers AISMESH RELAY Checksumbad ones dropped Duplicatesheard twice, sent once Statisticsper message type Multi part sentences kept together OUTPUTS, ALL AT ONCE AISMeshFull stream, HTTPS with your token Networks you already feedFull, or thinned if you choose Your own app or plotterUDP out or a TCP server Local dashboardPort 8080, with your password INPUTS USB or serial receiverdAISy or NMEA at 38 400 baud UDPAIS-catcher TCPclient or server AISMESH RELAY Checksumbad ones dropped Duplicatessent once Statisticsper message type Multi part sentences kept together OUTPUTS, ALL AT ONCE AISMeshFull stream, HTTPS with your token Networks you already feedFull, or thinned if you choose Your own app or plotterUDP out or a TCP server Local dashboardPort 8080, with your password
Several receivers at once

USB and serial receivers such as the dAISy, UDP from AIS-catcher or rtl-ais, TCP as client or server. Several at once, merged into one clean stream.

Checked once

Each sentence must pass its NMEA checksum. Parts of a multi part message travel together or not at all. Bad lines are counted, not forwarded.

Heard twice, sent once

Two receivers on the same coast hear the same vessel. The Relay forwards the first copy and drops the repeat that arrives within 5 seconds.

Your other networks too

AISHub, MarineTraffic, VesselFinder, the AIS-catcher community and your own app get their streams at the same time, each with the address and port from your account with them.

Thinning only where you choose

AISMesh gets the full stream, never thinned. Each other output can be thinned on its own, for example to one position per vessel every 30 seconds; static and safety messages pass in full.

Rides out outages

If your internet or AISMesh drops, the last 10 minutes wait on disk and go out in order when the line returns, even after a restart.

Sign in with AISMesh

No token to copy. The Relay shows a short code, you confirm it on aismesh.com and the station links by itself. At launch.

Signed updates

Releases will be signed, checked before they install and rolled back by themselves if the new version fails to start. You can turn it off. At launch.

Install

One line on each platform. The installer sets the Relay up as a service that starts with the computer and runs as its own user, not as root. It finds receivers plugged in by USB, then asks for your station token or leaves linking to the dashboard. At the end it shows the dashboard password once.

Shell · at launch
curl -fsSL https://get.aismesh.com/relay | sh

Raspberry Pi OS (32 and 64 bit), Debian, Ubuntu and Fedora on x86_64 and ARM. The script shows what it will do and asks before it changes anything. Prefer to look first: download it, read it, then run it.

Configure

Set it up from the dashboard, or in one plain text file. Both write the same file. You can switch between them.

relay.toml
# AISMesh Relay settings
station_token = "TOKEN"

# inputs: as many as you have
[[input]]
type   = "serial"
device = "/dev/ttyACM0"     # COM3 on Windows
baud   = 38400

[[input]]
type   = "udp"
listen = ":10110"           # point AIS-catcher here

[[input]]
type    = "tcp"
connect = "receiver.local:5631"

# outputs: all receive at the same time
[[output]]
name = "AISMesh"            # the full stream, never thinned
type = "aismesh"

[[output]]
name       = "AISHub"
type       = "udp"
to         = "HOST:PORT"     # from your AISHub account
downsample = "30s"           # optional, positions only

[[output]]
name   = "My plotter"
type   = "tcp-server"
listen = ":5631"

Inputs

TypeSettingsFor
serialdevice, baud (38 400 for most AIS receivers)dAISy, USB and serial receivers, a transponder's pilot port
udplisten address and portAIS-catcher, rtl-ais, OpenCPN, kplex
tcpconnect to a source, or listen for oneNetwork receivers, multiplexers, another Relay

Outputs

TypeSettingsFor
aismeshuses station_token; HTTPS batches with a reply per batch. UDP to AISMesh is off (udp = "off") until the shared intake opensAISMesh, the full stream
udpto, optional downsample and typesAISHub, MarineTraffic, VesselFinder, the AIS-catcher community, your own app
tcpconnect, optional downsample and typesNetworks and apps that take TCP
tcp-serverlistenOpenCPN and plotters on your own network

Settings

SettingDefaultWhat it does
dedup_window5sA sentence seen again within this time is dropped.
downsampleoffPer output, never for AISMesh. One position per vessel per period; static and safety messages pass in full.
dashboardlocallocal (this computer only), lan (your home network) or off. Both need the password.
latitude, longitudenoneYour antenna position, for range and farthest today on the dashboard. Stays on your computer.
auto_updatetrueSigned updates, rolled back if they fail. Waits for the first release at launch.

The local dashboard

Open http://localhost:8080 on the computer that runs the Relay and sign in with the password made for your install. It shows what your antenna hears right now and links to your AISMesh station page. It answers on this computer only until you open it to your home network in Settings.

AISMesh Relay dashboard in light mode: messages per minute, vessels now, farthest today, uptime, a map of vessels heard, outputs and message counts AISMesh Relay dashboard in dark mode with the same panels
Demo The Relay dashboard, demo with invented traffic.

Sign in with AISMesh

Safe by default

  • No default password. The dashboard asks for a password made at random for your install and shown once, on this computer and on your network alike. It answers on this computer only until you open it to your home network in Settings.
  • Not root. It runs as its own user with access to the serial port and nothing else.
  • Signed updates. Releases will be signed and checked before they install. At launch.
  • Your token stays local. It is kept in the settings file, readable by the Relay's user only, never shown on the dashboard and sent only to AISMesh.
  • Outages. Up to 10 minutes of batches wait on disk and go out in order when AISMesh answers again.
  • Light. Light enough for a Raspberry Pi; measured figures at launch.

Questions

Do I need the Relay to feed AISMesh?

Not with AIS-catcher: it sends straight to AISMesh over HTTPS with your token; see Get started. Programs that only send plain UDP (docker-shipfeeder, AIS Dispatcher, OpenCPN, kplex) go through the Relay, because plain UDP cannot carry your token. The Relay also helps when you feed several networks or run more than one receiver.

I already run AIS Dispatcher. Why change?

You do not have to. If you change, the Relay does the same work with an install on five platforms, no default password, per output thinning, an outage buffer and a live dashboard of your own coverage.

Will my other networks still get my data?

Yes, at the same time. Enter the address and port each network gave you. AISMesh asks for no exclusivity.

Does the Relay decode radio itself?

No. It takes NMEA sentences from a receiver or a decoder. For an RTL-SDR dongle, run AIS-catcher and point its UDP output at the Relay.

When can I download it?

When the network opens. Until then, nothing on this page installs anything.