计算 HDLC 帧的 FCS(CRC) [英] Calculating FCS(CRC) for HDLC frame
本文介绍了计算 HDLC 帧的 FCS(CRC)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下框架:
7e 01 00 00 01 00 18 ef 00 00 00 b5 20 c1 05 10 02 71 2e 1a c2 05 10 01 71 00 6e 87 02 00 01 42 71 2e 1a 01 96 27 be 27 54 17 3d b9 93 ac 7e
如果我理解正确,那么计算 FCS 的正是帧的这一部分:
If I understand correctly, then it is this portion of the frame on which the FCS is calculated:
010000010018ef000000b520c1051002712e1ac205100171006e8702000142712e1a019627be2754173db9
我已尝试将其输入到许多在线计算器中,但我无法从上述数据中生成 0x93ac.
I've tried entering this into a number of online calculators but I cant produce 0x93ac from the above data.
http://www.lammertbies.nl/comm/info/crc-输入类型为十六进制的calculation.html.
0x93ac 是如何得出的?
How is 0x93ac arrived at?
谢谢,
巴里
推荐答案
首先CRC值是0xac93
使用这个计算器:http://www.zorc.breitbandkatze.de/crc.html
- 设置 CRC 顺序 16
- 多项式 1021
- 初始值
ffff
- 最终值
ffff
- 反转数据字节"
- "在最终异或之前反转 CRC 结果"
输入你的序列:
- Set CRC order 16
- Polynomial 1021
- Initial value
ffff
- Final value
ffff
- "reverse data bytes"
- "reverse CRC result before Final XOR"
Enter your sequence as:
%01%00%00%01%00%18%ef%00%00%00%b5%20%c1%05%10%02%71%2e%1a%c2%05%10%01%71%00%6e%87%02%00%01%42%71%2e%1a%01%96%27%be%27%54%17%3d%b9
0xAC93
这篇关于计算 HDLC 帧的 FCS(CRC)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文