Hi. Hoping for a little advise with the CRC16 package, I'm trying to get DNP3 CRCs out but what ever I do it comes back incorrect.
I've tried this:
crc::crc16 -format 0x%X -seed 1001111010110010 E0C0810000 which gave 0xF4E4
and this:
crc::crc16 -format 0x%X -seed 0x9E2B E0C0810000 which gave 0x6DC0
What I understand to be correct is 0xC1F0
The 9E2B and the 1001111010110010 are what I believe are the Hex and Bin seeds for DNP3 but I may be wrong.
Can anyone help please with correct syntax. Thanks in advance.
Dave
I've tried this:
crc::crc16 -format 0x%X -seed 1001111010110010 E0C0810000 which gave 0xF4E4
and this:
crc::crc16 -format 0x%X -seed 0x9E2B E0C0810000 which gave 0x6DC0
What I understand to be correct is 0xC1F0
The 9E2B and the 1001111010110010 are what I believe are the Hex and Bin seeds for DNP3 but I may be wrong.
Can anyone help please with correct syntax. Thanks in advance.
Dave