
Matrix Switching System—User Manual
30
A-1.5 CRC Byte
CRC Byte (CB)
CRC (cyclic redundancy check)
CRC: Host must send CRC code to follow the last byte.
Table – CRC Table
Example: switch output 6 to the input 3.
Byte 1 (DB) is 0x20 – Device: Identifier + Device ID = 0x20 + 0 = 0x20
Byte 2 (RB) is 0x01 – Request: Switch Video Output Channel = 0x01
Byte 3 (IB) is 0x06 – Index: Output 6 = 6
Byte 4 (VB) is 0x03 – Value: Input 3 = 3
Byte 5 (CB) is 0x93 – CRC code from Byte 1 to Byte 4. (CRC4)
CRC Calculation
CRC 0 = 0 (initial value)
CRC 1 = CRC_ TABLE [CRC 0 ^ Byte 1] = CRC_ TABLE [0x00 ^ 0x20] = 0x23
CRC 2 = CRC_ TABLE [CRC 1 ^ Byte 2] = CRC_ TABLE [0x23 ^ 0x01] = 0x9F
CRC 3 = CRC_ TABLE [CRC 2 ^ Byte 3] = CRC_ TABLE [0x9F ^ 0x06] = 0x8D
CRC 4 = CRC_ TABLE [CRC 3 ^ Byte 4] = CRC_ TABLE [0x8D ^ 0x03] = 0x93
Comentarios a estos manuales