nmea0183 serial

Kees Verruijt edited this page Mar 1, 2017 · 1 revision

nmea0183-serial is an extremely simple program that opens a serial port using POSIX system calls and then sends out the data received on stdout. As such it is very much written in the UNIX filter style of programming.

It is commonly used together with iptee and other receivers of this data to send the received data to consumers.

The principal use is with an AIS receiver. The author uses the following to send data to Marine Traffic and AISHub:

MARINETRAFFIC="-u 195.251.168.18 6047"
AISHUB="-u 87.121.76.11 2112"
nmea0183-serial -r -d /dev/ttyUSB0 | iptee $MARINETRAFFIC $AISHUB

As said this program is very simple. Simplistic even -- it can't even switch baud rate to a different value than 38,400.

Usage: nmea0183-serial [-r] [-d] device

-r : read-only, do not pass stdin to stdout
-d : debug mode

Example: nmea0183-serial /dev/ttyUSB0

You may wonder about the -r option; it is used if you want to combine multiple serial ports and/or data from other sources. If you have, for instance, two serial ports you could do this:

nmea0183-serial -r /dev/serial-0 | nmea0183-serial /dev/serial-1 > combined-serial-data.log
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.