forked from nunojpg/ntripserver
-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
216 lines (172 loc) · 8.83 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
----------------------------------------------------------------------
ntripserver
----------------------------------------------------------------------
(c) German Federal Agency for Cartography and Geodesy (BKG), 2002-2007
Files in ntripserver.zip
------------------------
- makefile: preconfigured makefile for convenient installation
- ntripserver.c: c source file
- README: Readme file for the ntripserver program
NTRIP
-----
The ntripserver is a HTTP client based on "Networked Transport of
RTCM via Internet Protocol" (NTRIP). This is an application-level
protocol streaming Global Navigation Satellite System (GNSS) data
over the Internet.
NTRIP Version 1.0 is a generic, stateless protocol based on the
Hypertext Transfer Protocol HTTP/1.1. The HTTP objects are
enhanced to GNSS data streams.
The primary motivation for NTRIP Version 2.0 is to develop a fully
HTTP-compatible Internet protocol standard that would work with proxy
servers and to add an optional data transport via UDP. Hence, one
NTRIP Version 2.0 transport approach is still based on HTTP1.1 on top
of TCP. The second NTRIP Version 2.0 transport approach is based on
both, the Internet Standard Protocol RTSP (Real Time Streaming Protocol)
for stream control on top of TCP and the Internet Standard Protocol RTP
(Real Time Transport Protocol) for data transport on top of
connectionless UDP.
NTRIP is designed for disseminating differential correction data
(e.g in the RTCM-104 format) or other kinds of GNSS streaming data to
stationary or mobile users over the Internet, allowing simultaneous
PC, Laptop, PDA, or receiver connections to a broadcasting host. NTRIP
supports wireless Internet access through Mobile IP Networks like GSM,
GPRS, EDGE, or UMTS.
NTRIP is implemented in three system software components:
NTRIP clients, NTRIP servers and NTRIP casters. The NTRIP caster is the
actual HTTP server program whereas NTRIP client and NTRIP server are
acting as HTTP clients.
ntripserver
-----------
The program ntripserver is designed to provide real-time data
from a single NTRIP source running under a POSIX operating system.
Basically the ntripserver grabs a GNSS byte stream (Input, Source)
from either
1. a Serial port, or
2. an IP server, or
3. a File, or
4. a SISNeT Data Server, or
5. a UDP server, or
6. an NTRIP Version 1.0 Caster
and forwards that incoming stream to either
1. an NTRIP Version 2.0 Caster via TCP/IP (Output, Destination), or
2. an NTRIP Version 2.0 Caster via RTSP/RTP (Output, Destination), or
3. an NTRIP Version 2.0 Caster via plain UDP (Output, Destination), or
4. an NTRIP Version 1.0 Caster.
Please note, the options to support NTRIP Version 2.0 are currently still
under development and should be used with care. Keep in mind that details
of the NTRIP Version 2.0 transport protocol are still under discussion
and may be changed.
Installation
------------
To install the program run
- gunzip ntripserver.tgz
- tar -xf ntripserver.tar
- make, or
- make debug (for debugging purposes).
To compile the source code on a Windows system where a mingw gcc
compiler is available, you may like to run the following command:
- gcc -Wall -W -O3 -DWINDOWSVERSION ntripserver.c -DNDEBUG
-o ntripserver -lwsock32, or
- mingw32-make, or
- mingw32-make debug
The exacutable will show up as ntripserver on Linux
or ntripserver.exe on a Windows system.
Usage
-----
The user may call the program with the following options:
-h|? print this help screen
-E <ProxyHost> Proxy server host name or address, required i.e. when
running the program in a proxy server protected LAN,
optional
-F <ProxyPort> Proxy server IP port, required i.e. when running
the program in a proxy server protected LAN, optional
-R <maxDelay> Reconnect mechanism with maximum delay between reconnect
attemts in seconds, default: no reconnect activated,
optional
-M <InputMode> Sets the input mode (1 = Serial Port, 2 = IP server,
3 = File, 4 = SISNeT Data Server, 5 = UDP server, 6 = NTRIP Caster),
mandatory
<InputMode> = 1 (Serial Port): (using 8-N-1 = data bits-parity-stop bits)
-i <Device> Serial input device, default: /dev/gps, mandatory if
<InputMode>=1
-b <BaudRate> Serial input baud rate, default: 19200 bps, mandatory
if <InputMode>=1
-f <InitFile> Name of initialization file to be send to input device,
optional
<InputMode> = 2|5 (IP port | UDP port):
-H <ServerHost> Input host name or address, default: 127.0.0.1,
mandatory if <InputMode> = 2|5
-P <ServerPort> Input port, default: 1025, mandatory if <InputMode>= 2|5
-f <ServerFile> Name of initialization file to be send to server,
optional
-x <ServerUser> User ID to access incoming stream, optional
-y <ServerPass> Password, to access incoming stream, optional
-B Bind to incoming UDP stream, optional for <InputMode> = 5
<InputMode> = 3 (File):
-s <File> File name to simulate stream by reading data from (log)
file, default is /dev/stdin, mandatory for <InputMode> = 3
<InputMode> = 4 (SISNeT Data Server):
-H <SisnetHost> SISNeT Data Server name or address,
default: 131.176.49.142, mandatory if <InputMode> = 4
-P <SisnetPort> SISNeT Data Server port, default: 7777, mandatory if
<InputMode> = 4
-u <SisnetUser> SISNeT Data Server user ID, mandatory if <InputMode> = 4
-l <SisnetPass> SISNeT Data Server password, mandatory if <InputMode> = 4
-V <SisnetVers> SISNeT Data Server Version number, options are 2.1, 3.0
or 3.1, default: 3.1, mandatory if <InputMode> = 4
<InputMode> = 6 (NTRIP Version 1.0 Caster):
-H <SourceHost> Source caster name or address, default: 127.0.0.1,
mandatory if <InputMode> = 6
-P <SourcePort> Source caster port, default: 2101, mandatory if
<InputMode> = 6
-D <SourceMount> Source caster mountpoint for stream input, mandatory if
<InputMode> = 6
-U <SourceUser> Source caster user Id for input stream access, mandatory
for protected streams if <InputMode> = 6
-W <SourcePass> Source caster password for input stream access, mandatory
for protected streams if <InputMode> = 6
-O <OutputMode> Sets output mode for communatation with destination caster
1 = http: NTRIP Version 2.0 Caster in TCP/IP mode
2 = rtsp: NTRIP Version 2.0 Caster in RTSP/RTP mode
3 = ntrip1: NTRIP Version 1.0 Caster
4 = udp: NTRIP Version 2.0 Caster in Plain UDP mode
optional
Defaults to NTRIP1.0, but will change to 2.0 in future versions
Note that the program automatically falls back from mode rtsp to mode http and
further to mode ntrip1 if necessary.
-a <DestHost> Destination caster name or address, default: 127.0.0.1,
mandatory
-p <DestPort> Destination caster port, default: 2101, mandatory
-m <DestMount> Destination caster mountpoint for stream upload,
mandatory
-n <DestUser> Destination caster user ID for stream upload to
mountpoint, only for NTRIP Version 2.0 destination
casters, mandatory
-c <DestPass> Destination caster password for stream upload to
mountpoint, mandatory
-N <STR-record> Sourcetable STR-record
optional for NTRIP Version 2.0 in RTSP/RTP and TCP/IP mode
Example1: Reading from serial port and forward to NTRIP Version 1.0 Caster:
./ntripserver -M 1 -i /dev/ttys0 -b 9600 -O 2 -a www.euref-ip.net -p 2101 -m Mount2
-n serverID -c serverPass
Example2: Reading from NTRIP Version 1.0 Caster and forward to NTRIP Version 2.0
./ntripserver -M 6 -H www.euref-ip.net -P 2101 -D Mount1 -U clientID -W clientPass
-O 1 -a www.goenet-ip.fi -p 2101 -m Mount2 -n serverID -c serverPass
NTRIP Caster password and mountpoint
------------------------------------
Feeding data streams into the NTRIP system using the ntripserver
program needs a password (and a user ID for NTRIP Version 2.0)
and one mountpoint per stream.
For the NTRIP Broadcasters EUREF-IP or IGS-IP this is currently
available from http://igs.bkg.bund.de/index_ntrip_prov.htm
Disclaimer
----------
Note that this example server implementation is currently an
experimental software. The BKG disclaims any liability nor
responsibility to any person or entity with respect to any loss or
damage caused, or alleged to be caused, directly or indirectly by the
use and application of the NTRIP technology.
Further information
-------------------
URL: http://igs.bkg.bund.de/index_ntrip.htm
E-mail: [email protected]