106
Appendix C – Keyboard Control Protocol
Data Format
5 Bytes –
Byte 1 : Synchronization Byte (0xFF)
Byte 2 : Address, i.e. Device ID (0 – 0xFF)
Byte 3 : Code (see below)
Byte 4 : Reserved (0x00)
Byte 5 : Checksum (sum of Bytes 2 – 4)
Code
Value (MSB set for key press, MSB reset for release)
0 – 9
0x30 – 0x39 (ASCII characters ‘0’ – ‘9’)
10
0x21 (ASCII character ‘!’)
11
0x40 (ASCII character ‘@’)
12
0x23 (ASCII character ‘#’)
13
0x24 (ASCII character ‘$’)
14
0x25 (ASCII character ‘%’)
15
0x5e (ASCII character ‘^’)
16
0x26 (ASCII character ‘&’)
4-Window
0x2a (ASCII character ‘*’)
9-Window
0x28 (ASCII character ‘(’)
16-Window
0x29 (ASCII character ‘)’)
*/mark
0x2d (ASCII character ‘–’ – Minus sign)
#/code
0x3d (ASCII character ‘=’ – Equal sign)
Alarm Reset
0x71 (ASCII character ‘q’)
MODE
0x77 (ASCII character ‘w’)
SEQ
0x65 (ASCII character ‘e’)
CALL
0x72 (ASCII character ‘r’)
SEARCH
0x74 (ASCII character ‘t’)
REC
0x79 (ASCII character ‘y’)
Byte 4: 0 for toggle, i.e. OFF->ON, ON->OFF,
Byte 4: 1 for REC ON,
Byte 4: 2 for REC OFF
Fast Backward
0x61 (ASCII character ‘a’)
Fast Forward
0x73 (ASCII character ‘s’)
Single Step
0x64 (ASCII character ‘d’)
Play/Pause
0x66 (ASCII character ‘f’)
Stop
0x67 (ASCII character ‘g’)
Copy
0x68 (ASCII character ‘h’)
MENU
0x75 (ASCII character ‘u’)
ESC/PTZ
0x6f (ASCII character ‘o’)
MUTE/NEXT
0x6e (ASCII character ‘n’)
X2/GOTO
0x2c (ASCII character ‘,’ – Comma)
▲
/BS
0x69 (ASCII character ‘i’)