Link to home
Start Free TrialLog in
Avatar of greenbug2002
greenbug2002

asked on

Vb.net CRC16 calculator

Hi I need a little help
I am trying to calculate crc-16 checksum in VB.net
I need to use polynomial 1021 with the input and result reflected,
initial value of 0 and final Xor value 0xFFFF
so if I input Bytes FF FF FF FF 00 0B 66 1A  a CRC of 2CFB is returned
I have found an online JavaScript tool at http://www.sunshine2k.de/coding/javascript/crc/crc_js.html but I need it in Vb.Net and have no idea how to convert the code

a simple textbox and Button vb.net app would be perfect
Avatar of Dr. Klahn
Dr. Klahn

Which version of CRC-16 are you trying to calculate?  There are about a dozen and they are not interchangeable.
Avatar of greenbug2002

ASKER

Hi Thanks for the Reply
its a CCITT Version
•Width = 16 bits
•Truncated polynomial = 0x1021
•Initial value = 0
•Input data is reflected
•Output CRC is reflected
• XOR 0xFFFF is performed on the output CRC
hope this helps
SOLUTION
Avatar of Dr. Klahn
Dr. Klahn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi thanks I did look at that and had an extensive google around trying to figure it out for myself but the code used its a bit beyond me I am quite new to programing could you pull it into a working example?
Also looking at the code I don't think it has support for reflecting the input and output
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Thanks for the replay I did but its not capable of reflecting the input and output and I have no idea how to program it to
Two correct references to available solutions provided.  No further input from requester.  Points assigned to contributors.