gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] [PATCH] add CTS handshake pin to PPS


From: Nathan Knotts
Subject: [gpsd-dev] [PATCH] add CTS handshake pin to PPS
Date: Wed, 25 Apr 2012 11:01:05 -0400

I'm currently using the Xtreme104 12 port serial board which only has the CTS 
handshaking lines exposed. Previous gpsd releases had support for the cts 
handshaking pin via compile time options, then later, command line options. As 
of release 3.5, these options have been removed and automatic detection occurs. 
However, the bitmask defining which control lines to listen to (PPS_LINE_TIOC) 
does not include the CTS line. I've added  TIOCM_CTS to that bitmask to include 
CTS capability. This has been tested to work with a ublox chip outputting NMEA. 

From a52dbe3cff987b24f7ff54e306a0864f183bc7c4 Mon Sep 17 00:00:00 2001
From: Nathan Knotts <address@hidden>
Date: Wed, 25 Apr 2012 10:37:22 -0400
Subject: [PATCH] added support for CTS handshaking line for PPS

---
 ntpshm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ntpshm.c b/ntpshm.c
index 896a4b7..36187ea 100644
--- a/ntpshm.c
+++ b/ntpshm.c
@@ -620,7 +620,7 @@ static /address@hidden@*/ void *gpsd_ppsmonitor(void *arg)
 
     /* root privileges are not required after this point */
 
-#define PPS_LINE_TIOC (TIOCM_CD|TIOCM_CAR|TIOCM_RI)
+#define PPS_LINE_TIOC (TIOCM_CD|TIOCM_CAR|TIOCM_RI|TIOCM_CTS)
 
     /* 
      * Wait for status change on any handshake line. The only assumption here 
-- 
1.7.8.3


Nathan Knotts
Vehicle Control Technologies, Inc.
703-620-0703 x129




reply via email to

[Prev in Thread] Current Thread [Next in Thread]