Checksum of ASCII messages is calculated as a
8-bit XOR of all characters in the message beginning from the delimiter ($
)
and ending at the last field separator (,
) before the checksum itself.
Example of the message 25 and characters included in the checksum calculation:
$03.22,75.29,03.38,03.07,22.13,0,3E<CR><LF>
$03.22,75.29,03.38,03.07,22.13,0,