2
0

mbim-service-sms.json 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. [
  2. // *********************************************************************************
  3. { "type" : "Service",
  4. "name" : "SMS" },
  5. // *********************************************************************************
  6. { "name" : "Configuration",
  7. "service" : "SMS",
  8. "type" : "Command",
  9. "set" : [ { "name" : "Format",
  10. "format" : "guint32",
  11. "public-format" : "MbimSmsFormat" },
  12. { "name" : "ScAddress",
  13. "format" : "string" } ],
  14. "query" : [],
  15. "response" : [ { "name" : "SmsStorageState",
  16. "format" : "guint32",
  17. "public-format" : "MbimSmsStorageState" },
  18. { "name" : "Format",
  19. "format" : "guint32",
  20. "public-format" : "MbimSmsFormat" },
  21. { "name" : "MaxMessages",
  22. "format" : "guint32" },
  23. { "name" : "CdmaShortMessageSize",
  24. "format" : "guint32" },
  25. { "name" : "ScAddress",
  26. "format" : "string" } ] },
  27. // *********************************************************************************
  28. { "name" : "MbimSmsPduReadRecord",
  29. "type" : "Struct",
  30. "contents" : [ { "name" : "MessageIndex",
  31. "format" : "guint32" },
  32. { "name" : "MessageStatus",
  33. "format" : "guint32",
  34. "public-format" : "MbimSmsStatus" },
  35. { "name" : "PduData",
  36. "format" : "ref-byte-array" } ] },
  37. { "name" : "MbimSmsCdmaReadRecord",
  38. "type" : "Struct",
  39. "contents" : [ { "name" : "MessageIndex",
  40. "format" : "guint32" },
  41. { "name" : "MessageStatus",
  42. "format" : "guint32",
  43. "public-format" : "MbimSmsStatus" },
  44. { "name" : "Address",
  45. "format" : "string" },
  46. { "name" : "Timestamp",
  47. "format" : "string" },
  48. { "name" : "Encoding",
  49. "format" : "guint32",
  50. "public-format" : "MbimSmsCdmaEncoding" },
  51. { "name" : "Language",
  52. "format" : "guint32",
  53. "public-format" : "MbimSmsCdmaLanguage" },
  54. { "name" : "EncodedMessage",
  55. "format" : "ref-byte-array" },
  56. { "name" : "EncodedMessageSizeInCharacters",
  57. "format" : "guint32" } ] },
  58. { "name" : "Read",
  59. "service" : "SMS",
  60. "type" : "Command",
  61. "query" : [ { "name" : "Format",
  62. "format" : "guint32",
  63. "public-format" : "MbimSmsFormat" },
  64. { "name" : "Flag",
  65. "format" : "guint32",
  66. "public-format" : "MbimSmsFlag" },
  67. { "name" : "MessageIndex",
  68. "format" : "guint32" } ],
  69. "response" : [ { "name" : "Format",
  70. "format" : "guint32",
  71. "public-format" : "MbimSmsFormat" },
  72. { "name" : "MessagesCount",
  73. "format" : "guint32" },
  74. { "name" : "PduMessages",
  75. "format" : "ref-struct-array" ,
  76. "struct-type" : "MbimSmsPduReadRecord",
  77. "array-size-field" : "MessagesCount",
  78. "available-if" : { "field" : "Format",
  79. "operation" : "==",
  80. "value" : "MBIM_SMS_FORMAT_PDU" } },
  81. { "name" : "CdmaMessages",
  82. "format" : "ref-struct-array" ,
  83. "struct-type" : "MbimSmsCdmaReadRecord",
  84. "array-size-field" : "MessagesCount",
  85. "available-if" : { "field" : "Format",
  86. "operation" : "==",
  87. "value" : "MBIM_SMS_FORMAT_CDMA" } } ],
  88. "notification" : [ { "name" : "Format",
  89. "format" : "guint32",
  90. "public-format" : "MbimSmsFormat" },
  91. { "name" : "MessagesCount",
  92. "format" : "guint32" },
  93. { "name" : "PduMessages",
  94. "format" : "ref-struct-array" ,
  95. "struct-type" : "MbimSmsPduReadRecord",
  96. "array-size-field" : "MessagesCount",
  97. "available-if" : { "field" : "Format",
  98. "operation" : "==",
  99. "value" : "MBIM_SMS_FORMAT_PDU" } },
  100. { "name" : "CdmaMessages",
  101. "format" : "ref-struct-array" ,
  102. "struct-type" : "MbimSmsCdmaReadRecord",
  103. "array-size-field" : "MessagesCount",
  104. "available-if" : { "field" : "Format",
  105. "operation" : "==",
  106. "value" : "MBIM_SMS_FORMAT_CDMA" } } ] },
  107. // *********************************************************************************
  108. { "name" : "MbimSmsPduSendRecord",
  109. "type" : "Struct",
  110. "contents" : [ { "name" : "PduData",
  111. "format" : "ref-byte-array" } ] },
  112. { "name" : "MbimSmsCdmaSendRecord",
  113. "type" : "Struct",
  114. "contents" : [ { "name" : "Encoding",
  115. "format" : "guint32",
  116. "public-format" : "MbimSmsCdmaEncoding" },
  117. { "name" : "Language",
  118. "format" : "guint32",
  119. "public-format" : "MbimSmsCdmaLanguage" },
  120. { "name" : "Address",
  121. "format" : "string" },
  122. { "name" : "EncodedMessage",
  123. "format" : "ref-byte-array" },
  124. { "name" : "EncodedMessageSizeInCharacters",
  125. "format" : "guint32" } ] },
  126. { "name" : "Send",
  127. "service" : "SMS",
  128. "type" : "Command",
  129. "set" : [ { "name" : "Format",
  130. "format" : "guint32",
  131. "public-format" : "MbimSmsFormat" },
  132. { "name" : "PduMessage",
  133. "format" : "struct",
  134. "struct-type" : "MbimSmsPduSendRecord",
  135. "available-if" : { "field" : "Format",
  136. "operation" : "==",
  137. "value" : "MBIM_SMS_FORMAT_PDU" } },
  138. { "name" : "CdmaMessage",
  139. "format" : "struct",
  140. "struct-type" : "MbimSmsCdmaSendRecord",
  141. "available-if" : { "field" : "Format",
  142. "operation" : "==",
  143. "value" : "MBIM_SMS_FORMAT_CDMA" } } ],
  144. "response" : [ { "name" : "MessageReference",
  145. "format" : "guint32" } ] },
  146. // *********************************************************************************
  147. { "name" : "Delete",
  148. "service" : "SMS",
  149. "type" : "Command",
  150. "set" : [ { "name" : "Flag",
  151. "format" : "guint32",
  152. "public-format" : "MbimSmsFlag" },
  153. { "name" : "MessageIndex",
  154. "format" : "guint32" } ],
  155. "response" : [] },
  156. // *********************************************************************************
  157. { "name" : "Message Store Status",
  158. "service" : "SMS",
  159. "type" : "Command",
  160. "query" : [],
  161. "response" : [ { "name" : "Flag",
  162. "format" : "guint32",
  163. "public-format" : "MbimSmsStatusFlag" },
  164. { "name" : "MessageIndex",
  165. "format" : "guint32" } ],
  166. "notification" : [ { "name" : "Flag",
  167. "format" : "guint32",
  168. "public-format" : "MbimSmsStatusFlag" },
  169. { "name" : "MessageIndex",
  170. "format" : "guint32" } ] }
  171. ]