24
Appendix
Ⅰ
Ⅰ
Ⅰ
Ⅰ
1
11
1
.P control protocol
1). Command format
BYTE
VALUE
FUNCTION
1
$A0
STX(start transmission)
2
$00 to $FF
Address
3
Data byte 1
4
Data byte 2
5
Data byte 3
6
Data byte 4
7
$AF
ETX(end transmission)
8
$00-$FF
Check sum (XOR 1-7 bytes)
2).Instruction command
Bit number
7
6
5
4
3
2
1
0
Data 1
0
Camera on
Auto
scan on
Camera
on/off
Iris
Close
Iris
Open
Focus
Near
Focus far
Data 2
0
Zoom Wide
Zoom
Tele
Tile Down
Tile Up
Pan
Left
Pan
Right
0 (for
pan/tilt)
1 (extended
Data 3
Pan speed $00 to $3F and $40 for turbo
Data 4
Tilt speed $00 to $3F
3). Special command format
COMMAND
DATA BYTE1
DATA BYTE2
DATA BYTE3
DATA BYTE4
Set Preset .xx
00
03
00
01 to FF
Clear Preset .xx
00
05
00
01 to FF
Go to preset .xx
00
07
00
01 to FF
Flip
00
07
00
21
Zero pan position
00
07
00
22