Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I deal with Error Detection Codes (Checksum, CRC, LRC, BCC, etc.)?

0
Posted

How do I deal with Error Detection Codes (Checksum, CRC, LRC, BCC, etc.)?

0

Luckily, most EDCs are fairly obvious. For the major classes of EDCs, here is the documentation for which you need to look: • Checksums “The checksum is calculated by adding up all the bytes from the character after the Start-of-Text character up to and including the End-of-Text character” or “To calculate the checksum, add up the ASCII value of each byte in the message and append it to the end of the message.” • LRCs (also known as BCC or XOR) “The checksum is calculated by XORing all the bytes in the message excluding the Start-of-Header byte.” or “To calculate the CRC, XOR only the data bytes. Ignore the header bytes.” or “To determine the CRC, use a standard BCC calculation on all the bytes in the message.” • CRCs A little more complicated, a CRC applies an algorithm to the sequence of characters. Each algorithm normally uses a “polynomial” and optionally some base number. For example: “The CRC-16 check process is applied to all transmitted bytes expect pad and sync bytes….divide

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123