Hi!
I've got a problem... I am working on a protocoll to affect a modeltrain.
But for the Protocoll I need CRC 8 oder CRC 16 Checksum...
So my question is:
Does anybody has or knows where to get a .NET Class which can calculate CRC 8 oder CRC 16 Checksumms
greetings

CRC Class
dd_helper
A little example if you want to write you own method, here is a page about the CRC:
static long ComputeCRC(byte[] val)
{
long crc;
long q;
byte c;
crc = 0;
for (int i=0; i< val.Length; i++)
{
c = val
q = (crc ^ c) & 0x0f;
crc = (crc >> 4) ^ (q * 0x1081);
q = (crc ^ (c >> 4)) & 0xf;
crc = (crc >> 4) ^ (q * 0x1081);
}
return crc;
}
danke4u
http://www.vbaccelerator.com/home/net/code/Libraries/CRC32/article.asp
and
http://www.codeproject.com/csharp/marcelcrcencoding.asp
Bye :)