I am having problems with calculating CRC-16 implementation of a byte array in java. Basically I am trying to send bytes to a RFID that starts writing to a tag. I can see th
Maybe are you looking for this?
Crc16 in java
I use the same array (variable "table") in this method:
public Integer computeCrc16(byte[] data) { int crc = 0x0000; for (byte b : data) { crc = (crc >>> 8) ^ table[((crc ^ b) & 0xff)]; } return (int) crc; }