
HikRobot HD Zoom Camera Module Technical Manual
0xa0,0x01,0x00,0x03,0x00,0x01,0xaf,0x0c
Set Preset 001
0xa0,0x01,0x00,0x05,0x00,0x01,0xaf,0x0a
Delete Preset 001
Auto Scan
0xa0,0x01,0x00,0x07,0x00,0x63,0xaf,0x6a
Start Auto Scan
0xa0,0x01,0x00,0x00,0x00,0x00,0xaf,0x0e
Stop Auto Scan
Track
0xa0,0x01,0x00,0x1F,0x00,0x00,0xaf,0x11
Start Track Record
0xa0,0x01,0x00,0x21,0x00,0x00,0xaf,0x2f
Stop Track Record
0xa0,0x01,0x00,0x23,0x00,0x00,0xaf,0x2d
Start Track Scan
0xa0,0x01,0x00,0x00,0x00,0x00,0xaf,0x0e
Stop Track Scan
Hikvision Extended Function Commands
i.
Click to Zoom-in Command Data Form (0xC0)
Command
Header
Speed
Dome
Address
Command
No.
X-axis
Y-axis
Width
Height
Checksum
Description
A0
ID
C0
Byte 1
Byte 2
Byte 3
Byte 4
Sum
Drag the mouse to the
position (x, y), and
zoom in the selected
area (the center is
(x,y), the width is w
and the height is h) to
a certain ratio decided
by the speed dome.
Note:
The standard PELCO-P protocol is 0xA0-ID-D1-D2-D3-D4-0x AF-CRC, eight bytes in total.
The click to zoom in command replaces D1 with 0xC0, 0xAF with Byte 4.
Command Head: 0xA0 (one byte).
Speed Dome Address: Stands for speed dome ID (one byte).
Command: 0xC0 (one byte).
X-axis: The x position of the selected area center which ranges from -127 to +127 (one byte).
Y-axis: The y position of the selected area center which ranges from -127 to +127 (one byte).
See graph in Figure 3.3: Coordinate of the screen center is (0, 0). There are positive and negative values
of x-axis and y-axis. The right direction is the positive direction of x-axis and the upward direction is the
positive direction of y-axis. The coordinate value of positive direction is positive and the coordinate
value of negative direction is negative.
Width: The width of the selected area (one byte). The value ranges from 0 to 254;
Height: The height of the selected area (one byte). The value ranges from 0 to 254.
Checksum: XOR of the data (one byte). Refer the appendix for details.
unsigned char i;
unsigned char cTemp=PIT_Data[1];
for(i=2;i<7;i++)
{
cTemp = cTemp^PIT_Data[i];// XOR
}
For example, to zoom in the selected area in figure 3.4 to a certain ratio, the following command should