Gregor Ganglberger
Gregor Ganglberger

Reputation: 31

Calculating CRC / Checksum of hex stream (sniffed)

I'm trying a few days to get the type of the CRC with the following hex stream (sniffed with wireshark):

The Hex data i sniffed: 0000001ec001075465737431323308557365726e616d650850617373776f7264d224

This should be the DATA in HEX: 0000001ec001075465737431323308557365726e616d650850617373776f7264

So the last 4 digits are the checksum, in this case d224

I used many code snippets (PHP, java), and some online checksum calcuation sites: e.g.: http://www.scadacore.com/field-applications/programming-calculators/online-checksum-calculator/

But I don't get the correct CRC value.

Thanks!

Update 1
Here are more hex streams with CRC included (the last 4 digits):

Upvotes: 0

Views: 1127

Answers (1)

Mark Adler
Mark Adler

Reputation: 112374

It appears to be the ARC CRC, polynomial 0x8005, reflected, zero initial value and no final xor, if I discard the initial 0000001d on each message, and take the CRC at the end to be put in the stream in little-endian order.

Upvotes: 2

Related Questions