sbp.acquisition module

Satellite acquisition messages from the device.

class sbp.acquisition.AcqSvProfile(payload=None, **kwargs)[source]

Bases: object

AcqSvProfile.

Profile for a specific SV for debugging purposes

The message describes SV profile during acquisition time. The message is used to debug and measure the performance.

job_type
: int
SV search job type (deep, fallback, etc)
status
: int
Acquisition status 1 is Success, 0 is Failure
cn0
: int
CN0 value. Only valid if status is ‘1’
int_time
: int
Acquisition integration time
sid
: GnssSignal
GNSS signal for which acquisition was attempted
bin_width
: int
Acq frequency bin width
timestamp
: int
Timestamp of the job complete event
time_spent
: int
Time spent to search for sid.code
cf_min
: int
Doppler range lowest frequency
cf_max
: int
Doppler range highest frequency
cf
: int
Doppler value of detected peak. Only valid if status is ‘1’
cp
: int
Codephase of detected peak. Only valid if status is ‘1’
bin_width
cf
cf_max
cf_min
cn0
cp
from_binary(d)[source]
int_time
job_type
sid
status
time_spent
timestamp
to_binary()[source]
class sbp.acquisition.AcqSvProfileDep(payload=None, **kwargs)[source]

Bases: object

AcqSvProfileDep.

Deprecated.

job_type
: int
SV search job type (deep, fallback, etc)
status
: int
Acquisition status 1 is Success, 0 is Failure
cn0
: int
CN0 value. Only valid if status is ‘1’
int_time
: int
Acquisition integration time
sid
: GnssSignalDep
GNSS signal for which acquisition was attempted
bin_width
: int
Acq frequency bin width
timestamp
: int
Timestamp of the job complete event
time_spent
: int
Time spent to search for sid.code
cf_min
: int
Doppler range lowest frequency
cf_max
: int
Doppler range highest frequency
cf
: int
Doppler value of detected peak. Only valid if status is ‘1’
cp
: int
Codephase of detected peak. Only valid if status is ‘1’
bin_width
cf
cf_max
cf_min
cn0
cp
from_binary(d)[source]
int_time
job_type
sid
status
time_spent
timestamp
to_binary()[source]
class sbp.acquisition.MsgAcqResult(sbp=None, **kwargs)[source]

Bases: sbp.msg.SBP

SBP class for message MSG_ACQ_RESULT (0x002F).

You can have MSG_ACQ_RESULT inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields.

This message describes the results from an attempted GPS signal

acquisition search for a satellite PRN over a code phase/carrier frequency range. It contains the parameters of the point in the acquisition search space with the best carrier-to-noise (CN/0) ratio.

sbp
: SBP
SBP parent object to inherit from.
cn0
: float
CN/0 of best point
cp
: float
Code phase of best point
cf
: float
Carrier frequency of best point
sid
: GnssSignal
GNSS signal for which acquisition was attempted
sender
: int
Optional sender ID, defaults to SENDER_ID (see sbp/msg.py).
cf
cn0
cp
from_binary(d)[source]

Given a binary payload d, update the appropriate payload fields of the message.

static from_json(s)[source]

Given a JSON-encoded string s, build a message object.

static from_json_dict(d)[source]
sid
to_binary()[source]

Produce a framed/packed SBP message.

to_json_dict()[source]
class sbp.acquisition.MsgAcqResultDepA(sbp=None, **kwargs)[source]

Bases: sbp.msg.SBP

SBP class for message MSG_ACQ_RESULT_DEP_A (0x0015).

You can have MSG_ACQ_RESULT_DEP_A inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields.

Deprecated.

sbp
: SBP
SBP parent object to inherit from.
snr
: float
SNR of best point. Currently dimensonless, but will have

units of dB Hz in the revision of this message.

cp
: float
Code phase of best point
cf
: float
Carrier frequency of best point
prn
: int
PRN-1 identifier of the satellite signal for which

acquisition was attempted

sender
: int
Optional sender ID, defaults to SENDER_ID (see sbp/msg.py).
cf
cp
from_binary(d)[source]

Given a binary payload d, update the appropriate payload fields of the message.

static from_json(s)[source]

Given a JSON-encoded string s, build a message object.

static from_json_dict(d)[source]
prn
snr
to_binary()[source]

Produce a framed/packed SBP message.

to_json_dict()[source]
class sbp.acquisition.MsgAcqResultDepB(sbp=None, **kwargs)[source]

Bases: sbp.msg.SBP

SBP class for message MSG_ACQ_RESULT_DEP_B (0x0014).

You can have MSG_ACQ_RESULT_DEP_B inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields.

Deprecated.

sbp
: SBP
SBP parent object to inherit from.
snr
: float
SNR of best point. Currently in arbitrary SNR points, but will

be in units of dB Hz in a later revision of this message.

cp
: float
Code phase of best point
cf
: float
Carrier frequency of best point
sid
: GnssSignalDep
GNSS signal for which acquisition was attempted
sender
: int
Optional sender ID, defaults to SENDER_ID (see sbp/msg.py).
cf
cp
from_binary(d)[source]

Given a binary payload d, update the appropriate payload fields of the message.

static from_json(s)[source]

Given a JSON-encoded string s, build a message object.

static from_json_dict(d)[source]
sid
snr
to_binary()[source]

Produce a framed/packed SBP message.

to_json_dict()[source]
class sbp.acquisition.MsgAcqResultDepC(sbp=None, **kwargs)[source]

Bases: sbp.msg.SBP

SBP class for message MSG_ACQ_RESULT_DEP_C (0x001F).

You can have MSG_ACQ_RESULT_DEP_C inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields.

Deprecated.

sbp
: SBP
SBP parent object to inherit from.
cn0
: float
CN/0 of best point
cp
: float
Code phase of best point
cf
: float
Carrier frequency of best point
sid
: GnssSignalDep
GNSS signal for which acquisition was attempted
sender
: int
Optional sender ID, defaults to SENDER_ID (see sbp/msg.py).
cf
cn0
cp
from_binary(d)[source]

Given a binary payload d, update the appropriate payload fields of the message.

static from_json(s)[source]

Given a JSON-encoded string s, build a message object.

static from_json_dict(d)[source]
sid
to_binary()[source]

Produce a framed/packed SBP message.

to_json_dict()[source]
class sbp.acquisition.MsgAcqSvProfile(sbp=None, **kwargs)[source]

Bases: sbp.msg.SBP

SBP class for message MSG_ACQ_SV_PROFILE (0x002E).

You can have MSG_ACQ_SV_PROFILE inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields.

The message describes all SV profiles during acquisition time.

The message is used to debug and measure the performance.

sbp
: SBP
SBP parent object to inherit from.
acq_sv_profile
: array
SV profiles during acquisition time
sender
: int
Optional sender ID, defaults to SENDER_ID (see sbp/msg.py).
acq_sv_profile
from_binary(d)[source]

Given a binary payload d, update the appropriate payload fields of the message.

static from_json(s)[source]

Given a JSON-encoded string s, build a message object.

static from_json_dict(d)[source]
to_binary()[source]

Produce a framed/packed SBP message.

to_json_dict()[source]
class sbp.acquisition.MsgAcqSvProfileDep(sbp=None, **kwargs)[source]

Bases: sbp.msg.SBP

SBP class for message MSG_ACQ_SV_PROFILE_DEP (0x001E).

You can have MSG_ACQ_SV_PROFILE_DEP inherit its fields directly from an inherited SBP object, or construct it inline using a dict of its fields.

Deprecated.

sbp
: SBP
SBP parent object to inherit from.
acq_sv_profile
: array
SV profiles during acquisition time
sender
: int
Optional sender ID, defaults to SENDER_ID (see sbp/msg.py).
acq_sv_profile
from_binary(d)[source]

Given a binary payload d, update the appropriate payload fields of the message.

static from_json(s)[source]

Given a JSON-encoded string s, build a message object.

static from_json_dict(d)[source]
to_binary()[source]

Produce a framed/packed SBP message.

to_json_dict()[source]