qmi-service-pds.json 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. [
  2. // *********************************************************************************
  3. { "name" : "PDS",
  4. "type" : "Service" },
  5. // *********************************************************************************
  6. { "name" : "QMI Client PDS",
  7. "type" : "Client",
  8. "since" : "1.0" },
  9. // *********************************************************************************
  10. { "name" : "QMI Message PDS",
  11. "type" : "Message-ID-Enum" },
  12. // *********************************************************************************
  13. { "name" : "QMI Indication PDS",
  14. "type" : "Indication-ID-Enum" },
  15. // *********************************************************************************
  16. { "name" : "Reset",
  17. "type" : "Message",
  18. "service" : "PDS",
  19. "id" : "0x0000",
  20. "since" : "1.0",
  21. "output" : [ { "common-ref" : "Operation Result" } ] },
  22. // *********************************************************************************
  23. { "name" : "Set Event Report",
  24. "type" : "Message",
  25. "service" : "PDS",
  26. "id" : "0x0001",
  27. "since" : "1.0",
  28. "input" : [ { "name" : "NMEA Position Reporting",
  29. "id" : "0x10",
  30. "type" : "TLV",
  31. "since" : "1.0",
  32. "format" : "guint8",
  33. "public-format" : "gboolean" },
  34. { "name" : "Extended NMEA Position Reporting",
  35. "id" : "0x11",
  36. "type" : "TLV",
  37. "since" : "1.0",
  38. "format" : "guint8",
  39. "public-format" : "gboolean" },
  40. { "name" : "Parsed Position Reporting",
  41. "id" : "0x12",
  42. "type" : "TLV",
  43. "since" : "1.0",
  44. "format" : "guint8",
  45. "public-format" : "gboolean" },
  46. { "name" : "External XTRA Data Request Reporting",
  47. "id" : "0x13",
  48. "type" : "TLV",
  49. "since" : "1.0",
  50. "format" : "guint8",
  51. "public-format" : "gboolean" },
  52. { "name" : "External Time Injection Request Reporting",
  53. "id" : "0x14",
  54. "type" : "TLV",
  55. "since" : "1.0",
  56. "format" : "guint8",
  57. "public-format" : "gboolean" },
  58. { "name" : "External WIFI Position Request Reporting",
  59. "id" : "0x15",
  60. "type" : "TLV",
  61. "since" : "1.0",
  62. "format" : "guint8",
  63. "public-format" : "gboolean" },
  64. { "name" : "Satellite Information Reporting",
  65. "id" : "0x16",
  66. "type" : "TLV",
  67. "since" : "1.0",
  68. "format" : "guint8",
  69. "public-format" : "gboolean" },
  70. { "name" : "VX Network Initiated Request Reporting",
  71. "id" : "0x17",
  72. "type" : "TLV",
  73. "since" : "1.0",
  74. "format" : "guint8",
  75. "public-format" : "gboolean" },
  76. { "name" : "SUPL Network Initiated Prompt Reporting",
  77. "id" : "0x18",
  78. "type" : "TLV",
  79. "since" : "1.0",
  80. "format" : "guint8",
  81. "public-format" : "gboolean" },
  82. { "name" : "UMTS CP Network Initiated Prompt Reporting",
  83. "id" : "0x19",
  84. "type" : "TLV",
  85. "since" : "1.0",
  86. "format" : "guint8",
  87. "public-format" : "gboolean" },
  88. { "name" : "PDS Comm Event Reporting",
  89. "id" : "0x1A",
  90. "type" : "TLV",
  91. "since" : "1.0",
  92. "format" : "guint8",
  93. "public-format" : "gboolean" },
  94. { "name" : "Accelerometer Data Streaming Ready Reporting",
  95. "id" : "0x1B",
  96. "type" : "TLV",
  97. "since" : "1.0",
  98. "format" : "guint8",
  99. "public-format" : "gboolean" },
  100. { "name" : "Gyro Data Streaming Ready Reporting",
  101. "id" : "0x1C",
  102. "type" : "TLV",
  103. "since" : "1.0",
  104. "format" : "guint8",
  105. "public-format" : "gboolean" },
  106. { "name" : "Time Sync Request Reporting",
  107. "id" : "0x1D",
  108. "type" : "TLV",
  109. "since" : "1.0",
  110. "format" : "guint8",
  111. "public-format" : "gboolean" },
  112. { "name" : "Position Reliability Indicator Reporting",
  113. "id" : "0x1E",
  114. "type" : "TLV",
  115. "since" : "1.0",
  116. "format" : "guint8",
  117. "public-format" : "gboolean" },
  118. { "name" : "Sensor Data Usage Indicator Reporting",
  119. "id" : "0x1F",
  120. "type" : "TLV",
  121. "since" : "1.0",
  122. "format" : "guint8",
  123. "public-format" : "gboolean" },
  124. { "name" : "Time Source Information Reporting",
  125. "id" : "0x20",
  126. "type" : "TLV",
  127. "since" : "1.0",
  128. "format" : "guint8",
  129. "public-format" : "gboolean" },
  130. { "name" : "Heading Uncertainty Reporting",
  131. "id" : "0x21",
  132. "type" : "TLV",
  133. "since" : "1.0",
  134. "format" : "guint8",
  135. "public-format" : "gboolean" },
  136. { "name" : "NMEA Debug Strings Reporting",
  137. "id" : "0x22",
  138. "type" : "TLV",
  139. "since" : "1.0",
  140. "format" : "guint8",
  141. "public-format" : "gboolean" },
  142. { "name" : "Extended External XTRA Data Request Reporting",
  143. "id" : "0x23",
  144. "type" : "TLV",
  145. "since" : "1.0",
  146. "format" : "guint8",
  147. "public-format" : "gboolean" } ],
  148. "output" : [ { "common-ref" : "Operation Result" } ] },
  149. { "name" : "Event Report",
  150. "type" : "Indication",
  151. "service" : "PDS",
  152. "id" : "0x0001",
  153. "since" : "1.0",
  154. "output" : [ { "name" : "NMEA Position",
  155. "id" : "0x10",
  156. "type" : "TLV",
  157. "since" : "1.0",
  158. "format" : "string",
  159. "max-size" : "200" },
  160. { "name" : "Extended NMEA Position",
  161. "id" : "0x11",
  162. "type" : "TLV",
  163. "since" : "1.0",
  164. "format" : "sequence",
  165. "contents" : [ { "name" : "Operation Mode",
  166. "format" : "gint8",
  167. "public-format" : "QmiPdsOperationMode" },
  168. { "name" : "NMEA",
  169. "format" : "string",
  170. // This was supposed to be only 1 byte for length, but it seems it's not
  171. "size-prefix-format" : "guint16",
  172. "max-size" : "200" } ] },
  173. { "name" : "Position Session Status",
  174. "id" : "0x12",
  175. "type" : "TLV",
  176. "since" : "1.0",
  177. "format" : "guint8",
  178. "public-format" : "QmiPdsPositionSessionStatus" } ] },
  179. // TODO: parse all TLVs of this indication
  180. // Reading gfloat/gdouble is still missing
  181. //{ "name" : "Parsed Position",
  182. // "id" : "0x13",
  183. // "type" : "TLV",
  184. // "format" : "sequence",
  185. // "contents" : [ { "name" : "Valid Mask",
  186. // "format" : "gint8" },
  187. // { "name" : "Timestamp Calendar",
  188. // "format" : "struct",
  189. // "contents" : [ { "name" : "Year",
  190. // "format" : "guint16" },
  191. // { "name" : "Month",
  192. // "format" : "guint8" },
  193. // { "name" : "Day Of Week",
  194. // "format" : "guint8" },
  195. // { "name" : "Day of Month",
  196. // "format" : "guint8" },
  197. // { "name" : "Hour",
  198. // "format" : "guint8" },
  199. // { "name" : "Minute",
  200. // "format" : "guint8" },
  201. // { "name" : "Second",
  202. // "format" : "guint8" },
  203. // { "name" : "Millisecond",
  204. // "format" : "guint16" } ] },
  205. // { "name" : "Leap Seconds",
  206. // "format" : "guint8" },
  207. // { "name" : "Timestamp UTC",
  208. // "format" : "guint64" },
  209. // { "name" : "Time Uncertainty",
  210. // "format" : "guint32" },
  211. // { "name" : "Latitude",
  212. // "format" : "gdouble" },
  213. // { "name" : "Longitude",
  214. // "format" : "gdouble" },
  215. // { "name" : "Altitude Ellipsoid",
  216. // "format" : "gfloat" },
  217. // { "name" : "Altitude Sea Level",
  218. // "format" : "gfloat" },
  219. // { "name" : "Horizontal Speed",
  220. // "format" : "gfloat" },
  221. // { "name" : "Vertical Speed",
  222. // "format" : "gfloat" },
  223. // { "name" : "Heading",
  224. // "format" : "gfloat" },
  225. // { "name" : "Horizontal Uncertainty Circular",
  226. // "format" : "gfloat" },
  227. // { "name" : "Horizontal Uncertainty Ellipse Semi Major",
  228. // "format" : "gfloat" },
  229. // { "name" : "Horizontal Uncertainty Ellipse Semi Minor",
  230. // "format" : "gfloat" },
  231. // { "name" : "Horizontal Uncertainty Ellipse Orient Azimuth",
  232. // "format" : "gfloat" },
  233. // { "name" : "Vertical Uncertainty",
  234. // "format" : "gfloat" },
  235. // { "name" : "Horizontal Velocity Uncertainty",
  236. // "format" : "gfloat" },
  237. // { "name" : "Vertical Velocity Uncertainty",
  238. // "format" : "gfloat" },
  239. // { "name" : "Horizontal confidence",
  240. // "format" : "guint8" },
  241. // { "name" : "Position DOP",
  242. // "format" : "gfloat" },
  243. // { "name" : "Horizontal DOP",
  244. // "format" : "gfloat" },
  245. // { "name" : "Vertical DOP",
  246. // "format" : "gfloat" },
  247. // { "name" : "Operation Mode",
  248. // "format" : "gint8",
  249. // "public-format" : "QmiPdsOperationMode" } ],
  250. // "prerequisites": [ { "field" : "Position Session Status",
  251. // "operation" : "<=",
  252. // "value" : "QMI_PDS_POSITION_SESSION_STATUS_IN_PROGRESS" } ] } ] }
  253. // *********************************************************************************
  254. { "name" : "Get GPS Service State",
  255. "type" : "Message",
  256. "service" : "PDS",
  257. "id" : "0x0020",
  258. "since" : "1.0",
  259. "output" : [ { "common-ref" : "Operation Result" },
  260. { "name" : "State",
  261. "id" : "0x01",
  262. "type" : "TLV",
  263. "since" : "1.0",
  264. "format" : "sequence",
  265. "contents" : [ { "name" : "GPS Service State",
  266. "format" : "guint8",
  267. "public-format" : "gboolean" },
  268. { "name" : "Tracking Session State",
  269. "format" : "guint8",
  270. "public-format" : "QmiPdsTrackingSessionState" } ],
  271. "prerequisites" : [ { "common-ref" : "Success" } ] } ] },
  272. // *********************************************************************************
  273. { "name" : "Set GPS Service State",
  274. "type" : "Message",
  275. "service" : "PDS",
  276. "id" : "0x0021",
  277. "since" : "1.0",
  278. "input" : [ { "name" : "State",
  279. "id" : "0x01",
  280. "type" : "TLV",
  281. "since" : "1.0",
  282. "format" : "sequence",
  283. "contents" : [ { "name" : "GPS Service State",
  284. "format" : "guint8",
  285. "public-format" : "gboolean" } ] } ],
  286. "output" : [ { "common-ref" : "Operation Result" } ] },
  287. // *********************************************************************************
  288. { "name" : "Get Default Tracking Session",
  289. "type" : "Message",
  290. "service" : "PDS",
  291. "id" : "0x0029",
  292. "since" : "1.12",
  293. "output" : [ { "common-ref" : "Operation Result" },
  294. { "name" : "Info",
  295. "id" : "0x01",
  296. "type" : "TLV",
  297. "since" : "1.12",
  298. "format" : "sequence",
  299. "contents" : [ { "name" : "Session Operation",
  300. "format" : "guint8",
  301. "public-format" : "QmiPdsOperatingMode" },
  302. { "name" : "Position Data Timeout",
  303. "format" : "guint8" },
  304. { "name" : "Interval",
  305. "format" : "guint32" },
  306. { "name" : "Accuracy Threshold",
  307. "format" : "guint32" } ],
  308. "prerequisites" : [ { "common-ref" : "Success" } ] } ] },
  309. // *********************************************************************************
  310. { "name" : "Set Default Tracking Session",
  311. "type" : "Message",
  312. "service" : "PDS",
  313. "id" : "0x002A",
  314. "since" : "1.12",
  315. "input" : [ { "name" : "Info",
  316. "id" : "0x01",
  317. "type" : "TLV",
  318. "since" : "1.12",
  319. "format" : "sequence",
  320. "contents" : [ { "name" : "Session Operation",
  321. "format" : "guint8",
  322. "public-format" : "QmiPdsOperatingMode" },
  323. { "name" : "Position Data Timeout",
  324. "format" : "guint8" },
  325. { "name" : "Interval",
  326. "format" : "guint32" },
  327. { "name" : "Accuracy Threshold",
  328. "format" : "guint32" } ] } ],
  329. "output" : [ { "common-ref" : "Operation Result" } ] },
  330. // *********************************************************************************
  331. { "name" : "Get AGPS Config",
  332. "type" : "Message",
  333. "service" : "PDS",
  334. "id" : "0x002E",
  335. "since" : "1.12",
  336. "input" : [ { "name" : "Network Mode",
  337. "id" : "0x12",
  338. "type" : "TLV",
  339. "since" : "1.12",
  340. "format" : "guint8",
  341. "public-format" : "QmiPdsNetworkMode" } ],
  342. "output" : [ { "common-ref" : "Operation Result" },
  343. { "name" : "Location Server Address",
  344. "id" : "0x10",
  345. "type" : "TLV",
  346. "since" : "1.12",
  347. "format" : "sequence",
  348. "contents" : [ { "name" : "IP",
  349. "format" : "guint32",
  350. "endian" : "little" },
  351. { "name" : "Port",
  352. "format" : "guint32" } ],
  353. "prerequisites" : [ { "common-ref" : "Success" } ] },
  354. { "name" : "Location Server URL",
  355. "id" : "0x11",
  356. "type" : "TLV",
  357. "since" : "1.12",
  358. "format" : "array",
  359. "size-prefix-format" : "guint8",
  360. "array-element" : { "format" : "guint8" },
  361. "prerequisites" : [ { "common-ref" : "Success" } ] } ] },
  362. // *********************************************************************************
  363. { "name" : "Set AGPS Config",
  364. "type" : "Message",
  365. "service" : "PDS",
  366. "id" : "0x002F",
  367. "since" : "1.12",
  368. "input" : [ { "name" : "Location Server Address",
  369. "id" : "0x10",
  370. "type" : "TLV",
  371. "since" : "1.12",
  372. "format" : "sequence",
  373. "contents" : [ { "name" : "IP",
  374. "format" : "guint32",
  375. "format" : "guint32" },
  376. { "name" : "Port",
  377. "format" : "guint32" } ] },
  378. { "name" : "Location Server URL",
  379. "id" : "0x11",
  380. "type" : "TLV",
  381. "since" : "1.12",
  382. "format" : "array",
  383. "size-prefix-format" : "guint8",
  384. "array-element" : { "format" : "guint8" } },
  385. { "name" : "Network Mode",
  386. "id" : "0x14",
  387. "type" : "TLV",
  388. "since" : "1.12",
  389. "format" : "guint8",
  390. "public-format" : "QmiPdsNetworkMode" } ],
  391. "output" : [ { "common-ref" : "Operation Result" } ] },
  392. // *********************************************************************************
  393. { "name" : "Get Auto Tracking State",
  394. "type" : "Message",
  395. "service" : "PDS",
  396. "id" : "0x0030",
  397. "since" : "1.0",
  398. "output" : [ { "common-ref" : "Operation Result" },
  399. { "name" : "State",
  400. "id" : "0x01",
  401. "type" : "TLV",
  402. "since" : "1.0",
  403. "format" : "sequence",
  404. "contents" : [ { "name" : "Auto Tracking State",
  405. "format" : "guint8",
  406. "public-format" : "gboolean" } ],
  407. "prerequisites" : [ { "common-ref" : "Success" } ] } ] },
  408. // *********************************************************************************
  409. { "name" : "Set Auto Tracking State",
  410. "type" : "Message",
  411. "service" : "PDS",
  412. "id" : "0x0031",
  413. "since" : "1.0",
  414. "input" : [ { "name" : "State",
  415. "id" : "0x01",
  416. "type" : "TLV",
  417. "since" : "1.0",
  418. "format" : "sequence",
  419. "contents" : [ { "name" : "Auto Tracking State",
  420. "format" : "guint8",
  421. "public-format" : "gboolean" } ] } ],
  422. "output" : [ { "common-ref" : "Operation Result" } ] },
  423. // *********************************************************************************
  424. { "name" : "GPS Ready",
  425. "type" : "Indication",
  426. "service" : "PDS",
  427. "id" : "0x0060",
  428. "since" : "1.14" }
  429. ]