[484] | 1 | ----------------------------------------------------------------------
|
---|
| 2 | NTRIP Client for POSIX systems
|
---|
| 3 | ----------------------------------------------------------------------
|
---|
| 4 |
|
---|
| 5 | Easy example NTRIP client for POSIX systems.
|
---|
| 6 | Copyright (C) 2003-2007 by Dirk Stoecker <soft@dstoecker.de>
|
---|
| 7 |
|
---|
| 8 | This program is free software; you can redistribute it and/or modify
|
---|
| 9 | it under the terms of the GNU General Public License as published by
|
---|
| 10 | the Free Software Foundation; either version 2 of the License, or
|
---|
| 11 | (at your option) any later version.
|
---|
| 12 |
|
---|
| 13 | This program is distributed in the hope that it will be useful,
|
---|
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 16 | GNU General Public License for more details.
|
---|
| 17 |
|
---|
| 18 | You should have received a copy of the GNU General Public License
|
---|
| 19 | along with this program; if not, write to the Free Software
|
---|
| 20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
| 21 | or read http://www.gnu.org/licenses/gpl.txt
|
---|
| 22 |
|
---|
| 23 | Files in ntripclient.tgz
|
---|
| 24 | -----------------------------
|
---|
| 25 | ntripclient.c: Ntrip POSIX client source code
|
---|
| 26 | README: Dokumentation
|
---|
| 27 | startntripclient: Shell script to start client
|
---|
| 28 | makefile: Easy makefile to build source
|
---|
| 29 |
|
---|
| 30 | Ntrip
|
---|
| 31 | -----
|
---|
| 32 | The ntripclient is an HTTP client based on 'Networked Transport
|
---|
| 33 | of RTCM via Internet Protocol' (Ntrip). This is an application-level
|
---|
| 34 | protocol streaming Global Navigation Satellite System (GNSS) data over
|
---|
[547] | 35 | the Internet. Ntrip Version 1.0 is a generic, stateless protocol based
|
---|
| 36 | on the Hypertext Transfer Protocol HTTP/1.1. The HTTP objects are
|
---|
| 37 | enhanced to GNSS data streams.
|
---|
[484] | 38 |
|
---|
[547] | 39 | The primary motivation for Ntrip Version 2.0 is to develop a fully
|
---|
| 40 | HTTP-compatible Internet protocol standard that would work with proxy
|
---|
| 41 | servers and to add an optional data transport via UDP. Hence, one
|
---|
| 42 | Ntrip Version 2.0 transport approach is still based on HTTP1.1 on top
|
---|
| 43 | of TCP. The second Ntrip Version 2.0 transport approach is based on
|
---|
| 44 | both, the Internet Standard Protocol RTSP (Real Time Streaming Protocol)
|
---|
| 45 | for stream control on top of TCP and the Internet Standard Protocol RTP
|
---|
| 46 | (Real Time Transport Protocol) for data transport on top of
|
---|
| 47 | connectionless UDP.
|
---|
| 48 |
|
---|
[484] | 49 | Ntrip is designed for disseminating differential correction data
|
---|
| 50 | (e.g in the RTCM-104 format) or other kinds of GNSS streaming data to
|
---|
| 51 | stationary or mobile users over the Internet, allowing simultaneous PC,
|
---|
| 52 | Laptop, PDA, or receiver connections to a broadcasting host. Ntrip
|
---|
| 53 | supports Wireless Internet access through Mobile IP Networks like GSM,
|
---|
| 54 | GPRS, EDGE, or UMTS.
|
---|
| 55 |
|
---|
| 56 | Ntrip is implemented in three system software components: NtripClients,
|
---|
| 57 | NtripServers and NtripCasters. The NtripCaster is the actual HTTP
|
---|
| 58 | server program whereas NtripClient and NtripServer are acting as HTTP
|
---|
| 59 | clients.
|
---|
| 60 |
|
---|
| 61 | ntripclient
|
---|
| 62 | -----------
|
---|
| 63 | This POSIX Ntrip client program is written under GNU General Public
|
---|
| 64 | License in C programming language. The program reads data from an Ntrip
|
---|
| 65 | Broadcaster and writes on standard output for further redirection
|
---|
| 66 | of data to a file or COM-port. PLEASE NOTE THAT THIS PROGRAM VERSION
|
---|
| 67 | DOES NOT HANDLE POTENTIALLY OCCURRING INTERRUPTIONS OF COMMUNICATION
|
---|
| 68 | OR NETWORK CONGESTION SITUATIONS. Its distribution may stimulate
|
---|
| 69 | those intending to write their own client program.
|
---|
| 70 |
|
---|
| 71 | Call the program with following arguments:
|
---|
| 72 |
|
---|
[494] | 73 | ntripclient -s server -u user ...
|
---|
[550] | 74 | -m --mountpoint the requested data set or criteria for sourcetable filtering
|
---|
| 75 | -s --server the server name or address
|
---|
| 76 | -p --password the login password
|
---|
| 77 | -r --port the server port number (default 2101)
|
---|
| 78 | -u --user the user name
|
---|
| 79 | -n --nmea NMEA string for sending to server
|
---|
| 80 | -b --bitrate output bitrate
|
---|
| 81 | -S --proxyhost proxy name or address
|
---|
| 82 | -R --proxyport proxy port, optional (default 2101)
|
---|
| 83 | -M --mode mode for data request
|
---|
[494] | 84 | Valid modes are:
|
---|
| 85 | 1, h, http NTRIP Version 2.0 Caster in TCP/IP mode
|
---|
| 86 | 2, r, rtsp NTRIP Version 2.0 Caster in RTSP/RTP mode
|
---|
| 87 | 3, n, ntrip1 NTRIP Version 1.0 Caster
|
---|
| 88 | 4, a, auto automatic detection (default)
|
---|
[484] | 89 |
|
---|
| 90 | or using an URL:
|
---|
[550] | 91 | ntripclient ntrip:mountpoint[/user[:password]][@[server][:port][@proxyhost[:proxyport]]][;nmea]
|
---|
[484] | 92 |
|
---|
| 93 | The argument '-h' will cause a HELP on the screen.
|
---|
| 94 | Without any argument ntripclient will provide the a table of
|
---|
[547] | 95 | available resources (sourcetable).
|
---|
[484] | 96 |
|
---|
[547] | 97 | Sourcetable filtering
|
---|
| 98 | ----------------------
|
---|
[550] | 99 | A missing argument '-m' leads to the output of the complete broadcaster
|
---|
[547] | 100 | sourcetable. This may comprise hundreds of lines in case of large
|
---|
| 101 | networks. To limit the output, the sourcetable contents can be filtered
|
---|
[550] | 102 | through entering the argument '-m' followed by a sequence of query strings,
|
---|
[547] | 103 | one for each sourcetable data field. Only those sourcetable lines are
|
---|
| 104 | returned from the broadcaster whoes data fields match the corresponding
|
---|
| 105 | query strings. A sequence of query strings has to be initiated by a '?'
|
---|
| 106 | and a semicolon is acting as query string delimiter in analogy to the
|
---|
| 107 | sourcetable data field delimiter.
|
---|
| 108 |
|
---|
| 109 | Note that for fully understanding the sourcetable filtering option
|
---|
| 110 | you have to make yourself familiar with the details of the sourcetable
|
---|
| 111 | contents. In general, search criterias can be applied on each sourcetable
|
---|
| 112 | data field.
|
---|
| 113 |
|
---|
| 114 | The following query string operators are available for integer and
|
---|
| 115 | floating-point numbers in the sourcetable lines:
|
---|
| 116 |
|
---|
| 117 | - Equation operators: <, >, >=, <=, =, != (not equal)
|
---|
| 118 | - Approximation operator: ~n (find value with minimal distance to n)
|
---|
| 119 |
|
---|
| 120 | The following query string operators are available for alphanumeric
|
---|
| 121 | strings in the sourcetable lines:
|
---|
| 122 |
|
---|
| 123 | - Wildcard operator: '*' means any number of characters
|
---|
| 124 | - Alternation operator: expression|expression
|
---|
| 125 | - Grouping operator: (expression)
|
---|
| 126 | - Any character matching for strings (case insensitivity)
|
---|
| 127 |
|
---|
| 128 | The following operators are available for both text as well as integer
|
---|
| 129 | and floating-point numbers in the sourcetable lines:
|
---|
| 130 |
|
---|
| 131 | - Logical operators: ! (NOT), & (AND), | (OR)
|
---|
| 132 | - Grouping operator: [!] (Expression)
|
---|
| 133 |
|
---|
| 134 | Examples:
|
---|
| 135 |
|
---|
| 136 | - Searching in a sourcetable for streams in Germany would require
|
---|
[550] | 137 | entering the '-m' argument followed by
|
---|
[547] | 138 | the query string:
|
---|
| 139 | ?STR;;;;;;DEU
|
---|
| 140 |
|
---|
| 141 | - Searching in a sourcetable for free streams fom the EUREF network and
|
---|
[550] | 142 | coming from the Frankfurt area would require entering the '-m' argument
|
---|
[547] | 143 | followed by the query string:
|
---|
| 144 | ?STR;;;;;;;EUREF;;=>50&<=51;=>8.1&<8.6;;;;;N
|
---|
| 145 |
|
---|
[484] | 146 | Compilation/Installation
|
---|
| 147 | ------------------------
|
---|
| 148 | Please extract the archive and copy its contents into an appropriate
|
---|
| 149 | directory. Compile the source code under POSIX systems by calling 'make'.
|
---|
| 150 |
|
---|
[580] | 151 | To compile the source code on a Windows system where a mingw gcc
|
---|
| 152 | compiler is available, you may like to run the following command:
|
---|
| 153 |
|
---|
| 154 | gcc -DWINDOWSVERSION -o ntripclient.exe ntripclient.c -lwsock32
|
---|
| 155 |
|
---|
[484] | 156 | Registration
|
---|
| 157 | ------------
|
---|
| 158 | Some of the data streams (mountpoints) from an NtripCaster may be
|
---|
| 159 | available for test, demonstration, and evaluation purposes and
|
---|
| 160 | accessible without authentication/authorization. For accessing other
|
---|
| 161 | data streams (mountpoints) the user needs a user-ID and a
|
---|
| 162 | user password. Authorization can be provided for a single stream,
|
---|
| 163 | for a group of streams (network) or for all available streams.
|
---|
| 164 | Currently, registration can be requested via the registration form
|
---|
[497] | 165 | on http://igs.bkg.bund.de/index_ntrip_reg.htm
|
---|
[484] | 166 |
|
---|
| 167 | Ntrip Broadaster Address and Port
|
---|
| 168 | ---------------------------------
|
---|
| 169 | The current Internet address of the Ntrip Broadcaster is
|
---|
[494] | 170 | www.euref-ip.net. The port number is 2101.
|
---|
[484] | 171 |
|
---|
| 172 | Disclaimer
|
---|
| 173 | ----------
|
---|
| 174 | Note that this ntripclient program is for experimental use
|
---|
| 175 | only. The BKG disclaims any liability nor responsibility to any
|
---|
| 176 | person or entity with respect to any loss or damage caused, or alleged
|
---|
| 177 | to be caused, directly or indirectly by the use and application of the
|
---|
| 178 | Ntrip technology.
|
---|
| 179 |
|
---|
| 180 | Further Information
|
---|
| 181 | -------------------
|
---|
[497] | 182 | http://igs.bkg.bund.de/index_ntrip.htm
|
---|
[484] | 183 | euref-ip@bkg.bund.de
|
---|