Kramer Electronics Ltd.
VS-3232DN-EM
– Protocol 3000
123
5. Response:
~
NNNN
SP
OK
CR LF
Where NNNN is the received packet ID in ASCII hex digits.
When calculating the CRC, the polynomial for the 16-bit CRC is:
CRC-CCITT: 0x1021 = x
16
+ x
12
+ x
5
+ 1
Initial value: 0000
Final XOR Value: 0
http://sanity-free.org/133/crc_16_ccitt_in_csharp.html
CRC example:
Data = “123456789”
Result => 0x31C3