Software Defined AIS Receiver Implementation Based On RTL-SDR and GNU Radio
Software Defined AIS Receiver Implementation Based On RTL-SDR and GNU Radio
University Center for Research University Center for Research University Center for Research
in Space Technologies, EMI in Space Technologies, EMI in Space Technologies, EMI
Mohammed V University in Rabat, Mohammed V University in Rabat, Mohammed V University in Rabat,
Rabat, Morrocco Rabat, Morrocco Rabat, Morrocco
[email protected] [email protected] habib [email protected]
Abstract—Automatic Identification System (AIS) is a radio limitation of radars. The AIS transponder unit is meant to
data system on board ships with an objectif to exchange different automatically broadcast the vessel’s position, course and speed
kind of informations (static, dynamic and trip related informa- over ground as well as static and voyage related information
tions). This exchange could happen between ships themselves
or between ship and ground stations. while receiving these over VHF channels (161.975 MHz for class A mobile stations
informations, AIS devices on board or ashore present in the and 162.025 MHz for class B mobile stations) with 12.5W
reception area can automatically locate, identify and track AIS- transmission power [3]. This enables the mariners to be
equipped vessels. There are many types of AIS devices such aware of other ships long before visual contact is established,
as class A mobile stations (161.975 MHz) mandated for vessels allowing them to take required measures good time. Fig. 1
300GT and above, and class B mobile stations (162.025 MHz)
with limited functionality and primarily used for vessels such as shows the data types included in AIS transmission.
pleasure crafts. This paper presents the reception and decoding
of AIS class A mobile station signal using RTL-SDR device with
VHF antenna, GNU Radio and AIS decoder to decode the frame.
I. I NTRODUCTION
AIS was required by the International Maritime Organiza-
tion (IMO) in 2004 [1]. Now, it is regarded as a safe naviga-
tional aid. It consists of exchanging data between ships, with
the objective of illustrating the position of nearby boats. Due Fig. 1. AIS data type
to The growth of AIS into a worldwide system that relies on a
satellite constellation- Satellite based Automatic Identification
II. BASIC THEORIES
System (S-AIS) [2] - since 2009. Sector participants would
have been in position to maintain a close check on maritime A. Self-Organized TDMA communication protocol of AIS
traffic wherever it takes place. And this will give birth to The AIS transponder consists of a GPS receiver that pro-
new services and innovations in the field that frequently go vides position, speed, and time information to a computer. The
beyond the confines of traditional maritime surveillance and computer then utilizes a VHF radio to share the information
decryption. with other AIS stations. This method is known as Self-
AIS stands for automatic identification system. It allows Organized Time Division Multiple Access (SO-TDMA) [4],
identification and tracking from other ships and from shore and it only requires one radio channel for transmission and
stations. A broadcast AIS improves safety and overcomes the reception.
Fig. 2. General structure of NMEA encapsulated sentence Fig. 4. Structural scheme of AIS receiver system
Authorized licensed use limited to: SRM Institute of Science and Technology. Downloaded on January 24,2024 at 08:51:26 UTC from IEEE Xplore. Restrictions apply.
The 2022 IEEE Asia Pacific Conference on Wireless and Mobile (APWiMob)
IV. R ESULTS
Fig. 5. AIS receiver flowgraph Fig. 6 shows a binary signal representing the NRZI decoded
bit sequence. This figure refers to the bit sequence seen bellow:
“01010101010101010101010101111110001110000011011
B. GNU Radio flowgraph 01010100101110000110110101100100000100011001101110
In this work, we used the GNU Radio version 3.7.11 10101000011000110010010001011000001101000010011100
for UBUNTU. Fig. 5 depicts the implemented AIS receiver 00101100001011110011011101011100011110000010010110
flowgraph. Our software only processes data from AIS channel 011011101110011011101111110”
A (161.975 MHz). The flowgraph is divided into four key The preamble sequence (010101010101010101010101) is
sections: included in the message frame. Which appear at the start of the
• The first part is the source unit, which is the RTL-SDR data sentence. In addition, the data frame contains the frame
receiving device. payload as well as the HDLC start and stop flags (01111110),
• second part is the output unit, which is where we will which identify the start and end of the sentence. The bit stream
save data as files. is retained as a binary file and will be processed later by the
• The third part deals with signal processing, which in- AIS NMEA message generator Fig. 7.
cludes the demodulation process.
• The fourth and last section focuses on visualizing and
presenting the signal processing progress at each level.
• The first block is the RTL-SDR source. It is the process-
ing’s starting point, including some required parameters.
(gain = 40dB ; sample rate = 1MHz ; central frequency
= 161.991MHz).
• The output unit is represented by both of the file sink’s
blocks. The first one on the left is connected to the
source unit and acts as a recording device to preserve
the received data. The one on the right followed the
processing block in order to keep the processed data bit
stream in a binary file. Fig. 6. NRZI decoded frame
• frequency sink block aims to show the signal’s spectral
density.
• Correclate acces code Block looks for a set of bits that
fits the acces code and highlights them visually.
• Uchar to float block convert the binary stream into float
type value for further use in the time sink block.
• Time sink block shows the temporel representation of the
entering value stream.
• Frenquency FIR filter block removes the AIS channel
frequency with a sampling rate of 25KHz. As previously Fig. 7. AIS NMEA message generator
Authorized licensed use limited to: SRM Institute of Science and Technology. Downloaded on January 24,2024 at 08:51:26 UTC from IEEE Xplore. Restrictions apply.
The 2022 IEEE Asia Pacific Conference on Wireless and Mobile (APWiMob)
Authorized licensed use limited to: SRM Institute of Science and Technology. Downloaded on January 24,2024 at 08:51:26 UTC from IEEE Xplore. Restrictions apply.
The 2022 IEEE Asia Pacific Conference on Wireless and Mobile (APWiMob)
Authorized licensed use limited to: SRM Institute of Science and Technology. Downloaded on January 24,2024 at 08:51:26 UTC from IEEE Xplore. Restrictions apply.