HashAlgorithms icon indicating copy to clipboard operation
HashAlgorithms copied to clipboard

CRC16 Modbus

Open tinohager opened this issue 3 years ago • 1 comments

Hi, i just fell over a new CRC16 Modbus variant which is still missing here maybe you could add it.

var defaultHasher = new Nito.HashAlgorithms.CRC16(new CRC16.Definition
{
    TruncatedPolynomial = 0x8005,
    Initializer = 0xFFFF,
    ReverseDataBytes = true,
    ReverseResultBeforeFinalXor = true,
});
  • https://www.modbustools.com/modbus_crc16.htm
  • https://stackoverflow.com/questions/7864624/strange-crc-calculation

tinohager avatar Feb 05 '23 20:02 tinohager

Thanks!

StephenCleary avatar Mar 08 '23 00:03 StephenCleary