Hello,
I am trying to xor the byte representation of every char in a string with
its predecessor. But I don't know how to convert a char into its byte
representation. This is to calculate the nmea checksum for gps data.
e.g. everything between $ and * needs to be xor:
$GPGSV,3,1,10,0 6,79,187,39,30, 59,098,40,25,51 ,287,00,05,25,1 03,44*
to get the checksum.
Thank you for you help.
Phil
I am trying to xor the byte representation of every char in a string with
its predecessor. But I don't know how to convert a char into its byte
representation. This is to calculate the nmea checksum for gps data.
e.g. everything between $ and * needs to be xor:
$GPGSV,3,1,10,0 6,79,187,39,30, 59,098,40,25,51 ,287,00,05,25,1 03,44*
to get the checksum.
Thank you for you help.
Phil
Comment