Illustrated title card for the guide: Wire NMEA 0183 AIS to OpenCPN and MarineTraffic
setup

Wire NMEA 0183 AIS to OpenCPN and MarineTraffic

Wire an RS-422 AIS receiver or connect over Wi-Fi, verify targets in OpenCPN, and forward AIS data to your MarineTraffic receiving station.

Add your AIS feed to OpenCPN as a serial input through an RS-422-to-USB adapter or as a network input over Wi-Fi. Once vessel targets appear in OpenCPN, add a separate UDP output to send the AIS feed to the address and port assigned to your MarineTraffic station. MarineTraffic’s receiver connection guide · Digital Yacht Wi-Fi setup · MarineTraffic forwarding guide

Wire the RS-422 output to USB

Use an NMEA 0183 USB adapter with an RS-422 input, such as the isolated Actisense USG-2. Identify the leads and any required ground connections in the installation diagrams for your receiver and adapter. The table shows the one-way data pair from Garmin’s differential NMEA 0183 wiring diagram. Actisense USG-2 · Garmin wiring diagram

AIS receiver outputUSB adapter input
TX A (+) / OUT +RX A (+) / IN +
TX B (-) / OUT -RX B (-) / IN -
  1. Plug the adapter into your OpenCPN computer. In Options → Connections, choose Add Connection, then Serial.
  2. Set DataPort to the adapter’s serial port. Match Baudrate to the receiver’s AIS output, typically 38400 baud. Check your receiver’s documentation for its setting.
  3. Select Apply. Actisense USB connection · Digital Yacht serial setup · MarineTraffic AIS baud rate

Add an AIS feed over Wi-Fi

Connect the OpenCPN computer to the AIS device or gateway over Wi-Fi. Open Options → Connections → Add Connection → Network. Use the TCP or UDP mode configured on the device. Digital Yacht OpenCPN Wi-Fi instructions · Quark-elec Wi-Fi modes

Device sends AIS overOpenCPN ProtocolOpenCPN AddressOpenCPN DataPort
TCPTCPIP address of the AIS device or gatewayDevice’s TCP port
UDPUDP0.0.0.0 is one optionSame UDP port the device sends to

For UDP unicast, set the sender’s destination to the OpenCPN computer’s local IP address. Select Apply. OpenCPN’s UDP input guidance · MarineTraffic’s local UDP feed example

Quark-elec’s OpenCPN example uses 192.168.1.100 and TCP port 2000 in direct Wi-Fi mode. For Quark-elec station mode, use the IP address assigned in the device configuration. Quark-elec’s Wi-Fi example · MarineTraffic’s internet requirements

Verify AIS in OpenCPN

In OpenCPN 5.12 and later, open Tools → Data Monitor. In versions with the former NMEA debugger, use Options → Connections → Show NMEA Debug Window. Check the incoming lines from the serial or network connection you added for !AIVDM sentences. OpenCPN Data Monitor · Digital Yacht’s debug window guide · MarineTraffic’s raw AIS examples

If !AIVDM lines arrive but the chart has no targets, enable target display in the AIS menu and zoom out. If the monitor is empty, recheck the connection settings above. Digital Yacht connection and AIS display settings · MarineTraffic’s OpenCPN guide

Forward AIS to MarineTraffic

For a fixed shore station, sign in to MarineTraffic and go to My Account → My Station → Add Receiving Station. Complete the required fields, enter the station’s latitude and longitude in decimal degrees, and select Submit. Save the destination address and unique port MarineTraffic sends you. MarineTraffic station registration

  1. In Options → Connections, select Add Connection, then Network. Choose UDP, the protocol MarineTraffic recommends for this setup. MarineTraffic’s OpenCPN output settings
  2. Enter the assigned MarineTraffic destination in Address and the assigned port in DataPort. Turn off Receive Input on this Port and turn on Output on this port. MarineTraffic’s forwarding guide
  3. Set Output Filtering to transmit only VDM on this connection. This passes the !AIVDM sentences you checked earlier. Select Apply, then OK. OpenPlotter’s output filter controls · OpenCPN’s sentence matching rules · MarineTraffic’s raw AIS examples · MarineTraffic’s OpenCPN setup
  4. After a few minutes, open the station page from My Account → My Station and check its statistics for received data. If OpenCPN still shows AIS but the station statistics stay empty, check the MarineTraffic address and port, the output checkbox, and the computer’s internet connection. MarineTraffic’s verification steps · MarineTraffic’s station overview · MarineTraffic’s internet requirements

For an onboard transponder contribution from a commercial vessel, see the MarineTraffic Roaming Data Partnership guide. For NMEA 2000 hardware, see MarineTraffic’s receiver connection guide.

Evidence and limits. The wiring and Wi-Fi examples follow Garmin, Actisense, Digital Yacht and Quark-elec documentation. Forwarding follows MarineTraffic’s OpenCPN 5.8.4 guide, with the OpenCPN 5.12 Data Monitor path from the OpenCPN manual. Sources were checked on November 26, 2026. The steps were not run on hardware or with a live feed.

Sources

  1. Garmin GPSMAP 9000 installation instructions: NMEA 0183 wiring
  2. Actisense USG-2 USB to Serial Gateway
  3. OpenCPN developer documentation: NMEA 0183 sentence filtering
  4. Digital Yacht: Configure apps and software
  5. Quark-elec: OpenCPN setup over USB and Wi-Fi
  6. OpenCPN project: UDP input and output settings
  7. OpenCPN developer manual: Data Monitor
  8. OpenPlotter 2 documentation: Serial connection examples
  9. MarineTraffic: Raw AIS data for AIS partners
  10. MarineTraffic: Add an AIS station and share data
  11. MarineTraffic: OpenCPN
  12. MarineTraffic: Share from an AIS receiver or transponder
  13. MarineTraffic: Roaming Data Partnership
  14. MarineTraffic: AIS receiver dashboard local feed

Related