data: add support for ICC channel
authorDavid Bauer <david.bauer@uniberg.com>
Wed, 3 Jan 2024 14:16:19 +0000 (16:16 +0200)
committerDavid Bauer <mail@david-bauer.net>
Sun, 25 Aug 2024 00:35:47 +0000 (02:35 +0200)
Link: https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/merge_requests/376
Signed-off-by: David Bauer <david.bauer@uniberg.com>
data/qmi-service-uim.json

index 35edd8e16d568934341a1841b026a94d227b7634..afebbad85424dce22b25db477bd700daf53a2b33 100644 (file)
                                                                                                          "format"        : "guint8" } ] } } ] },
                      "prerequisites"      : [ { "common-ref" : "Success" } ] } ] },
 
+// *********************************************************************************
+  {  "name"    : "Send APDU",
+     "type"    : "Message",
+     "service" : "UIM",
+     "id"      : "0x003B",
+     "since"   : "1.36",
+     "input"   : [ { "name"          : "Slot",
+                     "id"            : "0x01",
+                     "type"          : "TLV",
+                     "since"         : "1.36",
+                     "format"        : "guint8" },
+                   { "name"               : "APDU",
+                     "id"                 : "0x02",
+                     "type"               : "TLV",
+                     "since"              : "1.36",
+                     "format"             : "array",
+                     "size-prefix-format" : "guint16",
+                     "array-element"      : { "format" : "guint8" } },
+                   { "name"          : "Channel ID",
+                     "id"            : "0x10",
+                     "type"          : "TLV",
+                     "since"         : "1.36",
+                     "format"        : "guint8" },
+                   { "name"          : "Procedure bytes",
+                     "id"            : "0x11",
+                     "type"          : "TLV",
+                     "since"         : "1.36",
+                     "format"        : "guint8" } ],
+     "output"  : [ { "common-ref" : "Operation Result" },
+                   { "name"               : "APDU Response",
+                     "id"                 : "0x10",
+                     "type"               : "TLV",
+                     "since"              : "1.36",
+                     "format"             : "array",
+                     "size-prefix-format" : "guint16",
+                     "array-element"      : { "format" : "guint8" } } ] },
+
+  // *********************************************************************************
+  {  "name"    : "Logical Channel",
+     "type"    : "Message",
+     "service" : "UIM",
+     "id"      : "0x003F",
+     "since"   : "1.36",
+     "input"   : [ { "name"          : "Slot",
+                     "id"            : "0x01",
+                     "type"          : "TLV",
+                     "since"         : "1.36",
+                     "format"        : "guint8" },
+                   { "name"               : "AID",
+                     "id"                 : "0x10",
+                     "type"               : "TLV",
+                     "since"              : "1.36",
+                     "format"             : "array",
+                     "size-prefix-format" : "guint8",
+                     "array-element"      : { "format" : "guint8" } },
+                   { "name"          : "Channel ID",
+                     "id"            : "0x11",
+                     "type"          : "TLV",
+                     "since"         : "1.36",
+                     "format"        : "guint8" },
+                   { "name"          : "File Control Information",
+                     "id"            : "0x12",
+                     "type"          : "TLV",
+                     "since"         : "1.36",
+                     "format"        : "guint8",
+                     "public-format" : "QmiUimFileControlInformation" },
+                   { "name"          : "Terminate Application",
+                     "id"            : "0x13",
+                     "type"          : "TLV",
+                     "since"         : "1.36",
+                     "format"        : "guint8" } ],
+     "output"  : [ { "common-ref" : "Operation Result" },
+                   { "name"          : "Channel ID",
+                     "id"            : "0x10",
+                     "type"          : "TLV",
+                     "since"         : "1.36",
+                     "format"        : "guint8",
+                     "prerequisites" : [ { "common-ref" : "Success" } ] },
+                   { "name"          : "Card result",
+                     "id"            : "0x11",
+                     "type"          : "TLV",
+                     "since"         : "1.36",
+                     "format"        : "sequence",
+                     "contents"      : [ { "name"   : "SW1",
+                                           "format" : "guint8" },
+                                         { "name"   : "SW2",
+                                           "format" : "guint8" } ] },
+                   { "name"               : "Select Response",
+                     "id"                 : "0x12",
+                     "type"               : "TLV",
+                     "since"              : "1.36",
+                     "format"             : "array",
+                     "size-prefix-format" : "guint8",
+                     "array-element"      : { "format" : "guint8" },
+                     "prerequisites"      : [ { "common-ref" : "Success" } ] } ] },
+
+  // *********************************************************************************
+  {  "name"    : "Open Logical Channel",
+     "type"    : "Message",
+     "service" : "UIM",
+     "id"      : "0x0042",
+     "since"   : "1.36",
+     "input"   : [ { "name"   : "Slot",
+                     "id"     : "0x01",
+                     "type"   : "TLV",
+                     "since"  : "1.36",
+                     "format" : "guint8" },
+                   { "name"               : "AID",
+                     "id"                 : "0x10",
+                     "type"               : "TLV",
+                     "since"              : "1.36",
+                     "format"             : "array",
+                     "size-prefix-format" : "guint8",
+                     "array-element"      : { "format" : "guint8" } },
+                   { "name"          : "File Control Information",
+                     "id"            : "0x11",
+                     "type"          : "TLV",
+                     "since"         : "1.36",
+                     "format"        : "guint8",
+                     "public-format" : "QmiUimFileControlInformation" } ],
+     "output"  : [ { "common-ref" : "Operation Result" },
+                   { "name"          : "Channel ID",
+                     "id"            : "0x10",
+                     "type"          : "TLV",
+                     "since"         : "1.36",
+                     "format"        : "guint8",
+                     "prerequisites" : [ { "common-ref" : "Success" } ] },
+                   { "name"          : "Card result",
+                     "id"            : "0x11",
+                     "type"          : "TLV",
+                     "since"         : "1.36",
+                     "format"        : "sequence",
+                     "contents"      : [ { "name"   : "SW1",
+                                           "format" : "guint8" },
+                                         { "name"   : "SW2",
+                                           "format" : "guint8" } ] },
+                   { "name"               : "Select Response",
+                     "id"                 : "0x12",
+                     "type"               : "TLV",
+                     "since"              : "1.36",
+                     "format"             : "array",
+                     "size-prefix-format" : "guint8",
+                     "array-element"      : { "format" : "guint8" },
+                     "prerequisites"      : [ { "common-ref" : "Success" } ] } ] },
+
   // *********************************************************************************
   {  "name"    : "Refresh Register All",
      "type"    : "Message",