问题描述
- 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,是不是这边算错了?
时间: 2024-12-29 05:41:15