You are on page 1of 21

CNB_ A(M)156XN(P)L’S_Version 1.

5
2006.11.23

Color CCD Zoom Camera


A(M)156XN(P)L’S Communication Manual

C&B Technology Inc.


A(M)156XN(P)L’s Protocol Version 1.5

- INDEX -

• Communication Format .............................................. 3~5


• Command List
- A(M)156XN(P)L’s RS-232C .................................................. 6

- Response Packet ............................................................ 6~8


• General Control Commands - 1 .................................. 9
• General Control Commands - 2 ................................. 10
• Digital Effect and OSD Control Commands................. 11
• AE Control Command ................................................. 12
• Focus Control Commands .......................................... 13
• Zoom/Focus Operation Commands – 1 ...................... 14
• Zoom/Focus Operation Commands – 2 ...................... 15
• Preset Control Commands .......................................... 16
• WB Control Commands .............................................. 17
• Key Action Commands - 1 .......................................... 18
• Key Action Commands - 2 .......................................... 19
• Support Pelco-D compatible Protocol Commands .... 20

-2-
A(M)156XN(P)L’s Protocol Version 1.5

Communication Format

A(M)156XN(P)L’s RS-232C Packet Structure


Communication Format
The basic unit of AN200’s communication is
called ‘PACKET’.
Communication between camera and user is All bytes of the packet are ASCII format.
available by using RS-232C. The first byte of the packet is called ‘Header’.
And the second and third bytes are ‘ID’ of
Parameter of RS-232C the camera. And the forth and the fifth
bytes are ‘Command Message’. And from
• Baud Rate : 9.6kbps the sixth to the ninth bytes are ‘Command
• Start bit : 1 Option’.
• Stop bit : 1 And the last two bytes are ‘Check sum’ of
• Data bits : 8 the packet.
• None Parity The check sum is sum of 9 bytes(byte0~byte8).
• Flow control : XON/XOFF,RTS/CTS is • The header must be ‘*’.
not supported. • All bytes of the packet must be a Capital
Letter.

Packet(11bytes)

Command
Header Camera ID message Command Option Check Sum

0 1 2 3 4 5 6 7 8 9 10
Byte * IDH IDL CMH CML CO1 CO2 CO3 CO4 CSH CSL

0 0 1 0 1 0 1 0 X X X X X X X X
MSB LSB MSB LSB

Command Packet Block

-3-
A(M)156XN(P)L’s Protocol Version 1.5

Bytes of a packet Check Sum Method

• Byte 0 : Header The value of check sum is calculated as


It must be the ASCII code ‘*’ (2A hex) follows.

• Byte 1 : High character of camera ID Check Sum = Byte0 + Byte1+ … + Byte8


Byte 2 : Low character of camera ID

Ex) current camera ID : 43 decimal Ex) if ID = 43 d (2B hex), command = 75 hex,


43 decimal = 2B hex command option = 0000
Byte 1 : ASCII code ‘2’(32 hex)
Byte 2 : ASCII code ‘B’(42 hex) command byte0~byte8 : * 2B 75 0000
ASCII format
• Byte 3, Byte 4 : Command : 2A 32 42 37 35 30 30 30 30
Sum = 2A+32+42+37+35+30+30+30+30
• Byte 5 ~ Byte 8 : Option of command
= 1CA hex
So, the Check Sum = CA
• Byte 9 : High byte of check sum
Byte 10 : Low byte of check sum
So the complete command packet
= * 2B 75 0000 CA

Response from the camera


Response Time

If the command packet is transmitted to the


Most of the response packet will be transmitted
camera accurately, the camera will send the
as soon as the camera received the command
‘response packet’. If the camera doesn’t
packet.
receive the right command packet, it will not
This time is more than 2ms.
send any response packet.

Packet(11bytes)

Header Response Data Check Sum

0 1 2 3 4 5 6 7 8 9 10
Byte * D1 D2 D3 D4 D5 D6 D7 D8 CSH CSL

0 0 1 0 1 0 1 0 X X X X X X X X
MSB LSB MSB LSB

Response Packet Block

-4-
A(M)156XN(P)L’s Protocol Version 1.5

Communication Time Delay

When transmitting 1 packet(11 bytes), After transmitting the first packet, wait
keep 2 for
milli-seconds waiting time between 25 ms to transmit next command packet.
bytes.
• Packet delay time > 25ms

*) Byte delay and Packet delay is a time


delay
for stable communication.

byte 0 byte2 byte10 Packet delay byte0

9600bps

1’st command packet 25 msec 2’nd command packet

Delay Time Setting

Advice for communication

• If the command packet is


transmitted only 4 bytes, then the
camera will wait for remain 7
bytes continuously.
At that moment, if a new packet
is transmitted to the camera, the
previous 4 bytes will be ignored.

• If the camera doesn’t send any


response packet, there should be
some troubles in communication
line or any other communication
condition.

• If the camera response mode is


Skip Command response packet
mode, then the camera will not
send Command response packet.
Even if the response mode is Skip
Command response packet mode ,
the Data response packet will be
transmitted to PC.

-5-
A(M)156XN(P)L’s Protocol Version 1.5

Command List

A(M)156XN(P)L’s RS-232C
Response Packet
Command Reference
If the camera receives any command, it will
All of commands must be capital letters. judge the Response packet. If the
command packet hasn’t any error, then the
• ‘*’ : Header camera will transmit the response packet.
• ‘X’ : Don’t Care
• ‘x’ : Not specified • Command Response Packet
• ‘NN’ : Camera ID It is a response that the camera received
• ‘YY’ : Check Sum the command packet correctly.
• ‘Z’,’S’,’M’,’P’,’Q’ : Command Option It has none information of camera status.
It indicates only that the command is
• ‘R’ : Response Packet Data successfully received.
• ‘ ‘ : Indicate Response packet
• (!!) : Caution format : * 00 00 00 00 AA
• (AV) : Allowed camera version
The command was allowed at the camera Caution) This manual did Not describe
micro computer version x.x. Command response packet.
Not describe : allowed all version.
• Data Response Packet
It is a response of the camera status or
zoom/focus position, or any other
information of the camera.
format : * QQ RR SS MM YY

• Preset Action Finished Response


Packet
It is a response that the camera finish
moving to the target preset position.
Format : * NN 11 11 11 YY

-6-
A(M)156XN(P)L’s Protocol Version 1.5

• Motion Detected Response Packet • One Shot AF Finished Response


Packet
If the camera detect motions, the camera
If user command the One shot AF action
will be send Motion Detected Response command, then the camera will execute
Packet. The motion detection area and one shot AF action. After the action, the
sensitivity is set by user – see the camera will send the One Shot AF
General Control command table. Finished Response Packet.
Format : *NNDDDDDDYY Format : *NNAAAAAAYY

( Set the Response Packet )


Set the Transmission of Response
Packet Example of
Response Packet Format Commands
Set Release (cam id = 00)
(Enable mode) (Disable Mode)
*00710000B2
Command Response
*00 00 00 00 AA *NNA800XXYY *NNA801XXYY (reset)
Packet
 *00000000AA
*007C0200C6
Data Response Packet *QQRRSSMMYY Non Non (read camera status)
 *01000000AB
*00C60100C4
Preset Action Finished
*NN 111111 YY *NNAA01XXYY *NNAA00XXYY (move to external preset 01)
Response Packet
 *00 111111 B0

Motion Detected If motion is detected


*NNDDDDDDYY *NNA102PSYY *NNA100XXYY
Response Packet  *00DDDDDD22
*00A00000BB
One Shot AF Finished
*NNAAAAAAYY *NN9F01XXYY *NN9F00XXYY (one shot AF)
Response Packet
 *00AAAAAA10

( General Response Packet - 1 )

The State of Reponse Example of Commands


Response Packet Format
Packet (cam id = 00)

 *NNEE0100YY ASCII Error 0~F *007G0000B2  *00EE0100YY


 *NNEE0200YY Checksum Error YY *007C0200C0  *00EE0200YY
Error Response  *NNEE0300YY Focus Boundary Error *1)
Packet  *NNEE0400YY Zoom Lens Moving *2)
 *NNEE0500YY Non ZTR Error *3)
 *NNEE0501YY Non ZTR Ack *4)
In OSD Menu Off *00780100BA(Menu On)
OSD Menu Off action,
 *NN222222YY *00780000BA(Menu Off)
Response Packet tranfers response packet
to target system. *NN222222YY

Refresh Request After time out for new


 *NNCCCCCCYY
Response Packet refresh

-7-
A(M)156XN(P)L’s Protocol Version 1.5
( General Response Packet - 2 )

Response Command Command


Contents
Packet Packet Option
Non Zoom Tracking *NNEERR00YY RR 00 If zoom lens is moving as tracking mode, non zoom
Move tracking move command is ignored.
Status Response
01 When zoom lens status is no operation, this reponse
packet is transferred to camera control device then zoom
lens is non zoom tracking move to defined zoom position.
Lens Init Finished  *NNBBBBBBYY - - After lens initial action
Response Packet

*1) when focus target move(48 command) actions, if focus mode is auto or manual and the moving range
of focus lens is not in the focus boundary then the camera sends the packets to the target system.
*2) when focus target move(48 command) actions, if zoom lens is tracking then focus lens is controlling
by camera so it can’t controll by manual
*3) At internal or external preset mode, when you try to set the non zoom tracking mode.
if zoom lens is tracking or abnormal preset position, then you can’t move to non zoom tracking mode.
*4) At internal or ecternal preset mode, when you try to set the non zoom tracking mode.
Camera can move to non zoom tracking mode.

• General Response Packet


The Error response packet transfers to target system in case of packet with ASCII error or checksum error.
In case of The ASCII packet error, It is caused by using in out of range for packet in ASCII data 0~F.
The response packet of OSD menu Off action transfers to OSD menu off action

(Example) One Shot AF & One shot AF finished response packet (Camera ID = 00)

Start Start
One Shot AF action

Receive One shot AF command


* 00 A0 00 00 BB
No
Finished AF?

No Yes
End Received Packet
is Correct ?

Send One Shot AF Yes Send


Yes
Response Packet ? *00AAAAAA10
Send Yes (One Shot AF Response)
Send Command
*00000000AA No
Response Packet ?
(Command Response)
No
End

-8-
A(M)156XN(P)L’s Protocol Version 1.5

General Control Commands - 1


Command Command Command
Command Contents
Message Packet Option
Camera Read Version *NN7DXXXXYY RR x  Current Camera u-com Version
 *RR000000YY RR = 23, version2.3
Read Status *NN7C0PXXYY P 0 Focus Mode  R(0)[auto], R(1)[manual]
 *0R000000YY
1 ID display mode  R(0)[OFF],R(1)[ON]

3 Backlight state  R(0)[OFF],R(1)[ON]

4 Flickerless state  R(0)[OFF],R(1)[ON]

Reset *NN71XXXXYY - - Reset the camera

ID check *NNA4PPXXYY PP 00 Camera will (not) check the camera ID


Disable ID check
01 Camera will (not) check the camera ID
Enable ID check
on/off *NN72XXXXYY - - Toggle the camera ID.
ON OFFON…..
read *NN73XXXXYY Read Current Camera ID
 *RR000000YY RR x  00 ~ FF hex(total 256 IDs) Camera ID

change *NN74PPXXYY Change Camera ID


PP x  00 ~ FF hex(total 256 IDs) New Camera
ID
Key Action Key Action *NN75PPXXYY PP x Key Action will be activated by this
command.
 Key Code
See Key action command
for detail information
Zoom Model read *NN7FXXXXYY RR X Check of the Zoom Model
Confirm  *RR000000YY 22 : 22x Zoom Model
30 : 30x Zoom Model
The Transmission of Set *NNA8PPXXYY PP 00 Enable Transmission of Command
Command Response Response Data
Packet

01 Don’t Transmit the Command Response


Data
Set Lens Refresh Set *NNBDPP00YY PP 00 Auto Refresh Off
On/Off Status 01 Auto Refresh On

Read Lens Refresh Read *NNBCXXXXYY QQ 00 Auto Refresh Off


On/Off Status *NNQQ0000YY 01 Auto Refresh On

Set Auto Refresh Set *NNBFPP00YY PP x 01~FE(1hour~7days)


Time Period

Read Auto Refresh Read *NNBE0000YY RR x 01~FE(1hour~7days)


Time Period *RR000000YY

-9-
A(M)156XN(P)L’s Protocol Version 1.5

General Control Commands - 2


Command Command Command
Command Contents
Message Packet Option
Motion Set *NNA1QQPSYY QQ 00 Disable Motion Detection Function
Detection 01 Display only “MD” in the screen
Mode 02 Display “MD” and transmit MD Alarm Packet
P 0 MD area : Upper side of the picture
1 MD area : Lower/Left/Right side of the picture
2 MD area : Center of the picture
3 MD area : Whole Region of the picture
S x 2(hex) ~ F(hex) : MD Sensitivity
(!!)  Motion Detection Response Packet :
(Alarm Packet) *NNDDDDDDYY
(ex) Set “MD” and transmission of the MD
Response
packet, “MD” area is Center, MD sensitivity 7.
*NN A1 02 27 YY
Read *NN96XXXXYY QQ 00 Disable Motion Detection Function
*QQRS0000YY 01 Display only “MD” in the screen
02 Display “MD” and transmit Alarm packet
R 0 MD area : Upper side of the picture
1 MD area : Lower/Left/Right side of the picture
2 MD area : Center of the picture
3 MD area : Whole region of the picture
S x MD Sensitivity
Power on/off *NN76PPXXYY PP 00 Camera Power ON/OFF
OFF
PP 01 Camera Power ON/OFF
ON
Lens Initial End *NNBBBBBBYY - - Lens intiial end.
Initial *NNADXXXXYY - - Execute Lens Initial action. After this action, the
zoom and focus lenses will be moved to the
working position. And continue the previous
working.
 If this lens initial action is finished, then the
Command Response Packet will be transmitted.
Change *NN9DXXXXYY - - Change Day&Night mode
Day & Night mode … OFF  AUTO  ON  OFF  ….
Read *NN94XXXXYY QQ 00 Day Status
Mode Status  *NNQQRR00YY 01 Auto Status
02 Night Status
RR If day&night mode is auto, RR is effective value.
00 Day Status
01 Night Status
Set Mode *NN95PPXXYY PP 01 D&N Auto mode
00 D&N Day
02 D&N Night mode

- 10 -
A(M)156XN(P)L’s Protocol Version 1.5

Digital Effect and OSD Control Commands


Command Command Command
Command Contents
Message Packet Option
Freeze On/Off *NNAEPPXXYY PP 01 Freeze the picture
00 Live (release the freeze state)
Mirror On/Off *NN7BPPXXYY PP 00 Mirror OFF
01 Mirror ON

Digital Effect Change *NN7EXXXXYY R 0  No Digital effect is activated


Digital Effect  *0R000000YY 1 WIDE(Cinema) effect ON
2 ART on
3 Mirror on
4 Negative on
5 Color off
6 Mosaic on
Read *NN92XXXXYY RR x  Current Digital Effect status
Digital Effect  *RR000000YY RR : 1byte hex
Status bit7 : not used, bit6 : not used
bit5: <1>mosaic On <0> off
bit4: <1>monochrome <0> color
bit3 : <1>negative On <0>off
bit2 : <1>mirror On <0>off
bit1 : <1>art On <0>off
bit0 : <1>wide cinema On <0>off

ex) RR = 23,
then, Current Digital Effect status = 23hex
23(hex) = 0010 0011 (bin)
mosaic On, art On, wide cinema On
Negative On/Off *NN8CPPXXYY PP 00 Negative mode OFF
01 Negative mode ON
Function OSD Read *NN79XXXXYY RR 00 Read the function OSD display mode of camera
Display Mode  *RR000000YY 01 ON mode : All OSD display is enable
OFF mode : All OSD display is disable except for
Menu OSD display.
Change *NN7APPXXYY PP 00 Change the Function-OSD display mode of camera
01 F-OSD display ON mode
F-OSD display OFF mode
Menu OSD On/Off *NN78PP00YY PP 00 Menu Off
Control 01 Menu On
Menu OSD Read *NN93XXXXYY RR 00  Menu OSD Off Status
Status On/Off status *NNRR0000YY 01  Menu OSD On Status

- 11 -
A(M)156XN(P)L’s Protocol Version 1.5

AE Control Command
Command Command Command
Command Contents
Message Packet Option
Backlight Mode Set *NN82PPXXYY PP x 00 ~ 0A: Backlight Mode

Read *NN83XXXXYY RR x 00 ~ 0A : Backlight Mode


 *RR000000YY
Sharpness Data Read *NNB5XXXXYY RR x  00 hex ~ 0F hex : Sharpness data
 *RR000000YY
Set *NNB6PPXXYY PP x  00 hex ~ 0F hex : Sharpness data
Flickerless Set *NN90PPXXYY PP 00 OFF(inactive)
Mode 01 ON(active)
Shutter Set the *NN9CPPXXYY PP x Slow shutter max field index(00 ~ 09)
slow shutter Index : 00 01 02 03 04 05 06 07 08 09
max field Field : 00 02 04 08 12 16 24 32 64 128
Read the *NN98XXXXYY QQ x Slow shutter max field index(00 ~ 09)
slow shutter *QQ000000YY Index : 00 01 02 03 04 05 06 07 08 09
max field Field : 00 02 04 08 12 16 24 32 64 128
Set *NN86PPXXYY PP x  00(00h) ~ 27(1Bh) : Shutter counter
Shutter Speed
Read *NN85XXXXYY RR x 00(00h) ~ 27(1Bh) : Shutter counter
Shutter Speed *RR000000YY 00 : 1/60 01 : 1/125 04 : 1/250 09 : 1/500
Counter 14 : 1/1000 21 : 1/2000 25 : 1/4000
27 : 1/10000
AGC Read Level *NN8BXXXXYY RR x  00 hex ~ FF hex : AGC control level data
 *RR000000YY
Set Level *NN87PPXXYY PP x  00 hex ~ FF hex : AGC level data

Brightness Set *NN91PPXXYY PP x 00 hex ~ 60 hex : Brightness level data


Menu display : (Brightness/2)Dec
Read Level *NN88XXXXYY RR x  00 hex ~ 60 hex : Brightness level data
 *RR000000YY
Iris Level Read *NN89XXXXYY RR x  00 hex ~ FF hex : Iris control level data
 *RR000000YY
Set *NN8APPXXYY PP x Set the Iris Open Level
 00 hex ~ FF hex : Iris control level data
Exposure Mode Read *NN80XXXXYY R 0 Auto Exposure mode
*0R000000YY 1 Shutter Manual mode
2 Iris Manual mode
3 AGC Manual mode
4 Shutter/Iris/AGC all Manual mode
Set *NN810PXXYY P 0 Auto Exposure mode
1 Shutter Manual mode
2 Iris Manual mode
3 AGC Manual mode
4 Shutter/Iris/AGC all Manual mode

- 12 -
A(M)156XN(P)L’s Protocol Version 1.5

Focus Control Commands


Command Command Command
Command Contents
Message Packet Option
Set Auto *NN4EXXXXYY - - Set Focus Mode as Auto Focusing Mode
Focus Mode (Basic focus mode)

Manual Mode *NN4FXXXXYY - - Set Focus Mode as Manual Focusing Mode


(Basic focus mode)
Special *NNABPPXXYY Set Focus Mode as Special Focusing Mode
Mode PP 00 Disable Focus Special Mode, set Basic focus
mode only
01 Set Focus Special Mode

One Shot Auto Execute only *NNA0XXXXYY - - Execute Auto Focusing only one time
Focus one time (!!) See Key Action Commands-2
Protect Auto Toggle *NNA2XXXXYY - - Toggle command
Focusing Protect All Auto Focusing function.
Protectreleaseprotectrelease…
(!!)Power on : default status is release mode
Rain Focus Set *NNA3PPXXYY Protect focusing at a certain distance.
Mode PP 00 RM0 : Disable All Focal Range
01 RM1 : 10cm Focal Range
02 RM2 : 50cm Focal Range
03 RM3 : 80cm Focal Range
04 RM4 : 130cm Focal Range
05 RM5: 2m Focal Range
06 RM6: 4m Focal Range

(ex) protect focusing in the distance 50cm


*NN A3 02 00 YY
The One Shot Set *NN9FPPXXYY (Don’t) Transmit One Shot AF finish Response
AF Finished Packet when the camera finished the One Shot AF
Response Packet action.
PP 00 Don’t Transmit One Shot AF finish Response
Packet
Enable Transmission of One Shot AF finish
01
Response Packet
(!!)  One Shot AF finish Response Packet
*NNAAAAAAYY

- 13 -
A(M)156XN(P)L’s Protocol Version 1.5

Zoom/Focus Operation Commands - 1


Command Command Command
Command Contents
Message Packet Option
Read Position Zoom *NNC0XXXXY ZZZ x Current Zoom Lens Position
*0ZZZRR00YY ( 000~6CF hex )
RR x Digital Zoom Position
( 00 ~ E7 hex )
Focus *NNC1XXXXYY ZZZ x Current Focus Lens Position
 *0ZZZ0000YY ( 2C0hex~offsetMax (6F0±α))
* α will be changed by Lens Offset Adjustment.
Move to Zoom Non Zoom *NN470ZZZYY ZZZ x Target Zoom Lens Position
Position Tracking ( 000~6CF hex )
(!!) Moving Method : Non Zoom Tracking Mode

Slow Optical *NNA90ZZZYY ZZZ x Target Zoom Lens Position


Zoom ( 000~6CF hex )
Tracking (!!) Moving Method : Slow Zoom Tracking Mode

Slow Optical *NNACZZPPYY ZZ x Zoom Ratio


And Digital ( 00 ~ 30 hex )
Zoom
Tracking PP x Digital Zoom Position
( 00 ~ E7 hex )
(!!) Moving Method : Slow Zoom Tracking Mode

<Digital position for zoom ratio>


Zoom ratio PP(Digital position(hex))
30 00
44 54
60 80
90 AB
120 C0
174 D4
213 DC
300 E7

(ex) Move to zoom ratio x14


* NN AC 14 00 YY
(ex) Move to zoom ratio x44
(Digital position = 54h)
* NN AC 22 54 YY
Move to Focus Set *NN480ZZZYY ZZZ x Target Focus Lens Position
Position ( 2C0hex~offsetMax (6F0±α))
* α will be changed by Lens Offset Adjustment.
(!!) The range of ZZZ
Focus Special Mode :
(2C0hex~offsetMax(6F0±α))
Focus Auto/Manual Mode :
The range of ZZZ is decided by camera.

- 14 -
A(M)156XN(P)L’s Protocol Version 1.5

Zoom/Focus Operation Commands - 2


Command Command Command
Command Contents
Message Packet Option
Step Tele *NNA5ZZXXYY Move Zoom Lens as received steps from current
Tele/Wide position.
ZZ x 00 ~ FF hex : zoom step to move(Tele)
(!!) Moving Method : Non Zoom Tracking Mode
(!!) See Key Action Commands-2
(ex) move 4 steps to tele
* NN A5 04 00 YY
Wide *NNA6ZZXXYY Move Zoom Lens as received steps from current
position.
ZZ x 00 ~ FF hex : zoom step to move(Wide)
(!!) Moving Method : Non Zoom Tracking Mode

Step Number Set *NNA7ZZXXYY Set Zoom steps to use in S-Tele,S-Wide command of
of Tele/Wide Key Action Command.
ZZ x  00 ~ FF hex : zoom step of S-Tele,S-Wide
Zoom Start / Set *NN9ESRRRYY Set zoom start ratio and zoom stop ratio.
Stop Position S x Zoom Start Ratio
(!!) S → 0: Set Zoom start Ratio
1: Set Zoom stop Ratio
Zoom Start Ratio
RRR x (1 ~ 1E hex) 1E hex = 30 dec
Zoom Stop Ratio
(1 ~ 12C hex) 12C hex =300 dec
(!!) RRR
1 ~ 12C hex
Zoom Stop Ratio > Zoom Start Ratio
Read *NN99XXXXYY Read zoom start ratio and zoom stop ratio
 *SS0RRR00YY SS x Zoom Start Ratio (Optical Zoom Ratio)
(00 hex ~ 1E hex)
RRR x Zoom Stop Ratio (Digital Zoom Ratio)
(00 hex ~ 12C hex)
Reference to the Set Zoom Start ratio/Stop ratio
command.

- 15 -
A(M)156XN(P)L’s Protocol Version 1.5

Preset Control Commands


Command Command Command
Command Contents
Message Packet Option
Current Save *NNC7PPXXYY PP x 00 ~ A7 hex : Index of Internal Preset Position
Position as (total 167 preset position)
IPP*

Move to Non Zoom *NNC8PPXXYY PP x 00 ~ A7 hex : Index of Internal Preset Position
Selected IPP* Tracking (total 167 preset position)
(!!) Moving Method : Non Zoom Tracking Mode

Slow Zoom *NNCFPPXXYY PP x 00 ~ A7 hex : Index of Internal Preset Position


Tracking (total 167 preset position)
(!!) Moving Method : Slow Zoom Tracking Mode

Quick Zoom *NND0PPXXYY PP x 00 ~ A7 hex : Index of Internal Preset Position


Tracking (total 167 preset position)
(!!) Moving Method : Quick Zoom Tracking Mode

Save Received Zoom position *NNC3PZZZYY P x 0 ~ 7 hex : Index of External Preset Position
position as (total 8 preset position)
EPP*

ZZZ x Zoom Position ( 000 ~ 6CF hex )


Focus position *NNC4PZZZYY P x 0 ~ 7 hex : Index of External Preset Position
(total 8 preset position)
ZZZ x Focus Position : ( 2C0hex~offsetMax (6F0±α))
* α will be changed by Lens Offset Adjustment.
D-Zoom *NNC50PZZYY P x 0 ~ 7 hex : Index of External Preset Position
position (total 8 preset position)

ZZ x Digital Zoom Position ( 00 ~ E7 hex )


Move to Non Zoom *NNC60PXXYY P x 0 ~ 7 hex : Index of External Preset Position
Selected EPP* Tracking (!!) Moving Method : Non Zoom Tracking Mode

Slow Zoom *NNC90PXXYY P x 0 ~ 7 hex : Index of External Preset Position


Tracking (!!) Moving Method : Slow Zoom Tracking Mode

Quick Zoom *NNCA0PXXYY P x 0 ~ 7 hex : Index of External Preset Position


Tracking (!!) Moving Method : Quick Zoom Tracking Mode

The Set *NNAAPPXXYY (Don’t) Transmit Preset Response Packet when the
Transmission zoom lens moved to the target preset position.
of The PRP* PP 00 Don’t Transmit Preset Response Data
01 Enable Transmission of Preset Response Data
(!!)  Preset response packet : *NN111111YY
* IPP (Internal Preset Position) , EPP (External Preset Position) , PRP ( Preset Response Packet)

- 16 -
A(M)156XN(P)L’s Protocol Version 1.5

WB (White Balance) Control Commands

Command Command Command


Command Contents
Message Packet Option
Color On/Off *NNB0PPXXYY PP 00 Color OFF
01 Color ON
WB Mode Read *NNB1XXXXYY RR 00 Auto Mode
 *RR000000YY 01 Special
02 Indoor
03 Outdoor
04 Push Auto
Set *NNB2PPXXYY PP 00 Auto Mode
01 Special
02 Indoor
03 Outdoor
04 Push Auto
Adjusting Read Red *NNB7XXXXYY RR x  00 hex ~ FF hex : RED adjust data
Color Data at  *RR000000YY
SWBM*
Read BLUE *NNB8XXXXYY RR x  00 hex ~ FF hex : BLUE adjust data
 *RR000000YY
Set RED *NNB9PPXXYY PP x  00 hex ~ FF hex : RED adjust data
Set BLUE *NNBAPPXXYY PP x  00 hex ~ FF hex : BLUE adjust data

* SWBM (Special WB Mode)

- 17 -
A(M)156XN(P)L’s Protocol Version 1.5

Key Action Commands - 1 (*NN 75 PP XX YY)


Command
Key Code Contents
Option(PP)
09 KC_STOP Key Action Stop Action
This Command must be followed after the other key action commands below.
If continuous key service is needed, don’t send this command.
And, when you want to stop the continuous action, send this Stop command.

00 KC_NKEY Non Key Service


01 KC_TELE Slow zoom Tele
02 KC_QTELE Quick zoom Tele
03 KC_WIDE Slow zoom Wide
04 KC_QWIDE Quick zoom Wide
05 KC_FAR Move focus to Far (in manual focus mode)
06 KC_NEAR Move focus to Near(in manual focus mode)
07 KC_SFAR Move focus to S-Far (in manual focus mode) (1step)
08 KC_SNEAR Move focus to S-Near(in manual focus mode)(1step)
0A KC_POWER Toggles Power ON/OFF
0B KC_FOCUS_AM Toggles Focus Auto/Manual Mode
0C KC_F_PUSH Activates focus auto Action only one time(in manual focus mode)
0D KC_M_SET In Menu mode, toggles item selection mode / item adjust mode
0E KC_INITIAL Initialize camera to Manufacturer’s conditions
0F KC_OSD_ONOFF Toggles Function OSD Off/On mode
10 KC_MENU Toggles Menu On/Off
11 KC_SET_MENU Toggles Menu On/Off
12 KC_LANGUAGE Change OSD language
13 KC_BL Toggles Backlight mode
14 KC_FLICKER Toggles Flicker mode
15 KC_SSC_UP Shutter speed counter Up
16 KC_SSC_DN Shutter speed counter Down
17 KC_D_EFT Switches Digital Effect modes(CinemaArtMirrorNegaMonoMosaic)
18 KC_MIRROR Toggles Mirror mode
19 KC_NEGA Toggles Negative mode
1A KC_MONO Toggles Mono/Color mode
1C KC_SRP_UP Sharpness Data Up
1D KC_SRP_DN Sharpness Data Down
1E KC_BRT_UP Brightness Data Up
1F KC_BRT_DN Brightness Data Down
20 KC_ZM_SUP •Zoom Start Ratio Up
21 KC_ZM_SDN •Zoom Start Ratio Down
22 KC_ZM_EUP •Zoom Stop Ratio Up
23 KC_ZM_EDN •Zoom Stop Ratio Down
24 KC_WB_PUSH •In white balance push auto mode(manual mode), It indicates Push Action.
25 KC_AWB_UP •Switch AWB modes (autospecialindooroutdoorpush auto)
26 KC_AWB_DN •Switch AWB modes in reverse sequence of KC_AWB_UP

- 18 -
A(M)156XN(P)L’s Protocol Version 1.5

Key Action Commands - 2 (*NN 75 PP XX YY)


Command
Key Code Contents
Option(PP)
27 KC_R_UP •In Special WB mode, R gain Up
28 KC_R_DN •In Special WB mode, R gain Down
29 KC_B_UP •In Special WB mode, B gain Up
2A KC_B_DN •In Special WB mode, B gain Down
2D KC_AE_MAN •Set AE mode to Manual mode
2E KC_IRIS_UP •Increase Iris Level
2F KC_IRIS_DN •Decrease Iris Level
30 KC_AGC_UP Increase AGC gain
31 KC_AGC_DN Decrease AGC gain
32 KC_LED External LED On/Off toggle
38 KC_CINEMA Toggles Wide Picture mode
39 KC_MOSAIC Toggles Mosaic mode
3A KC_ART Toggles Art mode
3B KC_AUTO_PAN Auto Panning action(only act in digital zoom region)
3C KC_PAN_RIGHT Pan Right action(only act in digital zoom region)
3D KC_PAN_LEFT Pan Left action(only act in digital zoom region)
3E KC_TILT_UP Tilt Up action(only act in digital zoom region)
3F KC_TILT_DN Tilt Down action(only act in digital zoom region)

40 KC_AUTO_TILT Auto Tilting action (only act in digital zoom region)


41 KC_STELE Step Tele
42 KC_SWIDE Step Wide
43 KC_MB_RESET Memory Board Reset
44 KC_FREEZE Toggles Freeze/Live mode
45 KC_REVERSE Toggles Reverse/Normal mode
46 KC_1SHOT_AF Execute Auto Focusing one time
47 KC_DAYNIGHT Day&Night mode change, OFFAUTOON
48 KC_MAXFLDUP Slow shutter max field up
49 KC_MAXFLDDN Slow shutter max field down

- 19 -
A(M)156XN(P)L’s Protocol Version 1.5

Support Pelco-D compatible Protocol Commands

• Pelco-D compatible Protocol Packet ( sub-standard command only )


If P/D condition in Menu OSD protocol set, the camera work in pelco-d standard
protocol mode. We only support 7 commands orders in pelco-d standard protocol.
If users needs more infomation, please refer to Pelco-D protocol in Pelco web site.

• Pelco-D protocol Byte Format


RS485 -- 2400bps, 1 Start bit, 8 data bits, 1 stop bit, no parity

• Pelco-D protocol Message Format.


BYTE1 BYTE2 BYTE3 BYTE4 BYTE5 BYTE6 BYTE7
Sync Byte Address CMD1 CMD2 DATA1 DATA2 CHECKSUM

The Sync Byte is always 0xFF ( If Camera ID is 0xFF, then The Sync Error is possible )

• Pelco-D protocol Check sum Format.


Byte 2 + Byte 3 + Byte 4 + Byte 5+ Byte 6 = Check sum
The check sum is the 8 bit (modulo 256) sum of the bytes( 2 through 6) in the packet

• Peclo-D Standard protocol Command Set


.
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0

Auto/
Reser- Reser- Camera Iris Iris Focus
CMD1 Sense Manua
ved ved On/off Close Open Near
l scan
Focus Zoom Zoom
CMD2 Down Up Left Right Always0
far wide tele
The reserved bits (6 and 5) should be set to 0.

• Support protocol command Packet


- Zoom Tele : 0xFF + ID + 0x00 + 0x20 + 0x00 + 0x00 + checksum
- Zoom Wide : 0xFF + ID + 0x00 + 0x40 + 0x00 + 0x00 + checksum
- Focus Near : 0xFF + ID + 0x01 + 0x00 + 0x00 + 0x00 + checksum
- Focus Far : 0xFF + ID + 0x00 + 0x80 + 0x00 + 0x00 + checksum
- Continuous Key Stop :
0xFF + ID + 0x00 + 0x00 + don’t care + don’t care + checksum

- OSD Menu On/Off :


1) 0xFF + ID + 0x40 + 0x00 + 0x00 + 0x00 + checksum
2) 0xFF + ID + 0x00 + 0x23 + 0x00 + 0x5F + checksum
3) 0xFF + ID + 0x00 + 0x03 + 0x00 + 0x62 + checksum

- Camera Power
On : 0xFF + ID + 0x88 + 0x00 + 0x00 + 0x00 + checksum
OFF : 0xFF + ID + 0x08 + 0x00 + 0x00 + 0x00 + checksum

- 20 -
A(M)156XN(P)L’s Protocol Version 1.5

BLANK PAGE

- 21 -

You might also like