Attached is External Brake Request(XBR) J1939 message checksum calculation. SAE J1939 Digital Annex(DA) specifies this checksum algorithm. The result of the calculation is 4-bit checksum.
Why is checksum right shifted by 4 bits and added to checksum? Why not just take 4 least significant bits of the checksum? Another words, why not just add first Seven data bytes + message counter + CAN ID and take 4 least significant bits of this result?
Why is checksum right shifted by 4 bits and added to checksum? Why not just take 4 least significant bits of the checksum? Another words, why not just add first Seven data bytes + message counter + CAN ID and take 4 least significant bits of this result?
Attachments
-
88.6 KB Views: 7