I am reading a file from serialport using the x-modem protocol and a 133 byte packet. I read that
1 byte is SOH 2 byte packet number 3 byte nagative of packet number next 128 bytes data 2 bytes CRC sent from other side.
I need to calculate the CRC from 128 bytes of data and 2 bytes of crc sent on the other hand, that I have to make it a single byte, and I will have to compile with my calculated crc. How can i do this in java?
rupeshkumar
source share