diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-07-22 08:21:23 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-07-22 08:21:23 -0400 |
commit | 5706bd2373f57680a61fe94d62ea70b1b42cfefb (patch) | |
tree | 83afc9380bacac1eb8e5af22b30987f5fee0b048 | |
parent | b55a205776e2e8a3462fac9b770d6815beda32c7 (diff) | |
download | gpsd-5706bd2373f57680a61fe94d62ea70b1b42cfefb.tar.gz |
In gpsfake, remove an unused feature and document what's there.
All regression tests pass.
-rw-r--r-- | gps/fake.py | 3 | ||||
-rw-r--r-- | gpsfake.xml | 24 |
2 files changed, 21 insertions, 6 deletions
diff --git a/gps/fake.py b/gps/fake.py index 6d1a2970..a9840501 100644 --- a/gps/fake.py +++ b/gps/fake.py @@ -144,9 +144,6 @@ class TestLoad: self.serial = (baud, databits, parity, stopbits) elif "UDP" in packet: self.sourcetype = "UDP" - elif "%" in packet: - # Pass through for later interpretation - self.sentences.append(packet) else: if type_latch is None: type_latch = ptype diff --git a/gpsfake.xml b/gpsfake.xml index b611bd61..3617d9bb 100644 --- a/gpsfake.xml +++ b/gpsfake.xml @@ -59,9 +59,27 @@ interleaved in the order the files are specified.</para> privileges, and can be run concurrently with a production <application>gpsd</application> instance without causing problems.</para> -<para>The logfiles may be of NMEA, SiRF packets, TSIP packets, or -Zodiac packets. Leading lines beginning with # will be treated as -comments and ignored.</para> +<para>The logfiles may contain packets in any supported format, +including in particular NMEA, SiRF, TSIP, or Zodiac. Leading lines +beginning with # will be treated as comments and ignored, except in +the following special cases:</para> + +<itemizedlist> +<listitem><para> +a comment of the form #Date: yyyy-mm-dd (ISO8601 date format) may be +used to set the initial date for the log. +</para></listitem> + +<listitem><para> +a comment of the form #Serial: [0-9]* [78][NOE][12] may be used to set +serial parameters for the log - baud rate, word length, stop bits. +</para></listitem> + +<listitem><para> +a comment of the form #Transport: UDP may be used to fake a UDP source +rather than the normal pty. +</para></listitem> +</itemizedlist> <para>The <application>gpsd</application> instance is run in foreground. The thread sending fake GPS data to the daemon |