Setting up a Raspberry Pi Based AIS Receiver with an RTL-SDR

Over on YouTube user Tobias Härling has uploaded a video showing how he used a Raspberry Pi and RTL-SDR dongle to set up an AIS receiver. AIS stands for Automatic Identification System and is a radio system similar to ADS-B which allows you to create a radar-like system for boats. For Windows we have a tutorial on AIS reception here.

In his setup he uses rtl_ais and the kplex software and shows how to install everything from scratch. He also shows how to set the system up so that decoding automatically starts up and begins outputing NMEA data through the network when the Raspberry Pi is powered on. This way an a device like an iPad could be used to run OpenCPN to view the plotted ships.


  1. Hans

    are there any adaptations necessary for RPI 3 and/or aplay?? From a HW & compilatiojn point of view, everything looks OK, but I do not receive any AIS signals, nor does the command ./rtl_ais -g50 -l94.9M -r95.1M -A | aplay -traw -r48k -v produce any output rather than noise, while the corresponding rtl_fm -f 103.4e6 -M wbfm -s 200000 -r 48000 – | aplay -r 48k -f S16_LE gives me fine radio audio.

  2. e.traas

    Hi, can you tell me how to relay the decoded signal (ASCII string) to a a certein ip address and port.

    Where can we buy a good dongle?


  3. Mike McRoberts

    I have installed RTL-AIS and ran it. Seems to start jut fine however the output I am getting in the console is not NMEA messages it is just garbled output. Anyone have any idea why this might be?



  4. Steve

    This video does not show how to use the Kalibrate program to calibrate the PPM ofset of your SDR dongle. Its from 2013, and other videos from youtube is taken down.
    How can I find the ofset easy?


    • Fred

      Just tune into a known frequency radio station. ie. select the frequency. (eg. local tower at nearby airport) Then run sdrsharp and go to the calibrate part and change the offset PPM up or down with the arrows whilst observing which way the center cursor is moving on the display. Get the cursor in the middle of the selected frequency and you can read what the offset is. Good luck, and may the force be with you always!

Post a comment

You may use the following HTML:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>