
[
  // *********************************************************************************
  {  "name"    : "DMS",
     "type"    : "Service" },

  // *********************************************************************************
  {  "name"    : "QMI Client DMS",
     "type"    : "Client" },

  // *********************************************************************************
  {  "name"    : "QMI Message DMS",
     "type"    : "Message-ID-Enum" },

  // *********************************************************************************
  {  "name"    : "QMI Indication DMS",
     "type"    : "Indication-ID-Enum" },

  // *********************************************************************************
  {  "name"    : "Reset",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0000",
     "version" : "1.0",
     "output"  : [  { "common-ref" : "Operation Result" } ] },

  // *********************************************************************************
  {  "name"    : "Set Event Report",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0001",
     "version" : "1.0",
     "input"   : [  { "name"          : "Power State Reporting",
                      "id"            : "0x10",
                      "mandatory"     : "no",
                      "type"          : "TLV",
                      "format"        : "guint8",
                      "public-format" : "gboolean" },
                    { "name"      : "Battery Level Report Limits",
                      "id"        : "0x11",
                      "mandatory" : "no",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"   : "Lower Limit",
                                        "format" : "guint8" },
                                      { "name"   : "Upper Limit",
                                        "format" : "guint8" } ] },
                    { "name"          : "PIN State Reporting",
                      "id"            : "0x12",
                      "mandatory"     : "no",
                      "type"          : "TLV",
                      "format"        : "guint8",
                      "public-format" : "gboolean" },
                    { "name"          : "Activation State Reporting",
                      "id"            : "0x13",
                      "mandatory"     : "no",
                      "type"          : "TLV",
                      "format"        : "guint8",
                      "public-format" : "gboolean" },
                    { "name"          : "Operating Mode Reporting",
                      "id"            : "0x14",
                      "mandatory"     : "no",
                      "type"          : "TLV",
                      "format"        : "guint8",
                      "public-format" : "gboolean" },
                    { "name"          : "UIM State Reporting",
                      "id"            : "0x15",
                      "mandatory"     : "no",
                      "type"          : "TLV",
                      "format"        : "guint8",
                      "public-format" : "gboolean" },
                    { "name"          : "Wireless Disable State Reporting",
                      "id"            : "0x16",
                      "mandatory"     : "no",
                      "type"          : "TLV",
                      "format"        : "guint8",
                      "public-format" : "gboolean" },
                    { "name"          : "PRL Init Reporting",
                      "id"            : "0x17",
                      "mandatory"     : "no",
                      "type"          : "TLV",
                      "format"        : "guint8",
                      "public-format" : "gboolean" } ],
     "output"  : [  { "common-ref" : "Operation Result" } ] },

  {  "name"    : "Event Report",
     "type"    : "Indication",
     "service" : "DMS",
     "id"      : "0x0001",
     "output"  : [  { "name"      : "Power State",
                      "id"        : "0x10",
                      "mandatory" : "no",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"   : "Power State Flags",
                                        "format" : "guint8" },
                                      { "name"   : "Battery Level",
                                        "format" : "guint8" } ] },
                    { "name"      : "PIN1 Status",
                      "id"        : "0x11",
                      "mandatory" : "no",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"          : "Current Status",
                                        "format"        : "guint8",
                                        "public-format" : "QmiDmsUimPinStatus" },
                                      { "name"   : "Verify Retries Left",
                                        "format" : "guint8" },
                                      { "name"   : "Unblock Retries Left",
                                        "format" : "guint8" } ] },
                    { "name"      : "PIN2 Status",
                      "id"        : "0x12",
                      "mandatory" : "no",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"          : "Current Status",
                                        "format"        : "guint8",
                                        "public-format" : "QmiDmsUimPinStatus" },
                                      { "name"   : "Verify Retries Left",
                                        "format" : "guint8" },
                                      { "name"   : "Unblock Retries Left",
                                        "format" : "guint8" } ] },
                    { "name"          : "Activation State",
                      "id"            : "0x13",
                      "mandatory"     : "no",
                      "type"          : "TLV",
                      "format"        : "guint16",
                      "public-format" : "QmiDmsActivationState" },
                    { "name"          : "Operating Mode",
                      "id"            : "0x14",
                      "mandatory"     : "no",
                      "type"          : "TLV",
                      "format"        : "guint8",
                      "public-format" : "QmiDmsOperatingMode" },
                    { "name"          : "UIM State",
                      "id"            : "0x15",
                      "mandatory"     : "no",
                      "type"          : "TLV",
                      "format"        : "guint8",
                      "public-format" : "QmiDmsUimState" },
                    { "name"          : "Wireless Disable State",
                      "id"            : "0x16",
                      "mandatory"     : "no",
                      "type"          : "TLV",
                      "format"        : "guint8",
                      "public-format" : "gboolean" },
                    { "name"          : "PRL Init Notification",
                      "id"            : "0x17",
                      "mandatory"     : "no",
                      "type"          : "TLV",
                      "format"        : "guint8",
                      "public-format" : "gboolean" } ] },

  // *********************************************************************************
  {  "name"    : "Get Capabilities",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0020",
     "version" : "1.0",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "Info",
                      "id"        : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"   : "Max Tx Channel Rate",
                                        "format" : "guint32" },
                                      { "name"   : "Max Rx Channel Rate",
                                        "format" : "guint32" },
                                      { "name"          : "Data Service Capability",
                                        "format"        : "guint8",
                                        "public-format" : "QmiDmsDataServiceCapability" },
                                      { "name"          : "SIM Capability",
                                        "format"        : "guint8",
                                        "public-format" : "QmiDmsSimCapability" },
                                      { "name"   : "Radio Interface List",
                                        "format" : "array",
                                        "array-element" : { "format"        : "guint8",
                                                            "public-format" : "QmiDmsRadioInterface" } } ],
                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Get Manufacturer",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0021",
     "version" : "1.0",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "Manufacturer",
                      "id"        : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "string",
                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Get Model",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0022",
     "version" : "1.0",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "Model",
                      "id"        : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "string",
                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Get Revision",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0023",
     "version" : "1.0",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "Revision",
                      "id"        : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "string",
                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Get MSISDN",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0024",
     "version" : "1.0",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "MSISDN",
                      "id"        : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "string",
                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Get IDs",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0025",
     "version" : "1.0",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "Esn",
                      "id"        : "0x10",
                      "mandatory" : "no",
                      "type"      : "TLV",
                      "format"    : "string",
                      "prerequisites": [ { "common-ref" : "Success" } ] },
                    { "name"      : "Imei",
                      "id"        : "0x11",
                      "mandatory" : "no",
                      "type"      : "TLV",
                      "format"    : "string",
                      "max-size"  : "15",
                      "prerequisites": [ { "common-ref" : "Success" } ] },
                    { "name"      : "Meid",
                      "id"        : "0x12",
                      "mandatory" : "no",
                      "type"      : "TLV",
                      "format"    : "string",
                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Get Power State",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0026",
     "version" : "1.0",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "Info",
                      "id"        : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"   : "Power State Flags",
                                        "format" : "guint8" },
                                      { "name"   : "Battery Level",
                                        "format" : "guint8" } ],
                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "UIM Set PIN Protection",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0027",
     "version" : "1.1",
     "input"   : [  { "name" : "Info",
                      "id"   : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"          : "Pin ID",
                                        "format"        : "guint8",
                                        "public-format" : "QmiDmsUimPinId" },
                                      { "name"          : "Protection Enabled",
                                        "format"        : "guint8",
                                        "public-format" : "gboolean" },
                                      { "name"   : "PIN",
                                        "format" : "string" } ] } ],
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "Pin Retries Status",
                      "id"        : "0x10",
                      "mandatory" : "no",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"   : "Verify Retries Left",
                                        "format" : "guint8" },
                                      { "name"   : "Unblock Retries Left",
                                        "format" : "guint8" } ],
                      "prerequisites": [ { "common-ref" : "No Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "UIM Verify PIN",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0028",
     "version" : "1.1",
     "input"   : [  { "name" : "Info",
                      "id"   : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"          : "Pin ID",
                                        "format"        : "guint8",
                                        "public-format" : "QmiDmsUimPinId" },
                                      { "name"   : "PIN",
                                        "format" : "string" } ] } ],
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "Pin Retries Status",
                      "id"        : "0x10",
                      "mandatory" : "no",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"   : "Verify Retries Left",
                                        "format" : "guint8" },
                                      { "name"   : "Unblock Retries Left",
                                        "format" : "guint8" } ],
                      "prerequisites": [ { "common-ref" : "No Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "UIM Unblock PIN",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0029",
     "version" : "1.1",
     "input"   : [  { "name" : "Info",
                      "id"   : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"          : "Pin ID",
                                        "format"        : "guint8",
                                        "public-format" : "QmiDmsUimPinId" },
                                      { "name"   : "PUK",
                                        "format" : "string" },
                                      { "name"   : "New PIN",
                                        "format" : "string" } ] } ],
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "Pin Retries Status",
                      "id"        : "0x10",
                      "mandatory" : "no",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"   : "Verify Retries Left",
                                        "format" : "guint8" },
                                      { "name"   : "Unblock Retries Left",
                                        "format" : "guint8" } ],
                      "prerequisites": [ { "common-ref" : "No Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "UIM Change PIN",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x002A",
     "version" : "1.1",
     "input"   : [  { "name" : "Info",
                      "id"   : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"          : "Pin ID",
                                        "format"        : "guint8",
                                        "public-format" : "QmiDmsUimPinId" },
                                      { "name"   : "Old PIN",
                                        "format" : "string" },
                                      { "name"   : "New PIN",
                                        "format" : "string" } ] } ],
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "Pin Retries Status",
                      "id"        : "0x10",
                      "mandatory" : "no",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"   : "Verify Retries Left",
                                        "format" : "guint8" },
                                      { "name"   : "Unblock Retries Left",
                                        "format" : "guint8" } ],
                      "prerequisites": [ { "common-ref" : "No Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "UIM Get PIN Status",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x002B",
     "version" : "1.1",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "PIN1 Status",
                      "id"        : "0x11",
                      "mandatory" : "no",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"          : "Current Status",
                                        "format"        : "guint8",
                                        "public-format" : "QmiDmsUimPinStatus" },
                                      { "name"   : "Verify Retries Left",
                                        "format" : "guint8" },
                                      { "name"   : "Unblock Retries Left",
                                        "format" : "guint8" } ] },
                    { "name"      : "PIN2 Status",
                      "id"        : "0x12",
                      "mandatory" : "no",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"          : "Current Status",
                                        "format"        : "guint8",
                                        "public-format" : "QmiDmsUimPinStatus" },
                                      { "name"   : "Verify Retries Left",
                                        "format" : "guint8" },
                                      { "name"   : "Unblock Retries Left",
                                        "format" : "guint8" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Get Hardware Revision",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x002C",
     "version" : "1.2",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "Revision",
                      "id"        : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "string",
                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Get Operating Mode",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x002D",
     "version" : "1.1",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "Mode",
                      "id"        : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "guint8",
                      "public-format" : "QmiDmsOperatingMode",
                      "prerequisites": [ { "common-ref" : "Success" } ] },
                    { "name"      : "Offline Reason",
                      "id"        : "0x10",
                      "mandatory" : "no",
                      "type"      : "TLV",
                      "format"    : "guint16",
                      "public-format" : "QmiDmsOfflineReason",
                      "prerequisites": [ { "field" : "Mode",
                                           "operation" : "==",
                                           "value" : "QMI_DMS_OPERATING_MODE_OFFLINE" } ] },
                    { "name"      : "Hardware Restricted Mode",
                      "id"        : "0x11",
                      "mandatory" : "no",
                      "type"      : "TLV",
                      "format"    : "guint8",
                      "public-format" : "gboolean",
                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Set Operating Mode",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x002E",
     "version" : "1.1",
     "input"   : [  { "name"      : "Mode",
                      "id"        : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "guint8",
                      "public-format" : "QmiDmsOperatingMode" } ],
     "output"  : [  { "common-ref" : "Operation Result" } ] },

  // *********************************************************************************
  {  "name"    : "Get Time",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x002F",
     "version" : "1.3",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "Device Time",
                      "id"        : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"          : "Time Count",
                                        "format"        : "guint-sized",
                                        "guint-size"    : "6" },
                                      { "name"          : "Time Source",
                                        "format"        : "guint16",
                                        "public-format" : "QmiDmsTimeSource" } ],
                      "prerequisites": [ { "common-ref" : "Success" } ] },
                    { "name"      : "System Time",
                      "id"        : "0x10",
                      "mandatory" : "no",
                      "type"      : "TLV",
                      "format"    : "guint64",
                      "prerequisites": [ { "common-ref" : "Success" } ] },
                    { "name"      : "User Time",
                      "id"        : "0x11",
                      "mandatory" : "no",
                      "type"      : "TLV",
                      "format"    : "guint64",
                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Get PRL Version",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0030",
     "version" : "1.3",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "Version",
                      "id"        : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "guint16",
                      "prerequisites": [ { "common-ref" : "Success" } ] },
                    { "name"          : "PRL Only Preference",
                      "id"            : "0x10",
                      "mandatory"     : "no",
                      "type"          : "TLV",
                      "format"        : "guint8",
                      "public-format" : "gboolean",
                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Get Activation State",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0031",
     "version" : "1.3",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"          : "Info",
                      "id"            : "0x01",
                      "mandatory"     : "yes",
                      "type"          : "TLV",
                      "format"        : "guint16",
                      "public-format" : "QmiDmsActivationState",
                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Activate Automatic",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0032",
     "version" : "1.3",
     "input"   : [  { "name"               : "Activation Code",
                      "id"                 : "0x01",
                      "mandatory"          : "yes",
                      "type"               : "TLV",
                      "format"             : "string",
                      "size-prefix-format" : "guint8" } ],
     "output"  : [  { "common-ref" : "Operation Result" } ] },

  // *********************************************************************************
  {  "name"    : "Activate Manual",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0033",
     "version" : "1.3",
     "input"   : [  { "name"      : "Info",
                      "id"        : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"       : "Service Programming Code",
                                        "format"     : "string",
                                        "fixed-size" : "6" },
                                      { "name"   : "System Identification Number",
                                        "format" : "guint16" },
                                      { "name"     : "Mobile Directory Number",
                                        "format"   : "string",
                                        "max-size" : "15" },
                                      { "name"     : "Mobile Identification Number",
                                        "format"   : "string",
                                        "max-size" : "15" } ] },
                    { "name"               : "MN HA key",
                      "id"                 : "0x11",
                      "mandatory"          : "no",
                      "type"               : "TLV",
                      "format"             : "string",
                      "max-size"           : "16",
                      "size-prefix-format" : "guint8" },
                    { "name"               : "MN AAA key",
                      "id"                 : "0x12",
                      "mandatory"          : "no",
                      "type"               : "TLV",
                      "format"             : "string",
                      "max-size"           : "16",
                      "size-prefix-format" : "guint8" },
                    { "name"      : "PRL",
                      "id"        : "0x13",
                      "mandatory" : "no",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"   : "PRL total length",
                                        "format" : "guint16" },
                                      { "name"   : "PRL segment",
                                        "format"                 : "array",
                                        "size-prefix-format"     : "guint16",
                                        "sequence-prefix-format" : "guint8",
                                        "array-element"          : { "format" : "guint8" } } ] } ],
     "output"  : [  { "common-ref" : "Operation Result" } ] },

  // *********************************************************************************
  {  "name"    : "Get User Lock State",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0034",
     "version" : "1.3",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"          : "Enabled",
                      "id"            : "0x01",
                      "mandatory"     : "yes",
                      "type"          : "TLV",
                      "format"        : "guint8",
                      "public-format" : "gboolean",
                      "prerequisites" : [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Set User Lock State",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0035",
     "version" : "1.3",
     "input"   : [  { "name"      : "Info",
                      "id"        : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"          : "Enabled",
                                        "format"        : "guint8",
                                        "public-format" : "gboolean" },
                                      { "name"       : "Lock Code",
                                        "format"     : "string",
                                        "fixed-size" : "4" } ] } ],
     "output"  : [  { "common-ref" : "Operation Result" } ] },

  // *********************************************************************************
  {  "name"    : "Set User Lock Code",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0036",
     "version" : "1.3",
     "input"   : [  { "name"      : "Info",
                      "id"        : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"       : "Old Code",
                                        "format"     : "string",
                                        "fixed-size" : "4" },
                                      { "name"       : "New Code",
                                        "format"     : "string",
                                        "fixed-size" : "4" } ] } ],
     "output"  : [  { "common-ref" : "Operation Result" } ] },

  // *********************************************************************************
  {  "name"    : "Read User Data",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0037",
     "version" : "1.6",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"               : "User Data",
                      "id"                 : "0x01",
                      "mandatory"          : "yes",
                      "type"               : "TLV",
                      "format"             : "array",
                      "size-prefix-format" : "guint16",
                      "array-element"      : { "format" : "guint8" },
                      "prerequisites"      : [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Write User Data",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0038",
     "version" : "1.6",
     "input"   : [ { "name"               : "User Data",
                     "id"                 : "0x01",
                     "mandatory"          : "yes",
                     "type"               : "TLV",
                     "format"             : "array",
                     "size-prefix-format" : "guint16",
                     "array-element"      : { "format" : "guint8" } } ],
     "output"  : [ { "common-ref" : "Operation Result" } ] },

  // *********************************************************************************
  {  "name"    : "Read ERI File",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0039",
     "version" : "1.6",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"               : "ERI File",
                      "id"                 : "0x01",
                      "mandatory"          : "yes",
                      "type"               : "TLV",
                      "format"             : "array",
                      "size-prefix-format" : "guint16",
                      "array-element"      : { "format" : "guint8" },
                      "prerequisites"      : [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Restore Factory Defaults",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x003A",
     "version" : "1.6",
     "input"   : [  { "name"          : "Service Programming Code",
                      "id"            : "0x01",
                      "mandatory"     : "yes",
                      "type"          : "TLV",
                      "format"        : "string",
                      "fixed-size"    : "6" } ],
     "output"  : [  { "common-ref" : "Operation Result" } ] },

  // *********************************************************************************
  {  "name"    : "Validate Service Programming Code",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x003B",
     "version" : "1.3",
     "input"   : [  { "name"          : "Service Programming Code",
                      "id"            : "0x01",
                      "mandatory"     : "yes",
                      "type"          : "TLV",
                      "format"        : "string",
                      "fixed-size"    : "6" } ],
     "output"  : [  { "common-ref" : "Operation Result" } ] },

  // *********************************************************************************
  {  "name"    : "UIM Get ICCID",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x003C",
     "version" : "1.3",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "ICCID",
                      "id"        : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "string",
                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "UIM Get CK Status",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0040",
     "version" : "1.3",
     "input"   : [  { "name"          : "Facility",
                      "id"            : "0x01",
                      "mandatory"     : "yes",
                      "type"          : "TLV",
                      "format"        : "guint8",
                      "public-format" : "QmiDmsUimFacility" } ],
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "CK Status",
                      "id"        : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"          : "Facility State",
                                        "format"        : "guint8",
                                        "public-format" : "QmiDmsUimFacilityState" },
                                      { "name"   : "Verify Retries Left",
                                        "format" : "guint8" },
                                      { "name"   : "Unblock Retries Left",
                                        "format" : "guint8" } ],
                      "prerequisites": [ { "common-ref" : "Success" } ] },
                    { "name"      : "Operation Blocking Facility",
                      "id"        : "0x10",
                      "mandatory" : "false",
                      "type"      : "TLV",
                      "format"    : "guint8",
                      "public-format" : "gboolean",
                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "UIM Set CK Protection",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0041",
     "version" : "1.3",
     "input"   : [  { "name"      : "Facility",
                      "id"        : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"          : "Facility",
                                        "format"        : "guint8",
                                        "public-format" : "QmiDmsUimFacility" },
                                      { "name"          : "Facility State",
                                        "format"        : "guint8",
                                        "public-format" : "QmiDmsUimFacilityState" },
                                      { "name"   : "Facility Depersonalization Control Key",
                                        "format" : "string" } ] } ],
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "Verify Retries Left",
                      "id"        : "0x10",
                      "mandatory" : "no",
                      "type"      : "TLV",
                      "format"    : "guint8" } ] },

  // *********************************************************************************
  {  "name"    : "UIM Unblock CK",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0042",
     "version" : "1.3",
     "input"   : [  { "name"      : "Facility",
                      "id"        : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "sequence",
                      "contents"  : [ { "name"          : "Facility",
                                        "format"        : "guint8",
                                        "public-format" : "QmiDmsUimFacility" },
                                      { "name"   : "Facility Control Key",
                                        "format" : "string" } ] } ],
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "Unblock Retries Left",
                      "id"        : "0x10",
                      "mandatory" : "no",
                      "type"      : "TLV",
                      "format"    : "guint8" } ] },

  // *********************************************************************************
  {  "name"    : "UIM Get IMSI",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0043",
     "version" : "1.3",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"      : "IMSI",
                      "id"        : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "string",
                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "UIM Get State",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0044",
     "version" : "1.3",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"          : "State",
                      "id"            : "0x01",
                      "mandatory"     : "yes",
                      "type"          : "TLV",
                      "format"        : "guint8",
                      "public-format" : "QmiDmsUimState",
                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Get Band Capabilities",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0045",
     "version" : "1.3",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"          : "Band Capability",
                      "id"            : "0x01",
                      "mandatory"     : "yes",
                      "type"          : "TLV",
                      "format"        : "guint64",
                      "public-format" : "QmiDmsBandCapability",
                      "prerequisites": [ { "common-ref" : "Success" } ] },
                    { "name"          : "LTE Band Capability",
                      "id"            : "0x10",
                      "mandatory"     : "no",
                      "type"          : "TLV",
                      "format"        : "guint64",
                      "public-format" : "QmiDmsLteBandCapability",
                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Get Factory SKU",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0046",
     "version" : "1.6",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"         : "SKU",
                      "id"           : "0x01",
                      "mandatory"    : "yes",
                      "type"         : "TLV",
                      "format"       : "string",
                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Get Firmware Preference",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0047",
     "version" : "1.3",
     "output"  : [ { "common-ref" : "Operation Result" },
                   { "name"          : "List",
                     "id"            : "0x01",
                     "mandatory"     : "yes",
                     "type"          : "TLV",
                     "format"        : "array",
                     "array-element" : { "name"     : "Image",
                                         "format"   : "struct",
                                         "contents" : [ { "name"          : "Type",
                                                          "format"        : "guint8",
                                                          "public-format" : "QmiDmsFirmwareImageType" },
                                                        { "name"          : "Unique ID",
                                                          "format"        : "array",
                                                          "fixed-size"    : "16",
                                                          "array-element" : { "format": "guint8" } },
                                                        { "name"   : "Build ID",
                                                          "format" : "string" } ] },
                     "prerequisites"   : [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Set Firmware Preference",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0048",
     "version" : "1.3",
     "input"   : [ { "name"          : "List",
                     "id"            : "0x01",
                     "mandatory"     : "yes",
                     "type"          : "TLV",
                     "format"        : "array",
                     "array-element" : { "name"     : "Image",
                                         "format"   : "struct",
                                         "contents" : [ { "name"          : "Type",
                                                          "format"        : "guint8",
                                                          "public-format" : "QmiDmsFirmwareImageType" },
                                                        { "name"          : "Unique ID",
                                                          "format"        : "array",
                                                          "fixed-size"    : "16",
                                                          "array-element" : { "format": "guint8" } },
                                                        { "name"   : "Build ID",
                                                          "format" : "string" } ] } },
                   { "name"          : "Download Override",
                     "id"            : "0x10",
                     "mandatory"     : "no",
                     "type"          : "TLV",
                     "format"        : "guint8",
                     "public-format" : "gboolean" },
                   { "name"          : "Modem Storage Index",
                     "id"            : "0x11",
                     "mandatory"     : "no",
                     "type"          : "TLV",
                     "format"        : "guint8" } ],
     "output"  : [ { "common-ref" : "Operation Result" },
                   { "name"          : "Image Download List",
                     "id"            : "0x01",
                     "mandatory"     : "yes",
                     "type"          : "TLV",
                     "format"        : "array",
                     "array-element" : { "name"     : "Image Type",
                                         "format"   : "guint8",
                                         "public-format" : "QmiDmsFirmwareImageType" },
                     "prerequisites"   : [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "List Stored Images",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0049",
     "version" : "1.3",
     "output"  : [ { "common-ref" : "Operation Result" },
                   { "name"          : "List",
                     "id"            : "0x01",
                     "mandatory"     : "yes",
                     "type"          : "TLV",
                     "format"        : "array",
                     "array-element" : { "name"     : "Image",
                                         "format"   : "struct",
                                         "contents" : [ { "name"          : "Type",
                                                          "format"        : "guint8",
                                                          "public-format" : "QmiDmsFirmwareImageType" },
                                                        { "name"   : "Maximum Images",
                                                          "format" : "guint8" },
                                                        { "name"   : "Index Of Running Image",
                                                          "format" : "guint8" },
                                                        { "name"          : "Sublist",
                                                          "format"        : "array",
                                                          "array-element" : { "name"     : "Sublist Element",
                                                                              "format"   : "struct",
                                                                              "contents" : [ { "name"   : "Storage Index",
                                                                                               "format" : "guint8" },
                                                                                             { "name"   : "Failure Count",
                                                                                               "format" : "guint8" },
                                                                                             { "name"          : "Unique ID",
                                                                                               "format"        : "array",
                                                                                               "fixed-size"    : "16",
                                                                                               "array-element" : { "format": "guint8" } },
                                                                                             { "name"   : "Build ID",
                                                                                               "format" : "string" } ] } } ] },
                     "prerequisites" : [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Delete Stored Image",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x004A",
     "version" : "1.3",
     "input"   : [ { "name"      : "Image",
                     "id"        : "0x01",
                     "mandatory" : "yes",
                     "type"      : "TLV",
                     "format"    : "struct",
                     "contents"  : [ { "name"          : "Type",
                                       "format"        : "guint8",
                                       "public-format" : "QmiDmsFirmwareImageType" },
                                     { "name"          : "Unique ID",
                                       "format"        : "array",
                                       "fixed-size"    : "16",
                                       "array-element" : { "format": "guint8" } },
                                     { "name"   : "Build ID",
                                       "format" : "string" } ] } ],
     "output"  : [ { "common-ref" : "Operation Result" } ] },

  // *********************************************************************************
  {  "name"    : "Set Time",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x004B",
     "version" : "1.4",
     "input"   : [  { "name"      : "Time Value",
                      "id"        : "0x01",
                      "mandatory" : "yes",
                      "type"      : "TLV",
                      "format"    : "guint64" },
                    { "name"          : "Time Reference Type",
                      "id"            : "0x10",
                      "mandatory"     : "yes",
                      "type"          :  "TLV",
                      "format"        : "guint32",
                      "public-format" : "QmiDmsTimeReferenceType" } ],
     "output"  : [  { "common-ref" : "Operation Result" } ] },

  // *********************************************************************************
  {  "name"    : "Get Stored Image Info",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x004C",
     "version" : "1.3",
     "input"   : [ { "name"      : "Image",
                     "id"        : "0x01",
                     "mandatory" : "yes",
                     "type"      : "TLV",
                     "format"    : "struct",
                     "contents"  : [ { "name"          : "Type",
                                       "format"        : "guint8",
                                       "public-format" : "QmiDmsFirmwareImageType" },
                                     { "name"          : "Unique ID",
                                       "format"        : "array",
                                       "fixed-size"    : "16",
                                       "array-element" : { "format": "guint8" } },
                                     { "name"   : "Build ID",
                                       "format" : "string" } ] } ],
     "output"  : [ { "common-ref" : "Operation Result" },
                   { "name"         : "Boot Version",
                     "id"           : "0x10",
                     "mandatory"    : "no",
                     "type"         : "TLV",
                     "format"       : "sequence",
                     "contents"     : [ { "name"   : "Major Version",
                                        "format" : "guint16" },
                                      { "name"   : "Minor Version",
                                        "format" : "guint16" } ],
                     "prerequisites": [ { "common-ref" : "Success" } ] },
                   { "name"         : "PRI Version",
                     "id"           : "0x11",
                     "mandatory"    : "no",
                     "type"         : "TLV",
                     "format"       : "sequence",
                     "contents"     : [ { "name"   : "PRI Version",
                                          "format" : "guint32" },
                                        { "name"       : "PRI Info",
                                          "format"     : "string",
                                          "fixed-size" : "32" } ],
                     "prerequisites": [ { "common-ref" : "Success" } ] },
                   { "name"         : "OEM Lock ID",
                     "id"           : "0x12",
                     "mandatory"    : "no",
                     "type"         : "TLV",
                     "format"       : "guint32",
                     "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Get Alt Net Config",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x004D",
     "version" : "1.6",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"          : "Config",
                      "id"            : "0x01",
                      "mandatory"     : "yes",
                      "type"          : "TLV",
                      "format"        : "guint8",
                      "public-format" : "gboolean",
                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Set Alt Net Config",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x004E",
     "version" : "1.6",
     "input"   : [  { "name"          : "Config",
                      "id"            : "0x01",
                      "mandatory"     : "yes",
                      "type"          : "TLV",
                      "format"        : "guint8",
                      "public-format" : "gboolean" } ],
     "output"  : [  { "common-ref" : "Operation Result" } ] },

  // *********************************************************************************
  {  "name"    : "Get Software Version",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0051",
     "version" : "1.5",
     "output"  : [  { "common-ref" : "Operation Result" },
                    { "name"          : "Version",
                      "id"            : "0x01",
                      "mandatory"     : "yes",
                      "type"          : "TLV",
                      "format"        : "string",
                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },

  // *********************************************************************************
  {  "name"    : "Set Service Programming Code",
     "type"    : "Message",
     "service" : "DMS",
     "id"      : "0x0052",
     "version" : "1.5",
     "input"   : [  { "name"       : "Current",
                      "id"         : "0x01",
                      "mandatory"  : "yes",
                      "type"       : "TLV",
                      "format"     : "string",
                      "fixed-size" : "6" },
                    { "name"       : "New",
                      "id"         : "0x02",
                      "mandatory"  : "yes",
                      "type"       : "TLV",
                      "format"     : "string",
                      "fixed-size" : "6" } ],
     "output"  : [  { "common-ref" : "Operation Result" } ] }

]
