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