Debian Codegraph @

data/qmi-service-pds.json

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