[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Question on How the Checksum is Computed, please help!
From: |
marjon |
Subject: |
Question on How the Checksum is Computed, please help! |
Date: |
Thu, 02 May 2002 12:07: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
- Question on How the Checksum is Computed, please help!,
marjon <=
- Re: Question on How the Checksum is Computed, please help!, C. Kemp, 2002/05/02
- Re: Question on How the Checksum is Computed, please help!, marjon, 2002/05/02
- Re: Question on How the Checksum is Computed, please help!, Pawel Kot, 2002/05/02
- Re: Question on How the Checksum is Computed, please help!, marjonz, 2002/05/02
- Re: Question on How the Checksum is Computed, please help!, BORBELY Zoltan, 2002/05/02
- Re: Question on How the Checksum is Computed, please help!, Christopher Kemp, 2002/05/02