Reference Guide

3
Exclusive OR = xor, check sum is calculated as below:
if Len = 3
[Chk] = 0X50 xor [H2] xor [H3] xor [Len] xor [Reply] xor [RC]
if Len = 4
[Chk] = 0X50 xor [H2] xor [H3] xor [Len] xor [Reply] xor [RC] xor [Cmd]
if len > 4
[Chk] = 0X50 xor [H2] xor [H3] xor [Len] xor [Reply] xor [RC] xor [Cmd] xor ... xor
[Data[Len-5]]
Example Command
Example: GetBrightness Command
Command: 6E 51 82 EB 30 66
[H0] = 6E
[H1] = 51
[Len] = 82
[R/W] = EB
[Cmd] = 30
[Chk] = 66
Example: GetBrightness Reply
Reply: 6F 6E 84 02 00 30 4B E7
[H2] = 6F
[H3] = 6E
[Len] = 84
[Reply] = 02
[RC] = 00
[Cmd] = 30
[Data0] = 4B
[Chk] = E7