gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question on how the checksum is computed


From: marjon
Subject: Question on how the checksum is computed
Date: Thu, 02 May 2002 10:18:20 +0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2

I would like to ask on how the checksum is computed?
This was the line I found in gnokii, module FBxx_RX_StateMachine(char rx_byte):
---->
if (checksum[0] == checksum[1])
But what is the received bytes were like this:
:1e:0c:00:7f:00:02:d1:80:cf:f1

I mean, I get checksum[0] = 0xcf & checksum[1] = f1
But they would never be equal right? so the program would not pass
through the  if statement?  But as I understand, it does? how is this?
Please explain.

Marjon

reply via email to

[Prev in Thread] Current Thread [Next in Thread]