# NMEA data connections (TCP / USB)

The Autopilot can be accessed via the integrated WiFi or an optional [LAN adapter](https://pcnautic.com/en/product/realtek-rtl8153-gigabit-usb-3-0-naar-rj45-ethernet-adapter).\
For more information on setting up network access, please refer to the [WiFi / Network Config](/autopilot/operate/web-interface-apps/wifi-network-config.md) page.

This chapter explains how to set up NMEA data connections via **TCP** or **USB**. These connections are used for communication between the autopilot, navigation software, and other navigation equipment.

### TCP NMEA data connection

A TCP connection allows NMEA data (such as GPS, wind, or AIS) to be shared over the network — either wirelessly or [wired](https://pcnautic.com/en/product/realtek-rtl8153-gigabit-usb-3-to-rj0-ethernet-adapter) — with navigation software such as OpenCPN. This makes it easy to view data from the autopilot or other equipment on a tablet, laptop, or smartphone.

You can establish a TCP NMEA data connection for NMEA data exchange with the Autopilot. The NMEA data server of the Autopilot can be accessed via the following (default) network address:

* IP-adress: `192.168.14.1`
* Port: `20220`&#x20;
* Protocol: `TCP`&#x20;

As soon as a device connects to this address and port, the Autopilot will automatically:

1. Transmit NMEA data to the device
2. Receive NMEA data from the device (if applicable)

For specific instructions, see:

* TCP connection with [Yacht Devices YDWG](/autopilot/wifi-verbindingen/yachtdevices-ydwg.md)
* TCP connection with [OpenCPN](/autopilot/wifi-verbindingen/opencpn.md)
* TCP connection with [Autopilot as NMEA data client](https://app.gitbook.com/o/-LpCY209Y6fVLXpB9vdk/s/-Mf7j4nUAIpHY72_rYOl-2361048795/wifi-verbindingen/autopilot-als-nmea-client)

### USB Connection

With a USB connection, you can exchange NMEA data via connected devices, such as:

* [USB GPS receiver](https://pcnautic.com/en/product/usb-gps-gnss-mouse-u-blox-8)
* NMEA 0183 device via a [USB-to-serial converter](https://pcnautic.com/en/product/isolated-nmea0183-input-to-usb)
* NMEA 2000 or SeatalkNG device via a [USB converter](https://pcnautic.com/en/product/bc-mini-n2k-nmea2000-gateway)

#### Automatic Data Recognition

Incoming NMEA data via TCP or USB is automatically recognized. As a result, no manual configuration is needed. As soon as valid data is received (from a GPS, wind sensor, or navigation source), additional modes will be automatically activated, such as:

* **G**PS
* (**T**rue) **W**ind
* **N**avigation

The ControlHead will display the first letter of each available mode. Additionally, the received data will be shown directly on the main screen of the web interface, as illustrated in the example below:

<figure><img src="/files/EUikdeIahxtfhSnhCxRp" alt="" width="563"><figcaption></figcaption></figure>

#### Support for Incoming NMEA0183 Sentences (TCP / USB)

<table><thead><tr><th width="85">Sentence</th><th>Description</th><th>Use by the Autopilot</th></tr></thead><tbody><tr><td><strong>RMC</strong></td><td>Recommended Minimum Navigation Information</td><td>Used to determine position, speed over ground (SOG), and course over ground (COG). Important for GPS mode and Navigation Mode.</td></tr><tr><td><strong>MWV</strong></td><td>Wind Speed and Angle (Relative or True)</td><td>Used to receive apparent or true wind speed and angle. Essential for Wind and True Wind modes.</td></tr><tr><td><strong>RSA</strong></td><td>Rudder Sensor Angle</td><td>Provides rudder angle information. Can be used for precise course control and rudder angle monitoring.</td></tr><tr><td><strong>APB</strong></td><td>Autopilot Sentence "B" (Waypoint Steering)</td><td>Contains navigation data such as cross track error and desired course to a waypoint. Used in Navigation Mode to automatically follow routes or waypoints.</td></tr><tr><td><strong>DPT</strong></td><td>Depth</td><td>Measures water depth beneath the boat. Not used directly for steering control, but useful for monitoring and safety.</td></tr><tr><td><strong>VHW</strong></td><td>Water Speed and Heading</td><td>Measures the boat’s speed through the water and actual heading. Can be used to calculate true wind speed more accurately.</td></tr><tr><td><strong>HDG</strong></td><td>Heading (Magnetic)</td><td>Provides magnetic heading, including variation and deviation. Important for maintaining an accurate heading in Compass mode.</td></tr></tbody></table>

#### Support for Outgoing NMEA0183 Sentences

The Autopilot can transmit steering information and sensor data in NMEA0183 format via both TCP and a USB (serial) output, depending on configuration:

<table><thead><tr><th width="120">Medium</th><th width="276">Transmits</th><th>Details</th></tr></thead><tbody><tr><td><strong>TCP</strong></td><td>APXDR, APHDM, APMWV, APRSA</td><td>Sent to connected TCP clients. Only active when at least one TCP client is connected.</td></tr><tr><td><strong>USB (Serial)</strong></td><td>APXDR, APHDM, APRSA</td><td>Sent via the USB (serial) output. Only active when a serial port is <a href="/pages/96L53cObDTXB7gAF2l8E#configure-serial-devices">properly configured</a> and connected. (NMEA OUT)</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pcnautic.gitbook.io/autopilot/wifi-verbindingen.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
