summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-02-26 02:23:41 -0500
committerEric S. Raymond <esr@thyrsus.com>2012-02-26 02:23:41 -0500
commitc1d85a772b4e396a75a1e14bf470e186b4a6b177 (patch)
treec6056ac45cdbda5379e659e39b8391ff288863a5
parent1837a410bd1b5aa74ac766a8a4c606e9e83065c9 (diff)
downloadgpsd-c1d85a772b4e396a75a1e14bf470e186b4a6b177.tar.gz
Polling frequency advise for AIVDM clients.
-rw-r--r--www/client-howto.txt14
1 files changed, 13 insertions, 1 deletions
diff --git a/www/client-howto.txt b/www/client-howto.txt
index ff12394f..f1ad061e 100644
--- a/www/client-howto.txt
+++ b/www/client-howto.txt
@@ -1,6 +1,6 @@
= GPSD Client HOWTO =
Eric S. Raymond <esr@thyrsus.com>
-v1.12, August 2011
+v1.13, February 2012
== Introduction ==
@@ -82,6 +82,18 @@ device-type-independent datagrams, but it can't impose timing and
sequencing regularities on them that the underlying device doesn't
already obey.
+A note to authors of AIVDM clients: Unlike GPS data, you have the
+problem that later sentences of (say) Type 1 don't obsolete the data
+in earlier ones. This is a problem, because the library is designed
+so that read calls pull any JSON reports waiting from the daemon and
+interpret them all.
+
+To avoid losing data, you want to poll the daemon more often than once
+per two seconds (that being the minimum transmission period for the
+most frequently shipped sentences, Type 1/2/3). That way the read
+buffer will never contain both a message and a later message of the
+same type that steps on it.
+
== What GPSD does, and what it cannot do ==
GPSD solves some of the problems with GPS/AIS sensors. First: