3

Do you have a practical example on how to calculate the CRC field for CAN 2.0 B?

  • 1
    Are you wondering what algorithm is used to create the cyclic redundancy check within the CAN message? I would think that is probably not only proprietary, but is different depending on which CAN controller is used. I've not done any work in this realm, so don't know for sure. – Pᴀᴜʟsᴛᴇʀ2 Aug 07 '15 at 13:37
  • @Paulster2 Thanks. Does the CAN standard suggest a way to calculate it? Is there a step-by-step calculation example, so I can understand exactly how it works? –  Aug 07 '15 at 13:43
  • This link to a Bosch CAN spec may be helpful: http://www.kvaser.com/software/7330130980914/V1/can2spec.pdf You can also find some useful information here: http://www.hackersdelight.org/crc.pdf – David Winslow Aug 07 '15 at 13:56
  • Yes. Can you name one link which satisfies my question. I would be glad to accept it! –  Aug 07 '15 at 14:02
  • @DavidWinslow I read both already. They do not have any example how to calculate the CRC. Thanks anway –  Aug 07 '15 at 14:03
  • 1
    https://stackoverflow.com/questions/2587766/how-is-a-crc32-checksum-calculated – Pᴀᴜʟsᴛᴇʀ2 Aug 07 '15 at 14:09
  • That was provided by @DavidWinslow in The Pitstop – Pᴀᴜʟsᴛᴇʀ2 Aug 07 '15 at 14:10
  • https://en.wikipedia.org/wiki/Computation_of_cyclic_redundancy_checks – Pᴀᴜʟsᴛᴇʀ2 Aug 07 '15 at 14:22
  • @DavidWinslow Please post the information in the comments as an answer show that we can move this question out of the "Unanswered" category – Zaid Dec 11 '15 at 11:26

1 Answers1

1

This link to a Bosch CAN spec may be helpful: http://kvaser.com/software/7330130980914/V1/can2spec.pdf

You can also find some useful information here: http://hackersdelight.org/crc.pdf

David Winslow
  • 631
  • 4
  • 14