[Reply] HI Jeremy,
Just to add one last issue, note that some checksums, notably CRC's, use the last character in such a way that the SUM of all bytes, including the checksum (or CRC) truncated adds up to 00h. kr Gary | To : [EMAIL PROTECTED] | CC : | From: Jeremy Coulter, [EMAIL PROTECTED] | Content Type: text/plain | Attached: | | Thanks Gary...you prob. Saw my second email, which I sent before sending | my last email to the list, which stated what you figured. | It was KINDA an important bit to miss !!! Well that helped me waste 2+ | hrs....sigh | | Thanks, jeremy | | -----Original Message----- | From: GARY T BENNER [mailto:[EMAIL PROTECTED] | Sent: Sunday, 25 July 2004 14:50 | To: [EMAIL PROTECTED] | Cc: [EMAIL PROTECTED] | Subject: [DUG] Pulling my hair out | | | [Reply] | | Hi Jeremy, | | Just to be clear, the first two bytes of the original line of data I'm | assuming are ignored - framing or other data. The result of adding each | individual hex byte of the rest of the line of data using a Hex | calculator adds up to 010A, so my guess is that the SUM is truncated to | one Hex Byte, giving you 0A. | | | HTH | | Gary | | | | To : [EMAIL PROTECTED] | | CC : | | From: Jeremy Coulter, [EMAIL PROTECTED] | | Hi all. | I am pulling my hair out here at the moment. | | I have this line of data :- | | 0df20a0a02450231384301000a | | Its a hex data. Now the last 0A is the checksum. | The document I have says that the checksum is made up of the SUM of | BYTES for these values :- | | 0a 0a 02 45 02 31 38 43 01 00 | | and this line of data has a HEX checksum of 82 (thats 82 in HEX) | | 06 07 01 73 01 00 | | But I am stuffed if I can work it out. I thought I had it figured out, | but NO ! | | Can someone enlighten me how to come to these values? I am SURE I am | meant to know this, but its sure as hell not coming to me. | | Cheers, Jeremy | | | ======================================================== | Gary Benner - e-Engineer and Software Developer - [EMAIL PROTECTED] | 123 Internet Ltd | Lecturer in Information Technology - Waiariki Institute of | Technology | | | | | | ======================================================== Gary Benner - e-Engineer and Software Developer - [EMAIL PROTECTED] 123 Internet Ltd Lecturer in Information Technology - Waiariki Institute of Technology _______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
