![]() |
Fixposition SDK 0.0.0-heads/main-0-gb93ddb4
Collection of c++ libraries and apps for use with Fixposition products on Linux
|
API: fpsdk_common/parser/fpa.hpp and fpsdk::common::parser::fpa
$FP,msg_type,msg_version,field3,field4,…,fieldN*CC\r\n
Where:
$ – Start character ("$", ASCII 36)*CC – Checksum: "*" (ASCII 42) and two digit XOR value of all payload characters in captial hexadecimal notation, for example: "FPX" = 'F' ^ 'P' ^ 'X' = 70 ^ 80 ^ 88 = 78 = 0x4e = checksum 4E\r\n – Message termination characters (CR + LF, ASCII 13 + 10)FP – Fixposition ASCII message identifier, "FP" (ASCII 70 + 80)msg_type (= field1) – Message type, all capital letters (ASCII 65–90)msg_version (= field2) – Message version, decimal number (letters 0–9, ASCII 48–57), range 1–…field3,field4,…,fieldN – The structure of the message data is defined by the msg_type and version. Each field can contain all printable 7-bit ASCII characters (ASCII 32–126), excluding the reserved characters ! (ASCII 33), $ (ASCII 36), * (ASCII 42), , (ASCII 44), \ (ASCII 92), ~ (ASCII 126).…,fieldi,fieldi+1,fieldi+2,…fieldi = 123, fieldi+1 = null, fieldi+2 = 456…,123,,456,…