23#ifndef __FPSDK_COMMON_PARSER_UNIB_HPP__
24#define __FPSDK_COMMON_PARSER_UNIB_HPP__
59 return (((uint16_t)((uint8_t*)msg)[5] << 8) | (uint16_t)((uint8_t*)msg)[4]);
73 return (((uint16_t)((uint8_t*)msg)[7] << 8) | (uint16_t)((uint8_t*)msg)[6]);
106bool UnibGetMessageName(
char* name,
const std::size_t size,
const uint8_t* msg,
const std::size_t msg_size);
122bool UnibGetMessageInfo(
char* info,
const std::size_t size,
const uint8_t* msg,
const std::size_t msg_size);
@ UNKNOWN
Time validity is unknown.
@ FINE
Time has fine precision.
static constexpr const char * UNI_B_BASEINFO_STRID
UNI_B-BASEINFO message name.
static constexpr const char * UNI_B_GPSUTC_STRID
UNI_B-GPSUTC message name.
static constexpr const char * UNI_B_PPPDOP_STRID
UNI_B-PPPDOP message name.
static constexpr uint16_t UNI_B_OBSVM_MSGID
UNI_B-OBSVM message ID.
static constexpr uint16_t UNI_B_GLOEPH_MSGID
UNI_B-GLOEPH message ID.
static constexpr const char * UNI_B_SATECEF_STRID
UNI_B-SATECEF message name.
static constexpr uint16_t UNI_B_BDSUTC_MSGID
UNI_B-BDSUTC message ID.
static constexpr uint16_t UNI_B_VERSION_MSGID
UNI_B-VERSION message ID.
static constexpr const char * UNI_B_BESTNAV_STRID
UNI_B-BESTNAV message name.
static constexpr uint16_t UNI_B_OBSVH_MSGID
UNI_B-OBSVH message ID.
static constexpr uint16_t UNI_B_ADRNAVH_MSGID
UNI_B-ADRNAVH message ID.
static constexpr const char * UNI_B_PPPSTATUS_STRID
UNI_B-PPPSTATUS message name.
static constexpr uint16_t UNI_B_PPPB2INFO6_MSGID
UNI_B-PPPB2INFO6 message ID.
static constexpr const char * UNI_B_TROPINFO_STRID
UNI_B-TROPINFO message name.
static constexpr const char * UNI_B_SATSINFO_STRID
UNI_B-SATSINFO message name.
static constexpr uint8_t UNI_B_SYNC_1
Sync char 1.
static constexpr const char * UNI_B_NOVHEADING_STRID
UNI_B-NOVHEADING message name.
static constexpr uint16_t UNI_B_STADOP_MSGID
UNI_B-STADOP message ID.
static constexpr uint16_t UNI_B_PPPDOP_MSGID
UNI_B-PPPDOP message ID.
static constexpr uint16_t UNI_B_INFOPART2_MSGID
UNI_B-INFOPART2 message ID.
static constexpr const char * UNI_B_PPPNAV_STRID
UNI_B-PPPNAV message name.
static constexpr uint16_t UNI_B_SPPNAVH_MSGID
UNI_B-SPPNAVH message ID.
static constexpr uint16_t UNI_B_ADRNAV_MSGID
UNI_B-ADRNAV message ID.
static constexpr uint16_t UNI_B_RTCSTATUS_MSGID
UNI_B-RTCSTATUS message ID.
static constexpr uint16_t UNI_B_PPPB2INFO1_MSGID
UNI_B-PPPB2INFO1 message ID.
static constexpr const char * UNI_B_AGC_STRID
UNI_B-AGC message name.
static constexpr const char * UNI_B_GALEPH_STRID
UNI_B-GALEPH message name.
static constexpr const char * UNI_B_ADRDOP_STRID
UNI_B-ADRDOP message name.
static constexpr uint16_t UNI_B_BD3EPH_MSGID
UNI_B-BD3EPH message ID.
static constexpr const char * UNI_B_BESTSAT_STRID
UNI_B-BESTSAT message name.
static constexpr const char * UNI_B_RTCMSTATUS_STRID
UNI_B-RTCMSTATUS message name.
static constexpr const char * UNI_B_GLOEPH_STRID
UNI_B-GLOEPH message name.
static constexpr const char * UNI_B_PPPB2INFO4_STRID
UNI_B-PPPB2INFO4 message name.
static constexpr const char * UNI_B_BDSION_STRID
UNI_B-BDSION message name.
static constexpr const char * UNI_B_PPPB2INFO7_STRID
UNI_B-PPPB2INFO7 message name.
static constexpr const char * UNI_B_BESTNAVH_STRID
UNI_B-BESTNAVH message name.
static constexpr uint16_t UNI_B_BDSION_MSGID
UNI_B-BDSION message ID.
UnibTimeStatus
Time status.
@ UNKNOWN
Unknown, precise time not known.
@ FINE
Precise time known.
static constexpr uint16_t UNI_B_INFOPART1_MSGID
UNI_B-INFOPART1 message ID.
static constexpr const char * UNI_B_OBSVM_STRID
UNI_B-OBSVM message name.
static constexpr const char * UNI_B_GPSION_STRID
UNI_B-GPSION message name.
static constexpr uint16_t UNI_B_GALEPH_MSGID
UNI_B-GALEPH message ID.
static constexpr uint16_t UNI_B_BASEINFO_MSGID
UNI_B-BASEINFO message ID.
bool UnibGetMessageName(char *name, const std::size_t size, const uint8_t *msg, const std::size_t msg_size)
Get UNI_B message name.
static constexpr uint16_t UNI_B_STADOPH_MSGID
UNI_B-STADOPH message ID.
constexpr uint8_t UNI_B_MSGVER(const uint8_t *msg)
Get message version.
static constexpr uint16_t UNI_B_SATECEF_MSGID
UNI_B-SATECEF message ID.
static constexpr const char * UNI_B_GALUTC_STRID
UNI_B-GALUTC message name.
static constexpr uint16_t UNI_B_PPPSTATUS_MSGID
UNI_B-PPPSTATUS message ID.
static constexpr uint16_t UNI_B_SATSINFO_MSGID
UNI_B-SATSINFO message ID.
static constexpr const char * UNI_B_INFOPART2_STRID
UNI_B-INFOPART2 message name.
static constexpr const char * UNI_B_AGRIC_STRID
UNI_B-AGRIC message name.
static constexpr const char * UNI_B_SPPNAVH_STRID
UNI_B-SPPNAVH message name.
static constexpr const char * UNI_B_BDSEPH_STRID
UNI_B-BDSEPH message name.
static constexpr uint16_t UNI_B_AGRIC_MSGID
UNI_B-AGRIC message ID.
static constexpr const char * UNI_B_STADOP_STRID
UNI_B-STADOP message name.
static constexpr const char * UNI_B_INFOPART1_STRID
UNI_B-INFOPART1 message name.
static constexpr uint8_t UNI_B_SYNC_3
Sync char 3.
static constexpr const char * UNI_B_GALION_STRID
UNI_B-GALION message name.
static constexpr const char * UNI_B_RTKSTATUS_STRID
UNI_B-RTKSTATUS message name.
static constexpr const char * UNI_B_VERSION_STRID
UNI_B-VERSION message name.
static constexpr const char * UNI_B_PVTSLN_STRID
UNI_B-PVTSLN message name.
static constexpr const char * UNI_B_PPPB2INFO1_STRID
UNI_B-PPPB2INFO1 message name.
static constexpr const char * UNI_B_SATELLITE_STRID
UNI_B-SATELLITE message name.
static constexpr uint16_t UNI_B_BESTNAV_MSGID
UNI_B-BESTNAV message ID.
static constexpr uint16_t UNI_B_PPPNAV_MSGID
UNI_B-PPPNAV message ID.
static constexpr uint16_t UNI_B_PTOBSINFO_MSGID
UNI_B-PTOBSINFO message ID.
static constexpr uint16_t UNI_B_PPPB2INFO7_MSGID
UNI_B-PPPB2INFO7 message ID.
static constexpr const char * UNI_B_BD3EPH_STRID
UNI_B-BD3EPH message name.
static constexpr uint16_t UNI_B_ADRDOP_MSGID
UNI_B-ADRDOP message ID.
static constexpr std::size_t UNI_B_HEAD_SIZE
Size of the UNI_B header (UnibHeader)
static constexpr uint16_t UNI_B_PPPB2INFO2_MSGID
UNI_B-PPPB2INFO2 message ID.
const char * UnibTimeRefStr(const UnibTimeRef time_ref)
Stringify time reference.
static constexpr uint16_t UNI_B_RTKSTATUS_MSGID
UNI_B-RTKSTATUS message ID.
static constexpr uint16_t UNI_B_BD3UTC_MSGID
UNI_B-BD3UTC message ID.
static constexpr const char * UNI_B_AGNSSSTATUS_STRID
UNI_B-AGNSSSTATUS message name.
static constexpr uint16_t UNI_B_OBSVHCMP_MSGID
UNI_B-OBSVHCMP message ID.
static constexpr uint16_t UNI_B_RECTIME_MSGID
UNI_B-RECTIME message ID.
static constexpr uint16_t UNI_B_SPPDOP_MSGID
UNI_B-SPPDOP message ID.
static constexpr uint16_t UNI_B_AGC_MSGID
UNI_B-AGC message ID.
static constexpr const char * UNI_B_OBSVBASE_STRID
UNI_B-OBSVBASE message name.
static constexpr const char * UNI_B_OBSVMCMP_STRID
UNI_B-OBSVMCMP message name.
static constexpr const char * UNI_B_PPPB2INFO2_STRID
UNI_B-PPPB2INFO2 message name.
static constexpr const char * UNI_B_QZSSEPH_STRID
UNI_B-QZSSEPH message name.
static constexpr uint16_t UNI_B_SPPNAV_MSGID
UNI_B-SPPNAV message ID.
static constexpr uint16_t UNI_B_BDSEPH_MSGID
UNI_B-BDSEPH message ID.
static constexpr const char * UNI_B_BESTNAVXYZ_STRID
UNI_B-BESTNAVXYZ message name.
static constexpr uint16_t UNI_B_BESTNAVXYZH_MSGID
UNI_B-BESTNAVXYZH message ID.
static constexpr const char * UNI_B_GPSEPH_STRID
UNI_B-GPSEPH message name.
static constexpr uint16_t UNI_B_GPSEPH_MSGID
UNI_B-GPSEPH message ID.
static constexpr uint16_t UNI_B_OBSVBASE_MSGID
UNI_B-OBSVBASE message ID.
static constexpr const char * UNI_B_BESTNAVXYZH_STRID
UNI_B-BESTNAVXYZH message name.
static constexpr uint16_t UNI_B_NOVHEADING_MSGID
UNI_B-NOVHEADING message ID.
static constexpr const char * UNI_B_ADRNAV_STRID
UNI_B-ADRNAV message name.
static constexpr const char * UNI_B_PPPB2INFO6_STRID
UNI_B-PPPB2INFO6 message name.
static constexpr const char * UNI_B_PPPB2INFO3_STRID
UNI_B-PPPB2INFO3 message name.
static constexpr const char * UNI_B_BD3UTC_STRID
UNI_B-BD3UTC message name.
UnibProductModel
Product model.
static constexpr uint16_t UNI_B_AGNSSSTATUS_MSGID
UNI_B-AGNSSSTATUS message ID.
static constexpr uint16_t UNI_B_ADRDOPH_MSGID
UNI_B-ADRDOPH message ID.
static constexpr uint16_t UNI_B_PPPB2INFO4_MSGID
UNI_B-PPPB2INFO4 message ID.
static constexpr const char * UNI_B_SPPDOP_STRID
UNI_B-SPPDOP message name.
static constexpr uint16_t UNI_B_MSPOS_MSGID
UNI_B-MSPOS message ID.
static constexpr const char * UNI_B_BDSUTC_STRID
UNI_B-BDSUTC message name.
UnibTimeRef
Time reference.
static constexpr uint16_t UNI_B_TROPINFO_MSGID
UNI_B-TROPINFO message ID.
static constexpr const char * UNI_B_PPPB2INFO5_STRID
UNI_B-PPPB2INFO5 message name.
static constexpr uint16_t UNI_B_FREQJAMSTATUS_MSGID
UNI_B-FREQJAMSTATUS message ID.
static constexpr uint16_t UNI_B_PPPB2INFO5_MSGID
UNI_B-PPPB2INFO5 message ID.
const char * UnibTimeStatusStr(const UnibTimeStatus time_status)
Stringify time status.
bool UnibGetMessageInfo(char *info, const std::size_t size, const uint8_t *msg, const std::size_t msg_size)
Get UNI_B message info.
static constexpr uint16_t UNI_B_JAMSTATUS_MSGID
UNI_B-JAMSTATUS message ID.
static constexpr uint16_t UNI_B_BESTSAT_MSGID
UNI_B-BESTSAT message ID.
static constexpr uint16_t UNI_B_SPPDOPH_MSGID
UNI_B-SPPDOPH message ID.
static constexpr const char * UNI_B_NOVHEADING2_STRID
UNI_B-NOVHEADING2 message name.
static constexpr uint8_t UNI_B_SYNC_2
Sync char 2.
static constexpr uint16_t UNI_B_BD3ION_MSGID
UNI_B-BD3ION message ID.
static constexpr const char * UNI_B_BASEPOS_STRID
UNI_B-BASEPOS message name.
static constexpr const char * UNI_B_JAMSTATUS_STRID
UNI_B-JAMSTATUS message name.
static constexpr const char * UNI_B_ADRNAVH_STRID
UNI_B-ADRNAVH message name.
static constexpr uint16_t UNI_B_GALUTC_MSGID
UNI_B-GALUTC message ID.
static constexpr const char * UNI_B_HWSTATUS_STRID
UNI_B-HWSTATUS message name.
static constexpr const char * UNI_B_MSPOS_STRID
UNI_B-MSPOS message name.
static constexpr uint16_t UNI_B_GALION_MSGID
UNI_B-GALION message ID.
static constexpr uint16_t UNI_B_NOVHEADING2_MSGID
UNI_B-NOVHEADING2 message ID.
static constexpr const char * UNI_B_BD3ION_STRID
UNI_B-BD3ION message name.
static constexpr const char * UNI_B_RECTIME_STRID
UNI_B-RECTIME message name.
static constexpr const char * UNI_B_STADOPH_STRID
UNI_B-STADOPH message name.
static constexpr uint16_t UNI_B_QZSSEPH_MSGID
UNI_B-QZSSEPH message ID.
static constexpr uint16_t UNI_B_BASEPOS_MSGID
UNI_B-BASEPOS message ID.
static constexpr uint16_t UNI_B_BESTNAVXYZ_MSGID
UNI_B-BESTNAVXYZ message ID.
static constexpr uint16_t UNI_B_GPSION_MSGID
UNI_B-GPSION message ID.
static constexpr const char * UNI_B_FREQJAMSTATUS_STRID
UNI_B-FREQJAMSTATUS message name.
static constexpr const char * UNI_B_ADRDOPH_STRID
UNI_B-ADRDOPH message name.
static constexpr const char * UNI_B_PTOBSINFO_STRID
UNI_B-PTOBSINFO message name.
constexpr uint16_t UnibMsgSize(const uint8_t *msg)
Get message size.
static constexpr const char * UNI_B_SPPDOPH_STRID
UNI_B-SPPDOPH message name.
static constexpr uint16_t UNI_B_RTCMSTATUS_MSGID
UNI_B-RTCMSTATUS message ID.
static constexpr uint16_t UNI_B_OBSVMCMP_MSGID
UNI_B-OBSVMCMP message ID.
static constexpr uint16_t UNI_B_GPSUTC_MSGID
UNI_B-GPSUTC message ID.
static constexpr uint16_t UNI_B_PPPB2INFO3_MSGID
UNI_B-PPPB2INFO3 message ID.
static constexpr uint16_t UNI_B_BESTNAVH_MSGID
UNI_B-BESTNAVH message ID.
static constexpr uint16_t UNI_B_HWSTATUS_MSGID
UNI_B-HWSTATUS message ID.
static constexpr const char * UNI_B_OBSVH_STRID
UNI_B-OBSVH message name.
static constexpr const char * UNI_B_OBSVHCMP_STRID
UNI_B-OBSVHCMP message name.
static constexpr uint16_t UNI_B_SATELLITE_MSGID
UNI_B-SATELLITE message ID.
static constexpr const char * UNI_B_RTCSTATUS_STRID
UNI_B-RTCSTATUS message name.
static constexpr uint16_t UNI_B_PVTSLN_MSGID
UNI_B-PVTSLN message ID.
static constexpr const char * UNI_B_SPPNAV_STRID
UNI_B-SPPNAV message name.
constexpr uint16_t UnibMsgId(const uint8_t *msg)
Get message ID.
const char * UnibProductModelStr(const UnibProductModel model)
Stringify UNI_B-VERSION.product_model.
Fixposition SDK: Parser NOV_B routines and types.
uint8_t auth_type[129]
Authorization type (nul-terminated string)
uint8_t psn[66]
PN and SN (nul-terminated string)
uint32_t product_model
Product model (UnibProductModel)
uint8_t firmware_date[43]
Firmware date (yyyy/mm/dd, nul-terminated string)
uint8_t board_id[33]
Board ID (nul-terminated string)
uint8_t firmware_version[33]
Firmware version (nul-terminated string)