summaryrefslogtreecommitdiff
path: root/driver_tsip.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2009-07-03 04:26:07 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2009-07-03 04:26:07 +0000
commit72e48ad0e836b172a5f26baf7bc521e7ed04f03f (patch)
treec4677e56727b47b92bc4a0885a6caabcc20a42dc /driver_tsip.c
parentd3c59d4935f2e2701b8264b682784b767509f573 (diff)
downloadgpsd-72e48ad0e836b172a5f26baf7bc521e7ed04f03f.tar.gz
schedule output of gps system message. not supported on all receivers (like
the Copernicus), but they should nicely reject the poll. Lassen iQ doesn't document this message, but mine does emit it...
Diffstat (limited to 'driver_tsip.c')
-rw-r--r--driver_tsip.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/driver_tsip.c b/driver_tsip.c
index 313c8e52..76d959c1 100644
--- a/driver_tsip.c
+++ b/driver_tsip.c
@@ -283,7 +283,7 @@ static gps_mask_t tsip_analyze(struct gps_device_t *session)
putbyte(buf,0,0x2c); /* Position: SP, MSL */
putbyte(buf,1,0x00); /* Velocity: none (via SP) */
putbyte(buf,2,0x00); /* Time: GPS */
- putbyte(buf,3,0x08); /* Aux: dBHz */
+ putbyte(buf,3,0x2c); /* Aux: dBHz, raw, signal, satpos */
(void)tsip_write(session, 0x35, buf, 4);
session->driver.tsip.superpkt = true;
}
@@ -735,6 +735,12 @@ static gps_mask_t tsip_analyze(struct gps_device_t *session)
session->driver.tsip.last_6d = now;
}
+ if ((now - session->driver.tsip.last_48) > 60) {
+ /* Request GPS System Message */
+ (void)tsip_write(session, 0x28, buf, 0);
+ session->driver.tsip.last_48 = now;
+ }
+
if ((now - session->driver.tsip.last_5c) >= 5) {
/* Request Current Satellite Tracking Status */
putbyte(buf,0,0x00); /* All satellites */