Calculating FCS(CRC) for HDLC frame

后端 未结 3 971
北海茫月
北海茫月 2021-02-04 21:22

I have the following frame:

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          


        
3条回答
  •  悲&欢浪女
    2021-02-04 21:35

    First of all, CRC value is 0xac93

    Use this calculator: http://www.zorc.breitbandkatze.de/crc.html

    • 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
      
    • Press "calculate" and you get 0xAC93

提交回复
热议问题