PC to CPU:
'STX' 'ADR' 'l' level 'CHK' 'ETX'
'I'
ASCII-Code 0x6C OR 0x80 = 0xEC
level
'0': unlock keyboard
'1': lock keyboard level 1
'2': lock keyboard level 2
Example:
ADR = 1; Lock keyboard level 2:
String =
0x02 0x81 0xEC 0xB2 0xDF 0x03 (6 Bytes)
CPU to PC
'STX' 'ADR' 'l' level 'CHK' 'ETX'
'I'
ASCII-Code 0x6C OR 0x80 = 0xEC