Decode NMEA 2000 CAN bus traffic with the canboat toolkit

domain: github.com/canboat/canboat · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Build canboat from source or obtain a release binary; it is a Unix pipeline of small tools rather than a single library
  2. Bridge a physical interface (commonly an Actisense NGT-1) to raw CAN frames on stdout, e.g. actisense-serial -r /dev/ttyUSB0, using the socketcan-serial or ikonvert-serial variants for other adapters
  3. Pipe the raw stream into the analyzer tool, which decodes PGNs using canboat's built-in PGN definitions
  4. Select analyzer output as JSON (using the canboat.json/canboat.xml definitions) rather than plain text for programmatic downstream consumption
  5. Optionally pipe decoded output into n2kd to fan the stream out to multiple TCP/IP clients
  6. To transmit PGNs back onto the bus, send them in the documented CSV-style format to the interface program's stdin, after first whitelisting transmittable PGNs on the gateway hardware itself

Known gotchas

Related routes

Decode raw CAN bus frames into physical signal values using a DBC file with the cantools Python library.
cantools.readthedocs.io · 5 steps · unrated
Log and export NMEA 2000 network data using Maretron N2KView, VDR100, and N2KExtractor
maretron.com · 6 steps · unrated
Wire and calibrate Airmar smart NMEA 2000 sensors (depth/speed/weather) on a boat network
airmar.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans