source: ntrip/trunk/BNC/bnchelp.html@ 480

Last change on this file since 480 was 476, checked in by weber, 17 years ago

* empty log message *

File size: 43.6 KB
Line 
1<h3>BKG Ntrip Client (BNC)</h3>
2
3<p>
4The BKG Ntrip Client (BNC) is a program for simultaneously retrieving, decoding and converting real-time GNSS data streams from NTRIP broadcasters like <u>http://www.euref-ip.net/home</u> or <u>http://www.igs-ip.net/home</u>.
5</p>
6<p>
7BNC has been developed for the Federal Agency for Cartography and Geodesy (BKG) within the framework of the EUREF-IP Pilot Project (EUREF-IP, IP for Internet Protocol) and the Real-Time IGS Working Group (RTIGS WG).
8</p>
9<p>
10BNC has been written under GNU General Public License (GPL). Binaries for BNC are available for Windows, 32-bit Linux, 64-bit Linux (compiled using option -m32), and Solaris systems. It is likely that BNC can be compiled on other systems where a GNU compiler and Qt Version 4.2.3 are installed.
11<table>
12<tr></tr>
13<tr><td><b>History</b></td></tr>
14<tr><td>Dec 2006 &nbsp;</td><td>Version 1.0b &nbsp;</td><td>Binaries of first beta version published.</td></tr>
15<tr><td>Jan 2007 &nbsp;</td><td>Version 1.1b &nbsp;</td><td>[Add] Observables C2, S1, and S2<br>[Add] Virtual reference station access<br>[Bug] RTCM2 decoder time tag fixed<br>[Mod] Small letters for public RINEX skeleton files<br>[Add] Online help through Shift+F1</td></tr>
16<tr><td>Apr 2007 &nbsp;</td><td>Version 1.2b &nbsp;</td><td>[Bug] Output only through IP port<br>[Bug] Method 'reconnecting' now thread-save<br> [Add] ZERO decoder added<br> [Mod] Download public RINEX skeletons once per day<br> [Mod] Upgrade to Qt Version 4.2.3<br> [Mod] Replace 'system' call for RINEX script by 'QProcess'<br> [Add] HTTP Host directive for skeleton file download<br> [Add] Percent encoding for user IDs and passwords<br> [Bug] Exit execution of calling thread for RTCM3 streams<br> [Bug] Signal-slot mechanism for threads</td></tr>
17<tr><td>May 2007 &nbsp;</td><td>Version 1.3 &nbsp;</td><td>Source code published.
18<tr><td>Jul 2007 &nbsp;</td><td>Version 1.4 &nbsp;</td><td>[Bug] Skip messages from proxy server<br> [Bug] Call RINEX script through 'nohup'</td></tr>
19</table>
20</p>
21<h3>Contents</h3>
22<p>
23<h4>
24<a href=#purpose>A - Purpose</a><br>
25<a href=#options>B - Options</a><br>
26<a href=#limits>C - Limitations</a><br>
27<a href=#authors>D - Authors</a><br>
28<a href=#links>E - Links</a><br>
29<a href=#annex>F - Annex</a><br>
30</h4>
31</p>
32
33<p><a name="purpose"><h3>A - Purpose</h3></p>
34
35<p> The purpose of BNC is to
36
37<ul>
38<li>retrieve real-time GNSS data streams available through NTRIP transport protocol,</li>
39<li>generate high-rate RINEX files to support near real-time GNSS post-processing applications, and/or</li>
40<li>output synchronize observations epoch by epoch through an IP port to support real-time GNSS engines.</li>
41</ul>
42</p>
43<p>
44BNC decodes and converts GNSS data streams carrying code and phase data coming in
45</p>
46<p>
47<ul>
48<li>RTCM Version 2.x format containing message types 18 and 19 (GPS and GLONASS), </li>
49<li>RTCM Version 3 format containing message types 1002 or 1004 (GPS), and 1010 or 1012 (GLONASS),</li>
50<li>RTIGS format (only GPS).</li>
51</ul>
52Furthermore, BNC allows to by-pass its decoding and conversion algorithms, leave whatever is received untouched and save it in files.
53</p>
54<p><b>Resources</b><br>
55BNC needs access to the Internet with a minimum of about 2 to 6 kbits/sec per stream depending on the stream format. You need to make sure that you have always the necessary bandwidth available. BNC has the capacity to retrieve hundreds of GNSS data streams simultaneously. Please be aware that it is a powerful tool that may generate a heavy workload on the NTRIP broadcaster side depending on the number of streams it requests. We suggest to limited the number of streams where possible to avoid unnecessary workload.
56</p>
57<p>
58Note that running BNC requires that the clock of the hosting computer is synchronized.
59</p>
60
61<p><a name="options"><h3>B - Options</h3></p>
62<p>
63B - 1. <a href=#file>File</a><br>
64B - 2. <a href=#help>Help</a><br>
65B - 3. <a href=#proxy>Proxy</a><br>
66B - 4. <a href=#output>Synchronized Output</a><br>
67&nbsp; &nbsp; &nbsp; B - 4.1. <a href=#wait>Wait for Full Epoch</a><br>
68&nbsp; &nbsp; &nbsp; B - 4.2. <a href=#ascii>ASCII Output File</a><br>
69&nbsp; &nbsp; &nbsp; B - 4.3. <a href=#binary>Port for Binary Output</a><br>
70B - 5. <a href=#rinex>RINEX</a><br>
71&nbsp; &nbsp; &nbsp; B - 5.1. <a href=#rnxname>RINEX File Names</a><br>
72&nbsp; &nbsp; &nbsp; B - 5.2. <a href=#rnxpath>RINEX Directory</a><br>
73&nbsp; &nbsp; &nbsp; B - 5.3. <a href=#rnxscript>RINEX Script</a><br>
74&nbsp; &nbsp; &nbsp; B - 5.4. <a href=#rnxinterval>RINEX File Interval</a><br>
75&nbsp; &nbsp; &nbsp; B - 5.5. <a href=#rnxsample>RINEX Sampling</a><br>
76&nbsp; &nbsp; &nbsp; B - 5.6. <a href=#rnxskeleton>RINEX Skeleton Extension</a><br>
77&nbsp; &nbsp; &nbsp; B - 5.7. <a href=#rnxappend>Append Files</a><br>
78B - 6. <a href=#mountpoints>Mountpoints</a><br>
79&nbsp; &nbsp; &nbsp; B - 6.1. <a href=#AddMounts>Add Mountpoints</a><br>
80&nbsp; &nbsp; &nbsp; B - 6.2. <a href=#HostPort>Broadcaster Host and Port</a><br>
81&nbsp; &nbsp; &nbsp; B - 6.3. <a href=#account>Broadcaster User and Password</a><br>
82&nbsp; &nbsp; &nbsp; B - 6.4. <a href=#GetTable>Get Table</a><br>
83&nbsp; &nbsp; &nbsp; B - 6.5. <a href=#delete>Delete Mountpoints</a><br>
84&nbsp; &nbsp; &nbsp; B - 6.6. <a href=#edit>Edit Mountpoints</a><br>
85B - 7. <a href=#log>Log</a><br>
86B - 8. <a href=#start>Start</a><br>
87B - 9. <a href=#stop>Stop</a><br>
88B - 10. <a href=#nw>No Window</a>
89</p>
90
91<p><a name="file"><h4>B - 1. File</h4></p>
92
93<p>
94The 'File' button lets you
95<ul>
96<li>
97select an appropriate font.<br>
98Use a small font size if the BNC main window exceeds the size of your screen.
99</li>
100<li> save selected options.<br>
101Note that on Windows systems options are saved in register BKG_NTRIP_Client. On Unix/Linux systems options are saved in file ${HOME}/.config/BKG/BKG_NTRIP_Client.conf.
102</li>
103<li>
104quit the execution of BNC.
105</li>
106</ul>
107</p>
108
109<p><a name="help"><h4>B - 2. Help</h4></p>
110
111<p>
112The 'Help' button provides access to
113<ul>
114<li>
115help contents.<br>
116You may keep the 'Help Contents' window open while setting BNC options.
117</li>
118<li>
119general information about BNC.<br>
120Close the 'About BNC' window to continue with BNC.
121</li>
122</ul>
123</p>
124<p>
125BNC comes with a help system providing online information about its functionality and usage. Simple descriptions are available for any widget. Focus to the relevant widget and press Shift+F1 to request help information. A help text appears immediately; it goes away as soon as the user does something else. Some dialogs may provide a "?" button that users can click; they then click the relevant widget to pop up the help text.
126</p>
127
128<p><a name="proxy"><h4>B - 3. Proxy - mandatory if BNC is operated in a protected LAN</h4></p>
129
130<p>
131You may like to run BNC in a Local Area Network (LAN). LANs are often protected by a proxy server. Enter your proxy server IP and port number in case one is operated in front of BNC. If you don't know the IP and port of your proxy server, check out the proxy server settings of your Internet browser or ask your network administrator.</p>
132<p>
133Note that IP streaming may generally be denied in a LAN. In such a case you need to ask your network administrator for an appropriate modification of his security policy or for the installation of a TCP relay to involved NTRIP broadcasters. If that doesn't work out, run BNC outside your LAN on a host that is connected to the Internet through an Internet Service Provider (ISP).
134</p>
135
136<p><a name="output"><h4>B - 4. Synchronized Output</h4></p>
137<p>
138BNC lets you output synchronized observations from all stations and satellites epoch by epoch. This output is made available in a plain ASCII format and/or a binary format. The output comprises the following observations if available:</p>
139<p>
140StatID, SVPRN, GPSWeek, GPSWeeks, C1, C2, P1, P2, L1, L2, S1, S2, SNR1, SNR2
141</p>
142<p>
143Note that SNR stands for the signal-to-noise ratio S mapped to integer numbers 1 to 9. Note further that in case an observation is unavailable, its value is set to zero '0.000'.
144</p>
145<p><a name="wait"><h4>B - 4.1 Wait for Full Epoch - optional</h4></p>
146<p>
147When feeding a real-time GNSS engine waiting for input epoch by epoch, BNC ignores whatever is received later than 'Wait for full epoch' seconds. A value of 3 to 5 seconds could be an appropriate choice for that, depending on the latency of the incoming streams and the delay you can accept for your real-time GNSS product. Default value for 'Wait for full epoch' is 1 second.
148</p>
149<p>
150Note that 'Wait for full epoch' does not influence the RINEX file contents. Observations received later than 'Wait for full epoch' seconds will still be included in the RINEX files.
151</p>
152
153<p><a name="ascii"><h4>B - 4.2 ASCII Output File - optional</h4></p>
154<p>
155Enter the full path for a file to save synchronized observations in a plain ASCII format. Default value is an empty option field, meaning that no ASCII output file is created.
156</p>
157<p>
158Note that the size of this file rapidly inreases, mainly depending on the number of incoming streams. Thus, this output option is primarily meant for test and evaluation purposes.
159</p>
160
161<p><a name="binary"><h4>B - 4.3 Port for Binary Output - optional</h4></p>
162<p>
163BNC makes synchronized observations available in a binary format on your local host (IP 127.0.0.1) through an IP port. Enter an IP port number to activate this function. Default is an empty option field, meaning that no binary output is generated.</p>
164<p>The binary output is provided as a continuous stream in the order of</p>
165<pre>
166begEpoch
167begObs
168Observation
169begObs
170Observation
171begObs
172Observation
173...
174endEpoch
175begEpoch
176...
177</pre>
178<p>where the corresponding structures are defined as</p>
179<pre>
180const char begEpoch = 'A';
181const char begObs = 'B';
182const char endEpoch = 'C';
183struct Observation {
184 int flags;
185 char StatID[20+1];// Station ID
186 char satSys; // Satellite System ('G' or 'R')
187 int satNum; // Satellite Number (PRN for GPS NAVSTAR)
188 int slot; // Slot Number (for Glonass)
189 int GPSWeek; // Week of GPS-Time
190 double GPSWeeks; // Second of Week (GPS-Time)
191 double C1; // CA-code pseudorange (meters)
192 double C2; // CA-code pseudorange (meters)
193 double P1; // P1-code pseudorange (meters)
194 double P2; // P2-code pseudorange (meters)
195 double L1; // L1 carrier phase (cycles)
196 double L2; // L2 carrier phase (cycles)
197 double S1; // L1 signal-to noise ratio
198 double S2; // L2 signal-to noise ratio
199 int SNR1; // L1 signal-to noise ratio (mapped to integer)
200 int SNR2; // L2 signal-to noise ratio (mapped to integer)
201} ;
202</pre>
203<p>Note that the source code for BNC comes with an example program named 'test_bnc_qt.cpp' that lets you read BNC's binary output from the IP port.</p>
204
205<p><a name="rinex"><h4>B - 5. RINEX</h4></p>
206<p>
207Observations will be converted to RINEX Version 2.11 if they come in either RTCM Version 2.x, RTCM Version 3, or RTIGS format. BNC's RINEX observation files generally contain C1, C2, P1, P2, L1, L2, S1, and S2 observations. In case an observation is unavailable, its value is set to zero '0.000'. Note that even if a RINEX file does not contain GLONASS data, the 'RINEX TYPE' field in the RINEX file header may be set to 'M (MIXED)'.
208</p>
209<p><a name="rnxname"><h4>B - 5.1 RINEX File Names</h4></p>
210<p>
211RINEX file names are derived by BNC from the first 4 characters of the corresponding mountpoint (4Char Station ID) while omitting the residual part of the mountpoint string. Thus, retrieving data from mountpoints FRANKFURT and WETTZELL leads to hourly RINEX observation files named</p>
212<p>
213FRAN{ddd}{h}.{yy}O<br>
214WETT{ddd}{h}.{yy}O
215</p>
216<p>
217where 'ddd' is the day of year, 'h' is a letter which corresponds to an hour long UTC time block and 'yy' is the year.
218</p>
219<p>
220For those streams that show mountpoints with an identical 4Char Station ID (same first 4 characters), the mountpoint strings are split into two sub-strings and both become part of the RINEX file name. Example: When simultaneously retrieving data from mountpoints FRANKFURT and FRANCE, their hourly RINEX observation file names are defined as</p>
221<p>
222FRAN{ddd}{h}_KFURT.{yy}O<br>
223FRAN{ddd}{h}_CE.{yy}O.
224</p>
225<p>
226If several streams show exactly the same mountpoint (example: BRUS0 from <u>www.euref-ip.net</u> and BRUS0 from <u>www.igs-ip.net</u>), BNC adds an integer number to the file name leading i.e. to hourly RINEX observation files like</p>
227<p>
228BRUS{ddd}{h}_0.{yy}O<br>
229BRUS{ddd}{h}_1.{yy}O.
230</p>
231<p>
232Note that RINEX file names for all intervals less than 1 hour follow the file name convention for 15 minutes RINEX observation files i.e.</p>
233<p>
234FRAN{ddd}{h}{mm}.{yy}O
235</p>
236<p>
237where 'mm' is the starting minute within the hour.
238</p>
239
240<p><a name="rnxpath"><h4>B - 5.2 RINEX Directory - optional</h4></p>
241<p>
242Enter a path for saving the RINEX files in a directory. If this directory does not exist, BNC will not create RINEX files. Default value for 'RINEX directory' is an empty option field, meaning that streams are not converted to RINEX.
243</p>
244
245<p><a name="rnxscript"><h4>B - 5.3 RINEX Script - optional</h4></p>
246<p>
247Whenever a RINEX file is saved, you may like to compress, copy or upload it immediately via FTP. For that you enter the full path of a script or batch file which is then called to carry out these operations. The RINEX file path will be passed to the script as a command line parameter (%1 on Windows systems, $1 on Unix/Linux systems).
248</p>
249<p>
250The triggering event for calling the script or batch file is the end of a RINEX file interval. If that is superposed by a stream outage, the triggering event is the stream reconnect.
251</p>
252
253<p><a name="rnxinterval"><h4>B - 5.4 RINEX File Interval - mandatory if 'RINEX directory' set</h4></p>
254<p>
255Select the interval for the RINEX file generation. Default for 'RINEX file interval' is 15 minutes.
256</p>
257
258<p><a name="rnxsample"><h4>B - 5.5 RINEX Sampling - mandatory if 'RINEX directory' set </h4></p>
259<p>
260Select the RINEX sample interval in seconds. Zero '0' stands for converting all incoming epochs to RINEX. Default for RINEX 'Sampling' is '0'.
261</p>
262
263<p><a name="rnxskeleton"><h4>B - 5.6 RINEX Skeleton Extension - optional</h4></p>
264<p>
265Whenever BNC starts generating RINEX files (and then once every day at midnight), it first tries to retrieve information needed for RINEX headers from so-called public RINEX header skeleton files which are derived from sitelogs. An HTTP link to a directory containing these skeleton files may be available through data field number 7 of the affected NET record in the source-table. See <u>http://www.epncb.oma.be:80/stations/log/skl/brus.skl</u> for an example for a public RINEX header skeleton file concerning the EPN station Brussels.
266</p>
267<p>
268However, it may happen that public RINEX header skeleton files are not available, its contents is not up to date, or you need to have additional/optional records in the RINEX header. For that BNC allows to introduce personal skeleton files that contain the header records you would like to see. You may derive a personal RINEX header skeleton file from the information given in an up to date sitelog. A file in the 'RINEX directory' with the extension 'RINEX skeleton extension' is interpreted by BNC as a personal RINEX header skeleton file for the affected stream.
269</p>
270<p>
271Examples for file name convention: RINEX files for mountpoints WETTZELL, FRANKFURT and FRANCE (same 4Char Station ID), BRUS0 from <u>www.euref-ip.net</u> and BRUS0 from <u>www.igs-ip.net</u> (same 4Char Station ID, identical mountpoint stings) would accept personal skeleton files named</p>
272<p>
273WETT.skl<br>
274FRAN_KFURT.skl<br>
275FRAN_CE.skl<br>
276BRUS_0.skl<br>
277BRUS_1.skl</p>
278<p>
279if 'RINEX skeleton extension' is set to 'skl'.
280</p>
281<p>
282Note the following regulations regarding personal RINEX header skeleton files:
283<ul>
284<li>If such a file appears in the 'RINEX directory', a corresponding public RINEX header skeleton file is ignored. The RINEX header is generated solely from the contents of the personal skeleton.</li>
285<li>Personal skeletons should contain a complete first header record of type</li>
286<br>- &nbsp; RINEX VERSION / TYPE
287<li>They should then contain an empty header record of type</li>
288<br>- &nbsp; PGM / RUN BY / DATE
289<br>The existence of this empty records leads BNC to complete this line and include it in the final RINEX file header.
290<li>They should further contain complete header records of type</li>
291<br>- &nbsp; MARKER NAME
292<br>- &nbsp; OBSERVER / AGENCY
293<br>- &nbsp; REC # / TYPE / VERS
294<br>- &nbsp; ANT # / TYPE
295<br>- &nbsp; APPROX POSITION XYZ
296<br>- &nbsp; ANTENNA: DELTA H/E/N
297<br>- &nbsp; WAVELENGTH FACT L1/2
298<li>They may contain any other optional complete header record as defined in the RINEX documentation.</li>
299<li>They should then contain empty header records of type</li>
300<br>- &nbsp; # / TYPES OF OBSERV
301<br>- &nbsp; TIME OF FIRST OBS
302<br>The existence of these empty records leads BNC to include such lines in the final RINEX file header together with an additional
303<br>- &nbsp; COMMENT
304<br>line describing the source of the stream.
305<li>They should finally contain an empty header record of type</li>
306<br>- &nbsp; END OF HEADER (last record)
307</ul>
308<p>
309If neither a public nor a personal RINEX header skeleton file is available for BNC, a default header is generated for the affected RINEX file.
310</p>
311
312<p>
313
314<p><a name="rnxappend"><h4>B - 5.7 Append Files</h4></p>
315<p>
316When starting BNC, new RINEX files are created by default. Probably existing files will be overwritten. However, it may be desirable to append observations to already existing RINEX files following a restart of BNC after an intentional 'Stop', a system crash or a crash of BNC. Hit 'Append files' to continue with already existing files and thus save what has been recorded so far. Note that option 'Append files' also concerns the 'ASCII output file' and the 'Log' file.
317</p>
318<p><a name="mountpoints"><h4>B - 6. Mountpoints</h4></p>
319<p>
320Each stream on an NTRIP broadcaster is defined through a unique source ID called mountpoint. An NTRIP client like BNC can access the data of a desired stream by its mountpoint. Information about mountpoints is available through the source-table maintained by the NTRIP broadcaster. Note that mountpoints could show up in BNC more than once when retrieving streams from several NTRIP broadcasters.
321</p>
322
323Streams selected for retrieval are listed in the 'Mountpoints' section on BNC's main window. The list provides the following information extracted from NTRIP broadcaster source-tables:
324
325<table>
326<tr></tr>
327<tr><td>'mountpoint' &nbsp;</td><td>NTRIP broadcaster URL, port, and mountpoint.</td></tr>
328<tr><td>'decoder' &nbsp;</td><td>Internal decoder used to handle the incoming stream content according to its format; editable.</td></tr>
329<tr><td>'lat' &nbsp;</td><td>Latitude of reference station, degrees, north; editable if 'nmea' = 'yes'.</td></tr>
330<tr><td>'long' &nbsp;</td><td>Longitude of reference station, degrees, east; editable if 'nmea' = 'yes'.</td></tr>
331<tr><td>'nmea' &nbsp;</td><td>Shows whether or not stream retrieval needs to be initiated by BNC through sending NMEA-GGA message carrying position coordinates 'lat' and 'long'.</td></tr>
332<tr><td>'bytes' &nbsp;</td><td>Number of bytes retrieved.
333</table>
334
335<p><a name="AddMounts"><h4>B - 6.1 Add Mountpoints</h4></p>
336<p>
337Button 'Add Mountpoints' opens a window that allows you to select data streams from an NTRIP broadcaster by their mountpoints.
338</p>
339
340<p><a name="HostPort"><h4>B - 6.2 Broadcaster Host and Port - mandatory</h4></p>
341<p>
342Enter the NTRIP broadcaster host IP and port number. <u>http://www.rtcm-ntrip.org/home</u> provides information about known NTRIP broadcaster installations. Note that EUREF and IGS operate NTRIP broadcasters at <u>http://www.euref-ip.net/home</u> and <u>http://www.igs-ip.net/home</u>.
343</p>
344
345<p><a name="account"><h4>B - 6.3 Broadcaster User and Password - mandatory for protected streams</h4></p>
346<p>
347Streams on NTRIP broadcasters may be protected by password. Enter a valid 'User' ID and 'Password' for access to protected NTRIP broadcaster streams. Accounts are usually provided per NTRIP broadcaster through a registration procedure. Register through <u>http://igs.bkg.bund.de/index_ntrip_reg.htm</u> for access to protected streams on <u>www.euref-ip.net</u> and <u>www.igs-ip.net</u>.
348</p>
349
350<p><a name="GetTable"><h4>B - 6.4 Get Table</h4></p>
351<p>
352Hit button 'Get Table' to download the source-table from the NTRIP broadcaster. Pay attention to data fields 'format' and 'format-details'. Keep in mind that BNC can only decode and convert streams that come in RTCM 2.x, RTCM 3, or RTIGS format. RTCM 2.x streams must contain message types 18 and 19 while RTCM 3 streams must contain GPS message types 1002 or 1004 and may contain GLONASS message types 1010 or 1012, see data field 'format-details' for available message types and their repetition rates in brackets. Select your streams line by line, use +Shift and +Ctrl when necessary.
353</p>
354<p>
355The contents of data field 'nmea' tells you whether a stream retrieval needs to be initiated by BNC through sending an NMEA-GGA message carrying position coordinates (virtual reference station).
356</p>
357<p>
358Hit 'OK' to return to the main window. You may like to 'Add Mountpoints' from another NTRIP broadcaster when necessary.
359</p>
360
361<p><a name="delete"><h4>B - 6.5 Delete Mountpoints</h4></p>
362<p>
363To delete a stream shown under 'Mountpoints' in the main window, select it by mouse click and hit 'Delete Mountpoints'. For a simultaneous deletion of several streams highlight them using +Shift and +Ctrl.</p>
364
365<p><a name="edit"><h4>B - 6.6 Edit Mountpoints</h4></p>
366<ul>
367<li>
368BNC automatically selects one out of several internal decoders for a stream based on its 'format' and 'format-details' as given in the source-table. It may happen that you need to overrule the automated decoder selection because of source-table setup deficiencies. Therefore BNC allows to edit the decoder string (first double-click, then edit field 'decoder', then hit Enter) for the streams shown under 'Mountpoints'. Accepted decoder strings allowed to be introduced for stream decoding and conversion are 'RTCM_2.x', 'RTCM_3', and 'RTIGS'.
369</li>
370<li>
371BNC allows to by-pass its stream decoding and conversion algorithms, leave whatever is received untouched and save it in daily named files. To activate this functionality you need to enter the decoder string 'ZERO'. The generated file names are build from the characters of the affected mountpoints plus the two-digit numbers for year, month, and day. Example: Setting the 'decoder' string for mountpoint WTZZ0 to 'ZERO' and running BNC on March 29, 2007 to save incoming data untouched in a file would lead to a file name WTZZ0_070329.
372</li>
373<li>
374BNC allows to retrieve streams from virtual reference stations. For accessing these streams, an approximate rover position is required to be send in NMEA format to the NTRIP broadcaster. In return, an individual user-specific data stream is generated, usually by a network RTK software. This stream is tailored exactly to the latitude and longitude shown in the 'lat' and 'long' columns under 'Mountpoints'. Whether a stream retrieval needs to be initiated by BNC through sending an NMEA-GGA string is indicated by 'yes' in column 'nmea' under 'Mountpoints' as well as 'yes' in column 'nmea' of the affected source-table.
375<br>Default values for 'lat' and 'long' are taken from the source-table. You may change these values (first double-click, then edit fields 'lat' and/or 'long', then hit Enter) according to your needs. The position has to be introduced in northern latitude degrees (example for northern hemisphere: 52.436, example for southern hemisphere: -24.567) and eastern longitude degrees (example: 358.872 or -1.128). Editing the 'lat' and 'long' values under 'Mountpoints' is only possible for streams that show 'yes' in column 'nmea'. The position must point to a location within the service area of the affected RTK network. RINEX files generated from these streams contain an additional COMMENT line in the header beginning with 'NMEA' to mention the 'lat' and 'long' values introduced.
376<br>Note that when running BNC in a Local Area Network (LAN), NMEA strings may be blocked by a proxy server, firewall or virus scanner.
377</li>
378</ul>
379
380<p><a name="log"><h4>B - 7. Log - optional</h4></p>
381<p>
382BNC comments its activities in the 'Log' section on the main windows. Comments can be saved in a file when entering a full path for a 'Log' file. Information is given on the communication between BNC and the NTRIP broadcaster as well as on problems that may occur concerning communication link, stream availability, stream delay, stream conversion etc. Default value for 'Log' is an empty option field, meaning that BNC comments are not saved in a file.
383</p>
384
385<p><a name="start"><h4>B - 8. Start</h4></p>
386<p>
387Hit 'Start' to start retrieving, decoding, and converting GNSS data streams in real-time. Note that 'Start' generally forces BNC to begin with fresh RINEX files and thus overwrite probably existing files when necessary unless option 'Append files' is set.
388</p>
389
390<p><a name="stop"><h4>B - 9. Stop</h4></p>
391<p>
392Hit the 'Stop' button in order to stop BNC.
393</p>
394
395<p><a name="nw"><h4>B - 10. No Window - optional</h4></p>
396<p>
397You can use BNC on all systems in batch mode with the command line option '-nw'. BNC then runs in 'no window' mode, reading options from the configuration file ${HOME}/.config/BKG/BNC_NTRIP_Client.conf (Unix/Linux) or from the register BNC_NTRIP_Client (Windows).
398</p>
399<p>
400Note that the self-explaining contents of the configuration file or the Windows register can easily be edited. Terminate BNC using the Windows Task Manager when running it in 'no window' mode on Windows systems.
401</p>
402<p><a name="limits"><h3>C - Limitations</h3></p>
403<ul>
404<li>
405The connection to an NTRIP broadcaster may possibly break or a stream requested may be temporarily unavailable. Furthermore, a connection is interpreted by BNC to be broken if no data is coming in for a period of 20 seconds. When this happens, a reconnect is being attempted with decreasing frequency. BNC first tries to reconnect with ~1 second delay, if unsuccessful, tries again in ~2 seconds from the last attempt, if still unsuccessful tries with ~4 seconds from the last attempt etc. Each attempt doubles the delay from the previous attempt. The maximum delay between attempts is limited to ~128 seconds. The reconnection process is documented in the 'Log' file/section.
406</li>
407<li>
408So far BNC only handles GPS and GLONASS data while ignoring Galileo.
409</li>
410<li>
411BNC's function is limited today to processing C1, C2, P1, P2, L1, L2, S1, and S2 observations. Which observables become available through a specific stream depends on the setup of the affected receiver and the applied data format. Note that RTCM Version 2.x streams can not transport signal-to-noise ratios (S) and RTCM Version 3 streams can only transport one code observable per frequency. Note further that signal-to-noise ratios (S) are also made available mapped to integer numbers 1 to 9.
412</li>
413<li>
414Concerning RTCM Version 2.x, BNC handles only message types 18 and 19. Concerning RTCM Version 3, BNC handles only message types 1002, 1004, 1010, and 1012.
415</li>
416<li>
417Streams coming in RTIGS format carry only GPS data.
418</li>
419<li>
420BNC's 'Get Table' function only informs about the STR records of a source-table. Note that you can use an Internet browser to download the full source-table contents of any NTRIP broadcaster by simply entering its URL plus a dummy string in the form http://host:port/dummy. Data field number 8 of the NET records that may show up may provide information about where to register for an NTRIP broadcaster account.
421</li>
422<li>
423EUREF as well as IGS follow an open data policy. Streams are made available through NTRIP broadcasters at <u>www.euref-ip.net</u> and <u>www.igs-ip.net</u> free of charge to anyone for any purpose. Up to now it is not clear how many users will have to be supported simultaneously. The given situation may develop in a way that it becomes difficult to serve all registered users at all times. In case limited dissemination resources on the NTRIP broadcaster side (software restrictions, bandwidth limitation etc.) make it necessary, first priority in stream provision will be given to stream providers, re-broadcasting activities, and real-time analysis centers while access for others might be temporarily denied.
424</li>
425<li>
426We experienced a limitation of the Standard Windows Operating Systems concerning socket communication. Sockets are not always handled properly. As BNC makes intensive use of communication through sockets, we suggest to use the Server Version of Windows Operating Systems when running BNC continuously for a long time on a Windows platform.
427</li>
428<li>
429The source code provided by NRCan for handling streams coming in RTIGS format is 32-bit sensitive. Thus, the BNC executable generated for 64-bit Linux systems could only be compiled using the -m32 compiler option.
430</li>
431<br>
432</ul>
433<p><a name="authors"><h3>D - Authors</h3></p>
434<p>
435The BKG Ntrip Client (BNC) Qt Graphic User Interface (GUI) has been developed for the Federal Agency for Cartography and Geodesy (BKG) by Leos Mervart, Czech Technical University Prague, Department of Geodesy. BNC integrates the following GNU GPL software components:
436<ul>
437<li> RTCM 2.x decoder, written by Oliver Montenbruck, German Space Operations Center, DLR, Oberpfaffenhofen</li>
438<li> RTCM 3 decoder, written for BKG by Dirk Stoecker, Euronik GmbH, Schoenefeld</li>
439<li> RTIGS decoder, written by Ken MacLeod, Natural Resources, Canada.</li>
440</ul>
441</p>
442<p>
443Please make sure you installed the latest version of BNC available from <u>http://igs.bkg.bund.de/index_ntrip_down.htm</u>. We are still working on the program and would appreciate if you sent your comments, suggestions, or bug reports to:
444</p>
445<p>
446Georg Weber<br>
447Federal Agency for Cartography and Geodesy (BKG)<br>
448Frankfurt, Germany<br>
449euref-ip@bkg.bund.de
450</p>
451
452<p><a name="links"><h3>E - Links</h3></p>
453<table>
454<tr></tr>
455<tr><td>NTRIP &nbsp;</td><td><u>http://igs.bkg.bund.de/index_ntrip.htm</u></td></tr>
456<tr><td>EUREF-IP NTRIP broadcaster &nbsp;</td><td><u>http://www.euref-ip.net/home</u></td></tr>
457<tr><td>IGS-IP NTRIP broadcaster &nbsp;</td><td><u>http://www.igs-ip.net/home</u></td></tr>
458<tr><td>NTRIP broadcaster overview &nbsp;</td><td><u>http://www.rtcm-ntrip.org/home</u></td></tr>
459<tr><td>EUREF-IP Pilot Project &nbsp;</td><td><u>http://www.epncb.oma.be/euref_IP</u></td></tr>
460<tr><td>Radio Technical Commission<br>for Maritime Services &nbsp;</td><td><u>http://www.rtcm.org</u>
461</table>
462
463<p><a name="annex"><h3>F - Annex</h3></p>
464<p>
465F - 1. <a href=#ntrip>NTRIP</a><br>
466&nbsp; &nbsp; &nbsp; E - 1.1 <a href=#source>Source-table</a><br>
467F - 2. <a href=#rtcm>RTCM</a><br>
468&nbsp; &nbsp; &nbsp; F - 2.1 RTCM <a href=#rtcm2> Version 2.x</a><br>
469&nbsp; &nbsp; &nbsp; F - 2.2 RTCM <a href=#rtcm3> Version 3</a><br>
470F - 3. <a href=#rtigs>RTIGS</a><br>
471&nbsp; &nbsp; &nbsp; F - 3.1 <a href=#soc>SOC</a><br>
472F - 4. <a href=#config>Config File</a>
473</p>
474
475<p><a name="ntrip"><h4>F - 1. NTRIP</h4></p>
476
477<p>
478'Networked Transport of RTCM via Internet Protocol' Version 1.0 (NTRIP) stands for an application-level protocol streaming Global Navigation Satellite System (GNSS) data over the Internet. NTRIP is a generic, stateless protocol based on the Hypertext Transfer Protocol HTTP/1.1. The HTTP objects are enhanced to GNSS data streams.
479</p>
480
481<p>
482NTRIP Version 1.0 is an RTCM standard 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.
483</p>
484
485<p>
486NTRIP is implemented in three system software components: NTRIP clients, NTRIP servers and NTRIP broadcasters. The NTRIP broadcaster is the actual HTTP server program whereas NTRIP client and NTRIP server are acting as HTTP clients.
487</p>
488
489<p>
490NTRIP is an open none-proprietary protocol. Major characteristics of NTRIP's dissemination technique are:
491<ul>
492<li>Based on the popular HTTP streaming standard; comparatively easy to implement when having limited client and server platform resources available.</li>
493<li>Application not limited to one particular plain or coded stream content; ability to distribute any kind of GNSS data.</li>
494<li>Potential to support mass usage; disseminating hundreds of streams simultaneously for thousands of users possible when applying modified Internet Radio broadcasting software.</li>
495<li>Considering security needs; stream providers and users don't necessarily get into contact, streams often not blocked by firewalls or proxy servers protecting Local Area Networks.</li>
496<li>Enables streaming over mobile IP networks because of using TCP/IP.</li>
497</ul>
498</p>
499
500<p><a name="source"><h4>F - 1.1 Source-table</h4></p>
501
502<p>
503The NTRIP broadcaster maintains a source-table containing information on available NTRIP streams, networks of NTRIP streams and NTRIP broadcasters. The source-table is sent to an NTRIP client on request. Source-table records are dedicated to one of the following: Data Streams (record type STR), Casters (record type CAS), or Networks of streams (record type NET).
504</p>
505
506<p>
507Source-table records of type STR contain the following data fields: 'mountpoint', 'identifier', 'format', 'format-details', 'carrier', 'nav-system', 'network', 'country', 'latitude', 'longitude', 'nmea', 'solution', 'generator', 'compr-encryp', 'authentication', 'fee', 'bitrate', 'misc'.
508</p>
509<p>
510Source-table records of type NET contain the following data fields: 'identifiey', 'operator', 'authentication', 'fee', 'web-net', 'web-str', 'web-reg', 'misc'.
511</p>
512<p>
513Source-table records of type CAS contain the following data fields: 'host', 'port', 'identifier', 'operator', 'nmea', 'country', 'latitude', 'longitude', 'misc'.
514</p>
515
516<p><a name="rtcm"><h4>F - 2. RTCM</h4></p>
517
518<p>
519The Radio Technical Commission for Maritime Services (RTCM) is an international non-profit scientific, professional and educational organization. Special Committees provide a forum in which governmental and non-governmental members work together to develop technical standards and consensus recommendations in regard to issues of particular concern. RTCM is engaged in the development of international standards for maritime radionavigation and radiocommunication systems. The output documents and reports prepared by RTCM Committees are published as RTCM Recommended Standards. Topics concerning Differential Global Navigation Satellite Systems (DGNSS) are handled by the Special Committee SC 104.
520<p>
521Personal copies of RTCM Recommended Standards can be ordered through <u>http://www.rtcm.org/orderinfo.php</u>.
522</p>
523
524<p><a name="rtcm2"><h4>F - 2.1 RTCM Version 2.x</h4></p>
525<p>
526Transmitting GNSS carrier phase data can be done through RTCM Version 2.x messages. Please note that only RTCM Version 2.2 and 2.3 streams may include GLONASS data. Messages that may be of some interest here are:
527</p>
528
529<ul>
530<li>
531Type 1 message is the range correction message and is the primary message in code-phase differential positioning (DGPS). It is computed in the base receiver by computing the error in the range measurement for each tracked SV.
532</li>
533<li>
534Type 2 message is automatically generated when a new set of satellite ephemeris is downloaded to the base receiver. It is the computed difference between the old ephemeris and the new ephemeris. Type 2 messages are used when the base station is transmitting Type 1 messages.
535</li>
536<li>
537Type 3 and 22 messages are the base station position and the antenna offset. Type 3 and 22 are used in RTK processing to perform antenna reduction.
538</li>
539<li>
540Type 6 message is a null frame filler message that is provided for data links that require continuous transmission of data, even if there are no corrections to send. As many Type 6 messages are sent as required to fill in the gap between two correction messages (type 1). Message 6 is not sent in burst mode.
541</li>
542<li>
543Type 9 message serves the same purpose as Type 1, but does not require a complete satellite set. As a result, Type 9 messages require a more stable clock than a station transmitting Type 1 's, because the satellite corrections have different time references.
544</li>
545<li>
546Type 16 message is simply a text message entered by the user that is transmitted from the base station to the rover. It is used with code-phase differential.
547</li>
548<li>
549Type 18 and 20 messages are RTK uncorrected carrier phase data and carrier phase corrections.
550</li>
551<li>
552Type 19 and 21 messages are the uncorrected pseudo-range measurements and pseudo-range corrections used in RTK.
553</li>
554<li>
555Type 23 message provides the information on the antenna type used on the reference station.
556</li>
557<li>
558Type 24 message carries the coordinates of the installed antenna's ARP in the GNSS coordinate system coordinates.
559</li>
560</ul>
561
562<p><a name="rtcm3"><h4>F - 2.2 RTCM Version 3</h4></p>
563<p>
564RTCM Version 3 has been developed as a more efficient alternative to RTCM 2.x. Service providers and vendors have asked for a standard that would be more efficient, easy to use, and more easily adaptable to new situations. The main complaint was that the Version 2 parity scheme was wasteful of bandwidth. Another complaint was that the parity is not independent from word to word. Still another was that even with so many bits devoted to parity, the actual integrity of the message was not as high as it should be. Plus, 30-bit words are awkward to handle. The Version 3 standard is intended to correct these weaknesses.
565</p>
566<p>
567RTCM Version 3 defines a number of message types. Messages that may be of interest here are:
568</p>
569<ul>
570<li>Type 1001, GPS L1 code and phase.</li>
571<li>Type 1002, GPS L1 code and phase and ambiguities and carrier to noise ratio.</li>
572<li>Type 1003, GPS L1 and L2 code and phase.</li>
573<li>Type 1004, GPS L1 and L2 code and phase and ambiguities and carrier to noise ratio.</li>
574<li>Type 1005, Station coordinates XZY for antenna reference point.</li>
575<li>Type 1006, Station coordinates XYZ for antenna reference point and antenna height.</li>
576<li>Type 1007, Antenna descriptor and ID.</li>
577<li>Type 1008, Antenna serial number.</li>
578<li>Type 1009, GLONASS L1 code and phase.</li>
579<li>Type 1010, GLONASS L1 code and phase and ambiguities and carrier to noise ratio.</li>
580<li>Type 1011, GLONASS L1 and L2 code and phase.</li>
581<li>Type 1012, GLONASS L1 and L2 code and phase and ambiguities and carrier to noise ratio.</li>
582<li>Type 1013, Modified julian date, leap second, configured message types and interval.</li>
583<li>Type 1014 and 1017, Network RTK (MAK) messages (under development).</li>
584<li>Type 1019, GPS Ephemeris (under development).</li>
585<li>Type 1020, GLONASS Ephemeris (under development).</li>
586<li>Type 4088 and 4095, Proprietary messages (under development).
587</li>
588</ul>
589
590<p><a name="rtigs"><h4>F - 3. RTIGS</h4></p>
591<p>
592RTIGS stands for a data format and transport protocol for GPS observations. It was defined by the Real-Time IGS Working Group (RTIGS WG). Its definition is based on the SOC format. Every RTIGS record has one of the following numbers:
593</p>
594<p>
595Station record number 100<br>
596Observation record (O_T) number 200<br>
597Ephemeris record (E_T) number 300<br>
598Meteorological record (M_T) number 400
599</p>
600<p>
601Every station has one of the following unique numbers:
602</p>
603<p>
6041-99 reserved for JPL<br>
605100-199 reserved for NRCan<br>
606200-299 reserved for NGS<br>
607300-399 reserved for ESOC<br>
608400-499 reserved for GFZ<br>
609500-599 reserved for BKG<br>
610600-699 reserved for GEOSCIENCE AUS<br>
611700-799 others<br>
612etc
613</p>
614<p>
615The number of bytes in each real time message includes the header as well as the data content, but NOT the pointer.
616</p>
617<p>
618For example:
619</p>
620<ul>
621<li>A station message is output once per hour and is 20 bytes.</li>
622<li>An observation message is output once per second. The header is 12 bytes long and the SOC data is 21 bytes per PRN. So a typical RTIGSO_T message will be 390 bytes if 8 sats are being tracked.</li>
623<li>An ephemeris message is output when the ephemeris is decoded by the GPS receiver. The time in the Ephemeris header is the collected time. Only one ephemeris can be bundled in a RTIGSE_T message.<br>
624A RTIGSE_T message contains one eph. The message consists of 12 header bytes and 72 ephemeris bytes, for a total of 84 bytes.</li>
625<li>The RTIGSM_T (met) message should be issued once every 15 minutes. A basic met message consists of a 12 byte header and 3 longs (temp, press and relative humidity) for a total of 24 bytes.</li>
626</ul>
627<p>
628All records are related to a station configuration indicated by the Issue of Data Station (IODS). The IODS will enable the user to identify the equipment and software that was used to derive the observation data.
629</p>
630<p>
631Each record header contains the GPS Time in seconds which flows continuously from 6 Jan-1980 onwards.
632</p>
633<p>
634The data payload of each record consists of observations. The structures indicate a pointer to data but in fact the broadcast messages do not contain the pointer, only the data. Users will have to manage the data and the pointer is shown in order to illustrate where the data is located in the message and one possible data management option.
635</p>
636<p>
637All record data are in network byte order (Big Endian), i.e. IA32 users have to swap bytes.
638</p>
639<p>
640Visit <u>http://igscb.jpl.nasa.gov/mail/igs-rtwg/2004/msg00001.html</u> for further details.
641</p>
642
643<p><a name="soc"><h4>F - 3.1 SOC</h4></p>
644<p>
645The SOC format has been designed in July 1999 by the Jet Propulsion Laboratory (JPL) and the California Institute of Technology (CalTech) to transport 1Hz GPS data with minimal bandwidth over the open Internet. SOC follows the 'little-endian' byte order meaning that the low-order byte of a number is stored in memory at the lowest address, and the high-order byte at the highest address. Because the transport layer is UDP, the format does not include sync bits, a checksum, or cyclic redundancy checksum (CRC). SOC allows to transport the GPS observable CA, P1, P2, L1, and L2, efficiently compressed down to 14 bytes with 1 mm range resolution and 0.02 mm phase resolution. SOC contains epochs for cycle slips, a stand-alone time-tag per epoch, a minimum representation of the receiver's clock solution, 3 SNR numbers, a unique site id, a modulo 12 hour sequence number and flags for receiver type and GPS health. SOC's simple structure comprises an 8 byte header, a 9 byte overhead for timetag, number of gps, etc., plus 21 data bytes per gps.
646</p>
647<p>
648Visit <u>http://gipsy.jpl.nasa.gov/igdg/papers/SOC_FORMAT.ppt</u> for further details.
649</p>
650<p>
651</p>
652<p><a name="config"><h4>F - 4. Config File</h4></p>
653<p>
654The following is an example for the contents of a Unix/Linux configuration file ${HOME}/.config/BKG/BKG_NTRIP_Client.conf. It enables the retrieval of stream HOE20 form www.euref-ip.net and GOPE0 from www.igs-ip.net for the generation of 15 min RINEX files. RINEX files are uploaded to an archive using script 'up2archive' :
655<pre>
656[General]
657casterHost=
658casterPassword=
659casterPort=
660casterUser=
661font="Sans Serif,8,-1,5,50,0,0,0,0,0"
662logFile=${HOME}/bnc.log
663mountPoints=//user:password@www.euref-ip.net:80/HOE20 RTCM_3.0 54.76 8.29 no, //user:password@www.igs-ip.net:80/GOPE0 RTCM_2.2 49.91 14.79 no
664outFile=
665outPort=
666proxyHost=proxy.bkg.de
667proxyPort=8000
668rnxAppend=2
669rnxIntr=15 min
670rnxPath=${HOME}/rinex
671rnxSampl=0
672rnxScript=${HOME}/up2archive
673rnxSkel=SKL
674waitTime=5
675</pre>
676</p>
677
Note: See TracBrowser for help on using the repository browser.