Index: trunk/BNC/src/RTCM3/RTCM3Decoder.cpp
===================================================================
--- trunk/BNC/src/RTCM3/RTCM3Decoder.cpp	(revision 11185)
+++ trunk/BNC/src/RTCM3/RTCM3Decoder.cpp	(revision 11191)
@@ -139,4 +139,5 @@
     CurrentObs._time = CurrentObsTime;
     CurrentObs._type = type;
+    CurrentObs._size = int(_currMsg._size);
 
     GETBITS(sv, 6)
@@ -734,4 +735,5 @@
           CurrentObs._time = CurrentObsTime;
           CurrentObs._type = type;
+          CurrentObs._size = int(_currMsg._size);
           if (sys == 'S')
             CurrentObs._prn.set(sys, 20 - 1 + RTCM3_MSM_NUMSAT - i);
@@ -965,4 +967,5 @@
     CurrentObs._time = CurrentObsTime;
     CurrentObs._type = type;
+    CurrentObs._size = int(_currMsg._size);
 
     GETBITS(sv, 6)
@@ -1348,4 +1351,5 @@
     GLOFreq[sv - 1] = 100 + eph._frq_num ; /* store frequency for other users (MSM) */
     _gloFrq = QString("%1 %2").arg(eph._prn.toString().c_str()).arg(eph._frq_num, 2, 'f', 0);
+    _gloFrqSource = _currMsg;
 
     if (eph.validMdata()) {
@@ -2021,4 +2025,5 @@
     memcpy(_antType.back()._descriptor, antenna, antnum);
     _antType.back()._descriptor[antnum] = 0;
+    _antType.back()._source = _currMsg;
   }
   SKIPBITS(8) /* antenna setup ID */
@@ -2041,4 +2046,5 @@
       memcpy(_recType.back()._descriptor, receiver, recnum);
       _recType.back()._descriptor[recnum] = 0;
+      _recType.back()._source = _currMsg;
       if (recfirnum > -1 && recfirnum < 265) {
         memcpy(_recType.back()._firmware, rec_firmware, recfirnum);
@@ -2067,4 +2073,5 @@
   _antList.push_back(t_antRefPoint());
   _antList.back()._type = t_antRefPoint::ARP;
+  _antList.back()._source = _currMsg;
   SKIPBITS(22)
   GETBITSSIGN(x, 38)
@@ -2127,4 +2134,5 @@
   if (_gloBiasInfo != gloBiasInfo) {
     _gloBiasInfo.set(gloBiasInfo);
+    _gloBiasSource = _currMsg;
   }
   return true;
@@ -2153,4 +2161,6 @@
   if (_serviceCrs.empty() ||
       (strncmp(_serviceCrs.back()._name, serviceCrs._name, servicecrsnum) != 0)) {
+    serviceCrs._msgType = _currMsg._type;
+    serviceCrs._msgSize = int(_currMsg._size);
     _serviceCrs.push_back(serviceCrs);
     GETFLOAT(_serviceCrs.back()._CE, 16, 1/100.0)
@@ -2184,4 +2194,6 @@
   if (_rtcmCrs.empty() ||
       (strncmp(_rtcmCrs.back()._name, rtcmCrs._name, rtcmcrsnum) != 0)) {
+    rtcmCrs._msgType = _currMsg._type;
+    rtcmCrs._msgSize = int(_currMsg._size);
     _rtcmCrs.push_back(rtcmCrs);
 
@@ -2248,4 +2260,6 @@
     }
   }
+  helmertPar._msgType = _currMsg._type;
+  helmertPar._msgSize = int(_currMsg._size);
   _helmertPar.push_back(helmertPar);
 
@@ -2300,4 +2314,5 @@
       _typeList.back()._type = id;
       _typeList.back()._size = _BlockSize -6; /* header + crc */
+      _currMsg = _typeList.back();
 
       /* SSR I+II data handled in another function, already pass the
Index: trunk/BNC/src/RTCM3/crs.h
===================================================================
--- trunk/BNC/src/RTCM3/crs.h	(revision 11185)
+++ trunk/BNC/src/RTCM3/crs.h	(revision 11191)
@@ -19,4 +19,6 @@
     _coordinateEpoch = 0;
     _CE              = 0;
+    _msgType         = 0;
+    _msgSize         = 0;
   }
   ~t_serviceCrs() {
@@ -41,4 +43,6 @@
     double   _coordinateEpoch;
     double   _CE;
+    int      _msgType;   // RTCM message of the information (RTCM scan)
+    int      _msgSize;
   };
 
@@ -49,4 +53,6 @@
       _anchor = 0;
       _plateNumber = 0;
+      _msgType = 0;
+      _msgSize = 0;
     }
 
@@ -75,4 +81,6 @@
     int              _plateNumber;      // 0.. unknown, 7.. Eurasia
     QStringList      _databaseLinks;
+    int              _msgType;          // RTCM message of the information (RTCM scan)
+    int              _msgSize;
   };
 
@@ -97,4 +105,6 @@
        _sc  = 0.0;
        _scr = 0.0;
+       _msgType = 0;
+       _msgSize = 0;
      }
 
@@ -190,4 +200,6 @@
      double         _sc;  // scale
      double         _scr; // scale rate
+     int            _msgType; // RTCM message of the information (RTCM scan)
+     int            _msgSize;
    };
 
