This Android App helps to change your Android device into a dual channel AIS receiver that can be used to pick up AIS signals from nearby vessels, even if offline! The App directly accesses a Software Defined Radio USB device, like a RTL-SDR dongle or an AirSpy decvice. Received vessels are visualized on the built-in map or messages are sent via UDP to plotting Apps like Boat Beacon or OpenCPN. A lightweight AIS receiver system when travelling. AIS-catcher for Android has been tested on an Odroid running Android.
An impression of AIS-catcher on the beach on a Galaxy Note 20 in July 2023 (thanks and credit: Roger G7RUH)
Here you can find a link to the APK file for latest Edge version or visit the Google Play Store. The engine and visualizations are based on AIS-catcher.
AIS-catcher had a recent overhaul. The instructions below still are relevant but the visualization of the results is now based on the same code as the AIS-catcher web interface. The instructions will be updated in due course.
The requirements to receive AIS signals are: a RTL-SDR dongle (or alternatively an AirSpy Mini/R2/HF+), a simple antenna, an Android device with USB connector and an OTG cable to connect the dongle with your Android device. AIS-catcher only receives and processes signals and then forwards the messages over UDP or visualizes them on the build-in map (internet connection required). And one more thing, you need to be in a region where there are ships broadcasting AIS signals, e.g. near the water.
- Improved functionality if offline (map tiles only to the extent cached by previous usage)
- Fireworks mode for map, have a look!
- APK for latest version always available for download, see below
- Support for RTL-SDR Blog V4
- Tab with realtime NMEA lines as it is received
AIS-catcher for Android
is created for research and educational purposes under the GPL license.
This program comes with ABSOLUTELY NO WARRANTY; This is free software, and you are welcome to redistribute it
under certain conditions. For details see the project page.
It is a hobby project and not tested and designed for reliability and correctness. You can play with the software but it is the user's responsibility to use it prudently. So, DO NOT rely upon this software in any way including for navigation and/or safety of life or property purposes. There are variations in the legislation concerning radio reception in the different administrations around the world. It is your responsibility to determine whether or not your local administration permits the reception and handling of AIS messages from ships and you can have this App on your phone. It is specifically forbidden to use this software for any illegal purpose whatsoever. The software is intended for use only in those regions where such use is permitted.
You can download AIS-catcher-for-Android in the Release section in the form of an APK-file. There are various resources on how to install an APK file available on the web.
Some Android manufacturers prefer battery life over proper functionality of Apps which might be particular relevant for a SDR AIS receiver. You can find tips for various devices at https://dontkillmyapp.com/.
For a video of a field test of an early version see YouTube. Below we have included a Getting Started tutorial when running with a RTL-SDR dongle. The steps for the AirSpy and TCP connections are very similar. Please notice that your phone or tablet has to power the USB device and run the decoding algorithm and this will be a drain on your battery. When sending UDP NMEA lines over the network or decoding from TCP (SpyServer or RTL-TCP) this will require serious network traffic. Advice is to do this when connected via WiFi. Finally, the computationally intensive nature of AIS decoding requires the phone to give the Application sufficient run time. On some phones Android might restrict this and some tuning of the phone settings might be required.
The main screen of AIS-catcher is as follows:
The tabs section at the top provides access to the main statistics and information when AIS-catcher is running whereas the bottom navigation bar has the buttons to start/stop the receiver, clear the logs/statistics and select the source device you want to use for reception.AIS-catcher is a simple receiver that decodes messages and can send the messages from ships onward to specialized plotting apps via UDP.
In this step we are going to set up the outward connections to BoatBeacon and OpenCPN. For this we will use port 10110
for BoatBeacon and 10111
for OpenCPN. Press the 3 vertical dots on the top right and select the Setting option. Scroll to the bottom and activate the two UDP output connections via the switch and set the parameters as follows:
Next we start OpenCPN and click on Options (top left icon) and choose the Connections tab. We need to add a Network connection using UDP at address 0.0.0.0
dataport 10111
.
You could initially select Show NMEA Debug Window
as extra option which will give you a window in OpenCPN that shows all incoming NMEA messages it receives from AIS-catcher. This could be helpful
debugging a connection issue between the receiver and OpenCPN. The Connections tab will look something like:
Next we connect AIS-catcher to the RTL-SDR dongle. By default the user needs to give applications the rights to use a USB device. For this connect the dongle with your Android device using the OTG cable (if needed) and, if all is well, you should be asked if AIS-catcher can get access. With Dutch language settings (sorry) this should look like:
Accept the request and consider giving AIS-catcher permanent access to the device so this step can be skipped in the future.
Next go back to the Settings menu via the 3 vertical dots on the main screen and set up the RTL-SDR settings:
These settings should be ok but don't forget to set the frequency correction in PPM if needed for your device. You can set the dongle settings at any point in time but they will only become active when a new run is started.
In the Main screen select the Source by clicking the right-most item in the bottom navigation bar. Select the RTL-SDR device:
The bottom navigation bar should show which device is currently active and will be used for AIS reception.
In the main screen now click Start on the left in the bottom navigation bar. This starts the run and a notification is given that a foreground service is started. The navigation tabs allow you to see different statistics during the run (like message count (STAT), messages from the receiver (LOG) and received NMEA lines (NMEA) ).
AIS-catcher will run as a foreground service so the app will continue to receive messages when closed. That's all there is to it. Have fun!
AIS-catcher for Android uses the following libraries:
libusb-1.0.26+: https://github.com/libusb/libusb
libusb is a library for USB device access from Linux, macOS, Windows, OpenBSD/NetBSD, Haiku and Solaris userspace. It is written in C (Haiku backend in C++) and licensed under the GNU Lesser General Public License version 2.1 or, at your option, any later version (see COPYING).
rtl-sdr: https://github.com/osmocom/rtl-sdr
Turns your Realtek RTL2832 based DVB dongle into a SDR receiver. Licensed under the GPL-2.0 license. Modified for Android to open devices with file descriptors: https://github.com/jvde-github/rtl-sdr.
airspyhf: https://github.com/airspy/airspyhf
This repository contains host software (Linux/Windows) for Airspy HF+, a high performance software defined radio for the HF and VHF bands. Licensed under the BSD-3-Clause license. Modified for Android to open devices with file descriptors: https://github.com/jvde-github/airspyhf.
airspyone_host: https://github.com/airspy/airspyone_host
AirSpy usemode driver and associated tools. Modified for file descriptors here: https://github.com/jvde-github/airspyone_host.
AIS-catcher: https://github.com/jvde-github/AIS-catcher
AIS receiver for RTL SDR dongles, Airspy R2, Airspy Mini, Airspy HF+, HackRF and SDRplay. Licensed under the GPGL license.
At the moment we don't collect any user data. This policy will vary per version so please check this policy for each release.
- More testing....
Application crashes when USB device is unplugged whilst in the source selection menu- Application should automatically switch to SDR source if not playing and device connected
Application crashes when AirSpy HF+ is disconnected (seems to be a more general issue)Solved.Shorter timeouts when connecting to RTL-TCP- WiFi-only check in case: RTL-TCP streaming or UDP NMEA broadcast to other machines
Wakelocks andWiFi performance settings, etc...Add sync locks for updates- Count buffer under- and over-runs
Simple map- radar viewSimple graphs with statisticsStart button not properly reset when receiver stops due to timeout?