Joined: 21 May 2011
|May 21, 2011 7:41 pm
Iam trying to send a file to a dmx player, but i have problem to find out how the checksum works.
In the manuel they see that i have to do a xor with the address and the data bytes.
But i dont know how to do this.
I can send data to the player I captured with a rs232 spy and that works fine, but i don't see how the checksum is calculated.
To start i send a $FD, $00, $00, $28, the $28 is the checksum i captured.
Then i send the last 2 bytes with a hextoi :
This is working, but how are they calculate the checsum of $28
But when i put a other file it don't and i see that the checksum is changed.
This is what into the manual is:
0xFD(Block transfer header)
address low(0x00 ... 0xFF)
address high(0x00 ... 0xFF)
data byte(0x00 ... 0xFF)
checksum(0xDF xor address low xor address high
xor data byte)
Is there someone that can tell me how this checksum is working.