-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy pathpiksi.ksy
550 lines (518 loc) · 14.6 KB
/
piksi.ksy
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
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
# Copyright (C) 2015-2023 Swift Navigation Inc.
# Contact: https://support.swiftnav.com
#
# This source is subject to the license found in the file 'LICENSE' which must
# be distributed together with this source. All other rights reserved.
#
# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
# EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
#
# System health, configuration, and diagnostic messages specific to the Piksi L1
# receiver, including a variety of legacy messages that may no longer be used.
#
# Automatically generated from spec/yaml/swiftnav/sbp/piksi.yaml with generate.py.
# Do not modify by hand!
meta:
id: piksi
endian: le
imports: [ gnss ]
types:
msg_almanac:
doc: |
This is a legacy message for sending and loading a satellite alamanac
onto the Piksi's flash memory from the host.
seq: []
msg_set_time:
doc: |
This message sets up timing functionality using a coarse GPS time
estimate sent by the host.
seq: []
msg_reset:
doc: |
This message from the host resets the Piksi back into the bootloader.
seq:
- id: flags
doc: |
Reset flags
type: u4
msg_reset_dep:
doc: |
Deprecated.
seq: []
msg_cw_results:
doc: |
This is an unused legacy message for result reporting from the CW
interference channel on the SwiftNAP. This message will be removed in a
future release.
seq: []
msg_cw_start:
doc: |
This is an unused legacy message from the host for starting the CW
interference channel on the SwiftNAP. This message will be removed in a
future release.
seq: []
msg_reset_filters:
doc: |
This message resets either the DGNSS Kalman filters or Integer Ambiguity
Resolution (IAR) process.
seq:
- id: filter
doc: |
Filter flags
type: u1
msg_init_base_dep:
doc: |
Deprecated.
seq: []
msg_thread_state:
doc: |
The thread usage message from the device reports real-time operating
system (RTOS) thread usage statistics for the named thread. The reported
percentage values must be normalized.
seq:
- id: name
doc: |
Thread name (NULL terminated)
type: str
encoding: ascii
size: 20
- id: cpu
doc: |
Percentage cpu use for this thread. Values range from 0 - 1000 and
needs to be renormalized to 100
type: u2
- id: stack_free
doc: |
Free stack space for this thread
type: u4
uart_channel:
doc: |
Throughput, utilization, and error counts on the RX/TX buffers of this
UART channel. The reported percentage values must be normalized.
seq:
- id: tx_throughput
doc: |
UART transmit throughput
type: f4
- id: rx_throughput
doc: |
UART receive throughput
type: f4
- id: crc_error_count
doc: |
UART CRC error count
type: u2
- id: io_error_count
doc: |
UART IO error count
type: u2
- id: tx_buffer_level
doc: |
UART transmit buffer percentage utilization (ranges from 0 to 255)
type: u1
- id: rx_buffer_level
doc: |
UART receive buffer percentage utilization (ranges from 0 to 255)
type: u1
period:
doc: |
Statistics on the period of observations received from the base station.
As complete observation sets are received, their time of reception is
compared with the prior set''s time of reception. This measurement
provides a proxy for link quality as incomplete or missing sets will
increase the period. Long periods can cause momentary RTK solution
outages.
seq:
- id: avg
doc: |
Average period
type: s4
- id: pmin
doc: |
Minimum period
type: s4
- id: pmax
doc: |
Maximum period
type: s4
- id: current
doc: |
Smoothed estimate of the current period
type: s4
latency:
doc: |
Statistics on the latency of observations received from the base
station. As observation packets are received their GPS time is compared
to the current GPS time calculated locally by the receiver to give a
precise measurement of the end-to-end communication latency in the
system.
seq:
- id: avg
doc: |
Average latency
type: s4
- id: lmin
doc: |
Minimum latency
type: s4
- id: lmax
doc: |
Maximum latency
type: s4
- id: current
doc: |
Smoothed estimate of the current latency
type: s4
msg_uart_state:
doc: |
The UART message reports data latency and throughput of the UART
channels providing SBP I/O. On the default Piksi configuration, UARTs A
and B are used for telemetry radios, but can also be host access ports
for embedded hosts, or other interfaces in future. The reported
percentage values must be normalized. Observations latency and period
can be used to assess the health of the differential corrections link.
Latency provides the timeliness of received base observations while the
period indicates their likelihood of transmission.
seq:
- id: uart_a
doc: |
State of UART A
type: uart_channel
- id: uart_b
doc: |
State of UART B
type: uart_channel
- id: uart_ftdi
doc: |
State of UART FTDI (USB logger)
type: uart_channel
- id: latency
doc: |
UART communication latency
type: latency
- id: obs_period
doc: |
Observation receipt period
type: period
msg_uart_state_depa:
doc: |
Deprecated.
seq:
- id: uart_a
doc: |
State of UART A
type: uart_channel
- id: uart_b
doc: |
State of UART B
type: uart_channel
- id: uart_ftdi
doc: |
State of UART FTDI (USB logger)
type: uart_channel
- id: latency
doc: |
UART communication latency
type: latency
msg_iar_state:
doc: |
This message reports the state of the Integer Ambiguity Resolution (IAR)
process, which resolves unknown integer ambiguities from double-
differenced carrier-phase measurements from satellite observations.
seq:
- id: num_hyps
doc: |
Number of integer ambiguity hypotheses remaining
type: u4
msg_mask_satellite:
doc: |
This message allows setting a mask to prevent a particular satellite
from being used in various Piksi subsystems.
seq:
- id: mask
doc: |
Mask of systems that should ignore this satellite.
type: u1
- id: sid
doc: |
GNSS signal for which the mask is applied
type: gnss::gnss_signal
msg_mask_satellite_dep:
doc: |
Deprecated.
seq:
- id: mask
doc: |
Mask of systems that should ignore this satellite.
type: u1
- id: sid
doc: |
GNSS signal for which the mask is applied
type: gnss::gnss_signal_dep
msg_device_monitor:
doc: |
This message contains temperature and voltage level measurements from
the processor's monitoring system and the RF frontend die temperature if
available.
seq:
- id: dev_vin
doc: |
Device V_in
type: s2
- id: cpu_vint
doc: |
Processor V_int
type: s2
- id: cpu_vaux
doc: |
Processor V_aux
type: s2
- id: cpu_temperature
doc: |
Processor temperature
type: s2
- id: fe_temperature
doc: |
Frontend temperature (if available)
type: s2
msg_command_req:
doc: |
Request the recipient to execute an command. Output will be sent in
MSG_LOG messages, and the exit code will be returned with
MSG_COMMAND_RESP.
seq:
- id: sequence
doc: |
Sequence number
type: u4
- id: command
doc: |
Command line to execute
type: str
encoding: ascii
size-eos: true
msg_command_resp:
doc: |
The response to MSG_COMMAND_REQ with the return code of the command. A
return code of zero indicates success.
seq:
- id: sequence
doc: |
Sequence number
type: u4
- id: code
doc: |
Exit code
type: s4
msg_command_output:
doc: |
Returns the standard output and standard error of the command requested
by MSG_COMMAND_REQ. The sequence number can be used to filter for
filtering the correct command.
seq:
- id: sequence
doc: |
Sequence number
type: u4
- id: line
doc: |
Line of standard output or standard error
type: str
encoding: ascii
size-eos: true
msg_network_state_req:
doc: |
Request state of Piksi network interfaces. Output will be sent in
MSG_NETWORK_STATE_RESP messages.
seq: []
msg_network_state_resp:
doc: |
The state of a network interface on the Piksi. Data is made to reflect
output of ifaddrs struct returned by getifaddrs in c.
seq:
- id: ipv4_address
doc: |
IPv4 address (all zero when unavailable)
type: u1
repeat: expr
repeat-expr: 4
- id: ipv4_mask_size
doc: |
IPv4 netmask CIDR notation
type: u1
- id: ipv6_address
doc: |
IPv6 address (all zero when unavailable)
type: u1
repeat: expr
repeat-expr: 16
- id: ipv6_mask_size
doc: |
IPv6 netmask CIDR notation
type: u1
- id: rx_bytes
doc: |
Number of Rx bytes
type: u4
- id: tx_bytes
doc: |
Number of Tx bytes
type: u4
- id: interface_name
doc: |
Interface Name
type: str
encoding: ascii
size: 16
- id: flags
doc: |
Interface flags from SIOCGIFFLAGS
type: u4
network_usage:
doc: |
The bandwidth usage for each interface can be reported within this
struct and utilize multiple fields to fully specify the type of traffic
that is being tracked. As either the interval of collection or the
collection time may vary, both a timestamp and period field is provided,
though may not necessarily be populated with a value.
seq:
- id: duration
doc: |
Duration over which the measurement was collected
type: u8
- id: total_bytes
doc: |
Number of bytes handled in total within period
type: u8
- id: rx_bytes
doc: |
Number of bytes transmitted within period
type: u4
- id: tx_bytes
doc: |
Number of bytes received within period
type: u4
- id: interface_name
doc: |
Interface Name
type: str
encoding: ascii
size: 16
msg_network_bandwidth_usage:
doc: |
The bandwidth usage, a list of usage by interface.
seq:
- id: interfaces
doc: |
Usage measurement array
type: network_usage
repeat: eos
msg_cell_modem_status:
doc: |
If a cell modem is present on a piksi device, this message will be send
periodically to update the host on the status of the modem and its
various parameters.
seq:
- id: signal_strength
doc: |
Received cell signal strength in dBm, zero translates to unknown
type: s1
- id: signal_error_rate
doc: |
BER as reported by the modem, zero translates to unknown
type: f4
- id: reserved
doc: |
Unspecified data TBD for this schema
type: u1
repeat: eos
msg_specan_dep:
doc: |
Deprecated.
seq:
- id: channel_tag
doc: |
Channel ID
type: u2
- id: t
doc: |
Receiver time of this observation
type: gnss::gps_time_dep
- id: freq_ref
doc: |
Reference frequency of this packet
type: f4
- id: freq_step
doc: |
Frequency step of points in this packet
type: f4
- id: amplitude_ref
doc: |
Reference amplitude of this packet
type: f4
- id: amplitude_unit
doc: |
Amplitude unit value of points in this packet
type: f4
- id: amplitude_value
doc: |
Amplitude values (in the above units) of points in this packet
type: u1
repeat: eos
msg_specan:
doc: |
Spectrum analyzer packet.
seq:
- id: channel_tag
doc: |
Channel ID
type: u2
- id: t
doc: |
Receiver time of this observation
type: gnss::gps_time
- id: freq_ref
doc: |
Reference frequency of this packet
type: f4
- id: freq_step
doc: |
Frequency step of points in this packet
type: f4
- id: amplitude_ref
doc: |
Reference amplitude of this packet
type: f4
- id: amplitude_unit
doc: |
Amplitude unit value of points in this packet
type: f4
- id: amplitude_value
doc: |
Amplitude values (in the above units) of points in this packet
type: u1
repeat: eos
msg_front_end_gain:
doc: |
This message describes the gain of each channel in the receiver
frontend. Each gain is encoded as a non-dimensional percentage relative
to the maximum range possible for the gain stage of the frontend. By
convention, each gain array has 8 entries and the index of the array
corresponding to the index of the rf channel in the frontend. A gain of
127 percent encodes that rf channel is not present in the hardware. A
negative value implies an error for the particular gain stage as
reported by the frontend.
seq:
- id: rf_gain
doc: |
RF gain for each frontend channel
type: s1
repeat: expr
repeat-expr: 8
- id: if_gain
doc: |
Intermediate frequency gain for each frontend channel
type: s1
repeat: expr
repeat-expr: 8