Index: trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp
===================================================================
--- trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp	(revision 11221)
+++ trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp	(revision 11227)
@@ -87,4 +87,7 @@
           BNC_CORE, SLOT(slotNewTec(t_vTec)), conType);
 
+  connect(this, SIGNAL(newTecRms(t_vTec)),
+          BNC_CORE, SLOT(slotNewTecRms(t_vTec)), conType);
+
   connect(this, SIGNAL(newMetaData(t_metaData)),
           BNC_CORE, SLOT(slotNewMetaData(t_metaData)), conType);
@@ -111,5 +114,6 @@
   _providerID[2] = -1;
 
-  _vTecMoreFollows = false;
+  _vTecMoreFollows    = false;
+  _vTecRmsMoreFollows = false;
 
   for (unsigned s = 0; s < CLOCKORBIT_SATNUM; s++) {
@@ -143,4 +147,5 @@
   _phaseBiases.clear();
   _vTecMap.clear();
+  _vTecRmsMap.clear();
   _metaDataMap.clear();
   _satAntennas.clear();
@@ -309,5 +314,10 @@
         // VTEC message starts the record of its epoch anew (sendResults())
         if (_vTEC.NumLayers > 0) {
-          _vTecMoreFollows = (irc == GCOBR_MESSAGEFOLLOWS);
+          if (_vTEC.RmsMap) {
+            _vTecRmsMoreFollows = (irc == GCOBR_MESSAGEFOLLOWS);
+          }
+          else {
+            _vTecMoreFollows = (irc == GCOBR_MESSAGEFOLLOWS);
+          }
         }
         // Keep _phaseBias intact: an Extended Phase Bias message (COBOFS_PBEXT)
@@ -682,10 +692,14 @@
     // 400 times (Nov 2026), which summed up to 3900 TECU in PPP and SSR QC.
     // Only the continuation of a multi-message model (previous MMI 1) appends.
-    if (!_vTecMoreFollows) {
-      _vTecMap[_lastTime] = t_vTec();
-    }
-    _vTecMap[_lastTime]._time  = _lastTime;
-    _vTecMap[_lastTime]._updateInt =  _vTEC.UpdateInterval;
-    _vTecMap[_lastTime]._staID = _staID.toStdString();
+    // The RMS of the VTEC (IGS-SSR IM202, same layout) is kept apart: it
+    // goes to the SSR QC only, not to the SSR file or PPP.
+    QMap<bncTime, t_vTec>& tecMap = _vTEC.RmsMap ? _vTecRmsMap : _vTecMap;
+    if (!(_vTEC.RmsMap ? _vTecRmsMoreFollows : _vTecMoreFollows)) {
+      tecMap[_lastTime] = t_vTec();
+    }
+    t_vTec& vTec = tecMap[_lastTime];
+    vTec._time  = _lastTime;
+    vTec._updateInt =  _vTEC.UpdateInterval;
+    vTec._staID = _staID.toStdString();
     for (unsigned ii = 0; ii < _vTEC.NumLayers; ii++) {
       const SsrCorr::VTEC::IonoLayers& ionoLayer = _vTEC.Layers[ii];
@@ -700,5 +714,5 @@
         }
       }
-      _vTecMap[_lastTime]._layers.push_back(layer);
+      vTec._layers.push_back(layer);
     }
   }
@@ -936,4 +950,12 @@
     }
   }
+  QMutableMapIterator<bncTime, t_vTec> itTecRms(_vTecRmsMap);
+  while (itTecRms.hasNext()) {
+    itTecRms.next();
+    if (all || itTecRms.key() < _lastTime) {
+      emit newTecRms(itTecRms.value());
+      itTecRms.remove();
+    }
+  }
   QMutableMapIterator<bncTime, t_metaData> itMD(_metaDataMap);
   while (itMD.hasNext()) {
