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