HikRobot HD Zoom Camera Module Technical Manual
Synch Byte
Address
Command 1
Command 2
Data 1
Data 2
Checksum
The click to zoom-out command replaces CMD1 with 0xC1, CMD2 with Byte 1, D1 with Byte 2, D2 with
Byte 3 and SUM with Byte 4.
Command Header: 0xFF (one byte).
Speed Dome Address: Stands for speed dome ID (one byte).
Command: 0xC1 (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.
For example, to zoom out the selected area in figure 3.4 to a certain ratio, the following command
should be sent. (
Assume that the speed dome ID is 3.)
The sent data is 0xFF 0x03 0xC1 0xC1 0x41 0x56 0x56.
0xFF --- Command Header
0x03 --- Speed Dome Address
0xC1 --- Command No.
0xC1 --- X-axis value of the center coordinate. -63 is 0XC1, that is 193.
0x41 --- Y-axis value of the center coordinate.
0x56 --- Height
0x56 --- Width
Note:
The sent data by Click to Zoom-in Command and Click to Zoom-out Command will not change with
mirror image. The data should be used cooperatively with search and mirror command. Refer to 3.2.2
RS-232 Serial Port Search Command Interface for details.
iii.
Extended Search and Setting Command
HIK zoom camera module supports to receive RS-485 command. The supported commands are shown
in the table below and the command format is the same with pelco-D command format.
Command
Command Package
Return
Description
Search Zoom Value
0xff,0xdd,0xe0,0x40,
0x00,0x00,checksum
0xff,0xdd,0xe0,0x40,
0xqp,0xrs,checksum
Address: dd
0xpqrs: zoom position, see
Appendix 1 Ratio
Table
.
Search Day & Night
Status
0xff,0xdd,0xe0,0x01,
0x00,0x00,checksum
0xff,0xdd,0xe0,0x01,
0x00,0x0p,checksum
Address: dd
0x0p: 0x2 Black & White; 0x3 Color
Set Day & Night Status
0xff,0xdd,0xf2,0x01,
0x00,0x0p,checksum
Address: dd
Black & White; 0x3 Color
Set Zoom Position
0xff,0x01,0xf2,0x40,
0xpq,0xrs,checksum
pq: zoom high eight bytes;
rs: zoom low eight bytes
Set Focus Position
0xff,0x01,0xf2,0x80,
pq: zoom high eight bytes;