CRC16 CCITT

G

Guest

I've been hunting for a java CRC16 CCITT (0x1021 polynominal) routine,
but can't find one.

I see stuff for CRC16, CRC32, Adler, tons of other formats, but no one
seems to have made something for CRC16 CCITT. Not something you can
buy, not something shareware, not something shareware.

Is this checksum that easy that everyone else just rolls their own, or
is it that obscure that no one uses it?

I have a serial device I need to talk to, but all of my commands must
be CRC16 CCITT in the last two bytes.

I've seen some C code and one DLL for Windows, but nothing in Java.

Larry
 
P

Peter Ashford

I've been hunting for a java CRC16 CCITT (0x1021 polynominal) routine,
but can't find one.

I see stuff for CRC16, CRC32, Adler, tons of other formats, but no one
seems to have made something for CRC16 CCITT. Not something you can
buy, not something shareware, not something shareware.

Is this checksum that easy that everyone else just rolls their own, or
is it that obscure that no one uses it?

I have a serial device I need to talk to, but all of my commands must
be CRC16 CCITT in the last two bytes.

I've seen some C code and one DLL for Windows, but nothing in Java.

Larry

So convert the C code
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top