Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CRC16 for DNP3

Status
Not open for further replies.

simoco

Programmer
Feb 10, 2011
6
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top