PC to CPU:
'STX' 'ADR' 'L' 'CHK' 'ETX'
'L'
ASCII-Code 0x4C OR 0x80 = 0xCC
Example:
ADR = 1
String =
0x02 0x81 0xCC 0xCD 0x03 (5 Bytes)
CPU to PC
'STX' 'ADR' 'L' status 'CHK' 'ETX' (read value)
'L'
ASCII-Code 0x4C OR 0x80 = 0xCC
status = '0':
keyboard unlocked
status = '1':
keyboard locked level 1
status = '2':
keyboard locked level 2
Example:
unlock keyboard
String =
0x02 0x81 0xCC 0xB0 0xFD 0x03 (6 Bytes)