gpspipe.xml
来自「gpsd, a popular GPS daemon.」· XML 代码 · 共 112 行
XML
112 行
<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "docbook/docbookx.dtd"><refentry id='gpspipe.1'><refmeta><refentrytitle>gpspipe</refentrytitle><manvolnum>1</manvolnum><refmiscinfo class='date'>03 Aug 2005</refmiscinfo></refmeta><refnamediv id='name'><refname>gpspipe</refname><refpurpose>tool to connect to gpsd and retrieve sentences</refpurpose></refnamediv><refsynopsisdiv id='synopsis'><cmdsynopsis> <command>gpspipe</command> <arg choice='opt'>-h</arg> <arg choice='opt'>-n <replaceable>count</replaceable></arg> <arg choice='opt'>-r</arg> <arg choice='opt'>-R</arg> <arg choice='opt'>-s <replaceable>serial-device</replaceable></arg> <arg choice='opt'>-t</arg> <arg choice='opt'>-w</arg> <arg choice='opt'>-v</arg> <group> <replaceable>server</replaceable> <group><replaceable>:port</replaceable> <group><replaceable>:device</replaceable></group> </group> </group></cmdsynopsis></refsynopsisdiv><refsect1 id='description'><title>DESCRIPTION</title><para><application>gpspipe</application> is a tool to connectto <application>gpsd</application> and output the receivedsentences to stdout. This makes the program useful as a pipe from<application>gpsd</application> to another program or file. </para><para><application>gpspipe</application> does not require rootprivileges, and can be run concurrently with other tools connectingto the local <application>gpsd</application> without causing problems.</para><para>The output will consist of one or both of the raw NMEA or native<application>gpsd</application> sentences. Each line can be optionallytime stamped. There is also an option to exit gracefully after agiven count of packets.</para><para>Optionally a server, tcp port number and remote device can be given.If omitted, <application>gpspipe</application> connects to 127.0.0.1 onthe default port (2947) and uses the first device opened by <application>gpsd</application>.</para></refsect1><refsect1 id='options'><title>OPTIONS</title><para>-h makes <application>gpspipe</application> printa usage message and exit.</para><para>-r causes raw NMEA sentences to be output.</para><para>-R causes super-raw (gps binary) data to be output. This overridesNMEA and gpsd output modes.</para><para>-s option causes the collected data to be written to thespecified serial device with setttings 4800 8N1. Thus<application>gpspipe</application> can be used with -s and -r optionsto emulate a serial port hardwired to a GPS that<application>gpsd</application> is managing.</para><para>-w causes native <application>gpsd</application>sentences to beoutput.</para><para>-t adds a timestamp to each sentence output.</para><para>-n [count] causes [count] sentences to be output. <application>gpspipe</application> will then exit gracefully.</para><para>-j makes the program send J=1 to the daemon, requestingfix hold across cycles.</para><para>-v causes <application>gpspipe</application> to show a spinningactivity indicator on stderr. This is useful if stdout is redirectedinto a file or a pipe. By default the spinner is advanced with everymessages written; specifying -v more than once will double the numberof messages required to rotate the spinner.</para><para>-V prints the version, then exits.</para><para>At least one of -R -r or -w must be specified.</para></refsect1><refsect1 id='exampletitle'><title>EXAMPLE</title> <para>When <application>gpsd is running</application> <command>gpspipe-r -n 100</command> will send one hundred raw NMEA sentences tostandard output, then exit.</para></refsect1><refsect1 id='maintainer'><title>AUTHOR</title><para>Gary E. Miller <email>gem@rellim.com</email>. There is aproject page for <application>gpsd</application> <ulinkurl="http://gpsd.berlios.de/">here</ulink>.</para></refsect1></refentry>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?