CHECKSUM CALCULATION, Please Help!


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: CHECKSUM CALCULATION, Please Help!

    Interesting methof of doing CRC, but completely unrelated to the original question.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: CHECKSUM CALCULATION, Please Help!

    Take the ASCII value, subtract 0x30, if results is >9 then subtract 0x07. Value should then be in hex. If you want to bounds check then test result to make sure it is >= 0 and < 0x10. Then take the first packet hex value and leftshift by 4 and then add to hex value of second packet. Bitwise AND your calculated checksum with 0xFF and compare with the transmitted checksum.
    Tim Barr

  3. #3
    Join Date
    Jun 2010
    Location
    Venezuela
    Posts
    12


    Did you find this post helpful? Yes | No

    Default Re: CHECKSUM CALCULATION, Please Help!

    hi wasilus, tanks for you answer, these are examples used to calculate CRC16.

    try this:

    1.- $50 + $31 + $32 + $33 + $34 = $11A

    2.- $11A / $100 = $1

    3.- the carry = A

    4.- Your checksum = 1A

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts