Index: /trunk/BNS/RTCM/clock_orbit_rtcm.c
===================================================================
--- /trunk/BNS/RTCM/clock_orbit_rtcm.c	(revision 1204)
+++ /trunk/BNS/RTCM/clock_orbit_rtcm.c	(revision 1205)
@@ -3,5 +3,5 @@
         Name:           clock_orbit_rtcm.c
         Project:        RTCM3
-        Version:        $Id$
+        Version:        $Id: clock_orbit_rtcm.c,v 1.3 2008/08/15 16:29:40 weber Exp $
         Authors:        Dirk Stöcker
         Description:    state space approach for RTCM3
@@ -495,4 +495,6 @@
     if(!co) return GCOBR_NOCLOCKORBITPARAMETER;
     G_GPS_EPOCH_TIME(co->GPSEpochTime, co->NumberOfGPSSat)
+    co->epochGPS[co->epochSize] = co->GPSEpochTime;   /* Weber, for latency */
+    if(co->epochSize < 100) {co->epochSize += 1;}     /* Weber, for latency */
     G_MULTIPLE_MESSAGE_INDICATOR(mmi)
     G_RESERVED6
@@ -521,4 +523,6 @@
     if(!co) return GCOBR_NOCLOCKORBITPARAMETER;
     G_GPS_EPOCH_TIME(co->GPSEpochTime, co->NumberOfGPSSat)
+    co->epochGPS[co->epochSize] = co->GPSEpochTime;   /* Weber, for latency */
+    if(co->epochSize < 100) {co->epochSize += 1;}     /* Weber, for latency */
     G_MULTIPLE_MESSAGE_INDICATOR(mmi)
     G_RESERVED6
@@ -539,4 +543,6 @@
     if(!co) return -5;
     G_GPS_EPOCH_TIME(co->GPSEpochTime, co->NumberOfGPSSat)
+    co->epochGPS[co->epochSize] = co->GPSEpochTime;   /* Weber, for latency */
+    if(co->epochSize < 100) {co->epochSize += 1;}     /* Weber, for latency */
     G_MULTIPLE_MESSAGE_INDICATOR(mmi)
     G_RESERVED6
Index: /trunk/BNS/RTCM/clock_orbit_rtcm.h
===================================================================
--- /trunk/BNS/RTCM/clock_orbit_rtcm.h	(revision 1204)
+++ /trunk/BNS/RTCM/clock_orbit_rtcm.h	(revision 1205)
@@ -6,5 +6,5 @@
         Name:           clock_orbit_rtcm.h
         Project:        RTCM3
-        Version:        $Id$
+        Version:        $Id: clock_orbit_rtcm.h,v 1.3 2008/08/15 16:29:19 weber Exp $
         Authors:        Dirk Stöcker
         Description:    state space approach for RTCM3
@@ -52,4 +52,6 @@
   int ClockDataSupplied;            /* boolean */
   int OrbitDataSupplied;            /* boolean */
+  int epochGPS[101];                /* Weber, for latency */
+  int epochSize;                    /* Weber, for latency */
   enum SatelliteReferencePoint SatRefPoint;
   enum SatelliteReferenceDatum SatRefDatum;
Index: /trunk/BNS/bnsabout.html
===================================================================
--- /trunk/BNS/bnsabout.html	(revision 1204)
+++ /trunk/BNS/bnsabout.html	(revision 1205)
@@ -21,5 +21,5 @@
 The Bundesamt fuer Geodaesie und Kartographie (BKG) may not be held liable for damages of any kind, direct or consequential, which may result from the use of this software.<br>
 <br>
-BKG, Frankfurt, Germany, September 2008<br>
+BKG, Frankfurt, Germany, November 2008<br>
 E-Mail: <a><u>euref-ip@bkg.bund.de</u></a>.<br>
 </p>
Index: /trunk/BNS/bnshelp.html
===================================================================
--- /trunk/BNS/bnshelp.html	(revision 1204)
+++ /trunk/BNS/bnshelp.html	(revision 1205)
@@ -2,5 +2,5 @@
 
 <p>
-The BKG Ntrip State Space Server (BNS) is a program for transforming GNSS satellite clocks and orbits into corrections to Broadcast Ephemeris. These corrections are then encode in RTCM Version 3.x format and uploaded to NTRIP broadcasters like <u>http://www.euref-ip.net/home</u> or <u>http://www.igs-ip.net/home.</u> BNS is created as a tool for service providers with real-time access to a network of continentally or globally distributed GNSS reference stations.
+The BKG Ntrip State Space Server (BNS) is a program for transforming GNSS satellite clocks and orbits into corrections to Broadcast Ephemeris. These corrections are then encode in a (premature) RTCM Version 3.x format and uploaded to NTRIP broadcasters like <u>http://www.euref-ip.net/home</u> or <u>http://www.igs-ip.net/home.</u> BNS is created as a tool for service providers with real-time access to a network of continentally or globally distributed GNSS reference stations.
 </p>
 
@@ -14,5 +14,5 @@
 
 <p>
-Before running, please ensure that you have installed the latest version available. The latest version of BNS can be obtained from <u>http://igs.bkg.bund.de/index_ntrip_down.htm</u>. We are continuously working on the program and would appreciate any comments, suggestions, or bug reports. They can be emailed to [euref-ip@bkg.bund.de] or [igs-ip@bkg.bund.de].
+Before running, please ensure that you have installed the latest version available. This can be obtained from <u>http://igs.bkg.bund.de/index_ntrip_down.htm</u>. We are continuously working on the program and would appreciate any comments, suggestions, or bug reports. They can be emailed to [euref-ip@bkg.bund.de] or [igs-ip@bkg.bund.de].
 </p>
 
@@ -32,5 +32,5 @@
 <p><a name="purpose"><h3>1. Purpose</h3></p>
 <p>
-Differential GNSS and RTK operation using RTCM is currently based on corrections and/or raw measurements from single or multiple reference stations. This approach to differential positioning is using 'observation space' information. The representation with the RTCM standard can be called 'Observation Space Representation' (OSR). 
+Differential GNSS and RTK operation using RTCM streams is currently based on corrections and/or raw measurements from single or multiple reference stations. This approach to differential positioning is using 'observation space' information. The representation with the RTCM standard can be called 'Observation Space Representation' (OSR). 
 </p>
 <p>
@@ -92,4 +92,9 @@
 
 <p><a name="options"><h3>4. Options</h3></p>
+
+<p>
+All options for running BNS on Unix/Linux/Mac systems are saved in file ${HOME}/.config/BKG/BKG_NTRIP_Server.conf, see annexed 'Configuration File' example. On Windows systems options are saved in register BKG_NTRIP_Server. The self-explaining contents of the configuration file or the Windows register can easily be edited.
+</p>
+
 <p>
 4.1. <a href=#file>File</a><br>
@@ -131,5 +136,5 @@
 </li> 
 <li> save selected options.<br>
-Note that on Windows systems options are saved in register BKG_NTRIP_Server. On Unix/Linux systems options are saved in file ${HOME}/.config/BKG/BKG_NTRIP_Server.conf.
+Note that on Windows systems options are saved in register BKG_NTRIP_Server. On Unix/Linux/Mac systems options are saved in file ${HOME}/.config/BKG/BKG_NTRIP_Server.conf.
 </li>
 <li>
@@ -219,5 +224,5 @@
 <p><a name="co"><h4>4.6. Clocks & Orbits</h4></p>
 <p>
-BNS requires GNSS clocks and orbits in the IGS Earth-Centered-Earth-Fixed (ECEF) reference system in SP3 format. They can be provided by a real-time GNSS engine such as RTNet.
+BNS requires GNSS clocks and orbits in the IGS Earth-Centered-Earth-Fixed (ECEF) reference system in SP3 format. They can be provided by a real-time GNSS engine such as RTNet. Their sampling rate should not be much greater than 10 sec. Note that otherwise in IP streaming involved tools on the NTRIP Broadcaster or client side may respond with a timeout.
 </p>
 
@@ -229,7 +234,6 @@
 <ul>
 <li>GNSS Indicator and Satellite Vehicle Pseudo Random Number</li>
-<li>X,Y,Z coordinates in Earth-Centered-Earth-Fixed system [m]</li>
+<li>X,Y,Z coordinates in Earth-Centered-Earth-Fixed system [km]</li>
 <li>Satellite clock error [microsecond]</li>
-<li>Standard deviation of satellite clock error [microsecond]</li>
 </ul>
 </p>
@@ -238,32 +242,26 @@
 <p>
 <pre>
-*  1489  218527.000000 13
-G08    -76413.307  24866966.637   8527190.979     -162.790607     0.375
-G09  13547198.314 -14993483.355  16521052.798        6.462891    -0.335
-G12  23546505.279 -11419650.825  -4126405.941     -356.488306    -0.103
-G15  20671877.676   1926153.017  16592944.847     -147.015776    -0.216
-G17  14584397.556  20610108.909   8557082.997       38.709284    -0.081
-G18   8169428.184 -16862693.369  18872507.835     -153.553965    -0.149
-G22  -6624646.069 -14262545.420  21565075.194      211.479778    -0.089
-G26  21424721.760   7905958.802  13511083.183      296.893434     0.413
-G28   5220247.539  14404808.121  22087340.167      -21.263655     0.184
-R04  14087836.321 -12766880.844  16904727.671       47.601404    -0.302
-R13   9968458.843   4774687.770  22964489.920     -205.604626     0.526
-R14  11765674.558 -13533158.122  18154217.335     -142.409508     0.093
-R23  15142315.506  19152857.044   7329580.240     -111.465205    -0.316
-*  1489  218528.000000 13
-G08    -76893.521  24867989.053   8524186.937     -162.790606     0.376
-G09  13547066.674 -14991254.946  16523118.186        6.462896    -0.334
-G12  23547101.712 -11419571.961  -4123272.866     -356.488305    -0.102
-G15  20673380.091   1927636.846  16590899.052     -147.015776    -0.215
-G17  14583421.795  20609591.381   8559990.870       38.709276    -0.083
-G18   8171742.449 -16863250.285  18870956.178     -153.553959    -0.148
-G22  -6622069.142 -14263374.211  21565314.170      211.479771    -0.091
-G26  21425938.906   7907253.545  13508540.885      296.893448     0.415
-G28   5217668.842  14405642.686  22087373.519      -21.263659     0.183
-R04  14090047.809 -12767642.452  16902327.088       47.601401    -0.303
-R13   9967725.004   4777752.821  22964170.268     -205.604617     0.529
-R14  11764988.257 -13530761.727  18156438.374     -142.409512     0.091
-R23  15141704.650  19152042.802   7332976.247     -111.465201    -0.316
+*  2008 11 15 23  9  40.00000000
+PG02   9913.526202 -14009.502013  20043.508402    172.954389
+PG04  23093.835904  -6682.421653  11570.857634   -233.598390
+PG07  24249.710621   7319.754680   8146.397178     23.216940
+PG08  26390.024445     40.546316  -4908.638575   -178.106488
+PG10   1835.245663 -21440.492626  15205.319419     -7.272325
+PG13  12906.569448   6704.608105  22108.581216    277.382794
+PG16  -6605.961090  17147.164247  19156.319313     95.078459
+PG20  13676.316680  22650.428992   2457.051428     98.981972
+PG23   6709.764296  15204.810711  20604.601368    380.096453
+PG25  19695.705366   9866.220333  15065.609012     26.781926
+PG27  25598.219004   4571.609372   6357.551439      0.304345
+PG29 -12376.531693  -8988.235685  21818.571434    -29.839454
+PR04   9918.187580  23513.478040    319.847487    151.558351
+PR06   8858.433630  -7341.610546  22646.535467   -244.283462
+PR07  -2285.074648 -21548.431780  13471.401525   -122.300100
+PR14  -4723.060343  10040.375495  22946.780676   -113.677871
+PR15  14469.798068  10358.339867  18230.729298     79.645569
+PR20  17648.744681 -16698.956975  -7876.252525    -62.588294
+PR21  10448.514425 -21096.368284   9681.207096   -122.789091
+PR22  -2707.192952 -13243.085608  21689.194398   -170.976408
+PR23 -14575.573714   2817.925995  20728.130339   -263.187906
 </pre>
 </p>
@@ -281,5 +279,5 @@
 <p><a name="ephc"><h4>4.7. Ephemeris Corrections</h4></p>
 <p>
-BNS can upload the resulting stream(s) of clock and orbit corrections to Broadcast Ephemeris to an Ntrip Broadcaster. Both EUREF and IGS operate an NTRIP broadcaster at <u>http://www.euref-ip.net/home</u> and <u>http://www.igs-ip.net/home</u> which can be used for stream upload. The stream's format is RTCM Version 3.x. Note that it only carries the thentative message Types 4056 and 4057 for combined GPS and GLONASS clock and orbit corrections.
+BNS can upload the resulting stream(s) of clock and orbit corrections to Broadcast Ephemeris to an NTRIP Broadcaster. Both EUREF and IGS operate an NTRIP broadcaster at <u>http://www.euref-ip.net/home</u> and <u>http://www.igs-ip.net/home</u> which can be used for stream upload. The stream's format is RTCM Version 3.x. Note that it only carries the thentative message Types 4056 and 4057 for combined GPS and GLONASS clock and orbit corrections.
 </p>
 
@@ -420,5 +418,5 @@
 <p><a name="nw"><h4>4.12. No Window - optional</h4></p>
 <p>
-On all systems BNS can be started in batch mode with the command line option '-nw'. BNS will then run in 'no window' mode, using options from the configuration file ${HOME}/.config/BKG/BNC_NTRIP_Server.conf (Unix/Linux, see Config File example in the Annex) or from the register BKG_NTRIP_Server (Windows).
+On all systems BNS can be started in batch mode with the command line option '-nw'. BNS will then run in 'no window' mode, using options from the configuration file ${HOME}/.config/BKG/BNC_NTRIP_Server.conf (Unix/Linux/Mac, see 'Configuration File' example in the Annex) or from the register BKG_NTRIP_Server (Windows).
 </p> 
 <p> 
@@ -428,5 +426,5 @@
 <ul>
 <li>
-In Qt-based desktop environments (such as KDE) on Unix/Linux platforms users may experience a crash at startup even when BNS is run in the background using the '-nw' option. This is a known bug most likely resulting from an incompatibility of Qt libraries in the environment and in BNS. Entering the command 'unset SESSION_MANAGER' before running BNS may help as a work-around.
+In Qt-based desktop environments (such as KDE) on Unix/Linux/Mac platforms users may experience a crash at startup even when BNS is run in the background using the '-nw' option. This is a known bug most likely resulting from an incompatibility of Qt libraries in the environment and in BNS. Entering the command 'unset SESSION_MANAGER' before running BNS may help as a work-around.
 </li>
 <li>
@@ -458,5 +456,5 @@
 &nbsp; &nbsp; &nbsp; 7.2.1 RTCM <a href=#ntrip>NTRIP</a><br>
 &nbsp; &nbsp; &nbsp; 7.2.2 RTCM <a href=#rtcm3>Version 3.x</a><br>
-7.3. <a href=#config>Config File</a><br>
+7.3. <a href=#config>Configuration File</a><br>
 7.4. <a href=#links>Links</a><br>
 </p>
@@ -466,5 +464,5 @@
 <table>
 <tr></tr>
-<tr><td>Sep 2008 &nbsp;</td><td>Version 1.0 &nbsp;</td><td>[Add] Beta Binaries published.</td></tr>
+<tr><td>Nov 2008 &nbsp;</td><td>Version 1.0 &nbsp;</td><td>[Add] Source code and binaries published.</td></tr>
 </table>
 </p>
@@ -525,7 +523,7 @@
 </p>
 
-<p><a name="config"><h4>7.3. Config File</h4></p>
-<p>
-The following is an example of the contents of a Unix/Linux configuration file ${HOME}/.config/BKG/BKG_NTRIP_Server.conf. It enables the upload of streams CLCK1 and CLCK2 to www.igs-ip.net. Clock RINEX files and SP3 Orbit files are saved to a directory /home/weber/rinex :
+<p><a name="config"><h4>7.3. Configuration File</h4></p>
+<p>
+The following is an example of the contents of a Unix/Linux/Mac configuration file ${HOME}/.config/BKG/BKG_NTRIP_Server.conf. It enables the upload of streams CLCK1 and CLCK2 to www.igs-ip.net. Clock RINEX files and SP3 Orbit files are saved to a directory /home/weber/rinex :
 </p>
 <p>
@@ -560,4 +558,8 @@
 </p>
 
+<p>
+Note that on Windows systems configuration options are saved in register BKG_NTRIP_Server.
+</p>
+
 <p><a name="links"><h4>7.4 Links</h4></p>
 <table>
