Index: trunk/BNC/bncgetthread.cpp
===================================================================
--- trunk/BNC/bncgetthread.cpp	(revision 1317)
+++ trunk/BNC/bncgetthread.cpp	(revision 1318)
@@ -59,4 +59,5 @@
 #include "RTIGS/RTIGSDecoder.h"
 #include "GPSS/gpssDecoder.h"
+#include "serial/qextserialport.h"
 
 using namespace std;
@@ -190,4 +191,12 @@
   connect(((bncApp*)qApp), SIGNAL(newEphGPS(gpsephemeris)),
 	  this, SLOT(slotNewEphGPS(gpsephemeris)));
+
+  if (settings.value("serial_staID").toString() == _staID) {
+    _serialPort = new QextSerialPort();
+    _serialPort->open();
+  }
+  else {
+    _serialPort = 0;
+  }
 
   // Raw Output
@@ -551,4 +560,8 @@
           _rawOutFile->write(data, nBytes);
           _rawOutFile->flush();
+        }
+
+        if (_serialPort) {
+          _serialPort->write(data, nBytes);
         }
 
