Jump to content

Checksum problem

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
peti1000

peti1000

    Newbie

  • Members
  • Pip
  • 2 posts
Hello,

I have a problem. I have a device, it send for me some data. For example:
02h B3h 46h B0h B0h 31h B5h 32h B0h 32h B3h 31h 32h B3h B3h B0h 34h 32h B3h 20h 83h D5h. The last byte(D5) is the CS ,but I can't decode that. Please help me.
Thanks in advance!

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
What do you mean by "decode that"? The checksum is used to verify the preceding data, based on a predefined formula and expected result. Do you have the checksum formula?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
peti1000

peti1000

    Newbie

  • Members
  • Pip
  • 2 posts
No. I don't have the checksum formula.

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
The checksum formula could be most anything. Parity bits are the simplest. The checksums for Visa and Mastercard credit cards are quite a bit more complex. Unless you know the checksum formula, you will have a lot of reverse-engineering to do.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog