1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-23 00:18:37 -05:00
sdrangel/plugins/channelrx/demodais
srcejon e277ed0736 Update CMakeLists.txt to allow static libraries to be built, as well as shared.
Add BUILD_BENCH, BUILD_SHARED_LIBS, ENABLE_AARONIARTSA and ENABLE_METIS options.
2024-10-30 20:29:21 +01:00
..
aisdemod.cpp AIS: Validate message length. Fixes #2125 2024-06-20 22:00:15 +01:00
aisdemod.h Frequency Scanner: allow scanning channels of a MIMO device 2023-12-14 21:57:49 +01:00
aisdemodbaseband.cpp Remove unused includes and use more direct includes 2024-04-11 23:31:34 +02:00
aisdemodbaseband.h Rewriting of copyright notices for plugins/channelrx. Part of #1893 2023-11-18 12:02:48 +01:00
aisdemodgui.cpp AIS: Validate message length. Fixes #2125 2024-06-20 22:00:15 +01:00
aisdemodgui.h AIS, DSC, End-of-Train, Packet, Radiosonde: All packet date/time to come from File Input device or system clock. 2024-03-03 21:24:54 +00:00
aisdemodgui.ui AIS, DSC, End-of-Train, Packet, Radiosonde: All packet date/time to come from File Input device or system clock. 2024-03-03 21:24:54 +00:00
aisdemodplugin.cpp Updated plugin versions 2024-08-13 22:35:18 +02:00
aisdemodplugin.h Rewriting of copyright notices for plugins/channelrx. Part of #1893 2023-11-18 12:02:48 +01:00
aisdemodsettings.cpp Remove unused includes and use more direct includes 2024-04-11 23:31:34 +02:00
aisdemodsettings.h Fix typos in include files 2024-07-10 23:06:38 +02:00
aisdemodsink.cpp Fix compilation warnings and errors 2024-10-29 21:48:28 +01:00
aisdemodsink.h Fix typos in include files 2024-07-10 23:06:38 +02:00
aisdemodwebapiadapter.cpp Rewriting of copyright notices for plugins/channelrx. Part of #1893 2023-11-18 12:02:48 +01:00
aisdemodwebapiadapter.h Rewriting of copyright notices for plugins/channelrx. Part of #1893 2023-11-18 12:02:48 +01:00
CMakeLists.txt Update CMakeLists.txt to allow static libraries to be built, as well as shared. 2024-10-30 20:29:21 +01:00
readme.md AIS: Validate message length. Fixes #2125 2024-06-20 22:00:15 +01:00

AIS demodulator plugin

Introduction

This plugin can be used to demodulate AIS (Automatic Identification System) messages. AIS can be used to track ships and other marine vessels at sea, that are equipped with AIS transponders. It is also used by shore-side infrastructure known as base stations, aids-to-navigation such as buoys and some search and rescue aircraft.

AIS is broadcast globally on 25kHz channels at 161.975MHz and 162.025MHz, with other frequencies being used regionally or for special purposes. This demodulator is single channel, so if you wish to decode multiple channels simultaneously, you will need to add one AIS demodulator per frequency. As most AIS messages are on 161.975MHz and 162.025MHz, you can set the center frequency as 162MHz, with a sample rate of 100k+Sa/s, with one AIS demod with an input offset -25kHz and another at +25kHz.

The AIS demodulators can send received messages to the AIS feature, which displays a table combining the latest data for vessels amalgamated from multiple demodulators and sends their positions to the Map Feature for display in 2D or 3D.

AIS uses GMSK/FM modulation at a baud rate of 9,600, with a modulation index of 0.5. The demodulator works at a sample rate of 57,600Sa/s.

Received AIS messages can be NMEA encoded and forwarded via UDP to 3rd party applications.

The AIS specification is ITU-R M.1371-5: https://www.itu.int/dms_pubrec/itu-r/rec/m/R-REC-M.1371-5-201402-I!!PDF-E.pdf

Interface

The top and bottom bars of the channel window are described here

AIS Demodulator plugin GUI

1: Frequency shift from center frequency of reception

Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position. Wheels are moved with the mousewheel while pointing at the wheel or by selecting the wheel with the left mouse click and using the keyboard arrows. Pressing shift simultaneously moves digit by 5 and pressing control moves it by 2.

2: Channel power

Average total power in dB relative to a +/- 1.0 amplitude signal received in the pass band.

3: Level meter in dB

  • top bar (green): average value
  • bottom bar (blue green): instantaneous peak value
  • tip vertical bar (bright green): peak hold value

4: BW - RF Bandwidth

This specifies the bandwidth of a LPF that is applied to the input signal to limit the RF bandwidth. While AIS channels are 25kHz wide, more messages seem to be able to be received if this is around 16kHz.

5: Dev - Frequency deviation

Adjusts the expected frequency deviation in 0.1 kHz steps from 1 to 6 kHz. Typical values are 4.8 kHz, corresponding to a modulation index of 0.5 at 9,600 baud.

6: TH - Correlation Threshold

The correlation threshold between the received signal and the preamble (training sequence). A lower value should be able to demodulate weaker signals, but increases processor usage and may result in invalid messages if too low.

7: Find

Entering a regular expression in the Find field displays only messages where the source MMSI matches the given regular expression.

8: Clear Messages from table

Pressing this button clears all messages from the table.

9: UDP

When checked, received messages are forwarded to the specified UDP address (10) and port (11).

10: UDP address

IP address of the host to forward received messages to via UDP.

11: UDP port

UDP port number to forward received messages to.

12: UDP format

The format the messages are forwarded via UDP in. This can be either binary (which is useful for SDRangel's PERTester feature) or NMEA (which is useful for 3rd party applications such as OpenCPN).

13: Use Date and Time from File

When checked, if the source device is a File Input device, the date and time used for packet reception time is taken from the file playback time. Otherwise, the current system clock time is used.

14: Start/stop Logging Messages to .csv File

When checked, writes all received AIS messages to a .csv file.

15: .csv Log Filename

Click to specify the name of the .csv file which received AIS messages are logged to.

16: Read Data from .csv File

Click to specify a previously written .csv log file, which is read and used to update the table.

Slot Map

AIS uses TMDA (Time Division Multiple Access), whereby each one minute frame is divided into 2,250 26.6ms slots. The slot map shows which slots within a frame are used. The slot map is drawn as bitmap of 50x45 pixels.

AIS Slot Map

Slots are by category:

  • Red: Class A Mobile
  • Blue: Class B Mobile
  • Green: Base Station
  • Yellow: AtoN (Aid-to-Navigation)
  • Cyan: Search and Rescue
  • Magenta: Other (Man overboard / EPIRB / AMRD).

Due to SDR to SDRangel latency being unknown, the slot map is likely to have some offset, as slot timing is calculated based on the time messages are demodulated in SDRangel.

Received Messages Table

The received messages table displays information about each AIS message received. Only messages with valid CRCs are displayed.

AIS Received Messages Table

  • Date - The date the message was received.
  • Time - The time the message was received.
  • MMSI - The Maritime Mobile Service Identity number of the source of the message. Double clicking on this column will search for the MMSI on https://www.vesselfinder.com/
  • Country - The country with jurisdiction over station/vessel.
  • Type - The type of AIS message. E.g. Position report, Base station report or Ship static and voyage related data.
  • Id - Message type numeric identifier.
  • Data - A textual decode of the message displaying the most interesting fields.
  • NMEA - The message in NMEA format.
  • Hex - The message in hex format.
  • Slot - Time slot (0-2249).

Right clicking on the table header allows you to select which columns to show. The columns can be reordered by left clicking and dragging the column header. Right clicking on an item in the table allows you to copy the value to the clipboard.