Thread: Help figuring out a checksum algorithm

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    2

    Help figuring out a checksum algorithm

    Hi all, I'm new to the board and I need help.
    I am trying to figure out a checksum algorithm. from what I know it is a fairly simple alg but i still am having trouble.
    Here is a sample of the data and the checksum:


    F0 20 20 31 30 37 2E 37 20 46 4D 32 2E 34 20 20 20 and the Checksum is 3E

    Another set of Data is
    F0 43 44 20 30 31 20 20 1C 54 52 20 31 31 20 1C 1C and the Checksum is 3A
    another is
    F0 20 20 31 30 37 2E 37 20 46 4D 32 2E 35 20 20 20 and the checksum is 3D

    Any help would be greatly appreciated.

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Doesn't look like a C question to me.... over to GD we go...
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    What is the context? Where does the data/checksum come from? There are two reasons for asking.

    1. Knowledge of the context may suggest a standard solution, and so we can help you.

    2. If you are trying to hack something, then we will not!

    If you have a legit problem here, post a few more details, and we'll see what we can do.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  4. #4
    Registered User
    Join Date
    Jan 2003
    Posts
    2
    This is a signal from my car radio to my cars display system. I want to figure it out so I can display my own information to it.

  5. #5
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    Can you throw arbitrary input to the the display? Can you do stuff like change the least significant bit by just one?
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  6. #6
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    What kind of car radio is it? Perhaps someone knows the protocol this radio uses. How did you know that the sample data was real sample data and the checksum is correct?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. weird checksum function
    By sagitt13 in forum C Programming
    Replies: 7
    Last Post: 10-31-2006, 01:25 AM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM