Hi, i'm readin file from serialport using x-modem protocol and 133 bytes packet i'm reading in 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've to calculate CRC of 128 bytes data and 2 bytes crc sent form other side that i've to make it single byte and have to comapare with my calculated crc,how can do this in java plz give sample code.
thanks in advance