public void GetCRC()
{
    CRCManager manager = new CRCManager() { DataFormat = EnumOriginalDataFormat.HEX };
    AbsCRCProvider provider = manager.CreateCRCProvider(EnumCRCProvider.CRC16);
    var status = provider.GetCRC("1234567890");
    Debug.WriteLine("CheckSum: " + status.CheckSum);
    Debug.WriteLine("FullData: " + status.FullData);
}

Result:
CheckSum: 4F74
FullData: 12345678904F74

Verify Location:
On-line CRC calculation and free library
http://www.lammertbies.nl/comm/info/crc-calculation.html

Last edited Apr 8, 2013 at 1:24 PM by yc421206, version 2

Comments

No comments yet.