Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Telemtry 2.0 ProfileMsgPack

The Telemetry 2.0 Component must support T2 report profiles in msgPack format.

        1. Parameter Name: Device.X_RDKCENTRAL-COM_T2.ReportProfilesMsgPack

    1. Type: base64 (base64-encoded msgPack)
      Access: Read and Write access
      Persistence: Not persisted
      Factory default: Null string
      Usage: When set, T2.0 will use the value of this parameter to configure its T2 active report profiles, as defined in Configuring Active T2.0 Profiles, below.
  1. The T2.0 Parameter Device.X_RDKCENTRAL-COM_T2.ReportProfiles that accepts T2 report profiles in JSON format will be deprecated. While deprecated, if report profiles are received via both ReportProfiles and ReportProfilesMsgPack, the last configuration received will be respected.
  2. The T2.0 Component must continue to concurrently support the legacy telemetry report profile received from XConf DCM response in JSON format.

Sample JSON Profile

{
  "profiles": [
    {
    "name": "RDKB_WIFI_DM_SSID_PROFILE",
    "hash": "hash1",
    "value": {
    "Description": "Report to DeviceInfo",
    "Version":"2",
    "Protocol":"HTTP",
    "EncodingType":"JSON",
    "ReportingInterval":60,
    "TimeReference":"0001-01-01T00:00:00Z",
    "ActivationTimeout": 120,
    "Parameter": [{
            "type": "dataModel", "name": "CmMac",
            "reference": "Device.DeviceInfo.X_COMCAST-COM_CM_MAC"
        }, {
            "type": "dataModel", "name": "2G-SSID",
            "reference": "Device.WiFi.SSID.1.SSID"
        }, {
            "type": "dataModel", "name": "5G-SSID",
            "reference": "Device.WiFi.SSID.2.SSID"
        }, {
            "type": "dataModel", "name": "2G-Name",
            "reference": "Device.WiFi.Radio.1.Name"
        }, {
            "type": "dataModel", "name": "5G-Name",
            "reference": "Device.WiFi.Radio.2.Name"
        }, {
            "type": "dataModel", "name": "2G-PWD",
            "reference": "Device.WiFi.AccessPoint.1.Security.KeyPassphrase"
        }, {
            "type": "dataModel", "name": "5G-PWD",
            "reference": "Device.WiFi.AccessPoint.2.Security.KeyPassphrase"
        }, {
            "type": "dataModel", "name": "2G-Mode",
            "reference": "Device.WiFi.AccessPoint.1.Security.ModeEnabled"
        }, {
            "type": "dataModel", "name": "5G-Mode",
            "reference": "Device.WiFi.AccessPoint.2.Security.ModeEnabled"
        }, {
            "type": "dataModel", "name": "MemStatUsed",
            "reference": "Device.DeviceInfo.MemoryStatus.Used"
        }, {
            "type": "dataModel", "name": "FrMemThrshld",
            "reference": "Device.DeviceInfo.MemoryStatus.X_RDKCENTRAL-COM_FreeMemThreshold"
        }, {
            "type": "dataModel", "name": "CpuUsage",
            "reference": "Device.DeviceInfo.ProcessStatus.CPUUsage"
        }, {
            "type": "dataModel", "name": "Uptime",
            "reference": "Device.DeviceInfo.UpTime"
        }],
    "HTTP": {
        "URL":"http://35.161.239.220/xconf/telemetry_upload.php",
        "Compression":"None",
        "Method":"POST",
        "RequestURIParameter": [
            {
              "Name": "deviceId",
              "Reference": "Device.DeviceInfo.X_COMCAST-COM_CM_MAC"
            },
            {
              "Name": "reportName",
              "Reference": "Profile.Name"
            }
        ]
    },
    "JSONEncoding": {
        "ReportFormat":"NameValuePair",
        "ReportTimestamp": "None"
    }
   }
   }
  ]
}

Convert JSON into base-64

      We need to convert the above json