sbp-4.9.0: SwiftNav's SBP Library
CopyrightCopyright (C) 2015-2021 Swift Navigation Inc.
LicenseMIT
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

SwiftNav.SBP.Settings

Description

< Messages for reading, writing, and discovering device settings. Settings with a "string" field have multiple values in this field delimited with a null character (the c style null terminator). For instance, when querying the firmware_version setting in the system_info section, the following array of characters needs to be sent for the string field in MSG_SETTINGS_READ: "system_info0firmware_version0", where the delimiting null characters are specified with the escape sequence '0' and all quotation marks should be omitted.

In the message descriptions below, the generic strings SECTION_SETTING and SETTING are used to refer to the two strings that comprise the identifier of an individual setting.In firmware_version example above, SECTION_SETTING is the system_info, and the SETTING portion is firmware_version. See the "Software Settings Manual" on support.swiftnav.com for detailed documentation about all settings and sections available for each Swift firmware version. Settings manuals are available for each firmware version at the following link: https://support.swiftnav.com/support/solutions/articles/44001850753-piksi-multi-specification. The latest settings document is also available at the following link: http://swiftnav.com/latest/piksi-multi-settings . See lastly https://github.com/swift-nav/piksi_tools/blob/master/piksi_tools/settings.py , the open source python command line utility for reading, writing, and saving settings in the piksi_tools repository on github as a helpful reference and example. >

Synopsis

Documentation

data MsgSettingsSave Source #

SBP class for message MSG_SETTINGS_SAVE (0x00A1).

The save settings message persists the device's current settings configuration to its onboard flash memory file system.

Constructors

MsgSettingsSave 

data MsgSettingsWrite Source #

SBP class for message MSG_SETTINGS_WRITE (0x00A0).

The setting message writes the device configuration for a particular setting via A NULL-terminated and NULL-delimited string with contents "SECTION_SETTING0SETTING0VALUE0" where the '0' escape sequence denotes the NULL character and where quotation marks are omitted. A device will only process to this message when it is received from sender ID 0x42. An example string that could be sent to a device is "solution0soln_freq0100".

Constructors

MsgSettingsWrite 

Fields

data MsgSettingsWriteResp Source #

SBP class for message MSG_SETTINGS_WRITE_RESP (0x00AF).

Return the status of a write request with the new value of the setting. If the requested value is rejected, the current value will be returned. The string field is a NULL-terminated and NULL-delimited string with contents "SECTION_SETTING0SETTING0VALUE0" where the '0' escape sequence denotes the NULL character and where quotation marks are omitted. An example string that could be sent from device is "solution0soln_freq0100".

Constructors

MsgSettingsWriteResp 

Fields

Instances

Instances details
FromJSON MsgSettingsWriteResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

ToJSON MsgSettingsWriteResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Read MsgSettingsWriteResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Show MsgSettingsWriteResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Binary MsgSettingsWriteResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Eq MsgSettingsWriteResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

ToSBP MsgSettingsWriteResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

data MsgSettingsReadReq Source #

SBP class for message MSG_SETTINGS_READ_REQ (0x00A4).

The setting message that reads the device configuration. The string field is a NULL-terminated and NULL-delimited string with contents "SECTION_SETTING0SETTING0" where the '0' escape sequence denotes the NULL character and where quotation marks are omitted. An example string that could be sent to a device is "solution0soln_freq0". A device will only respond to this message when it is received from sender ID 0x42. A device should respond with a MSG_SETTINGS_READ_RESP message (msg_id 0x00A5).

Constructors

MsgSettingsReadReq 

Fields

Instances

Instances details
FromJSON MsgSettingsReadReq Source # 
Instance details

Defined in SwiftNav.SBP.Settings

ToJSON MsgSettingsReadReq Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Read MsgSettingsReadReq Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Show MsgSettingsReadReq Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Binary MsgSettingsReadReq Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Eq MsgSettingsReadReq Source # 
Instance details

Defined in SwiftNav.SBP.Settings

ToSBP MsgSettingsReadReq Source # 
Instance details

Defined in SwiftNav.SBP.Settings

data MsgSettingsReadResp Source #

SBP class for message MSG_SETTINGS_READ_RESP (0x00A5).

The setting message with which the device responds after a MSG_SETTING_READ_REQ is sent to device. The string field is a NULL- terminated and NULL-delimited string with contents "SECTION_SETTING0SETTING0VALUE0" where the '0' escape sequence denotes the NULL character and where quotation marks are omitted. An example string that could be sent from device is "solution0soln_freq0100".

Constructors

MsgSettingsReadResp 

Fields

Instances

Instances details
FromJSON MsgSettingsReadResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

ToJSON MsgSettingsReadResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Read MsgSettingsReadResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Show MsgSettingsReadResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Binary MsgSettingsReadResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Eq MsgSettingsReadResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

ToSBP MsgSettingsReadResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

data MsgSettingsReadByIndexReq Source #

SBP class for message MSG_SETTINGS_READ_BY_INDEX_REQ (0x00A2).

The settings message for iterating through the settings values. A device will respond to this message with a MSG_SETTINGS_READ_BY_INDEX_RESP.

Constructors

MsgSettingsReadByIndexReq 

Fields

Instances

Instances details
FromJSON MsgSettingsReadByIndexReq Source # 
Instance details

Defined in SwiftNav.SBP.Settings

ToJSON MsgSettingsReadByIndexReq Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Read MsgSettingsReadByIndexReq Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Show MsgSettingsReadByIndexReq Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Binary MsgSettingsReadByIndexReq Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Eq MsgSettingsReadByIndexReq Source # 
Instance details

Defined in SwiftNav.SBP.Settings

ToSBP MsgSettingsReadByIndexReq Source # 
Instance details

Defined in SwiftNav.SBP.Settings

data MsgSettingsReadByIndexResp Source #

SBP class for message MSG_SETTINGS_READ_BY_INDEX_RESP (0x00A7).

The settings message that reports the value of a setting at an index.

In the string field, it reports NULL-terminated and delimited string with contents "SECTION_SETTING0SETTING0VALUE0FORMAT_TYPE0". where the '0' escape sequence denotes the NULL character and where quotation marks are omitted. The FORMAT_TYPE field is optional and denotes possible string values of the setting as a hint to the user. If included, the format type portion of the string has the format "enum:value1,value2,value3". An example string that could be sent from the device is "simulator0enabled0True0enum:True,False0".

Constructors

MsgSettingsReadByIndexResp 

Fields

Instances

Instances details
FromJSON MsgSettingsReadByIndexResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

ToJSON MsgSettingsReadByIndexResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Read MsgSettingsReadByIndexResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Show MsgSettingsReadByIndexResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Binary MsgSettingsReadByIndexResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Eq MsgSettingsReadByIndexResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

ToSBP MsgSettingsReadByIndexResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

data MsgSettingsReadByIndexDone Source #

SBP class for message MSG_SETTINGS_READ_BY_INDEX_DONE (0x00A6).

The settings message for indicating end of the settings values.

Instances

Instances details
FromJSON MsgSettingsReadByIndexDone Source # 
Instance details

Defined in SwiftNav.SBP.Settings

ToJSON MsgSettingsReadByIndexDone Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Read MsgSettingsReadByIndexDone Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Show MsgSettingsReadByIndexDone Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Binary MsgSettingsReadByIndexDone Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Eq MsgSettingsReadByIndexDone Source # 
Instance details

Defined in SwiftNav.SBP.Settings

ToSBP MsgSettingsReadByIndexDone Source # 
Instance details

Defined in SwiftNav.SBP.Settings

data MsgSettingsRegister Source #

SBP class for message MSG_SETTINGS_REGISTER (0x00AE).

This message registers the presence and default value of a setting with a settings daemon. The host should reply with MSG_SETTINGS_WRITE for this setting to set the initial value.

Constructors

MsgSettingsRegister 

Fields

Instances

Instances details
FromJSON MsgSettingsRegister Source # 
Instance details

Defined in SwiftNav.SBP.Settings

ToJSON MsgSettingsRegister Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Read MsgSettingsRegister Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Show MsgSettingsRegister Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Binary MsgSettingsRegister Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Eq MsgSettingsRegister Source # 
Instance details

Defined in SwiftNav.SBP.Settings

ToSBP MsgSettingsRegister Source # 
Instance details

Defined in SwiftNav.SBP.Settings

data MsgSettingsRegisterResp Source #

SBP class for message MSG_SETTINGS_REGISTER_RESP (0x01AF).

This message responds to setting registration with the effective value. The effective value shall differ from the given default value if setting was already registered or is available in the permanent setting storage and had a different value.

Constructors

MsgSettingsRegisterResp 

Fields

Instances

Instances details
FromJSON MsgSettingsRegisterResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

ToJSON MsgSettingsRegisterResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Read MsgSettingsRegisterResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Show MsgSettingsRegisterResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Binary MsgSettingsRegisterResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

Eq MsgSettingsRegisterResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings

ToSBP MsgSettingsRegisterResp Source # 
Instance details

Defined in SwiftNav.SBP.Settings