An NMEA 2000 network can carry position, heading, water depth, wind, engine speed, and battery information on the same pair of CAN wires. A compatible chartplotter or instrument display can already use much of that data. The question I want to explore here is what happens when we make the same information available to a Raspberry Pi. Can we see the depth on a tablet, log battery voltage over time, and feed position data to OpenCPN from a single connection to the boat’s network?
That is where OpenPlotter and Signal K come in. OpenPlotter provides the tools to set up the Raspberry Pi and connect the equipment. The Signal K server collects supported data from that equipment, gives it a common structure, and serves it to applications. OpenCPN is one of those applications. A browser-based instrument panel is another.
In my earlier article on why I’d choose a Raspberry Pi 4 (see reference list below), I discussed the choice of computer for a marine navigation system. That article is the hardware starting point for this one. Here I’ll follow the data from the NMEA 2000 backbone to the screen and explain what each part of the system does along the way.
What OpenPlotter does
OpenPlotter is an open-source suite of marine software and configuration tools. On a Raspberry Pi, it brings together the components needed to connect instruments, manage data connections, and run navigation and monitoring applications. Its CAN Bus and Serial apps help configure hardware interfaces. It also provides tools for installing and configuring the Signal K server and OpenCPN.
For an NMEA 2000 installation, the first job is to give the Pi access to the boat’s CAN bus. That requires a compatible hardware interface, such as an NMEA 2000 USB gateway or a supported CAN HAT. The setup depends on the interface. A USB gateway may appear as a serial device and require a gateway-specific connection type. A supported CAN HAT can appear as a Linux SocketCAN interface, typically named can0. In either case, the interface gives the Signal K server an input from which it can receive NMEA 2000 traffic.
OpenPlotter also brings other sources into the same installation. An older NMEA 0183 GPS receiver can provide position through a serial connection, while a depth sounder and a battery monitor can send their readings over NMEA 2000. Once the server has interpreted the inputs, a compatible dashboard can show position, depth, and battery voltage on one screen. The dashboard deals with the readings it needs, while OpenPlotter and Signal K handle the differences between the connected devices.
What Signal K does with NMEA 2000 messages
NMEA 2000 uses Parameter Group Numbers, or PGNs, to identify the type of information in a message. For example, PGN 129026 carries course and speed over ground, PGN 128267 carries water depth, and PGN 127508 carries battery status. The PGN tells the receiving software how to interpret the fields in the message.
Signal K organizes the resulting values by meaning. It uses named paths such as navigation.speedOverGround and environment.depth.belowTransducer. The Signal K server decodes supported NMEA 2000 messages and maps their fields to the corresponding paths. A single PGN can update more than one path. PGN 129026, for example, can supply both course and speed over ground, which an application can then use independently.
Signal K defines the units for each path. Speed over ground is represented in meters per second, so a dashboard configured for knots performs the display conversion. Updates also carry source and timestamp information. Those details become useful when two devices report the same measurement or when a value is still visible on a screen after its source has stopped updating.
Here is what that looks like with a depth sounder. The sounder sends PGN 128267 over the NMEA 2000 backbone. The CAN interface passes the traffic to the Pi, and the Signal K server exposes the depth reading under environment.depth.belowTransducer. A dashboard can subscribe to that path and display the result in meters or feet. The words below transducer matter. If the display is meant to show depth below the keel, the installation’s offset and the value used by the display need to agree.
The same principle applies to position, heading, wind, and engine information. What appears in Signal K depends on the PGNs and fields that the instruments actually transmit and the decoder can map. A device may be present on the bus while a particular value is still missing. With manufacturer-specific messages, it is worth verifying that the information you need has a supported mapping before designing a dashboard around it.
Getting the data to OpenCPN and a tablet
The Signal K server makes onboard data available as JSON over the boat’s local network. Applications can use a REST API to request current values or a WebSocket connection to receive updates as they arrive. This makes it possible for several applications to use one connection to the NMEA 2000 network.
If OpenCPN and the Signal K server run on the same Pi, OpenCPN can connect to the server through localhost, typically using port 3000 in an OpenPlotter setup. OpenCPN can then use supported navigation data, such as position, course, speed, and AIS targets, when those inputs are available. A tablet on the boat’s Wi-Fi can open a compatible browser dashboard and display a different selection of readings, such as depth, wind, and battery voltage. The Pi can serve that data locally while the boat is away from an internet connection.
The server’s plugin system extends the setup beyond live displays. For example, a logging plugin can record supported values over time so you can see how battery voltage changed overnight or compare engine readings over the course of a trip. The live value and the historical record serve different purposes. The live value tells you what the boat is reporting now. The log lets you go back and see when it changed.
A practical Raspberry Pi 4 setup
For a boat with an existing NMEA 2000 backbone, I would start with the Raspberry Pi 4 described in my companion article, a compatible NMEA 2000 interface, and OpenPlotter. The first goal would be to get one known measurement from the backbone to the Signal K Data Browser and then to an application.
Connect the interface as a device on the existing backbone, following the manufacturer’s wiring and power instructions. The backbone should already have termination at both ends. If the interface has switchable termination and is connected on a drop, leave that termination disabled.
Configure the input for the specific interface. Use the appropriate gateway connection for a supported USB device, or select the Linux CAN interface for a SocketCAN setup.
Open the Signal K Data Browser and look for a value you can compare with an existing instrument. Depth, heading, or battery voltage can work well. Check the source and timestamp and confirm the value continues to update.
Connect OpenCPN to the Signal K server and verify the navigation readings it uses. Then open a dashboard on a tablet and confirm it can receive data over the boat’s local network.
The Data Browser gives you a clear point at which to divide the troubleshooting. If depth is updating there but missing from the tablet, you can concentrate on the tablet’s connection and dashboard configuration. If the depth path never appears, start with the instrument, the CAN interface, and the server’s input configuration. When several instruments supply the same kind of reading, compare the sources before deciding which one the application should use.
Sending data back onto NMEA 2000
Signal K can also go in the other direction. Suppose an older GPS receiver sends position over NMEA 0183 and you want a compatible NMEA 2000 display to use it. The server can bring the GPS data into Signal K, and the Signal K to NMEA 2000 plugin can convert selected values to supported PGNs. The interface must support transmission, and some gateways require those PGNs to be enabled in the device as well.
I would start by leaving the conversion plugin disabled and verifying the incoming data. When there is a reason to transmit, I would enable only the conversions the receiving equipment needs. The plugin normally suppresses values that came from NMEA 2000 to avoid echoing them back onto the bus. Even with that safeguard, a newly converted GPS feed can give the boat a second source of position if it already has an NMEA 2000 GPS. Check which source the display selects before relying on it.
The reason I find this setup appealing is that a single interface can give several applications access to the data the boat already produces. OpenPlotter makes the connections manageable, Signal K makes the readings available in a common format, and each application can use the part it needs. Start with one measurement you can verify at the helm. Once you can follow it from the backbone to the Data Browser to the screen, the rest of the system is much easier to understand.
References
OpenPlotter documentation — How does it work? OpenPlotter 4.x.x
OpenPlotter documentation — CAN Bus and Connecting a USB CAN converter OpenPlotter 4.x.x
Signal K Specification and Signal K Server configuration and Data Browser signalk.org
OpenPlotter documentation — Connecting OpenCPN to Signal K OpenPlotter 4.x.x
OpenPlotter documentation — NMEA 2000 output and Signal K to NMEA 2000 plugin OpenPlotter 4.x.x



