2 swg668 swg668 于 2013.09.03 11:51 提问

C# CRC8算法校验问题,如何进行校验

Combined serial number = (ID series * 524288) + serial number.
Then the combined serial number must be converted to hexadecimal and insert with the least significant byte first. Below example shows the hex file created for a serial number of 14 and a ID series of 4. This gives 20000E. The serial number is followed by a CRC-8 and at the end the Intel
Checksum. The rest of the characters are the same for every time.

:100000000E0020E2000000000000000000000000E0

意思如下:(4*524288)+14转换成16进制后为20000e,倒一下,变成0E0020,然后进行CRC-8校验,得到E2,请问这边的E2是如何算出来的,请给出C#的算法。我在网上找了很多C#算法,都算不出是E2,是不是这边算错了?

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!