fix generated code for allocating arrays
[project/uqmi.git] / data / qmi-service-dms.json
1
2 [
3   // *********************************************************************************
4   {  "name"    : "DMS",
5      "type"    : "Service" },
6
7   // *********************************************************************************
8   {  "name"    : "QMI Client DMS",
9      "type"    : "Client" },
10
11   // *********************************************************************************
12   {  "name"    : "QMI Message DMS",
13      "type"    : "Message-ID-Enum" },
14
15   // *********************************************************************************
16   {  "name"    : "QMI Indication DMS",
17      "type"    : "Indication-ID-Enum" },
18
19   // *********************************************************************************
20   {  "name"    : "Reset",
21      "type"    : "Message",
22      "service" : "DMS",
23      "id"      : "0x0000",
24      "version" : "1.0",
25      "output"  : [  { "common-ref" : "Operation Result" } ] },
26
27   // *********************************************************************************
28   {  "name"    : "Set Event Report",
29      "type"    : "Message",
30      "service" : "DMS",
31      "id"      : "0x0001",
32      "version" : "1.0",
33      "input"   : [  { "name"          : "Power State Reporting",
34                       "id"            : "0x10",
35                       "mandatory"     : "no",
36                       "type"          : "TLV",
37                       "format"        : "guint8",
38                       "public-format" : "gboolean" },
39                     { "name"      : "Battery Level Report Limits",
40                       "id"        : "0x11",
41                       "mandatory" : "no",
42                       "type"      : "TLV",
43                       "format"    : "sequence",
44                       "contents"  : [ { "name"   : "Lower Limit",
45                                         "format" : "guint8" },
46                                       { "name"   : "Upper Limit",
47                                         "format" : "guint8" } ] },
48                     { "name"          : "PIN State Reporting",
49                       "id"            : "0x12",
50                       "mandatory"     : "no",
51                       "type"          : "TLV",
52                       "format"        : "guint8",
53                       "public-format" : "gboolean" },
54                     { "name"          : "Activation State Reporting",
55                       "id"            : "0x13",
56                       "mandatory"     : "no",
57                       "type"          : "TLV",
58                       "format"        : "guint8",
59                       "public-format" : "gboolean" },
60                     { "name"          : "Operating Mode Reporting",
61                       "id"            : "0x14",
62                       "mandatory"     : "no",
63                       "type"          : "TLV",
64                       "format"        : "guint8",
65                       "public-format" : "gboolean" },
66                     { "name"          : "UIM State Reporting",
67                       "id"            : "0x15",
68                       "mandatory"     : "no",
69                       "type"          : "TLV",
70                       "format"        : "guint8",
71                       "public-format" : "gboolean" },
72                     { "name"          : "Wireless Disable State Reporting",
73                       "id"            : "0x16",
74                       "mandatory"     : "no",
75                       "type"          : "TLV",
76                       "format"        : "guint8",
77                       "public-format" : "gboolean" },
78                     { "name"          : "PRL Init Reporting",
79                       "id"            : "0x17",
80                       "mandatory"     : "no",
81                       "type"          : "TLV",
82                       "format"        : "guint8",
83                       "public-format" : "gboolean" } ],
84      "output"  : [  { "common-ref" : "Operation Result" } ] },
85
86   {  "name"    : "Event Report",
87      "type"    : "Indication",
88      "service" : "DMS",
89      "id"      : "0x0001",
90      "output"  : [  { "name"      : "Power State",
91                       "id"        : "0x10",
92                       "mandatory" : "no",
93                       "type"      : "TLV",
94                       "format"    : "sequence",
95                       "contents"  : [ { "name"   : "Power State Flags",
96                                         "format" : "guint8" },
97                                       { "name"   : "Battery Level",
98                                         "format" : "guint8" } ] },
99                     { "name"      : "PIN1 Status",
100                       "id"        : "0x11",
101                       "mandatory" : "no",
102                       "type"      : "TLV",
103                       "format"    : "sequence",
104                       "contents"  : [ { "name"          : "Current Status",
105                                         "format"        : "guint8",
106                                         "public-format" : "QmiDmsUimPinStatus" },
107                                       { "name"   : "Verify Retries Left",
108                                         "format" : "guint8" },
109                                       { "name"   : "Unblock Retries Left",
110                                         "format" : "guint8" } ] },
111                     { "name"      : "PIN2 Status",
112                       "id"        : "0x12",
113                       "mandatory" : "no",
114                       "type"      : "TLV",
115                       "format"    : "sequence",
116                       "contents"  : [ { "name"          : "Current Status",
117                                         "format"        : "guint8",
118                                         "public-format" : "QmiDmsUimPinStatus" },
119                                       { "name"   : "Verify Retries Left",
120                                         "format" : "guint8" },
121                                       { "name"   : "Unblock Retries Left",
122                                         "format" : "guint8" } ] },
123                     { "name"          : "Activation State",
124                       "id"            : "0x13",
125                       "mandatory"     : "no",
126                       "type"          : "TLV",
127                       "format"        : "guint16",
128                       "public-format" : "QmiDmsActivationState" },
129                     { "name"          : "Operating Mode",
130                       "id"            : "0x14",
131                       "mandatory"     : "no",
132                       "type"          : "TLV",
133                       "format"        : "guint8",
134                       "public-format" : "QmiDmsOperatingMode" },
135                     { "name"          : "UIM State",
136                       "id"            : "0x15",
137                       "mandatory"     : "no",
138                       "type"          : "TLV",
139                       "format"        : "guint8",
140                       "public-format" : "QmiDmsUimState" },
141                     { "name"          : "Wireless Disable State",
142                       "id"            : "0x16",
143                       "mandatory"     : "no",
144                       "type"          : "TLV",
145                       "format"        : "guint8",
146                       "public-format" : "gboolean" },
147                     { "name"          : "PRL Init Notification",
148                       "id"            : "0x17",
149                       "mandatory"     : "no",
150                       "type"          : "TLV",
151                       "format"        : "guint8",
152                       "public-format" : "gboolean" } ] },
153
154   // *********************************************************************************
155   {  "name"    : "Get Capabilities",
156      "type"    : "Message",
157      "service" : "DMS",
158      "id"      : "0x0020",
159      "version" : "1.0",
160      "output"  : [  { "common-ref" : "Operation Result" },
161                     { "name"      : "Info",
162                       "id"        : "0x01",
163                       "mandatory" : "yes",
164                       "type"      : "TLV",
165                       "format"    : "sequence",
166                       "contents"  : [ { "name"   : "Max Tx Channel Rate",
167                                         "format" : "guint32" },
168                                       { "name"   : "Max Rx Channel Rate",
169                                         "format" : "guint32" },
170                                       { "name"          : "Data Service Capability",
171                                         "format"        : "guint8",
172                                         "public-format" : "QmiDmsDataServiceCapability" },
173                                       { "name"          : "SIM Capability",
174                                         "format"        : "guint8",
175                                         "public-format" : "QmiDmsSimCapability" },
176                                       { "name"   : "Radio Interface List",
177                                         "format" : "array",
178                                         "array-element" : { "format"        : "guint8",
179                                                             "public-format" : "QmiDmsRadioInterface" } } ],
180                       "prerequisites": [ { "common-ref" : "Success" } ] } ] },
181
182   // *********************************************************************************
183   {  "name"    : "Get Manufacturer",
184      "type"    : "Message",
185      "service" : "DMS",
186      "id"      : "0x0021",
187      "version" : "1.0",
188      "output"  : [  { "common-ref" : "Operation Result" },
189                     { "name"      : "Manufacturer",
190                       "id"        : "0x01",
191                       "mandatory" : "yes",
192                       "type"      : "TLV",
193                       "format"    : "string",
194                       "prerequisites": [ { "common-ref" : "Success" } ] } ] },
195
196   // *********************************************************************************
197   {  "name"    : "Get Model",
198      "type"    : "Message",
199      "service" : "DMS",
200      "id"      : "0x0022",
201      "version" : "1.0",
202      "output"  : [  { "common-ref" : "Operation Result" },
203                     { "name"      : "Model",
204                       "id"        : "0x01",
205                       "mandatory" : "yes",
206                       "type"      : "TLV",
207                       "format"    : "string",
208                       "prerequisites": [ { "common-ref" : "Success" } ] } ] },
209
210   // *********************************************************************************
211   {  "name"    : "Get Revision",
212      "type"    : "Message",
213      "service" : "DMS",
214      "id"      : "0x0023",
215      "version" : "1.0",
216      "output"  : [  { "common-ref" : "Operation Result" },
217                     { "name"      : "Revision",
218                       "id"        : "0x01",
219                       "mandatory" : "yes",
220                       "type"      : "TLV",
221                       "format"    : "string",
222                       "prerequisites": [ { "common-ref" : "Success" } ] } ] },
223
224   // *********************************************************************************
225   {  "name"    : "Get MSISDN",
226      "type"    : "Message",
227      "service" : "DMS",
228      "id"      : "0x0024",
229      "version" : "1.0",
230      "output"  : [  { "common-ref" : "Operation Result" },
231                     { "name"      : "MSISDN",
232                       "id"        : "0x01",
233                       "mandatory" : "yes",
234                       "type"      : "TLV",
235                       "format"    : "string",
236                       "prerequisites": [ { "common-ref" : "Success" } ] } ] },
237
238   // *********************************************************************************
239   {  "name"    : "Get IDs",
240      "type"    : "Message",
241      "service" : "DMS",
242      "id"      : "0x0025",
243      "version" : "1.0",
244      "output"  : [  { "common-ref" : "Operation Result" },
245                     { "name"      : "Esn",
246                       "id"        : "0x10",
247                       "mandatory" : "no",
248                       "type"      : "TLV",
249                       "format"    : "string",
250                       "prerequisites": [ { "common-ref" : "Success" } ] },
251                     { "name"      : "Imei",
252                       "id"        : "0x11",
253                       "mandatory" : "no",
254                       "type"      : "TLV",
255                       "format"    : "string",
256                       "max-size"  : "15",
257                       "prerequisites": [ { "common-ref" : "Success" } ] },
258                     { "name"      : "Meid",
259                       "id"        : "0x12",
260                       "mandatory" : "no",
261                       "type"      : "TLV",
262                       "format"    : "string",
263                       "prerequisites": [ { "common-ref" : "Success" } ] } ] },
264
265   // *********************************************************************************
266   {  "name"    : "Get Power State",
267      "type"    : "Message",
268      "service" : "DMS",
269      "id"      : "0x0026",
270      "version" : "1.0",
271      "output"  : [  { "common-ref" : "Operation Result" },
272                     { "name"      : "Info",
273                       "id"        : "0x01",
274                       "mandatory" : "yes",
275                       "type"      : "TLV",
276                       "format"    : "sequence",
277                       "contents"  : [ { "name"   : "Power State Flags",
278                                         "format" : "guint8" },
279                                       { "name"   : "Battery Level",
280                                         "format" : "guint8" } ],
281                       "prerequisites": [ { "common-ref" : "Success" } ] } ] },
282
283   // *********************************************************************************
284   {  "name"    : "UIM Set PIN Protection",
285      "type"    : "Message",
286      "service" : "DMS",
287      "id"      : "0x0027",
288      "version" : "1.1",
289      "input"   : [  { "name" : "Info",
290                       "id"   : "0x01",
291                       "mandatory" : "yes",
292                       "type"      : "TLV",
293                       "format"    : "sequence",
294                       "contents"  : [ { "name"          : "Pin ID",
295                                         "format"        : "guint8",
296                                         "public-format" : "QmiDmsUimPinId" },
297                                       { "name"          : "Protection Enabled",
298                                         "format"        : "guint8",
299                                         "public-format" : "gboolean" },
300                                       { "name"   : "PIN",
301                                         "format" : "string" } ] } ],
302      "output"  : [  { "common-ref" : "Operation Result" },
303                     { "name"      : "Pin Retries Status",
304                       "id"        : "0x10",
305                       "mandatory" : "no",
306                       "type"      : "TLV",
307                       "format"    : "sequence",
308                       "contents"  : [ { "name"   : "Verify Retries Left",
309                                         "format" : "guint8" },
310                                       { "name"   : "Unblock Retries Left",
311                                         "format" : "guint8" } ],
312                       "prerequisites": [ { "common-ref" : "No Success" } ] } ] },
313
314   // *********************************************************************************
315   {  "name"    : "UIM Verify PIN",
316      "type"    : "Message",
317      "service" : "DMS",
318      "id"      : "0x0028",
319      "version" : "1.1",
320      "input"   : [  { "name" : "Info",
321                       "id"   : "0x01",
322                       "mandatory" : "yes",
323                       "type"      : "TLV",
324                       "format"    : "sequence",
325                       "contents"  : [ { "name"          : "Pin ID",
326                                         "format"        : "guint8",
327                                         "public-format" : "QmiDmsUimPinId" },
328                                       { "name"   : "PIN",
329                                         "format" : "string" } ] } ],
330      "output"  : [  { "common-ref" : "Operation Result" },
331                     { "name"      : "Pin Retries Status",
332                       "id"        : "0x10",
333                       "mandatory" : "no",
334                       "type"      : "TLV",
335                       "format"    : "sequence",
336                       "contents"  : [ { "name"   : "Verify Retries Left",
337                                         "format" : "guint8" },
338                                       { "name"   : "Unblock Retries Left",
339                                         "format" : "guint8" } ],
340                       "prerequisites": [ { "common-ref" : "No Success" } ] } ] },
341
342   // *********************************************************************************
343   {  "name"    : "UIM Unblock PIN",
344      "type"    : "Message",
345      "service" : "DMS",
346      "id"      : "0x0029",
347      "version" : "1.1",
348      "input"   : [  { "name" : "Info",
349                       "id"   : "0x01",
350                       "mandatory" : "yes",
351                       "type"      : "TLV",
352                       "format"    : "sequence",
353                       "contents"  : [ { "name"          : "Pin ID",
354                                         "format"        : "guint8",
355                                         "public-format" : "QmiDmsUimPinId" },
356                                       { "name"   : "PUK",
357                                         "format" : "string" },
358                                       { "name"   : "New PIN",
359                                         "format" : "string" } ] } ],
360      "output"  : [  { "common-ref" : "Operation Result" },
361                     { "name"      : "Pin Retries Status",
362                       "id"        : "0x10",
363                       "mandatory" : "no",
364                       "type"      : "TLV",
365                       "format"    : "sequence",
366                       "contents"  : [ { "name"   : "Verify Retries Left",
367                                         "format" : "guint8" },
368                                       { "name"   : "Unblock Retries Left",
369                                         "format" : "guint8" } ],
370                       "prerequisites": [ { "common-ref" : "No Success" } ] } ] },
371
372   // *********************************************************************************
373   {  "name"    : "UIM Change PIN",
374      "type"    : "Message",
375      "service" : "DMS",
376      "id"      : "0x002A",
377      "version" : "1.1",
378      "input"   : [  { "name" : "Info",
379                       "id"   : "0x01",
380                       "mandatory" : "yes",
381                       "type"      : "TLV",
382                       "format"    : "sequence",
383                       "contents"  : [ { "name"          : "Pin ID",
384                                         "format"        : "guint8",
385                                         "public-format" : "QmiDmsUimPinId" },
386                                       { "name"   : "Old PIN",
387                                         "format" : "string" },
388                                       { "name"   : "New PIN",
389                                         "format" : "string" } ] } ],
390      "output"  : [  { "common-ref" : "Operation Result" },
391                     { "name"      : "Pin Retries Status",
392                       "id"        : "0x10",
393                       "mandatory" : "no",
394                       "type"      : "TLV",
395                       "format"    : "sequence",
396                       "contents"  : [ { "name"   : "Verify Retries Left",
397                                         "format" : "guint8" },
398                                       { "name"   : "Unblock Retries Left",
399                                         "format" : "guint8" } ],
400                       "prerequisites": [ { "common-ref" : "No Success" } ] } ] },
401
402   // *********************************************************************************
403   {  "name"    : "UIM Get PIN Status",
404      "type"    : "Message",
405      "service" : "DMS",
406      "id"      : "0x002B",
407      "version" : "1.1",
408      "output"  : [  { "common-ref" : "Operation Result" },
409                     { "name"      : "PIN1 Status",
410                       "id"        : "0x11",
411                       "mandatory" : "no",
412                       "type"      : "TLV",
413                       "format"    : "sequence",
414                       "contents"  : [ { "name"          : "Current Status",
415                                         "format"        : "guint8",
416                                         "public-format" : "QmiDmsUimPinStatus" },
417                                       { "name"   : "Verify Retries Left",
418                                         "format" : "guint8" },
419                                       { "name"   : "Unblock Retries Left",
420                                         "format" : "guint8" } ] },
421                     { "name"      : "PIN2 Status",
422                       "id"        : "0x12",
423                       "mandatory" : "no",
424                       "type"      : "TLV",
425                       "format"    : "sequence",
426                       "contents"  : [ { "name"          : "Current Status",
427                                         "format"        : "guint8",
428                                         "public-format" : "QmiDmsUimPinStatus" },
429                                       { "name"   : "Verify Retries Left",
430                                         "format" : "guint8" },
431                                       { "name"   : "Unblock Retries Left",
432                                         "format" : "guint8" } ] } ] },
433
434   // *********************************************************************************
435   {  "name"    : "Get Hardware Revision",
436      "type"    : "Message",
437      "service" : "DMS",
438      "id"      : "0x002C",
439      "version" : "1.2",
440      "output"  : [  { "common-ref" : "Operation Result" },
441                     { "name"      : "Revision",
442                       "id"        : "0x01",
443                       "mandatory" : "yes",
444                       "type"      : "TLV",
445                       "format"    : "string",
446                       "prerequisites": [ { "common-ref" : "Success" } ] } ] },
447
448   // *********************************************************************************
449   {  "name"    : "Get Operating Mode",
450      "type"    : "Message",
451      "service" : "DMS",
452      "id"      : "0x002D",
453      "version" : "1.2",
454      "output"  : [  { "common-ref" : "Operation Result" },
455                     { "name"      : "Mode",
456                       "id"        : "0x01",
457                       "mandatory" : "yes",
458                       "type"      : "TLV",
459                       "format"    : "guint8",
460                       "public-format" : "QmiDmsOperatingMode",
461                       "prerequisites": [ { "common-ref" : "Success" } ] },
462                     { "name"      : "Offline Reason",
463                       "id"        : "0x10",
464                       "mandatory" : "no",
465                       "type"      : "TLV",
466                       "format"    : "guint16",
467                       "public-format" : "QmiDmsOfflineReason",
468                       "prerequisites": [ { "field" : "Mode",
469                                            "operation" : "==",
470                                            "value" : "QMI_DMS_OPERATING_MODE_OFFLINE" } ] },
471                     { "name"      : "Hardware Restricted Mode",
472                       "id"        : "0x11",
473                       "mandatory" : "no",
474                       "type"      : "TLV",
475                       "format"    : "guint8",
476                       "public-format" : "gboolean",
477                       "prerequisites": [ { "common-ref" : "Success" } ] } ] },
478
479   // *********************************************************************************
480   {  "name"    : "Set Operating Mode",
481      "type"    : "Message",
482      "service" : "DMS",
483      "id"      : "0x002E",
484      "version" : "1.2",
485      "input"   : [  { "name"      : "Mode",
486                       "id"        : "0x01",
487                       "mandatory" : "yes",
488                       "type"      : "TLV",
489                       "format"    : "guint8",
490                       "public-format" : "QmiDmsOperatingMode" } ],
491      "output"  : [  { "common-ref" : "Operation Result" } ] },
492
493   // *********************************************************************************
494   {  "name"    : "Get Time",
495      "type"    : "Message",
496      "service" : "DMS",
497      "id"      : "0x002F",
498      "version" : "1.3",
499      "output"  : [  { "common-ref" : "Operation Result" },
500                     { "name"      : "Device Time",
501                       "id"        : "0x01",
502                       "mandatory" : "yes",
503                       "type"      : "TLV",
504                       "format"    : "sequence",
505                       "contents"  : [ { "name"          : "Time Count",
506                                         "format"        : "guint-sized",
507                                         "guint-size"    : "6" },
508                                       { "name"          : "Time Source",
509                                         "format"        : "guint16",
510                                         "public-format" : "QmiDmsTimeSource" } ],
511                       "prerequisites": [ { "common-ref" : "Success" } ] },
512                     { "name"      : "System Time",
513                       "id"        : "0x10",
514                       "mandatory" : "no",
515                       "type"      : "TLV",
516                       "format"    : "guint64",
517                       "prerequisites": [ { "common-ref" : "Success" } ] },
518                     { "name"      : "User Time",
519                       "id"        : "0x11",
520                       "mandatory" : "no",
521                       "type"      : "TLV",
522                       "format"    : "guint64",
523                       "prerequisites": [ { "common-ref" : "Success" } ] } ] },
524
525   // *********************************************************************************
526   {  "name"    : "Get PRL Version",
527      "type"    : "Message",
528      "service" : "DMS",
529      "id"      : "0x0030",
530      "version" : "1.3",
531      "output"  : [  { "common-ref" : "Operation Result" },
532                     { "name"      : "Version",
533                       "id"        : "0x01",
534                       "mandatory" : "yes",
535                       "type"      : "TLV",
536                       "format"    : "guint16",
537                       "prerequisites": [ { "common-ref" : "Success" } ] },
538                     { "name"          : "PRL Only Preference",
539                       "id"            : "0x10",
540                       "mandatory"     : "no",
541                       "type"          : "TLV",
542                       "format"        : "guint8",
543                       "public-format" : "gboolean",
544                       "prerequisites": [ { "common-ref" : "Success" } ] } ] },
545
546   // *********************************************************************************
547   {  "name"    : "Get Activation State",
548      "type"    : "Message",
549      "service" : "DMS",
550      "id"      : "0x0031",
551      "version" : "1.3",
552      "output"  : [  { "common-ref" : "Operation Result" },
553                     { "name"          : "Info",
554                       "id"            : "0x01",
555                       "mandatory"     : "yes",
556                       "type"          : "TLV",
557                       "format"        : "guint16",
558                       "public-format" : "QmiDmsActivationState",
559                       "prerequisites": [ { "common-ref" : "Success" } ] } ] },
560
561   // *********************************************************************************
562   {  "name"    : "Activate Automatic",
563      "type"    : "Message",
564      "service" : "DMS",
565      "id"      : "0x0032",
566      "version" : "1.3",
567      "input"   : [  { "name"      : "Activation Code",
568                       "id"        : "0x01",
569                       "mandatory" : "yes",
570                       "type"      : "TLV",
571                       "format"    : "string" } ],
572      "output"  : [  { "common-ref" : "Operation Result" } ] },
573
574   // *********************************************************************************
575   {  "name"    : "Activate Manual",
576      "type"    : "Message",
577      "service" : "DMS",
578      "id"      : "0x0033",
579      "version" : "1.3",
580      "input"   : [  { "name"      : "Info",
581                       "id"        : "0x01",
582                       "mandatory" : "yes",
583                       "type"      : "TLV",
584                       "format"    : "sequence",
585                       "contents"  : [ { "name"       : "Service Programming Code",
586                                         "format"     : "string",
587                                         "fixed-size" : "6" },
588                                       { "name"       : "System Identification Number",
589                                         "format"     : "string",
590                                         "fixed-size" : "2" },
591                                       { "name"     : "Mobile Directory Number",
592                                         "format"   : "string",
593                                         "max-size" : "15" },
594                                       { "name"     : "Mobile Identification Number",
595                                         "format"   : "string",
596                                         "max-size" : "15" } ] },
597                     { "name"      : "MN HA key",
598                       "id"        : "0x11",
599                       "mandatory" : "no",
600                       "type"      : "TLV",
601                       "format"    : "string",
602                       "max-size"  : "16" },
603                     { "name"      : "MN AAA key",
604                       "id"        : "0x12",
605                       "mandatory" : "no",
606                       "type"      : "TLV",
607                       "format"    : "string",
608                       "max-size"  : "16" } ],
609      "output"  : [  { "common-ref" : "Operation Result" } ] },
610
611   // *********************************************************************************
612   {  "name"    : "Get User Lock State",
613      "type"    : "Message",
614      "service" : "DMS",
615      "id"      : "0x0034",
616      "version" : "1.3",
617      "output"  : [  { "common-ref" : "Operation Result" },
618                     { "name"          : "Enabled",
619                       "id"            : "0x01",
620                       "mandatory"     : "yes",
621                       "type"          : "TLV",
622                       "format"        : "guint8",
623                       "public-format" : "gboolean",
624                       "prerequisites" : [ { "common-ref" : "Success" } ] } ] },
625
626   // *********************************************************************************
627   {  "name"    : "Set User Lock State",
628      "type"    : "Message",
629      "service" : "DMS",
630      "id"      : "0x0035",
631      "version" : "1.3",
632      "input"   : [  { "name"      : "Info",
633                       "id"        : "0x01",
634                       "mandatory" : "yes",
635                       "type"      : "TLV",
636                       "format"    : "sequence",
637                       "contents"  : [ { "name"          : "Enabled",
638                                         "format"        : "guint8",
639                                         "public-format" : "gboolean" },
640                                       { "name"       : "Lock Code",
641                                         "format"     : "string",
642                                         "fixed-size" : "4" } ] } ],
643      "output"  : [  { "common-ref" : "Operation Result" } ] },
644
645   // *********************************************************************************
646   {  "name"    : "Set User Lock Code",
647      "type"    : "Message",
648      "service" : "DMS",
649      "id"      : "0x0036",
650      "version" : "1.3",
651      "input"   : [  { "name"      : "Info",
652                       "id"        : "0x01",
653                       "mandatory" : "yes",
654                       "type"      : "TLV",
655                       "format"    : "sequence",
656                       "contents"  : [ { "name"       : "Old Code",
657                                         "format"     : "string",
658                                         "fixed-size" : "4" },
659                                       { "name"       : "New Code",
660                                         "format"     : "string",
661                                         "fixed-size" : "4" } ] } ],
662      "output"  : [  { "common-ref" : "Operation Result" } ] },
663
664   // *********************************************************************************
665   {  "name"    : "Read User Data",
666      "type"    : "Message",
667      "service" : "DMS",
668      "id"      : "0x0037",
669      "version" : "1.6",
670      "output"  : [  { "common-ref" : "Operation Result" },
671                     { "name"               : "User Data",
672                       "id"                 : "0x01",
673                       "mandatory"          : "yes",
674                       "type"               : "TLV",
675                       "format"             : "array",
676                       "size-prefix-format" : "guint16",
677                       "array-element"      : { "format" : "guint8" },
678                       "prerequisites"      : [ { "common-ref" : "Success" } ] } ] },
679
680   // *********************************************************************************
681   {  "name"    : "Write User Data",
682      "type"    : "Message",
683      "service" : "DMS",
684      "id"      : "0x0038",
685      "version" : "1.6",
686      "input"   : [  { "name"               : "User Data",
687                       "id"                 : "0x01",
688                       "mandatory"          : "yes",
689                       "type"               : "TLV",
690                       "format"             : "array",
691                       "size-prefix-format" : "guint16",
692                       "array-element"      : { "format" : "guint8" },
693                       "prerequisites"      : [ { "common-ref" : "Success" } ] } ],
694      "output"  : [  { "common-ref" : "Operation Result" } ] },
695
696   // *********************************************************************************
697   {  "name"    : "Read ERI File",
698      "type"    : "Message",
699      "service" : "DMS",
700      "id"      : "0x0039",
701      "version" : "1.6",
702      "output"  : [  { "common-ref" : "Operation Result" },
703                     { "name"               : "ERI File",
704                       "id"                 : "0x01",
705                       "mandatory"          : "yes",
706                       "type"               : "TLV",
707                       "format"             : "array",
708                       "size-prefix-format" : "guint16",
709                       "array-element"      : { "format" : "guint8" },
710                       "prerequisites"      : [ { "common-ref" : "Success" } ] } ] },
711
712   // *********************************************************************************
713   {  "name"    : "Restore Factory Defaults",
714      "type"    : "Message",
715      "service" : "DMS",
716      "id"      : "0x003A",
717      "version" : "1.6",
718      "input"   : [  { "name"          : "Service Programming Code",
719                       "id"            : "0x01",
720                       "mandatory"     : "yes",
721                       "type"          : "TLV",
722                       "format"        : "string",
723                       "fixed-size"    : "6" } ],
724      "output"  : [  { "common-ref" : "Operation Result" } ] },
725
726   // *********************************************************************************
727   {  "name"    : "Validate Service Programming Code",
728      "type"    : "Message",
729      "service" : "DMS",
730      "id"      : "0x003B",
731      "version" : "1.3",
732      "input"   : [  { "name"          : "Service Programming Code",
733                       "id"            : "0x01",
734                       "mandatory"     : "yes",
735                       "type"          : "TLV",
736                       "format"        : "string",
737                       "fixed-size"    : "6" } ],
738      "output"  : [  { "common-ref" : "Operation Result" } ] },
739
740   // *********************************************************************************
741   {  "name"    : "UIM Get ICCID",
742      "type"    : "Message",
743      "service" : "DMS",
744      "id"      : "0x003C",
745      "version" : "1.3",
746      "output"  : [  { "common-ref" : "Operation Result" },
747                     { "name"      : "ICCID",
748                       "id"        : "0x01",
749                       "mandatory" : "yes",
750                       "type"      : "TLV",
751                       "format"    : "string",
752                       "prerequisites": [ { "common-ref" : "Success" } ] } ] },
753
754   // *********************************************************************************
755   {  "name"    : "UIM Get CK Status",
756      "type"    : "Message",
757      "service" : "DMS",
758      "id"      : "0x0040",
759      "version" : "1.3",
760      "input"   : [  { "name"          : "Facility",
761                       "id"            : "0x01",
762                       "mandatory"     : "yes",
763                       "type"          : "TLV",
764                       "format"        : "guint8",
765                       "public-format" : "QmiDmsUimFacility" } ],
766      "output"  : [  { "common-ref" : "Operation Result" },
767                     { "name"      : "CK Status",
768                       "id"        : "0x01",
769                       "mandatory" : "yes",
770                       "type"      : "TLV",
771                       "format"    : "sequence",
772                       "contents"  : [ { "name"          : "Facility State",
773                                         "format"        : "guint8",
774                                         "public-format" : "QmiDmsUimFacilityState" },
775                                       { "name"   : "Verify Retries Left",
776                                         "format" : "guint8" },
777                                       { "name"   : "Unblock Retries Left",
778                                         "format" : "guint8" } ],
779                       "prerequisites": [ { "common-ref" : "Success" } ] },
780                     { "name"      : "Operation Blocking Facility",
781                       "id"        : "0x10",
782                       "mandatory" : "false",
783                       "type"      : "TLV",
784                       "format"    : "guint8",
785                       "public-format" : "gboolean",
786                       "prerequisites": [ { "common-ref" : "Success" } ] } ] },
787
788   // *********************************************************************************
789   {  "name"    : "UIM Set CK Protection",
790      "type"    : "Message",
791      "service" : "DMS",
792      "id"      : "0x0041",
793      "version" : "1.3",
794      "input"   : [  { "name"      : "Facility",
795                       "id"        : "0x01",
796                       "mandatory" : "yes",
797                       "type"      : "TLV",
798                       "format"    : "sequence",
799                       "contents"  : [ { "name"          : "Facility",
800                                         "format"        : "guint8",
801                                         "public-format" : "QmiDmsUimFacility" },
802                                       { "name"          : "Facility State",
803                                         "format"        : "guint8",
804                                         "public-format" : "QmiDmsUimFacilityState" },
805                                       { "name"   : "Facility Depersonalization Control Key",
806                                         "format" : "string" } ] } ],
807      "output"  : [  { "common-ref" : "Operation Result" },
808                     { "name"      : "Verify Retries Left",
809                       "id"        : "0x10",
810                       "mandatory" : "no",
811                       "type"      : "TLV",
812                       "format"    : "guint8" } ] },
813
814   // *********************************************************************************
815   {  "name"    : "UIM Unblock CK",
816      "type"    : "Message",
817      "service" : "DMS",
818      "id"      : "0x0042",
819      "version" : "1.3",
820      "input"   : [  { "name"      : "Facility",
821                       "id"        : "0x01",
822                       "mandatory" : "yes",
823                       "type"      : "TLV",
824                       "format"    : "sequence",
825                       "contents"  : [ { "name"          : "Facility",
826                                         "format"        : "guint8",
827                                         "public-format" : "QmiDmsUimFacility" },
828                                       { "name"   : "Facility Control Key",
829                                         "format" : "string" } ] } ],
830      "output"  : [  { "common-ref" : "Operation Result" },
831                     { "name"      : "Unblock Retries Left",
832                       "id"        : "0x10",
833                       "mandatory" : "no",
834                       "type"      : "TLV",
835                       "format"    : "guint8" } ] },
836
837   // *********************************************************************************
838   {  "name"    : "UIM Get IMSI",
839      "type"    : "Message",
840      "service" : "DMS",
841      "id"      : "0x0043",
842      "version" : "1.3",
843      "output"  : [  { "common-ref" : "Operation Result" },
844                     { "name"      : "IMSI",
845                       "id"        : "0x01",
846                       "mandatory" : "yes",
847                       "type"      : "TLV",
848                       "format"    : "string",
849                       "prerequisites": [ { "common-ref" : "Success" } ] } ] },
850
851   // *********************************************************************************
852   {  "name"    : "UIM Get State",
853      "type"    : "Message",
854      "service" : "DMS",
855      "id"      : "0x0044",
856      "version" : "1.3",
857      "output"  : [  { "common-ref" : "Operation Result" },
858                     { "name"          : "State",
859                       "id"            : "0x01",
860                       "mandatory"     : "yes",
861                       "type"          : "TLV",
862                       "format"        : "guint8",
863                       "public-format" : "QmiDmsUimState",
864                       "prerequisites": [ { "common-ref" : "Success" } ] } ] },
865
866   // *********************************************************************************
867   {  "name"    : "Get Band Capabilities",
868      "type"    : "Message",
869      "service" : "DMS",
870      "id"      : "0x0045",
871      "version" : "1.3",
872      "output"  : [  { "common-ref" : "Operation Result" },
873                     { "name"          : "Band Capability",
874                       "id"            : "0x01",
875                       "mandatory"     : "yes",
876                       "type"          : "TLV",
877                       "format"        : "guint64",
878                       "public-format" : "QmiDmsBandCapability",
879                       "prerequisites": [ { "common-ref" : "Success" } ] },
880                             { "name"          : "LTE Band Capability",
881                       "id"            : "0x10",
882                       "mandatory"     : "no",
883                       "type"          : "TLV",
884                       "format"        : "guint64",
885                       "public-format" : "QmiDmsLteBandCapability",
886                       "prerequisites": [ { "common-ref" : "Success" } ] } ] },
887
888   // *********************************************************************************
889   {  "name"    : "Get Factory SKU",
890      "type"    : "Message",
891      "service" : "DMS",
892      "id"      : "0x0046",
893      "version" : "1.6",
894      "output"  : [  { "common-ref" : "Operation Result" },
895                     { "name"         : "SKU",
896                       "id"           : "0x01",
897                       "mandatory"    : "yes",
898                       "type"         : "TLV",
899                       "format"       : "string",
900                       "prerequisites": [ { "common-ref" : "Success" } ] } ] },
901
902   // *********************************************************************************
903   {  "name"    : "Get Firmware Preference",
904      "type"    : "Message",
905      "service" : "DMS",
906      "id"      : "0x0047",
907      "version" : "1.3",
908      "output"  : [ { "common-ref" : "Operation Result" },
909                    { "name"          : "List",
910                      "id"            : "0x01",
911                      "mandatory"     : "yes",
912                      "type"          : "TLV",
913                      "format"        : "array",
914                      "array-element" : { "name"     : "Image",
915                                          "format"   : "struct",
916                                          "contents" : [ { "name"          : "Type",
917                                                           "format"        : "guint8",
918                                                           "public-format" : "QmiDmsFirmwareImageType" },
919                                                         { "name"          : "Unique ID",
920                                                           "format"        : "array",
921                                                           "fixed-size"    : "16",
922                                                           "array-element" : { "format": "guint8" } },
923                                                         { "name"   : "Build ID",
924                                                           "format" : "string" } ] },
925                      "prerequisites"   : [ { "common-ref" : "Success" } ] } ] },
926
927   // *********************************************************************************
928   {  "name"    : "Set Firmware Preference",
929      "type"    : "Message",
930      "service" : "DMS",
931      "id"      : "0x0048",
932      "version" : "1.3",
933      "input"   : [ { "name"          : "List",
934                      "id"            : "0x01",
935                      "mandatory"     : "yes",
936                      "type"          : "TLV",
937                      "format"        : "array",
938                      "array-element" : { "name"     : "Image",
939                                          "format"   : "struct",
940                                          "contents" : [ { "name"          : "Type",
941                                                           "format"        : "guint8",
942                                                           "public-format" : "QmiDmsFirmwareImageType" },
943                                                         { "name"          : "Unique ID",
944                                                           "format"        : "array",
945                                                           "fixed-size"    : "16",
946                                                           "array-element" : { "format": "guint8" } },
947                                                         { "name"   : "Build ID",
948                                                           "format" : "string" } ] } },
949                    { "name"          : "Download Override",
950                      "id"            : "0x10",
951                      "mandatory"     : "no",
952                      "type"          : "TLV",
953                      "format"        : "guint8",
954                      "public-format" : "gboolean" },
955                    { "name"          : "Modem Storage Index",
956                      "id"            : "0x11",
957                      "mandatory"     : "no",
958                      "type"          : "TLV",
959                      "format"        : "guint8" } ],
960      "output"  : [ { "common-ref" : "Operation Result" },
961                    { "name"          : "Image Download List",
962                      "id"            : "0x01",
963                      "mandatory"     : "yes",
964                      "type"          : "TLV",
965                      "format"        : "array",
966                      "array-element" : { "name"     : "Image Type",
967                                          "format"   : "guint8",
968                                          "public-format" : "QmiDmsFirmwareImageType" },
969                      "prerequisites"   : [ { "common-ref" : "Success" } ] } ] },
970
971   // *********************************************************************************
972   {  "name"    : "List Stored Images",
973      "type"    : "Message",
974      "service" : "DMS",
975      "id"      : "0x0049",
976      "version" : "1.3",
977      "output"  : [ { "common-ref" : "Operation Result" },
978                    { "name"          : "List",
979                      "id"            : "0x01",
980                      "mandatory"     : "yes",
981                      "type"          : "TLV",
982                      "format"        : "array",
983                      "array-element" : { "name"     : "Image",
984                                          "format"   : "struct",
985                                          "contents" : [ { "name"          : "Type",
986                                                           "format"        : "guint8",
987                                                           "public-format" : "QmiDmsFirmwareImageType" },
988                                                         { "name"   : "Maximum Images",
989                                                           "format" : "guint8" },
990                                                         { "name"   : "Index Of Running Image",
991                                                           "format" : "guint8" },
992                                                         { "name"          : "Sublist",
993                                                           "format"        : "array",
994                                                           "array-element" : { "name"     : "Sublist Element",
995                                                                               "format"   : "struct",
996                                                                               "contents" : [ { "name"   : "Storage Index",
997                                                                                                "format" : "guint8" },
998                                                                                              { "name"   : "Failure Count",
999                                                                                                "format" : "guint8" },
1000                                                                                              { "name"          : "Unique ID",
1001                                                                                                "format"        : "array",
1002                                                                                                "fixed-size"    : "16",
1003                                                                                                "array-element" : { "format": "guint8" } },
1004                                                                                              { "name"   : "Build ID",
1005                                                                                                "format" : "string" } ] } } ] },
1006                      "prerequisites" : [ { "common-ref" : "Success" } ] } ] },
1007
1008   // *********************************************************************************
1009   {  "name"    : "Delete Stored Image",
1010      "type"    : "Message",
1011      "service" : "DMS",
1012      "id"      : "0x004A",
1013      "version" : "1.3",
1014      "input"   : [ { "name"      : "Image",
1015                      "id"        : "0x01",
1016                      "mandatory" : "yes",
1017                      "type"      : "TLV",
1018                      "format"    : "struct",
1019                      "contents"  : [ { "name"          : "Type",
1020                                        "format"        : "guint8",
1021                                        "public-format" : "QmiDmsFirmwareImageType" },
1022                                      { "name"          : "Unique ID",
1023                                        "format"        : "array",
1024                                        "fixed-size"    : "16",
1025                                        "array-element" : { "format": "guint8" } },
1026                                      { "name"   : "Build ID",
1027                                        "format" : "string" } ] } ],
1028      "output"  : [ { "common-ref" : "Operation Result" } ] },
1029
1030   // *********************************************************************************
1031   {  "name"    : "Set Time",
1032      "type"    : "Message",
1033      "service" : "DMS",
1034      "id"      : "0x004B",
1035      "version" : "1.4",
1036      "input"   : [  { "name"      : "Time Value",
1037                       "id"        : "0x01",
1038                       "mandatory" : "yes",
1039                       "type"      : "TLV",
1040                       "format"    : "guint64" },
1041                     { "name"          : "Time Reference Type",
1042                       "id"            : "0x10",
1043                       "mandatory"     : "yes",
1044                       "type"          :  "TLV",
1045                       "format"        : "guint32",
1046                       "public-format" : "QmiDmsTimeReferenceType" } ],
1047      "output"  : [  { "common-ref" : "Operation Result" } ] },
1048
1049   // *********************************************************************************
1050   {  "name"    : "Get Stored Image Info",
1051      "type"    : "Message",
1052      "service" : "DMS",
1053      "id"      : "0x004C",
1054      "version" : "1.3",
1055      "input"   : [ { "name"      : "Image",
1056                      "id"        : "0x01",
1057                      "mandatory" : "yes",
1058                      "type"      : "TLV",
1059                      "format"    : "struct",
1060                      "contents"  : [ { "name"          : "Type",
1061                                        "format"        : "guint8",
1062                                        "public-format" : "QmiDmsFirmwareImageType" },
1063                                      { "name"          : "Unique ID",
1064                                        "format"        : "array",
1065                                        "fixed-size"    : "16",
1066                                        "array-element" : { "format": "guint8" } },
1067                                      { "name"   : "Build ID",
1068                                        "format" : "string" } ] } ],
1069      "output"  : [ { "common-ref" : "Operation Result" },
1070                    { "name"         : "Boot Version",
1071                      "id"           : "0x10",
1072                      "mandatory"    : "no",
1073                      "type"         : "TLV",
1074                      "format"       : "sequence",
1075                      "contents"     : [ { "name"   : "Major Version",
1076                                         "format" : "guint16" },
1077                                       { "name"   : "Minor Version",
1078                                         "format" : "guint16" } ],
1079                      "prerequisites": [ { "common-ref" : "Success" } ] },
1080                    { "name"         : "PRI Version",
1081                      "id"           : "0x11",
1082                      "mandatory"    : "no",
1083                      "type"         : "TLV",
1084                      "format"       : "sequence",
1085                      "contents"     : [ { "name"   : "PRI Version",
1086                                           "format" : "guint32" },
1087                                         { "name"       : "PRI Info",
1088                                           "format"     : "string",
1089                                           "fixed-size" : "32" } ],
1090                      "prerequisites": [ { "common-ref" : "Success" } ] },
1091                    { "name"         : "OEM Lock ID",
1092                      "id"           : "0x12",
1093                      "mandatory"    : "no",
1094                      "type"         : "TLV",
1095                      "format"       : "guint32",
1096                      "prerequisites": [ { "common-ref" : "Success" } ] } ] },
1097
1098   // *********************************************************************************
1099   {  "name"    : "Get Alt Net Config",
1100      "type"    : "Message",
1101      "service" : "DMS",
1102      "id"      : "0x004D",
1103      "version" : "1.6",
1104      "output"  : [  { "common-ref" : "Operation Result" },
1105                     { "name"          : "Config",
1106                       "id"            : "0x01",
1107                       "mandatory"     : "yes",
1108                       "type"          : "TLV",
1109                       "format"        : "guint8",
1110                       "public-format" : "gboolean",
1111                       "prerequisites": [ { "common-ref" : "Success" } ] } ] },
1112
1113   // *********************************************************************************
1114   {  "name"    : "Set Alt Net Config",
1115      "type"    : "Message",
1116      "service" : "DMS",
1117      "id"      : "0x004E",
1118      "version" : "1.6",
1119      "input"   : [  { "name"          : "Config",
1120                       "id"            : "0x01",
1121                       "mandatory"     : "yes",
1122                       "type"          : "TLV",
1123                       "format"        : "guint8",
1124                       "public-format" : "gboolean" } ],
1125      "output"  : [  { "common-ref" : "Operation Result" } ] },
1126
1127   // *********************************************************************************
1128   {  "name"    : "Get Software Version",
1129      "type"    : "Message",
1130      "service" : "DMS",
1131      "id"      : "0x0051",
1132      "version" : "1.5",
1133      "output"  : [  { "common-ref" : "Operation Result" },
1134                     { "name"          : "Version",
1135                       "id"            : "0x01",
1136                       "mandatory"     : "yes",
1137                       "type"          : "TLV",
1138                       "format"        : "string",
1139                       "prerequisites": [ { "common-ref" : "Success" } ] } ] },
1140
1141   // *********************************************************************************
1142   {  "name"    : "Set Service Programming Code",
1143      "type"    : "Message",
1144      "service" : "DMS",
1145      "id"      : "0x0052",
1146      "version" : "1.5",
1147      "input"   : [  { "name"       : "Current",
1148                       "id"         : "0x01",
1149                       "mandatory"  : "yes",
1150                       "type"       : "TLV",
1151                       "format"     : "string",
1152                       "fixed-size" : "6" },
1153                     { "name"       : "New",
1154                       "id"         : "0x02",
1155                       "mandatory"  : "yes",
1156                       "type"       : "TLV",
1157                       "format"     : "string",
1158                       "fixed-size" : "6" } ],
1159      "output"  : [  { "common-ref" : "Operation Result" } ] }
1160
1161 ]