Function to Calculate a CRC16 Checksum

前端 未结 7 1360
走了就别回头了
走了就别回头了 2020-12-04 10:19

I\'m working on a library to provide simple reliable communication over an RS232 or RS485 connection. Part of this code involves using a CRC16 checksum on the data to detec

7条回答
  •  孤街浪徒
    2020-12-04 10:35

    There are several different varieties of CRC-16. See wiki page.

    Every of those will return different results from the same input.

    So you must carefully select correct one for your program.

提交回复
热议问题