User Profile

Collapse

Profile Sidebar

Collapse
Jarhead
Jarhead
Last Activity: Feb 1 '10, 06:36 PM
Joined: Jan 30 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Jarhead
    replied to Hex checksum
    Almost...
    It's just not returning the correct checksum.

    If you try this:

    Code:
    byte[] byteArray = { 0xF0, 0x00, 0x7D, 0x00, 0x00, 0x00, 0x70, 0x05, 0x02, 0x01, 0x00, 0x02, 0x01, 0x00, 0x3B, 0x00, 0x70, 0x00, 0x00, 0x00, 0x01 };
    And change the byte count to 21, it should return 29 but it returns 41?
    See more | Go to post

    Leave a comment:


  • Jarhead
    replied to Hex checksum
    Anyone else have any ideas, or preferably, some examples?
    See more | Go to post

    Leave a comment:


  • Jarhead
    started a topic Hex checksum

    Hex checksum

    Hey all,
    I'm completely new to programming of any kind and I decided to try and write a driver for a XM tuner.
    I'm trying to figure out how to send a hex array which has 4 bytes that will change with each command. The 4 bytes will be tuner number (appears twice), the actual event wanting to happen, and the checksum.
    To start I want to just figure out how to calculate the checksum and take it from there.
    This is the formula:...
    See more | Go to post
No activity results to display
Show More
Working...