Creating an AIS Pi for Maritime Research

The key component to performing maritime research is tracking a vessel’s AIS (Automatic Identification System). This allows you to see the vessel’s broadcasted name, location, destination, vessel type, and more! I have previously written about AIS in several blogs including The Curious Case of the HMS Defender and Six Tips for Investigating Maritime Vessels.

Two weeks ago, I attended DEFCON 29 as a speaker and had the chance to check out Hack the Seas Village. Gary Kessler gave a really enjoyable talk about AIS tools and how AIS can be manipulated. After taking a deep dive into his previous DEFCON talks, I came across this presentation he gave last year on creating an AIS receiver from a Pi. Since I am familiar with AIS from a tracking standpoint I really want to be familiar with it from the manipulation side. I want to understand how AIS can be manipulated to make it easier to spot and understand what I see when I am performing research. Following Gary’s paper on creating the Pi along with some supplementary documentation I built my own AIS and documented it along the way. I hope you enjoy this project as much as I have.

Tools list:
Raspberry Pi $90(I used the Pi 4 Starter Kit but if you have the parts you can cut costs here)
dAISy Hat AIS Reciever $69
dAISy Hat Pi Case $14(not required but nice to have)
Marine VHF Antenna $21(161.975 MHz and 162.025 MHz)
*If you buy the antenna listed above you will also need to buy the SMA Male to SO239 RF Coaxial Coax Cable connector $11

Total Project Cost: $205

Gary has some useful connector information on his site here for choosing connectors based on your antenna type.

Let’s Begin Assembling!

  1. Grab your Raspberry Pi and Pi case and excitedly rip them from their boxes

Below is a picture showing all the pieces of the case and Pi. Lay out the bottom case plate and use these screw standoffs to go up through the bottom of the case as shown.

Make sure to use the four shorter standoffs, not the longer standoffs!

2. Place your Pi board on top of the standoffs so the screws go through all 4 holes in the board.

3. Attach the standoffs that have no screw end as shown below.

See, told you, no screw end

4. Open your dAISy Hat and stare at it lovingly.

5. Place the dAISy Hat on the 4 standoffs so the connector is over the USB port.

6. Add the last 4 spacers with the screws down

Put me upside down

7. Now lay out the remaining case pieces like so. Note: This piece below is deceptively hard to get situated. In fact, I am pretty sure I have it upside down in this photo.

8. You have now created something beautiful. Give it a name.

I am called Herbert.

9. If you bought the same antenna I recommended above you now need to screw the connector wire to the dAISy Hat.

10. Screw the other end of the wire to your antenna connector.

11. You are now the proud parent of an AIS Pi Receiver! Congrats.

Let’s not break out the cigars quite yet; Herbert still needs an OS!

I am Herbert and I feel so alive!

12. If you made it this far you are ready to install an OS. If you purchased the Pi Starter Kit you will have all the cables necessary to accomplish this. Place the provided SD card into the slot on the Pi, hook your HDMI cable from the connector on the Pi to a monitor, plug your power cord into the Pi. If you have a mouse and keyboard they can be plugged into the USB ports on the Pi. The native OS, Rasbian, is ready to install from the SD card or you can download it here.

In the next blog, we will walk through how to install and configure OpenCPN for maritime tracking.

Special thanks to Gary Kessler for inspiring this project and providing some really awesome maritime content!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
wondersmith_rae

@wondersmith_rae | OSINT Analyst | @OSINTCurious Advisory Board | @QuizTime | http://Tracelabs.org | http://safeescape.org | Speaker and @Wiley Author