SiRF protocol is designed by SiRF for GPS material.
I don’t find a really clear specification, then I write it !
Format of SiRF packet :
****************************************************
* begin ** length ** payload ** checksum ** end *
****************************************************
begin (2 bytes) = 0xa0a2
length (2 bytes) = number of bytes in payload
checksum (2 bytes) = XOR of bytes in payload AND 0x7fff
end (2 bytes) = 0xb0b3
Example of SIRF message dump :
a0a2 0009 000000010203040506 0007 b0b3
Checksum is not XOR of bytes in payload.
Checksum is sum of bytes in payload;
For example;
00+00+00+01+02+03+04+05+06