25 #ifndef LIBSBP_PIKSI_MESSAGES_H
26 #define LIBSBP_PIKSI_MESSAGES_H
39 #define SBP_MSG_ALMANAC 0x0069
47 #define SBP_MSG_SET_TIME 0x0068
55 #define SBP_MSG_RESET 0x00B6
56 typedef struct SBP_ATTR_PACKED {
66 #define SBP_MSG_RESET_DEP 0x00B2
75 #define SBP_MSG_CW_RESULTS 0x00C0
84 #define SBP_MSG_CW_START 0x00C1
92 #define SBP_MSG_RESET_FILTERS 0x0022
93 typedef struct SBP_ATTR_PACKED {
106 #define SBP_MSG_INIT_BASE 0x0023
115 #define SBP_MSG_THREAD_STATE 0x0017
116 typedef struct SBP_ATTR_PACKED {
131 typedef struct SBP_ATTR_PACKED {
154 typedef struct SBP_ATTR_PACKED {
170 typedef struct SBP_ATTR_PACKED {
190 #define SBP_MSG_UART_STATE 0x001D
191 typedef struct SBP_ATTR_PACKED {
204 #define SBP_MSG_UART_STATE_DEPA 0x0018
205 typedef struct SBP_ATTR_PACKED {
220 #define SBP_MSG_IAR_STATE 0x0019
221 typedef struct SBP_ATTR_PACKED {
231 #define SBP_MSG_MASK_SATELLITE 0x002B
232 typedef struct SBP_ATTR_PACKED {
242 #define SBP_MSG_MASK_SATELLITE_DEP 0x001B
243 typedef struct SBP_ATTR_PACKED {
255 #define SBP_MSG_DEVICE_MONITOR 0x00B5
256 typedef struct SBP_ATTR_PACKED {
271 #define SBP_MSG_COMMAND_REQ 0x00B8
272 typedef struct SBP_ATTR_PACKED {
283 #define SBP_MSG_COMMAND_RESP 0x00B9
284 typedef struct SBP_ATTR_PACKED {
297 #define SBP_MSG_COMMAND_OUTPUT 0x00BC
298 typedef struct SBP_ATTR_PACKED {
309 #define SBP_MSG_NETWORK_STATE_REQ 0x00BA
318 #define SBP_MSG_NETWORK_STATE_RESP 0x00BB
319 typedef struct SBP_ATTR_PACKED {
326 char interface_name[16];
340 typedef struct SBP_ATTR_PACKED {
345 char interface_name[16];
353 #define SBP_MSG_NETWORK_BANDWIDTH_USAGE 0x00BD
354 typedef struct SBP_ATTR_PACKED {
365 #define SBP_MSG_CELL_MODEM_STATUS 0x00BE
366 typedef struct SBP_ATTR_PACKED {
377 #define SBP_MSG_SPECAN_DEP 0x0050
378 typedef struct SBP_ATTR_PACKED {
389 u8 amplitude_value[0];
398 #define SBP_MSG_SPECAN 0x0051
399 typedef struct SBP_ATTR_PACKED {
410 u8 amplitude_value[0];
s32 current
Smoothed estimate of the current latency [ms].
float amplitude_unit
Amplitude unit value of points in this packet [dB].
Millisecond-accurate GPS time.
float amplitude_ref
Reference amplitude of this packet [dB].
float amplitude_ref
Reference amplitude of this packet [dB].
u32 sequence
Sequence number.
s32 pmax
Maximum period [ms].
s32 avg
Average period [ms].
float freq_step
Frequency step of points in this packet [MHz].
u64 total_bytes
Number of bytes handled in total within period.
sbp_gnss_signal_t sid
GNSS signal for which the mask is applied.
u16 channel_tag
Channel ID.
u8 ipv6_mask_size
IPv6 netmask CIDR notation.
s32 avg
Average latency [ms].
s16 fe_temperature
Frontend temperature (if available) [degrees C / 100].
uart_channel_t uart_ftdi
State of UART FTDI (USB logger)
u16 cpu
Percentage cpu use for this thread.
float rx_throughput
UART receive throughput [kB/s].
u16 channel_tag
Channel ID.
u8 mask
Mask of systems that should ignore this satellite.
uart_channel_t uart_b
State of UART B.
u32 rx_bytes
Number of Rx bytes.
int8_t s8
Signed 8-bit integer.
uart_channel_t uart_a
State of UART A.
Represents all the relevant information about the signal.
int16_t s16
Signed 16-bit integer.
s32 current
Smoothed estimate of the current period [ms].
u32 sequence
Sequence number.
s16 cpu_vint
Processor V_int [V / 1000].
uint8_t u8
Unsigned 8-bit integer.
u8 tx_buffer_level
UART transmit buffer percentage utilization (ranges from 0 to 255)
float signal_error_rate
BER as reported by the modem, zero translates to unknown.
u32 tx_bytes
Number of Tx bytes.
u32 num_hyps
Number of integer ambiguity hypotheses remaining.
u16 io_error_count
UART IO error count.
float freq_ref
Reference frequency of this packet [MHz].
u32 stack_free
Free stack space for this thread [bytes].
u16 crc_error_count
UART CRC error count.
s32 lmax
Maximum latency [ms].
u64 duration
Duration over which the measurement was collected [ms].
gps_time_dep_t t
Receiver time of this observation.
uint64_t u64
Unsigned 64-bit integer.
period_t obs_period
Observation receipt period.
Bandwidth usage measurement for a single interface.
float freq_step
Frequency step of points in this packet [MHz].
float amplitude_unit
Amplitude unit value of points in this packet [dB].
s16 cpu_temperature
Processor temperature [degrees C / 100].
sbp_gps_time_t t
Receiver time of this observation.
uint16_t u16
Unsigned 16-bit integer.
float tx_throughput
UART transmit throughput [kB/s].
uint32_t u32
Unsigned 32-bit integer.
s32 lmin
Minimum latency [ms].
float freq_ref
Reference frequency of this packet [MHz].
u32 tx_bytes
Number of bytes received within period.
s16 cpu_vaux
Processor V_aux [V / 1000].
u32 sequence
Sequence number.
Receiver-to-base station latency.
u32 flags
Interface flags from SIOCGIFFLAGS.
u8 rx_buffer_level
UART receive buffer percentage utilization (ranges from 0 to 255)
s16 dev_vin
Device V_in [V / 1000].
s32 pmin
Minimum period [ms].
Nanosecond-accurate receiver clock time.
gnss_signal_dep_t sid
GNSS signal for which the mask is applied.
uart_channel_t uart_ftdi
State of UART FTDI (USB logger)
latency_t latency
UART communication latency.
u8 ipv4_mask_size
IPv4 netmask CIDR notation.
u8 mask
Mask of systems that should ignore this satellite.
u32 rx_bytes
Number of bytes transmitted within period.
State of the UART channel.
int32_t s32
Signed 32-bit integer.
latency_t latency
UART communication latency.
s8 signal_strength
Received cell signal strength in dBm, zero translates to unknown [dBm].
uart_channel_t uart_b
State of UART B.
uart_channel_t uart_a
State of UART A.
base station observation message receipt period