Search code examples
javacrc16

Value (CRC-16 X 25) to HDLC frame


I have an example frame:

7E FF 10 9A 45 F2 7B F1 00 0A CF 7E

0A CF --> is a CRC-16 X.25 value from these bytes: FF 10 9A 45 F2 7B F1 00

Do you know of an example algorithm for this CRC calculation in Java?


Solution

  • In a recent project I added an implementation of the CRC-16/X-25 calculation.

    I posted it there: https://github.com/mdeverdelhan/Topaz512-driver/blob/v1.0.0/src/main/java/eu/verdelhan/topaz512/Crc16.java#L35 (it is called CRC-B).