Articles Guide Reception VHF/UHF

Getting Started with AIS: Track Ships from Your Shack with a RTL-SDR

The Automatic Identification System (AIS) is a VHF radio-based collision-avoidance protocol that virtually every commercial, passenger, and large recreational vessel in the world is required to carry. Since 2004, the International Maritime Organization (IMO) has mandated AIS transponders on all ships of 300 GT or more engaged in international voyages, all cargo ships of 500 GT or more on domestic routes, and all passenger ships regardless of size.

AIS featured image

Every few seconds — sometimes as often as every two seconds when a vessel is manoeuvring — its AIS transponder transmits a compact digital burst on one of two dedicated VHF channels: 161.975 MHz (Channel 87B) and 162.025 MHz (Channel 88B). That burst contains a rich data payload: MMSI number (a unique vessel ID), ship name, call sign, IMO number, vessel type, dimensions, draught, destination, navigational status, GPS position, course over ground, speed over ground, rate of turn, and more.

The beauty of AIS as a hobby is that the data is completely open and unencrypted by design — it was never meant to be secret. The entire point is for every ship in the vicinity to hear every other ship. You are simply another receiver in that neighbourhood.— Concept widely cited in SDR and maritime radio communities

For radio enthusiasts, AIS sits at a fascinating intersection of VHF propagation, digital signal processing, embedded protocol decoding, and real-world geography. Unlike, say, decoding ACARS (aircraft telemetry) or tracking weather satellites, the feedback loop with AIS is almost immediate: within minutes of a correct antenna orientation, you will see real vessels — cargo ships, tankers, ferries, coast guard cutters — plotted on a live map on your screen.

How AIS Works: The Technical Basics

Modulation and Physical Layer

AIS uses Gaussian Minimum-Shift Keying (GMSK), the same modulation scheme used in older GSM mobile networks. It operates at a bit rate of 9,600 baud and uses a TDMA (Time Division Multiple Access) scheme so that hundreds of vessels can share the same two frequencies without collisions. Each vessel’s transponder autonomously selects time slots, listening to others before transmitting to avoid overlap — this is called SOTDMA (Self-Organised TDMA).

Automatic Identification System –Message Types

The AIS standard defines 27 message types. As a shore-based receiver you will encounter mostly:

AIS-Message Types

NMEA Sentences

When decoded, AIS data is typically formatted as NMEA 0183 sentences. The two AIS-specific prefixes are !AIVDM (messages from other vessels) and !AIVDO (the receiver’s own vessel, rarely seen on passive receivers). A typical decoded sentence looks like this:

      !AIVDM,1,1,,B,15MvBJ0000rNjqBJG9WN<0sFh0<04,0*7C

The payload field (the long alphanumeric string) is 6-bit ASCII armoured binary. Free libraries such as libaispyais (Python), or the built-in parsers in OpenCPN can decode it instantly into human-readable fields.

AIS is essentially a self-organizing mesh of radio nodes, each vessel announcing its existence to the world on a schedule determined by its own speed and manoeuvring state. The faster you move, the more frequently you transmit — an elegant design that prioritises collision risk without requiring a central controller.— Paraphrase of ITU-R M.1371 design rationale

AIS Hardware You Need

One of the biggest breakthroughs for AIS hobbyists came around 2012, when people discovered that inexpensive DVB-T USB TV dongles built with the Realtek RTL2832U chip could function as software-defined radio (SDR) receivers.

These small devices, originally designed for digital television reception, can actually receive a wide range of radio signals—from roughly 25 MHz to 1,750 MHz. This includes AIS transmissions at 162 MHz, making them a perfect low-cost solution for AIS decoding projects.

AIS Hardware

Below is a typical setup and its approximate cost:

  1. RTL-SDR v3 Dongle
    Cost: ~$25–$35 USD
    A highly recommended SDR receiver with a stable TCXO, ESD protection, and direct sampling support for HF signals.
  2.  2.AIS-Specific Antenna
    Cost: $15–$80 USD
    Usually a vertical dipole or collinear antenna tuned for 162 MHz. Antenna height often has a greater impact on performance than antenna gain.
  3. Low-Loss Coax Cable
    Cost: $10–$30 USD
    Cables like RG-8X or LMR-240 work well for runs up to about 10 m, while LMR-400 is better for longer distances to reduce signal loss.
  4. Raspberry Pi 4 (Optional)
    Cost: ~$45–$55 USD
    A compact computer that can run a 24/7 headless AIS decoder, ideal if you want to continuously receive and share AIS data with online aggregators.
  5. SAW Filter (Optional)
    Cost: $5–$20 USD
    A 163 MHz band-pass filter that helps eliminate interference from nearby FM broadcast signals, improving AIS reception.
  6. SMA Adapters / Cables
    Cost: $5–$10 USD
    Useful for connecting different hardware types. Most RTL-SDR dongles use SMA-F connectors, while many antennas use PL-259 or N-type connectors.

Together, these components create a low-cost yet powerful AIS receiving station that can be built for under $100 in many cases.

Receiving AIS transmissions is entirely passive — you are not transmitting anything. In virtually every jurisdiction worldwide, receiving VHF signals requires no radio licence. You only need a licence if you transmit. AIS hobbyists are receive-only.

Choosing Your Dongle

The original RTL-SDR Blog V3 is the community-recommended starting point. It includes a temperature-compensated crystal oscillator (TCXO) for frequency accuracy, an improved RF shield, and SMA connector — critical details that generic eBay clones often skip. For AIS specifically, frequency stability matters: a poorly calibrated dongle can sit just outside the 9,600-baud GMSK passband and decode nothing.

The difference between a $6 clone and the $35 RTL-SDR V3 is not marketing — it is the TCXO. At 162 MHz, even a 10 ppm frequency error shifts you off the AIS channel by 1.62 kHz, which is enough to degrade decoding noticeably. The TCXO keeps drift under 1 ppm.

The Antenna: Your Most Critical Investment

In AIS reception, antenna height beats antenna gain. AIS signals are line-of-sight VHF transmissions — the radio horizon limits how far you can hear. A vessel’s AIS transponder antenna is typically 15–30 metres above sea level.

Given the geometry, the relationship between your antenna height and your decoding range is approximately:

Range (nm) ≈ 1.23 × (√h₁ + √h₂)
Where:
h₁ = your antenna height in feet
h₂ = vessel's AIS antenna height in feet (assume ~60 ft typical)
Example: Your antenna at 30 ft (roof mount):
Range ≈ 1.23 × (√30 + √60) ≈ 1.23 × (5.47 + 7.75) ≈ 16.3 nautical miles

Recommended Antenna Types for AIS

AIS - Antenna types

💡 Quick DIY Antenna Tip –A simple half-wave dipole for 162 MHz costs under $2 in wire and connector. Each element is approximately 43.5 cm (17.1 inches) long. Solder to an SO-239 chassis connector, mount it vertically, and you will be surprised at the results even indoors.

The table shows several antenna types that work well for receiving AIS (Automatic Identification System) signals around 162 MHz.

  • Quarter-wave whip antennas are the simplest option. They are compact, omnidirectional, and very easy to build, making them a good starting point for beginners or portable setups.

  • Half-wave dipole antennas provide slightly better performance and range than a quarter-wave whip while still being easy to construct, which makes them popular for DIY AIS receivers.

  • 5/8-wave verticalantennas offer a small gain improvement and a lower radiation angle, helping signals travel farther over the horizon. They are a good balance between performance and complexity.

  • Collinear antennas (3–6 elements) combine multiple elements to achieve higher gain and a very low elevation angle, allowing maximum reception range. However, they are more complex to design and build.

  • Commercial marine VHF antennas are ready-made, weatherproof solutions designed for marine environments. They provide reliable performance and are ideal if you prefer a plug-and-play setup instead of building your own antenna.

For AIS reception, antenna height and clear line-of-sight usually have a greater impact on performance than the antenna type itself.

AIS Software Setup: From Raw Samples to a Live Ship Map

The software stack for AIS decoding typically has three layers: the SDR driver that interfaces with your dongle, the AIS decoder that processes the I/Q samples, and the map/display application that plots vessels. Several all-in-one solutions exist that collapse these into a single install.

Installing Drivers (Windows)

# On Windows, use Zadig to replace the default Windows driver
# Download Zadig from zadig.akeo.ie
# Select your RTL-SDR dongle → Install WinUSB or libusbK driver
# Then verify with rtl_test:
rtl_test -t

AIS Decoder Options

Several software tools are available for decoding and visualizing AIS (Automatic Identification System) data, each suited to different platforms and user needs.

AIS Dispatcher is a Windows-based application designed for beginners. It provides a simple graphical interface and includes a built-in map, making it easy to visualize vessel traffic without complex configuration. AIS Dispatcher installation instructions

OpenCPN + AIS is a cross-platform solution available for Windows, Linux, and macOS. It is a full-featured marine chart plotter that supports AIS overlays and additional features such as GRIB weather data, making it ideal for navigation and advanced maritime monitoring.

AIS-catcher is a powerful open-source decoder that runs on Windows, Linux, and Raspberry Pi. It is command-line focused and known for excellent sensitivity and performance, making it popular for hobbyists running dedicated AIS receiving stations. AIS-catcher installation guide

GNUAIS is one of the oldest open-source AIS decoders and runs on Linux systems. It is lightweight and pipe-friendly, meaning it can easily integrate with other software tools or scripts for custom AIS processing pipelines.

ShipPlotter is a polished Windows application that costs around €25. It offers a user-friendly interface and strong visualization features, making it particularly suitable for coastal monitoring stations and enthusiasts who want a refined GUI.

VDR-PIis designed specifically for Raspberry Pi systems. It runs headless and is optimized for continuous 24/7 AIS data collection and feeding to online AIS aggregation networks.

Together, these tools provide flexible options for AIS decoding, ranging from simple desktop applications to advanced command-line and embedded solutions.

Maximising Your AIS Decoding Range

Once your basic setup is working, the natural next step is extending range. Several variables govern how far you can hear:

Antenna height— as discussed above, the dominant factor for line-of-sight VHF. Every additional metre of height adds meaningful range. A rooftop mount versus a windowsill can double or triple your reception radius.

Coaxial cable loss — at 162 MHz, RG-58 loses roughly 5 dB per 10 metres. That may seem small, but 3 dB is a factor of two in received power. Use low-loss coax, or mount your dongle at the antenna and use USB-over-Cat5 extenders instead of long coaxial runs.

Low-noise amplifier (LNA) — a 20 dB LNA mounted directly at the antenna feed point can dramatically improve weak-signal reception. The RTL-SDR Blog’s own LNA4ALL or the Adam9A4QV LNA are community favourites. Bias-tee power injection through the coax eliminates the need for a separate power cable.

Filters — dense urban environments have strong FM broadcast signals (88–108 MHz) and 4G/LTE interference that can saturate your dongle’s front end. A bandpass SAW filter centred on 162 MHz can improve decode counts dramatically in noisy RF environments.

Feeding Your AIS Data to Global Tracking Networks

One of the most satisfying aspects of AIS as a hobby is the ability to contribute your locally received data to global ship-tracking aggregators. These platforms merge feeds from thousands of shore-based receivers worldwide to build comprehensive, near-real-time pictures of global maritime traffic.

One of the most rewarding parts of running your own AIS receiver is the ability to share your locally received ship data with global vessel-tracking networks. These platforms collect AIS data from thousands of volunteers and shore-based stations around the world, combining them to create a near real-time view of global maritime traffic. By contributing your AIS feed, you help improve coverage in your region while gaining access to useful features offered by these services.

AIS Global Tracking Networks

Several major AIS aggregation platforms accept community data feeds. MarineTrafficis one of the most popular networks and rewards contributors with a free Professional account and API credits, allowing deeper access to maritime data. VesselFinder also encourages volunteers by offering premium subscription upgrades for active feeders.

vesselfinder AIS map

For users interested in accessing raw AIS information, AISHub provides aggregated global AIS data feeds, which can be useful for research, software development, or custom tracking systems. Another option is ShipXplorer, which offers contributors a premium account with enhanced platform features.

Some organizations also collect AIS data for public maritime services. For example, Kystverket / BarentsWatchin Norway allows volunteers to contribute AIS data as part of their open maritime data initiatives, helping improve situational awareness and maritime safety.

By sharing your AIS receiver’s output with these networks, you become part of a global community of AIS enthusiasts and maritime observers. In return, contributors often receive premium platform access, API tools, and advanced tracking capabilities while helping build a more complete picture of ship movements around the world.

AIS – Frequently Asked Questions

1. What is the frequency for AIS?

AIS primarily uses two channels: 161.975 MHz (AIS 1) and 162.025 MHz (AIS 2). Most software monitors both simultaneously to ensure no packets are missed during heavy traffic.

2. Can I use the stock “telescopic” antenna that came with my RTL-SDR?

Yes, but for best results, you must tune its length. For 162 MHz, each element of a dipole should be approximately 43 cm (17 inches) long. However, an outdoor dedicated VHF antenna will significantly outperform a stock indoor one.

3. What is the maximum range I can expect?

AIS is line-of-sight. From a ground-level window, you might see 5–10 miles. If you mount an antenna on a roof or a hill, ranges of 20–60 miles are common. Under rare atmospheric conditions (tropospheric ducting), you might occasionally see ships hundreds of miles away.

4. Do I need a “Ham Radio” license to receive AIS?

No. You only need a license to transmit. Receiving and decoding public radio broadcasts like AIS is perfectly legal in most countries.

5. Why am I seeing “CRC Error” or “Bad Packet” in my logs?

This usually means the signal is too weak or there is too much electrical noise (interference) nearby. Try moving your antenna away from LED lights, power bricks, or computers.

6. What is “PPM Correction” and why does it matter?

Older RTL-SDR dongles shift in frequency as they get hot. PPM (Parts Per Million) correction offsets the software tuner to match the hardware’s drift. If you use a newer TCXO (Temperature Compensated Crystal Oscillator) dongle, your PPM will usually be 0 or 1.

7. Can I run an AIS station on a Raspberry Pi?

Absolutely. In fact, it’s the preferred method for 24/7 stations. Tools like AIS-catcher or RTLSDR-AIS run efficiently on even an old Raspberry Pi 3 or Zero.

8. Is there a way to see the ships on a map without an internet connection?

Yes. By using OpenCPN and downloading offline charts (like NOAA ENC charts), you can plot ship positions on a map completely offline. This is how many sailors use RTL-SDRs as a backup navigation tool.

9. What is the difference between Class A and Class B AIS?

  • Class A: Used by large commercial vessels; transmits at higher power (12.5W) and more frequently.

  • Class B: Used by recreational boats; transmits at lower power (2W) and less often to save bandwidth.

10. Do I need a Low Noise Amplifier (LNA) or a Filter?

If you live in a city with many broadcast FM or Cell towers, a 162 MHz Bandpass Filter can help prevent the SDR from being “overwhelmed” by local noise, significantly improving your ship count.

11. Can I share my data with MarineTraffic or FlightAware (FlightFeeder)?

Yes! Most AIS software allows you to “forward” your data via UDP or TCP to sites like MarineTraffic, VesselFinder, or AISHub. Often, these sites will give you a free Premium/Pro account in exchange for your data feed.

12. Why do some ships appear to be “jumping” or “teleporting” on the map?

This happens if your station is only catching every 5th or 10th packet due to a weak signal. Since the ship is moving, the software simply draws a straight line between the last known coordinates.

13. Does weather affect my reception?

Heavy rain can slightly attenuate signals, but certain high-pressure weather systems can actually cause “ducting,” allowing VHF signals to bounce along the atmosphere and travel much further than usual.

14. Can I use a TV antenna for AIS?

A standard TV antenna isn’t tuned for 162 MHz, but it can work if it’s an older “rabbit ear” style that you can adjust. Purpose-built maritime antennas or DIY dipoles will always yield better results.

15. What is an IMO number vs. an MMSI number?

  • MMSI (Maritime Mobile Service Identity): A unique 9-digit number assigned to the radio station on the ship (like a phone number).
  • IMO: A permanent ID assigned to the hull of the ship that stays with it for life, even if the name or owner changes.

Setting Sail from Your Desk

Setting up an AIS station is one of the most rewarding “weekend projects” in the world of Radio Frequency. It bridges the gap between raw data and the real world, turning invisible electromagnetic waves into a live, moving map of global commerce.

Whether you are a maritime enthusiast, a data nerd, or just someone who likes to know which massive vessel is passing by your local coast, the RTL-SDR is your passport to the high seas. For a hardware investment that costs less than a tank of gas, you gain a professional-grade monitoring tool that rivals equipment used on commercial bridges just a decade ago.

The beauty of this hobby lies in its scalability. You can start with a simple dongle and a window antenna today, and eventually grow into a 24/7 Raspberry Pi-powered station that contributes to global maritime safety networks.

So, get that antenna as high as you can, fire up your decoder, and see what’s lurking over the horizon. The ocean is a lot busier than it looks—and now, you have the eyes to see it.

Related Posts

blank
Prabakaran
Prabakaran is a seasoned author and contributor to leading electronics and communications magazines around the world, having written in publications such as Popular Communications Magazine (USA), ELEKTOR (UK), Monitoring Times (USA), Nuts & Volts (USA), and Electronics For You (India).
https://vu3dxr.in/

Leave a Reply

Your email address will not be published. Required fields are marked *