nmea checksum in c# .net cf -
i'm trying write own nmea parser,since need info gps, , don't need interpret messages. problem have nmea message validator gives me wrong checksum. can see i'm droing wrong? i'm using idea codepedia - calculating , validating nmea sentences . // returns true if sentence's checksum matches // calculated checksum // calculates checksum sentence private static bool isvalid(string sentence) { if (sentence == "") return false; if (sentence.length < 14) return false; try { string[] words = getwords(sentence); log.writetolog(words); int checksum = 0; string checktocompare = words[words.length - 1]; stringbuilder sb = new stringbuilder(); (int = 1; < (words.length - 2); i++) { sb.append(words[i]); } string sentecentoparse = sb.tostring(); ...