Pelco P message structure
Pelco P message structure
Byte 0
|
Byte 1
|
Byte 2
|
Byte 3
|
Byte 4
|
Byte 5
|
Byte 6
|
Byte 7
|
STX
|
Address
|
Data 1
|
Data 2
|
Data 3
|
Data 4
|
ETX
|
Check Sum
|
Byte 0 is always $A0
Byte
6 is always $AF
Bit 7
|
Bit 6
|
Bit 5
|
Bit 4
|
Bit 3
|
Bit 2
|
Bit 1
|
Bit 0
|
||
Data 1
|
0
|
Camera On
|
Autoscan On
|
Camera on /
off
|
Iris Close
|
Iris Open
|
Focus Near
|
Focus Far
|
|
Data 2
|
0
|
Zoom Wide
|
Zoom Tele
|
Tilt Down
|
Tilt Up
|
Pan Left
|
Pan Right
|
0 (for pan /
tilt)
|
|
Data 3
|
Pan Speed $00
to $3F and $40 for Turbo
|
||||||||
Data 4
|
Tilt Speed $00
to $3F
|
||||||||
Byte
8: checksum. XOR sum of Bytes 1-7
EXTENDED
COMMANDS
Command |
Data byte 1 |
Data byte 2 |
Data byte 3 |
Data byte 4 |
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 (rotate 180º) |
00 |
07 |
00 |
21 |
Zero Pan Position |
00 |
07 |
00 |
22 |
Auto scan |
00 |
09 |
00 |
00 |
Stop auto scan |
00 |
0B |
00 |
00 |
Remote Reset |
00 |
0F |
00 |
00 |
Zone Start |
00 |
11 |
00 |
01 to 08 |
Zone End |
00 |
13 |
00 |
01 to 08 |
Write char to screen |
00 |
15 |
0 to 28 |
0 to 7F |
Clear Screen |
00 |
17 |
00 |
00 |
Alarm Ack |
00 |
19 |
00 |
01 to 08 |
Zone Scan On |
00 |
1B |
00 |
00 |
Zone Scan Off |
00 |
1D |
00 |
00 |
Pattern Start |
00 |
1F |
00 |
00 |
Pattern Stop |
00 |
21 |
00 |
00 |
Run Pattern |
00 |
23 |
00 |
00 |
Zoom Lens Speed |
00 |
25 |
00 |
00 to 03 |
Focus Lens Speed |
00 |
27 |
00 |
00 to 03 |
留言
張貼留言