As an APRS enthusiast, I often saw various boats tracked on aprs.fi .
Reading the origin of the packets, I became aware of the AIS system that I didn’t know before, and I understood that in some areas of the Italian coast there are ham gateways that receive the AIS system and forward the packets to the APRS-Internet Service.
After some insights in the AIS standard, I tried to understand if there is a setup within the technical and economic reach of a mean radio amateur, and in fact there are many, based both on Windows or Linux platform, on classic radios (with a “flat” output suitable for 9600baud) but also on SDR. And among these I discovered that, once again, there are solutions based on the legendary RTL-SDR dongle!
Already having a raspberry on which all my ham services running (aprs digi, Lora digi, WSPR receiving station), I decided to look for a software solution that once again can run on raspberry.
In various searches, I also came across the solution of dear Michele I8FUC, but in the end the one that seemed simpler and more efficient to me was that of KB9IQX, based on RTL-AIS, a special version of famous RTL-fm software customized for reception of AIS signals, which sends audio to the GNU-AIS decoder.
The peculiarity of the solution adopted by KB9IQX is the way in which the digital audio stream passes from RTL-AIS to GNUAIS, called “named pipe” (refer here for further information).
Following step by step the instructions given by KB9IQX, I managed to obtain an AIS receiving station at the first attempt, without any hitch. As antenna I used a V/UHF dual band collinear Diamond X510 and the results were already good. On the other hand also I8FUC uses a collinear and has an excellent reception coverage.

However, since the radio operator always wants to experiment and improve himself, I didn’t stop at the first option and I wanted to build an antenna perfectly resonating on the AIS frequencies (162MHz).
Being my station on the Adriatic coast, I don’t need too much directional antenna. It is enough to Suppress the back lobe, coming from the hinterland. I started to search for a 3 element Yagi and I’ve found a project by VA3RR on the internet.
The antenna has a decent forward/back ratio, good bandwidth and can be fed directly into 50Ohm without any impedance transformer.
Lengths refer to elements mounted on non-conductive booms. In the case of a metal boom, there are formulas that take into account the shortening, but I didn’t want to complicate my life and I decided to use an insulating boom too.
The AIS signals have vertical polarization, therefore the directive should be mounted on an insulating support to avoid spurious coupling with the pole on which it is mounted.
The diameter of the elements is 5mm in the simulation, but then I used 3mm rods that I had available in my garage. Below in the article I describe the results.
Here’s the NEC2 input file, if you want to play with the design. I used 4NEC2 by Arie, which is shareware:
CM Orr 3 element yagi scaled for 162 MHz
CM 9 = reflector , 2 = driven , 5 = reflector
CE
GW 9 11 0.00000 0.000000 0.48150 0.00000 0.00000 -0.48150 0.00250
GW 2 11 0.33500 0.000000 0.44000 0.33500 0.00000 -0.44000 0.00250
GW 5 11 0.60500 0.000000 0.39600 0.60500 0.00000 -0.39600 0.00250
GE 0
LD 5 9 1 13 5.8001E7
LD 5 2 1 13 5.8001E7
LD 5 5 1 13 5.8001E7
FR 0 1 0 0 1.62E+02 0.00E+00 0.00E+00 0.00E+00 0.00E+00 0.00E+00
EX 0 2 6 01 1.00E+00 0.00E+00 0.00E+00 0.00E+00 0.00E+00 0.00E+00
RP 0 37 37 1000 -90 0 10 10
PQ -1
PT -1
'FR 0 20 0 0 162 1
XQ
EN
Here are the theoretical dimensions:

Below there is the radiation pattern:

Here are some photos taken during my construction.



The construction technique and the materials used are the same described in this other article that I wrote some time ago.
I used pvc pipes and accessories for electrical materials. The box in the center of the radiator is also electrically sealed. Still in the same box, I housed a small RF choke to suppress any parisitic currents that could flow outside the coaxial shield, due to the symmetry at the feed point.
I made the choke with a few coils of RG174 coaxial cable (or similar.. the one I had in the garage 🙂 ) around a small piece of 20mm diameter PVC pipe.






The RF connector is a SO239 because it was the one I had available, but nothing prevents you from using an “N”. In both cases, I always recommend the type with a square flange, to be fixed with 4x M3 screws and bolts to the wall of the box. Connectors without a flange tend to rotate once tightened, risking breaking the connections inside the box.
At the point of attachment to the pole, I reinforced the boom by inserting a small 20mm piece inside the 24mm PVC tube to avoid crushing.

Every element is hloded on the boom by a PVC clip (type suitable to fix the PVC pipes on the walls), which I drilled with 3mm tip. Be sure to be perpendicular during drill. It’s better to use a column drill for this operation.
When all 3 elements are on the boom , they can be fixed on the boom with small screws, as reported in the picture below. Be sure that all 3 elements are aligned in parallel before fixing them (carefully view the antenna on the front).

After building the antenna, I performed the calibration comfortably in my garage (during the winter it is not pleasant to do it outdoors!).

Considering that I preferred to leave about 2cm more length on the radiator than the theoretical length calculated on the NEC (shortening is always done in time, lengthening is a little more difficult…), the first tests showed a resonance at about 150 MHz, so more than 10MHz than expected. After various shortenings, I finally reached the resonance at 162MHz with a length of 85cm, therefore 3cm less than the theoretical one.

Once installed, the antenna immediately showed excellent results and improvements compared to the collinear one.
A notch filter to eliminate 144.800MHz transmissions from my aprs tx-igate would further improve AIS reception, avoiding completely saturating the SDR dongle. But this is Work in progress..
To complete my receiving station, I thought that, in addition to forwarding data to aprs-is, it would be nice to know in real time which vessels are under coverage , so I thought of a web interface similar to the one already developed for stats view of my igate aprs.
With minor readjustments of the code, it was easy enough. Unlike the aprs web interface, which processes an aprx log file in ASCII format, this time data is read doing queries to a MySQL database (MariaDB), also installed on the raspberry following this simple guide. This is possible thanks to the fact that GNUAIS implements mySQL in native way.
As already done for aprs, I left a summary table of raspberry system information.
Here below, some pictures of the web interface:



Note that a lot of “n/a” are displayed because not all the ships informations are transmitted in every AIS spot.
Every marker is numbered and refers to the table. I didn’t put ship names near the markers because the map could become unreadable, especially in case of ships close to each other.
Clicking on every MMSI number, a new tab will open and show ship on aprs.fi in the user’s browser.
Also ships details on marinetraffic are available clicking on “ship details”.
The source code of the page is available at this address: https://github.com/IZ7BOJ/GNUAIS-web-interface
The Web interface installed on my raspberry can be reached at this address: http://iz7boj.dyndns.org/ais/ (the page opens slowly due to some problems on wifi link between home, where the ADSL modem is installed, and AIS receiver site)
Hoping to have provided some interesting ideas to OMs interested in the AIS system, I wish everyone good experimentation
73’s
Alfredo IZ7BOJ