Directly to /dev/ttyMFD2
It does but I can’t seem to write directly to it from within my c program.
I have Position output 1 off and output 2 set to TCP Server localhost 9001 NMEA.
I log into Reach console via putty SSH port 22
I’m using the latest firmware v2.16.1.
In my c program called “LaserSupport.c” I can read from TCP port just fine.
I use the following code to try to write a NMEA $GPRMC out to the COM port (changed from NMEA $GNRMC).
char *portname = "/dev/ttyMFD2";
static void SetupComPort()
int ComOut = open (portname, O_RDWR | O_NOCTTY | O_NDELAY);
if (ComOut < 0)
Log ("error %d opening %s: %s\n", errno, portname, strerror (errno));
SetInterfaceAttr (ComOut, B9600, 0); // set speed to 9600 bps, 8n1 (no parity) etc...
static void WriteComPort(char * str)
int len = strlen(str);
int sent = write (ComOut, str, len);
if (sent != len)
Log ("WriteComPort error sending '%s' wanted to send %d but only %d went\n",str, len, sent);
When I run “LaserSupport” the output from the write statement above just goes to the console not to the COM port.
If I run “LaserSupport > /dev/ttyMFD2” the output then goes to the COM port.