PELECO-D协议和PTZ控制
Securitytronix ST-PTZ-RC PTZ 控制器用户指南说明书
USER MANUALST-PTZ-RCInfrared Remote PTZ ControllerPACKAGE CONTENTSThis package contains:One ST-PTZ-RC handheld infrared remote controllerOne PT Dome ControllerOne connection blockOne user manualNote: The ST-PTZ-RC handheld infrared remote controller requires 2 AAA batteries (not supplied). The PT Dome Controller requires a 12VDC 1A power supply (not supplied) such as the Securitytronix ST-PS12VDC1A.PRODUCT DESCRIPTIONThe ST-PTZ-RC is a consumer grade pan, tilt, zoom (PTZ) controller designed for PTZ dome cameras. The ST-PTZ-RC comes with one PT Dome controller allowing PTZ control of up to 255 PTZ cameras.SPECIFICATIONSST-PTZ-RCSpecifications (Typical)1. Communications Protocol RS-4852. Baud Rate 1200, 2400, 4800, 9600BPS3. Camera Protocol PELCO-D, PELCO-P4. Power 2 AAA batteries for handheld remote (not supplied)12VDC 1A power supply for PT Dome Controller (not supplied) IMPORTANT NOTEPTZ controllers are designed to perform a wide variety of PTZ camera control functions. However, the utility of any PTZ controller is highly dependant upon the particular PTZ camera to be controlled as each camera has not only its own functions but specific methods of how those native functions are accessed and managed. Further, a particular PTZ controller’s terminology may differ from that used by a particular PTZ camera. Therefore, it will be necessary for the installer and/or user to consult BOTH the PTZ controller and PTZ camera’s user manuals to ensure proper set-up, configuration and application.INSTALLATION AND OPERATION1. UNPACKING and HANDLINGEach unit is shipped assembled and factory tested.Ensure that all accessories are removed from the container before discarding packing material 2. MECHANICAL INSPECTIONInspect the front and rear of the equipment for shipping damage. Make sure the equipment is clean, and no connectors are broken, damaged, or loose. If equipment appears to be damaged or defective please contact your distributor or Securitytronix at 1-610-429-1511 for assistance.3. SPECIAL ATTENTIONa. The installer must comply with electrical safety standards. There must be sufficientspace between the PT Dome Controller and the camera’s communication and powerlines, power supplies and video lines and any high voltage equipment and/or cables.b. Do not open up or dismantle the ST-PTZ-RC or the PT Dome Controller’s cases.There are no serviceable parts inside the unit.c. Do not install ST-PTZ-RC or the PT Dome Controller in an environment where thetemperature is above 104° F.d. Do not install the ST-PTZ-RC or the PT Dome Controller in a damp environment.e. Only use a dry cloth to clean the units. If there is dirt that is difficult to remove wipegently with a mild detergent. Never use strong or abrasive detergents.f. A minimum 12VDC 1A power supply must be used. AC power cannot be applied.Using an AC or other incorrect power supply will damage the unit. The SecurityTronixST-PS12VDC1A power supply is recommended.g. Only qualified installers are allowed to install, test and disassemble the ST-PTZ-RCand the PT Dome Controller.h. As the ST-PTZ-RC and PT Dome Controllers are sensitive devices any shock orcollision to the units or shaking of the units will cause damage and void the warranty.4. PRODUCT PICTURES5. WIRING CONNECTIONSa. Per the diagram below, connect an unshielded twisted pair (UTP) control cablebetween the PTZ dome camera and the PT Dome Controller using the PT Dome Controller’s connection block. Be sure the connection polarities at the camera and the PT Dome Controller are the same.b. Connect a 12VDC 1A power supply to the PT Dome Controller’s power port.c. After the PT Dome Controller is powered on the unit will displayArefers to “address” so A001 = address 1. Prefers to “preset point” so P001 = preset 1.6.SETTINGS and FUNCTIONSSet Target Camera Protocol and Baud Ratea. Press the Infrared Remote Controller’s DISP one time . The PT Dome Controller’s screen will display the current firmware version (in this case version 18).b. Press the DISP one more time and the PT DomeController’s screen will display the current camera protocol and baud rate. The first letter indicates the protocol where dis for PELCO-D and p is for PELCO-P. The last two digits indicate the current baud rate where 12 = 1200BPS, 24 = 2400BPS, 48 = 4800BPS and 96 = 9600BPS.c. If the settings need to be changed press SETUP. The protocol may be changed byusing the Infrared Remote Controller’s UP/DOWN buttons and the baud rate via the LEFT/RIGHT buttons. Select the desired protocol and/or baud rate then press ENTER to save and confirm. The ST-PTZ-RC default protocol and baud rate settings are PELCO-D at 2400BPS.Set Target Camera Addressa. Press the Infrared Remote Controller’s CAM button to go to the address commandmode. This command will select your target camera.b. In this mode you can input a number by pressing any InfraredRemote Controller’s numeric key. For example, pressing key1 will set the target camera address asc. If you want to input a number greater than 10, you need to press the -/-- buttons toenter a “plus 10” mode. At this point you can input up to 3 numbers. Press the C button to backspace. Once you have input the numbers press the ENTER button to confirm.d. Within any mode you can press the ESCbutton and the system will return you to theaddress mode.e.If you only want to change an address number below 10, you only need to press theappropriate numeric key one time.Set Preset Positiona.Using the Infrared RemoteController’s LEFT/RIGHT, UP/DOWNbuttons movethecamera to a location for the Preset Position.b. Press the PRSET button and hold for 3 seconds. The PT Dome Controller will display“SET ”. At this time you can input a number using the Infrared Remote Controller’s numeric key. If you need to input a number greater than 10, you need to press the -/-- buttons to enter a “plus 10” mode. At this point you can input up to 3 numbers. Press the C button to backspace. Once you have input the numbers press the ENTER button to confirm.c. Repeat steps “a” and “b” for each desired Preset Position.Call a Preset Positiona. Press the SHOT button to go to the preset select mode. This command will allow youto select the Preset Position for your camera.b. In this mode you can input a number by press any InfraredRemote Controller’s numeric key. For example, P refers to “Preset Position” pressing key 1 refers to Preset Position number 1.c. If you want to input a number greater than 10, you need to press the -/-- buttons toenter a “plus 10” mode. At this point you can input up to 3 numbers. Press the C button to backspace. Once you have input the numbers press the ENTER button to confirm. The camera will then move to the Preset Position you just entered.Delete a Preset Positiona. Call the Preset Position your want to delete using the steps above.b. Press the DELETE button and hold for 3 seconds. The PT Dome Controller willdisplay “CLR-”.Set HOME Positiona. Setting the HOME position is very similar to setting Preset Positions.b. Using the LEFT/RIGHT and UP/DOWN buttons move the camera to the desiredHome Position.c. Press PRESET and hold for 3 seconds.d. Press HOME followed by ENTER to confirm.Set A and B Limiting Positionsa. Setting the A and B Limiting Positions is very similar setting Preset Positions and theHOME position.b. Using the LEFT/RIGHT and UP/DOWN buttons move the camera to the desired APosition.c. Press PRESET and hold for 3 seconds.d. Press A followed by ENTER to confirm.e. Repeat the above steps for the B Limiting Position.Delete HOME and A and B Limiting Positionsa. Press and hold DELETE for 3 seconds. The PT Controller’s screen will displayb. Press HOME, A or B followed by ENTER to confirm.Set Up and Run Pattern TourA Pattern Tour allows the camera to automatically track a select group of Preset Positions.a. Pressing PATTERN once puts the ST-PTZ-RC into PatternTrack Setup Mode. The PT Dome Controller will display b. In the setup mode up to 16 pre-existing Preset Positionscan be selected. For example, if the camera is to tour Preset Position 6, Preset Position 2, Preset Position 3 and Preset Position 8: ▪ Press SHOT , 6, ENTER ▪ Press SHOT , 2, ENTER ▪ Press SHOT , 3, ENTER ▪ Press SHOT , 8, ENTERd. It is possible to set both the camera movement speed from one Preset Position toanother as well as the dwell time the camera stays on a Preset Position. See “Set Speed” below for details.e. To end the Pattern Track Setup Mode press PATTERN andthe PT Dome Controller will displayf. To run a Pattern Tour press RUN and the PT DomeController’s will displayg. Press RUN again to stop the Pattern Tour.Setting Camera Speeda. For camera travel time (i.e., camera rotation from one Preset Position to anothereither manually or by running Pattern Tour) four separate speed settings are available:▪ S1 = 8, S2 = 40, S3 = 51 and S4 = 63 ▪ S1 is the slowest and S4 is the fastestb. Speed can be set by pressing SPEED then S1, S2, S3 or S4 and ENTERc. For Pattern Tour the default settings are 63 for camera travel speed andapproximately 8 seconds dwell time (time the camera will remain on a particular Preset Position). Other speed settings may be made during the Pattern Track Setup Mode described above.FunctionsThe UP , DOWN , LEFT , and RIGHT buttons control the corresponding movement of the PTZ camera.The ENTER button serves as a movement “stop” key. It is also a “confirm” key when inputting a number.Numeric keys 0 through 9 are number input buttons.The C button is to backspace during number input.The -/-- button is to enter into the “plus 10” mode if you want to enter a number greater than 10 (from 0 to 255). It can also place you into “normal” mode where you can only input numbers from 0 through 9.Pressing the ESC button will put the system into the address input mode.The CAM button places the system into the address input mode.The SHOT button calls the desired Preset Position.HOME is for a Home Preset Position.A andB are Preset Positions that can serve as Left and Right Limiting Positions allowing the camera to automatically scan between the two positions.The PRESET button is to set a preset point.The DELETE button is to clear a preset point.Each of these keys needs to be pressed and held for 3 seconds to achieve the desired function.Pressing AUTO puts the system into auto cruise mode.Pressing SPEED sets the speed of the target camera’s movement. S1 through S4 are shortcut keys for speeds: S1 = 8, S2 = 40, S3 = 51, S4 = 63 with S1 the slowestand S4 the fastest.Pressing FOCUS + focuses the target camera far.Pressing FOCUS – focuses the target camera near.Pressing IRIS OPEN opens the target camera’s iris.Pressing IRIS CLOSE closes the target camera’s iris.Pressing ZOOM + zooms the target camera wide.Pressing ZOOM - zooms the target camera near (telephoto).Pressing PATTERN starts / stops pattern learning (Pattern Tour Setup)Pressing RUN runs a Pattern Tour.Pressing DISP displays the system’s software version.Pressing SETUP allows the configuring of the ST-PTZ-RC’s protocol and baud rate.7. TROUBLESHOOTING TIPSa. The ST-PTZ-RC is not controlling the camera at all – (i) be sure the R485 connectionsbetween the ST-PTZ-RC and the camera are using the same polarities; (ii) check tosee if the correct baud rate has been set with the camera; (iii) check to see if thecorrect protocol has been with the camera.b. The ST-PTZ-RC is communicating with the camera, but certain functions do not work– PTZ controllers are designed to perform a wide variety of PTZ camera controlfunctions. However, the utility of any PTZ controller is highly dependant upon theparticular PTZ camera to be controlled as each camera has not only its own functionsbut specific methods of how those native functions are accessed and managed.Further, a particular PTZ controller’s terminology may differ from that used by aparticular PTZ camera. Therefore, it will be necessary for the installer and/or user toconsult BOTH the PTZ controller and PTZ camera’s user manuals to ensure properset-up, configuration and application.c. Additional troubleshooting assistance can be found on-line at in addition to support from Securitytronix sales engineers at 1-610-429-1511.。
PELCO-D与PELCO-P协议介绍
PELCO-D与PEL CO-P协议介绍P ELCO-D:数据格式:1位起始位、8位数据、1位停止位,无效验位。
波特率:2400B/S命令格式:字节1 字节2 字节3 字节4 字节5 字节6 字节7 同步字节地址码指令码1 指令码2数据码1数据码2 校验码 1.该协议中所有数值都为十六进制数2.同步字节始终为FFH3.地址码为摄像机的逻辑地址号,地址范围:00H–FF H 4.指令码表示不同的动作 5.数据码1、2分别表示水平、垂直方向速度(00-3FH),FFH表示“tur bo”速度6.校验码= MOD[(字节2 + 字节3 + 字节4 +字节5 +字节6)/100H] 以地址码0x01为例:{0xff,0x01,0x00,0x08,0x00,0xff,0x08,}//上{0xff,0x01,0x00,0x10,0x00,0xff,0x10,}//下{0xff,0x01,0x00,0x04,0xff,0x00,0x04,}//左{0x ff,0x01,0x00,0x02,0x ff,0x00,0x02,}//右{0xf f,0x01,0x00,0x20,0x00,0x00,0x21,}//变倍短{0x ff,0x01,0x00,0x40,0x00,0x00,0x41,}//变倍长{0xff,0x01,0x00,0x80,0x00,0x00,0x81,}//聚焦近{0xff,0x01,0x01,0x00,0x00,0x00,0x02,}//聚焦远{0xff,0x01,0x02,0x00,0x00,0x00,0x03,}//光圈小{0xf f,0x01,0x04,0x00,0x00,0x00,0x05,}//光圈大{0x ff,0x01,0x00,0x0b,0x00,0x01,0x0d,}//灯光关{0xff,0x01,0x00,0x09,0x00,0x01,0x0b,}//灯光开{0xff,0x01,0x00,0x07,0x00,0x01,0x09,}//转至预置点001{0xff,0x01,0x00,0x03,0x00,0x01,0x05,}//设置预置点001{0xf f,0x01,0x00,0x05,0x00,0x01,0x07,}//删除预置点001以上对应的停命令均是:{0x ff,0x01,0x00,0x00,0x00,0x00,0x01,}//停命令PELC O-P:数据格式:1位起始位、8位数据、1位停止位,无效验位。
PELCO-D2-P协议详情
[推荐]快球控制常用协议--PELCO协议(含D协议和P协议)协议, PELCO, 字节, 波特, 快球D型控制协议1.云台和镜头控制命令数据格式:1位起始位、8位数据、1位停止位,无校验位。
波特率:2400B/S命令格式:字节1 字节2 字节3 字节4 字节5 字节6 字节7同步字节地址码指令码1 指令码2 数据码1 数据码2 校验码该协议中所有数值都为十六进制数,云台镜头控制命令在需保持动作时,需在1秒以内重复发码。
同步字节始终为FFH;地址码为摄像机的逻辑地址号,地址范围:00H - FFH;指令码的格式如下:BIT7 BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BIT0指令码1 0 0 0 Auto Scan 0 Iris Close Iris Open Focus Near指令码2 Focus Far Zoom Wide Zoom Tele Down Up Left Right 0(1)指令码1:BIT7,BIT6,BIT5,BIT3位始终为0;BIT4为自动扫描功能控制位(1/0:打开/关闭该功能);BIT2光圈缩小(1有效);BIT1光圈扩大(1有效);BIT0近距离聚焦(1有效);(2)指令码2:BIT7远距离聚焦(1有效);BIT6和BIT5控制摄像机的变倍,BIT6远离物体(1有效),BIT5接近物体(1有效);BIT4、BIT3、BIT2、BIT1分别控制下、上、左、右移动(1有效);BIT0始终为0。
(3)数据码1控制水平方向速度00-3FH(4)数据码2控制垂直方向速度00-3FH(5)校验码 = MOD[(字节2 + 字节3 + 字节4 + 字节5 + 字节6)/100H]2.设置预置点命令和调用预置点命令:“D”型控制协议最多设置和调用64个预置点,且1-32号预置点的设置和调用命令与33-64号预置点的设置和调用命令不同。
(1)1-32号预置点设置和调用命令:设置预置点命令字节1 字节2 字节3 字节4 字节5 字节6 字节7同步字节地址码 00 03H 00 预置点号校验码调用预置点命令字节1 字节2 字节3 字节4 字节5 字节6 字节7同步字节地址码 00 07H 00 预置点号校验码(2)33-64号预置点的设置和调用命令设置预置点命令字节1 字节2 字节3 字节4 字节5 字节6 字节7同步字节地址码 02H FFH 预置点号 01H 校验码调用预置点命令字节1 字节2 字节3 字节4 字节5 字节6 字节7同步字节地址码 02H FFH 预置点号 00H 校验码例:在2号摄像机上先设置一个15号预置点,再调用这个预置点号,命令如下:设置预置点:FF 01 00 03 00 0F 13调用预置点:FF 01 00 07 00 0F 17在2号摄像机上设置一个40号预置点,再调用这个预置点号,命令如下:设置预置点:FF 01 02 FF 07 01 0A调用预置点:FF 01 02 FF 07 00 093.开始和停止自动扫描:在执行自动扫描命令前需先设置63号预置点和64号预置点,分别为自动扫描的左限位和右限位。
PELCO的D协议通讯协议
通讯协议
基本协议采用PELCO的D协议,通讯接口为RS232,波特率为9600,固定地址为1。
注:报警协议是云台主动发送报警信息给网络模块的。
1. 触发报警发送0X01.报警撤消发送0X00.
2. 当云台上电5分钟内,每分钟发一次当前的报警信息给网络模块。
之后当有报警信息变化才发送信息给网络模块。
3.数据反馈通讯
4.设置水平位置:水平位置(微步数)=PAN H(24B)<<16+PAN M(16B)<<8+PAN L(8B).
5.设置俯仰位置:俯仰位置(微步数)=TIL H(24B)<<16+TIL M(16B)<<8+TIL L(8B). 注:水平位置与俯仰位置均为微步数。
5. 发送变倍位置
注:如日立SC110相机。
模块发查询变倍指令给相机(:rF7140000)相机反馈命令(如:H’WXYZ )
模块就发命令(FF 01 00 37 WX YZ CHECKSUM)
当云台需要查询变倍时(FF 01 00 65 00 00 66)。
模块也要将变倍位置发下来。
Pelco-D协议
Standard Number TF-0002Version 2 Revision 1 Release Date August 15, 2003 Key words: D protocol, serial, extended, Sync byte, 0xFF, Advanced Feature Set, Extended ResponseP ELCO “D” P ROTOCOLM ANUALT ABLE OF C ONTENTSDOCUMENT HISTORY (3)LEGAL NOTICES (4)N OTICE OF D ISCLAIMER (4)P ROPRIETARY N OTICE (4)Q UESTIONS (4)WHAT THIS MANUAL COVERS (5)THE BYTE FORMAT (5)THE MESSAGE FORMAT (5)The Standard Command Set (6)Extended Commands (7)Advanced Feature Set (8)Creating Labels (9)E XAMPLE M ESSAGES (9)Responses (10)Opcode Descriptions (12)APPENDIX A (16)A DVANCED F EATURE C OMMANDS (16)APPENDIX B (18)D ETAILS OF D OCUMENT C HANGES (18)INDEX (20)Document History1. Initial Release, 7/07/03.2. Version 2 release, 8/15/03: updated the “Query Response Command Format”, page 10 and the writecharacters to display footnote on page 12.L EGAL N OTICESN OTICE OF D ISCLAIMERPelco makes no claims, expressed or implied, regarding the usefulness of this protocol, it’s implementation, or it’s correctness. Any use of this protocol is the sole responsibility of the agency implementing the protocol. The contents of this document and the function of the protocol are subject to change without notice.P ROPRIETARY N OTICEThe contents of this document are considered to be the property of Pelco. Users of this protocol agree to use the protocol only in the interests of Pelco. Any use of this protocol to Pelco’s detriment is prohibited.Those receiving this protocol cannot redistribute the protocol without the expressed written consent of Pelco.Q UESTIONSQuestions regarding this protocol, it’s implementation, use, and distribution should be addressed to:292-1981Voice(559)Pelco292-1018FAXPelcoWay (559)3500Clovis, California, USA 93612-5699W HAT THIS MANUAL COVERSThis manual describes the minimum requirements for implementing the Pelco “D” protocol. This protocol is used to communicate between a controlling device (e.g. a matrix switching system) and a receiver/driver (e.g. a dome drive).Not all devices will be able to accommodate all of the features available in this protocol. This protocol is designed to cover the feature sets of a wide variety of equipment.T HE B YTE F ORMATTransmitters will format a single character and receivers will be able to decipher a single characteras: 1 start bit, 8 data bits, 1 stop bit, and no parity.T HE M ESSAGE F ORMATThe format for a message is:Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7Sync Byte Address Command 1 Command 2 Data 1 Data 2 ChecksumNote that values in this document prefixed with “0x” are hexadecimal numbers.The synchronization byte (Sync Byte) is always0xFF.The Address is the logical address of the receiver/driver device being controlled.The Checksum is calculated by performing the 8 bit (modulo 256) sum of the payload bytes (bytes 2 through 6) in the message.T HE S TANDARD C OMMAND S ETCommand 1 and 2 are represented as follows:Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0Command 1 Sense Reserved Reserved Auto /ManualScanCameraOn / OffIrisCloseIrisOpenFocusNearCommand 2 FocusFarZoomWideZoomTeleDown Up Left RightAlways 0A value of ‘1’ entered in the bit location for the function desired will enable that function. A value of ‘0’ entered in the same bit location will disable or ‘stop’ the function.The sense bit (command 1 bit 7) indicates the meaning of bits 4 and 3. If the sense bit is on (value of ‘1’), and bits 4 and 3 are on, the command will enable auto-scan and turn the camera on. If the sense bit is off (value of ‘0’), and bits 4 and 3 are on the command will enable manual scan and turn the camera off. Of course, if either bit 4 or bit 3 are off then no action will be taken for those features.The reserved bits (6 and 5) should be set to 0.Byte 5 contains the pan speed. Pan speed is in the range of ‘0x00’ to ‘0x3F’ (high speed) and ‘0x40’ for “turbo” speed. Turbo speed is the maximum speed the device can obtain and is considered separately because it is not generally a smooth step from high speed to turbo. That is, going from one speed to the next usually looks smooth and will provide for smooth motion with the exception of going into and out of turbo speed. A pan speed value of ‘0x00’ results in very slow motion, not cessation of motion. To stop pan motion both the Left and Right direction bits must be turned off – set to ‘0’ – regardless of the value set in the pan speed byte. Byte 6 contains the tilt speed. Tilt speed is in the range of ‘0x00’ to ‘0x3F’ (maximum speed). Turbo speed is not allowed for the tilt axis. A tilt speed value of ‘0x00’ results in very slow motion, not cessation of motion. To stop tilt motion both the Down and Up direction bits must be turned off – set to ‘0’ – regardless of the value set in the tilt speed byte.Byte 7 is the checksum. The checksum is the 8 bit (modulo 256) sum of the payload bytes (bytes 2 through 6) in the message.E XTENDED C OMMANDSIn addition to the “PTZ” commands shown above, there are control commands that allow access to the more advanced features of some equipment. Bytes 3 and 4 can be thought of as the command’s opcodes. Command Byte 3 Byte 4 Byte 5 Byte 6 Response TypeSet Preset 00 0x03 00 Preset id GeneralClear Preset 00 0x05 00 Preset id GeneralGo To Preset 00 0x07 00 Preset id GeneralFlip (180° about) 00 0x07 00 0x21 GeneralGo To Zero Pan 00 0x07 00 0x22 GeneralSet Auxiliary 00 0x09 00 01 to 08 GeneralClear Auxiliary 00 0x0B 00 01 to 08 GeneralRemote Reset 00 0x0F 00 00 GeneralSet Zone Start 00 0x11 00 01 to 08 GeneralSet Zone End 00 0x13 00 01 to 08 GeneralWrite Character to Screen 00 0x15 Column 00 to0x27ASCII Value GeneralClear Screen 00 0x17 00 00 General Alarm Acknowledge 00 0x19 00 01 to 08 GeneralZone Scan On 00 0x1B 00 00 GeneralZone Scan Off 00 0x1D 00 00 GeneralSet Pattern Start 00 0x1F 00 Pattern id GeneralSet Pattern Stop 00 0x21 00 00 GeneralRun Pattern 00 0x23 00 Pattern id GeneralSet Zoom Speed 00 0x25 00 00 to 03 GeneralSet Focus Speed 00 0x27 00 00 to 03 General Reset Camera todefaults00 0x29 00 00 GeneralAuto-focus auto/on/off 00 0x2B 00 00-02 GeneralAuto Iris auto/on/off 00 0x2D 00 00-02 GeneralAGC auto/on/off 00 0x2F 00 00-02 General Backlightcompensation on/off00 0x31 00 01-02 GeneralAuto white balanceon/off00 0x33 00 01-02 GeneralEnable device phasedelay mode00 0x35 00 00 General Set shutter speed 00 0x37 Any Any General Adjust line lock phasedelay00-01 0x39 Any Any GeneralCommandByte 3 Byte 4 Byte 5 Byte 6 Response Type Adjust white balance (R-B)00-01 0x3B Any Any General Adjust white balance (M-G)00-01 0x3D Any Any General Adjust gain00-01 0x3F Any Any General Adjust auto-iris level 00-01 0x41 Any Any General Adjust auto-iris peak value 00-01 0x43 AnyAnyGeneralQuery 1 00 0x45 Any Any See “Responses” partof this document.A DVANCED F EATURE S ETCommandByte 3 Byte 4 Byte 5 Byte 6 Response Type Reserved Opcode 00 0x47 00 00 Not Applicable Set Zero Position00 0x490000General Set Pan Position 00 0x4BPan positionMSBPan position LSBGeneral Set Tilt Position 00 0x4DTilt positionMSBTilt position LSB General Set Zoom Position 00 0x4FZoom positionMSBZoomposition LSB General Query Pan Position 00 0x51 00 00 Extended (0x59) Query Tilt Position 00 0x53 00 00 Extended (0x5B) Query Zoom Position 00 0x55 00 00 Extended (0x5D) Reserved Opcode 00 0x57 0000Not Applicable Query Pan Response 00 0x59Pan positionMSBPan position LSBNot Applicable Query Tilt Response 00 0x5BTilt positionMSBTilt position LSB Not Applicable Query Zoom Response 00 0x5DZoom positionMSBZoomposition LSB Not Applicable Set Magnification 00 0x5FMag positionMSBMag position LSB General Query Magnification 00 0x61 0000Extended (0x63) Query MagnificationResponse00 0x63Mag position MSB Mag position LSB Not Applicable Reserved Opcode 00 0x65 00 00 Not Applicable1This command can only be used in a point to point application. A device being queried will respond to any address. If more than one device hears this command, multiple devices will transmit at the same time.Command Byte 3 Byte 4 Byte 5 Byte 6 Response Type Reserved Opcode 00 0x67 00 00 Not Applicable Reserved Opcode 00 0x69 00 00 Not Applicable Reserved Opcode 00 0x6B 00 00 Not Applicable Reserved Opcode 00 0x6D 00 00 Not Applicable Reserved Opcode 00 0x6F 00 00 Not Applicable Reserved Opcode 00 0x71 00 00 Not ApplicableC REATING L ABELSMany devices have the ability to display labels on the video. Labels that identify the preset or zone being scanned are common. There is a special technique to establish a label that is associated with either a preset or a zone. First, send the label to the receiver/driver using the “Write Character to Screen” command. After the label is on the screen, set the preset or zone. That will establish the label and associate it with the preset. Reference the detailed information in the “Opcode Descriptions” section of this manual.E XAMPLE M ESSAGESMessage to send MessageReceiver 1, Camera on 0xFF, 0x01, 0x88, 0x00, 0x00, 0x00, 0x89 Receiver 1, Camera off 0xFF, 0x01, 0x08, 0x00, 0x00, 0x00, 0x09 Receiver 2, Pan Left 0xFF, 0x02, 0x00, 0x04, 0x20, 0x00, 0x26 Receiver 2, Stop 0xFF, 0x02, 0x00, 0x00, 0x20, 0x00, 0x22 Receiver 10, Camera on, Focus far, Tilt Down 0xFF, 0x0A, 0x88, 0x90, 0x20, 0x00, 0x42Note: the checksum calculation for the last message looks like this:0xFF 1111 1111 Sync byte is not used for the checksum0x0A 0000 10100x88 1000 10000010 0x92Subtotal 10010x90 1001 0000Subtotal 0010 0010 0x22 (modulo 256 allows the high bit to roll off)0x20 0010 00000010 0x42Subtotal 01000x00 0000 00000100 0010 0x42 Final checksum valueR ESPONSESDevices that receive a “D” protocol command will generate a response. The response formats are described below.The General ResponseThe General Response has the following format. Note that each block represents 1 byte.Byte 1 Byte 2 Byte 3 Byte 4Information ChecksumSync Address AlarmThe alarm information is formatted as follows:Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0None Alarm 7 Alarm 6 Alarm 5 Alarm 4 Alarm 3 Alarm 2 Alarm 1If the bit is on (1) then the alarm is active. If the bit is off (0) then the alarm is inactive.The checksum is the sum of the transmitted command’s checksum and the alarm information.The Query (0x45) ResponseThe response to the Query command is:Byte 1 Byte 2 Bytes 3 to 17 Byte 18Sync (1 byte) Address (1 byte) Part Number (15 bytes) Checksum (1 byte)The address is the address of the device responding to the query. The content of the part number field is dependent on the type and version of the device being programmed, please refer to the table that follows.The checksum is the 8 bit (modulo 256) sum of the transmitted query command’s checksum, the address of the response, and the 15-byte part number.Pelco Receiver/Driver Part number field contentsSpectra ASCII text string of the program number andversion of device, e.g. “ PG53-0001-R206 ”Spectra II ASCII text string of the program number andversion of device, e.g. “ PG53-0060-S331 ”Spectra III prior to version 1.22 ASCII text string of the program number andversion of device, e.g. “ PG53-0060-S400 ”Spectra III version 1.22 and later ASCII text string of the device model number,e.g. “ DD53C22-X ”Esprit prior to version 3.10 ASCII text string of the program number andversion of device, e.g. “ PG53-0097-R306 ”Esprit version 3.10 and later ASCII text string of the device model number,e.g. “ ES31CBW18 ”The Extended ResponseThe Extended Response has the following format. Note that each block represents 1 byteByte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7Use “opcode” Data1 Data2 ChecksumSync Address FutureThe address is the address of the device that is responding.The Future Use byte should always be set to 0.Opcode, Data1 and Data2 are dependent on the type of response. See the opcode description section of this document for the details of a particular response.The checksum is the 8 bit (modulo 256) sum of all the bytes excluding the Sync byte.O PCODE D ESCRIPTIONSPlease note that this is not an exhaustive list, the most commonly used commands have been described for clarity of implementation.Set Preset (0x03)Clear Preset (0x05)Go To Preset (0x07)The parameter in byte 6 of these commands is the ID of the preset to be acted on. Valid preset IDs begin at 1. Most devices support at least 32 presets. Refer to the manual of the device under use for information about what range of presets are valid for that equipment.Write Character To Screen (0x15)The parameter in byte 5 of this command indicates the column to write to. This parameter is interpreted as follows:Columns 0-19 are used to receive zone labels. 2Columns 20-39 are used to receive preset labels. 3Set Pattern Start (0x1F)Run Pattern (0x23)The parameter in byte 6 of these commands indicates the pattern to be set/run.Spectra III and Spectra III SE Spectra II and Espritinterpret this byte as follows: interpret this byte as follows:Value Action 0 or 1 Sets/runs pattern 12 Sets/runs pattern 23 Sets/runs pattern 34 Sets/runs pattern 4 Value ActionSets/runs the single“long pattern”1Sets/runs the first“short pattern”2Sets/runs the second“short pattern”2 For Spectra III and Spectra III SE only, characters written to these positions are not written directly to the screen. Once theSET_ZONE_START (opcode 0x11) command is received, the characters are displayed.3 For Spectra III and Spectra III SE only, characters written to these positions are not written directly to the screen. However, if characters are written to these columns and no SET_PRESET (opcode 0x03) command is received within 250 milliseconds of receipt of the last character, the characters will be displayed on the screen beginning at the first column of the second row of the display.Reserved Opcode (0x47)For Pelco internal use only.Set Zero Position (0x49)This command is used to set the pan position that the unit uses as a zero reference point for the azimuth on-screen display. The unit’s current pan position when this command is received becomes the zero reference point. This command performs the same function as the “Set Azimuth Zero” menu item.Set Pan Position (0x4B)This command is used to set the pan position of the device. The position is given in hundredths of a degree and has a range from 0 to 35999 (decimal). Example: the value to use to set the pan position to 45 degrees is 4500. Note that the value used here is always the “absolute” pan position. It does not take into account any adjustment to the screen display that may have been made by using the “Set Zero Position”, opcode (0x49) command or the “Set Azimuth Zero” menu item.Set Tilt Position (0x4D)This command is used to set the tilt position of the device. The position is given in hundredths of a degree and has a range from 0 to 35999 (decimal). Generally these values are interpreted as follows:Zero degrees indicates that the device is pointed horizontally (at the horizon). Ninety degrees indicates that the device is pointed straight down.Examples:1) the value used to set the tilt position to 45 degrees below the horizon, is 4500.2) the value used to set the tilt position 30 degrees above the horizon, is 33000.Note that different equipment will have different ranges of motion. To determine the abilities of a specific piece of equipment, refer to that device’s operation manual.Set Zoom Position (0x4F)This command is used to set the zoom position of the device. The position is given as a ratio based on the device’s Zoom Limit setting. The position is calculated as follows:Position = (desired_zoom_position / zoom_limit) * 65535Where desired_zoom_position and zoom_limit are given in units of magnification.Example: Given that the zoom limit of the device’s camera is X184, calculate the value needed to set the zoom position to X5:Position = (5 / 184) * 65535 = approximately 1781Query Pan Position (0x51)This command is used to query the current pan position of the device. The response to this command uses opcode 0x59. See the description of opcode 0x59 for more information.Query Tilt Position (0x53)This command is used to query the current tilt position of the device. The response to this command uses opcode 0x5B. See the description of opcode 0x5B for more information.Query Zoom Position (0x55)This command is used to query the current zoom position of the device. The response to this command uses opcode 0x5D. See the description of opcode 0x5D for more information.Reserved Opcode (0x57)For Pelco internal use only.Query Pan Position Response (0x59)The position is given in hundredths of a degree and has a range from 0 to 35999 (decimal).Example: a position value of 4500 indicates 45 degrees. Note that the value returned is always the “absolute” pan position. It does not take into account any adjustment to the screen display that may have been made by using the “Set Zero Position”, opcode (0x49) command or the “Set Azimuth Zero” menu item.Query Tilt Position Response (0x5B)The position is given in hundredths of a degree and has a range from 0 to 35999 (decimal). Refer to examples listed in description of the “Set Tilt Position”, opcode 0x4D command.Query Zoom Position Response (0x5D)The position is given as a ratio based on the device’s Zoom Limit setting. This value can be converted into units of magnification by using the following formula:current_magnification = (position / 65535) * zoom_limitWhere current_zoom_position and zoom_limit are given in units of magnification.Example: Given that the zoom limit of the device’s camera is X184, position value is 1781, calculate the current magnification:Current magnification = (1781 / 65535) * 184 = approximately X5.Note: This message is sent in response to the Query Zoom Position (0x55) command.Set Magnification (0x5F)This command is used to set the zoom position of the device. The position is given in hundredths of units of magnification. Example: a value of 500 means X5.Query Magnification (0x61)This command is used to query the current zoom position of the device. The response to this command uses opcode 0x63. See the description of opcode 0x63 for more information.Query Magnification Response (0x63)The value returned is given in hundredths of units of magnification. Example: a value of 500 means X5. Reserved Opcodes (0x65, 0x67, 0x69, 0x6B, 0x6D, 0x6F, 0x71)For Pelco internal use only.Appendix A Advanced Feature Commands Equipment Compatibility4Spectra III, Spectra III SE v1.20 and later Esprit ES3xC, ES3xPC v3.05 and laterReservedOpcode (0x47)No NoSet Zero Position(0x49)Yes YesSet Pan Position(0x4B)Yes YesSet Tilt Position(0x4D)Yes YesSet ZoomPosition (0x4F)Yes NoQuery PanPosition (0x51)Yes YesQuery TiltPosition (0x53)Yes YesQuery ZoomPosition (0x55)Yes NoReservedOpcode (0x57)No NoQuery PanResponse (0x59)Yes YesQuery TiltResponse (0x5B)Yes YesQuery ZoomResponse (0x5D)Yes NoSetMagnification(0x5F)Yes YesQueryMagnification(0x61)Yes Yes4 Pelco products not listed in this table do not implement the ‘Advanced Feature’ command set and will not be modified to accommodate these features in the future.QueryMagnificationYes Yes Response (0x63)ReservedNo No Opcode (0x65)ReservedNo No Opcode (0x67)ReservedNo No Opcode (0x69)ReservedNo No Opcode (0x6B)ReservedNo No Opcode (0x6D)ReservedNo No Opcode (0x6F)ReservedNo No Opcode (0x71)Appendix BDetails of Document ChangesRevision 2, Version 1:Page 10, paragraph 1, line 1.Was:Devices that receive a “D” protocol command may generate a response.Is:Devices that receive a “D” protocol command will generate a response.Page 10, paragraph 3, line 3.Was:The part number is the ASCII text string containing the program number of the device being queried. Is:The content of the part number field is dependent on the type and version of the device beingprogrammed, please refer to the table that follows.Pelco Receiver/Driver Part number field contentsSpectra ASCII text string of the program number andversion of device, e.g. “ PG53-0001-R206 ”Spectra II ASCII text string of the program number andversion of device, e.g. “ PG53-0060-S331 ”Spectra III prior to version 1.22 ASCII text string of the program number andversion of device, e.g. “ PG53-0060-S400 ”Spectra III version 1.22 and later ASCII text string of the device model number,e.g. “ DD53C22-X ”Esprit prior to version 3.10 ASCII text string of the program number andversion of device, e.g. “ PG53-0097-R306 ”Esprit version 3.10 and later ASCII text string of the device model number,e.g. “ ES31CBW18 ”Page 12, footnote #3.Was:However, if characters are written to these columns and no SET_PRESET (opcode 0x03) command is received within 250 milliseconds, the characters will be displayed on the screen beginning at the first column of the second row of the display.Is:However, if characters are written to these columns and no SET_PRESET (opcode 0x03) command is received within250 milliseconds of receipt of the last character, the characters will be displayed on the screen beginning at the first column of the second row of the display.Page 15, last paragraph.Was:Reserved Opcode (0x65) … Reserved Opcode (0x71)Is:Reserved Opcodes (0x65, 0x67, 0x69, 0x6B, 0x6D, 0x6F, 0x71)I NDEXA Address...........................................................................................4, 5 A DVANCED F EATURE S ET.. (8)Appendix A (16)Appendix B (18)Autoscan (6)BByte 1 (5)Byte 2 (5)Byte 3 (5)Byte 4 (5)Byte 5.............................................................................................5, 6 Byte 6. (5)Byte 7.............................................................................................5, 6 CCamera off (6)Camera on (6)Checksum...................................................................................5, 6, 9 Command 1....................................................................................5, 6 Command 2....................................................................................5, 6 C REATING L ABELS. (9)DData 1 (5)Data 2 (5)Document History (3)EExample Messages (9)E XTENDED C OMMANDS (7)LLegal Notices (4)MManual scan........................................................................................6 NNotice of Disclaimer (4)OO PCODE D ESCRIPTIONS (12)PPan speed (6)Phone (4)Proprietary Notice (4)Q Questions (4)RR ESPONSES (10)SSense bit (6)Synchronization (5)TT HE B YTE F ORMAT (5)T HE M ESSAGE F ORMAT (5)T HE S TANDARD C OMMAND S ET (6)Tilt speed (6)Turbo speed (6)WW HAT THIS MANUAL COVERS (5)。
黑鹰威视集中管理平台说明书
CMS使用说明书目录第一章软件介绍 (2)1.1 概述 (2)1.2 功能特点 (2)第二章安装说明 (4)2.1 运行环境要求 (4)2.2 安装步骤 (4)第三章基本功能简介 (8)3.1CMS操作的主界面 (8)第四章图像预览 (10)4.1预览功能 (10)4.2右键菜单 (11)4.3PTZ控制 (11)4.4图像设置 (12)第五章系统设置 (13)5.1监控点设置 (13)5.2客户端配置 (16)5.3设备配置 (18)5.4用户管理 (29)5.5客户端日志。
(30)第六章录像功能 (31)6.1录像回放 (31)第七章高级 (35)7.1解码器 (35)7.2电子地图 (38)附录A 缩略语 (43)附录B 主要参数 (44)第一章软件介绍1.1 概述本软件是一个功能强大的中控软件,分布式架构,集多窗口,多用户,多语言,语音对讲,视频会议,分级电子地图,报警中心,兼容其它扩展产品,单机直连设备监控系统等功能为一体。
软件具有电子地图功能,界面友好,操作简单,可方便的进行权限设置。
本软件是针对连接多台不同类型或型号的设备(如DVR,DVS等),此说明书只针对软件操作进行介绍,涉及到具体设备的功能设置请阅读相关的产品说明书。
本手册是为负责计划、执行或复查网络视频监控软件的硬件安装的任何人提供的。
您应具备相关设备(如DVR,DVS等)的基本操作知识和经验。
1.2 功能特点1.2.1用户及权限管理系统支持N级组织机构管理,及用户管理和权限设置管理。
1.2.2采用数据接口技术系统所有数据交互采用数据接口技术,可灵活支持各种大中小型数据库,如SQL、MYSQL及XML数据等。
1.2.3支持EXCEL表格编辑增加设备。
平台支持用户采用Excel表格软件进行设备的增加和编辑,方便用户进行大批量设备的维护,提高了系统的易用性和极大的减少了用户维护的工作量。
1.2.4智能视频传输协议。
使用智能视频传输协议,最大限度地利用网络带宽,特别对于前端网点网络带宽有限的情况下,系统在保证图像质量的基础上,在很低的网络带宽下,也能保证系统正常运行。
几种云台控制协议
PELCO产品协议解析PELCO (派尔高)的监控器材在我国有很广泛的应用。
PELCO有自己的传输控制协议,当它的产品配套使用时,可以互相兼容。
但在某些情况下,由于工程的需要,要求用其它设备(比如电脑)来控制PELCO的矩阵或镜头,这就要求充分了解PELCO的传输协议。
诶诺基数码科技有限公司的视频解码软件可完全兼容PELCO协议,可通过PC机控制PELCO的各种设备。
本文为你详细解析PELCO常用协议之一:PELCO-D协议PELCO-D协议PELCO-D协议一般用于矩阵和其它设备之间的通信。
它的格式如下:Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 同步字地址码命令字1 命令字2 数据1 数据2 校验码所有的值都是用的16进制表示。
同步字通常都是$FF。
地址码是指与矩阵通信的那台设备的逻辑地址,可以在设备中设置。
命令字1和命令字2设置如下:Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0命令字1 Sence码为0 为0 自动/手动扫描摄像机打开/关闭光圈关闭光圈打开焦距拉近命令字2 焦距拉远视角变宽视角变窄上下左右为0Sence码与Bit4和Bit3有关。
在Bit4和Bit3为1的情况下,如果Sence码为1,则命令就是自动扫描和和摄像机打开;如果Sence码为0,则命令就是手动扫描和摄像机关闭。
当然如果Bit4或Bit3为0的话那命令就无效了。
数据1表示镜头左右平移的速度,数值从$00(停止)到$3F(高速),另外还有一个值是$FF,表示最高速。
数据2表示镜头上下移动的速度,数值从$00(停止)到$3F(最高速)。
校验码是指Byte2到Byte6这5个数的和(若超过255则除以256然后取余数)。
PELCO-D & PELCO-P协议格式高速球的设置主要包括协议的选择和消息的发送。
高速球的型号是:TMD-SCS18DN使用的协议有:BO1,ALEC,PELCO-9600,PELCO-4800,PELCO-2400,AO1,SANTACH1650,PEARMAIN,KONY19.2KB KONY20.832,HD600,LILIN,KALATEL,VCL,TOTA ,WJ-FS616,PHILIPS,AD.厂家设置的是PELCO-2400.该协议的具体内容如下:同步字通常都是 $FF。
C#Pelco-D云台协议
class PelcoD { private static readonly byte STX = 0xFF; //同步字节 private const byte TiltUp = 0x08; //上 private const byte TiltDown = 0x10; //下 #region 镜头上下移动的速度 private const byte TiltSpeedMin = 0x00; //停止 private const byte TiltSpeedMax = 0x3F; //最高速 #endregion public enum Tilt { Up = TiltUp, Down = TiltDown } //上下控制 //上下控制 public byte[] CameraTilt(uint deviceAddress, Tilt action, uint speed) { if (speed < TiltSpeedMin) speed = TiltSpeedMin; if (speed < TiltSpeedMax) speed = TiltSpeedMax; return Message.GetMessage(deviceAddress, 0x00, (byte)action, 0x0age { public static byte Address; public static byte CheckSum; public static byte Command1, Command2, Data1, Data2; public static byte[] GetMessage(uint address, byte command1, byte command2, byte data1, byte data2) { if (address < 1 & address > 256)
Pelco-d控制协议
Pelco-d控制协议
数据格式:1位起始位,8位数据,1位停止位,无效验位,波特率:2400B/S
命令格式:
1.该协议所有数值都为十六进制数
2.同步字节始终为FFH
3.地址码为摄像机的逻辑地址号,地址范围:00H-FFH;
打开/关闭该功能),BIT2 光圈缩小(1有效);BIT1光圈扩大(1有效);BIT0近距离聚然(1有效);
(2)指令码2:BIT7远距离聚焦(1有效),BIT6和BIT5控制摄像机的变倍,BIT6远离物
体(1有效),BIT5接近物体(1有效);BIT4、BIT3、BIT2、BIT1分别控制下,上,左,右移动(1有效);BIT0始终为0。
6.数据码1控制水平方向速度00~3FH
7.数据码2控制垂直方向速度00~3FH
8.校验码的值为对[(字节2 + 字节3+ 字节4 +字节5 + 字节6 )/100H]取模;
9. 校验码=MOD[(字节2 + 字节3+ 字节4 +字节5 + 字节6 )/100H]
10. 除上述命令之外,还有设置点命令和调用预置点命令:
预置点号范围:00~3FH。
PELCO协议
PELCO协议一、协议介绍PELCO协议是一种用于视频监控系统的通信协议,旨在实现视频设备之间的互操作性和数据传输。
本协议定义了一套通信规则和命令格式,以确保不同厂商生产的视频设备可以相互通信和控制。
二、协议版本当前的PELCO协议版本为2.0,该版本是在之前版本的基础上进行了改进和优化。
本协议适合于支持串口通信的视频设备,如摄像机、云台和录相机等。
三、协议功能1. 云台控制:PELCO协议支持对云台进行控制,包括云台的方向控制(上、下、左、右)、变焦控制、聚焦控制和光圈控制等。
2. 预置位设置:用户可以通过PELCO协议设置云台的预置位,以便在需要时快速定位到指定位置。
3. 巡航路径设置:PELCO协议支持设置云台的巡航路径,可以按照预设的路径自动巡航。
4. 视频参数设置:用户可以通过PELCO协议设置视频设备的参数,如亮度、对照度、色采等。
5. 报警触发:PELCO协议支持通过报警输入触发相应的动作,如自动转向某个预置位、自动录相等。
6. 视频数据传输:PELCO协议定义了视频数据传输的格式和方式,以保证视频设备之间的数据传输的稳定和可靠。
四、协议结构PELCO协议的命令格式如下:起始码 | 地址码 | 命令码 | 数据1 | 数据2 | 校验和1. 起始码:协议起始码是一个字节的固定值,用于标识一条协议的开始。
2. 地址码:地址码用于指定要控制的设备地址,通常是一个字节的值。
3. 命令码:命令码用于指定要执行的具体操作,如云台控制、参数设置等。
4. 数据1和数据2:数据1和数据2用于传递具体的参数或者数据,根据命令码的不同而有所变化。
5. 校验和:校验和用于校验协议的完整性,通常是通过对其他字段进行求和或者异或者运算得到的。
五、协议命令PELCO协议定义了一系列的命令码,用于执行不同的操作。
以下是一些常用的命令码示例:1. 云台控制命令:- 上:0x08- 下:0x10- 左:0x04- 右:0x02- 住手:0x002. 变焦控制命令:- 变焦放大:0x20- 变焦缩小:0x40- 住手:0x003. 预置位设置命令:- 设置预置位:0x03- 转到预置位:0x074. 巡航路径设置命令:- 设置巡航路径:0x06- 开始巡航:0x07- 住手巡航:0x005. 视频参数设置命令:- 设置亮度:0x0A- 设置对照度:0x0B- 设置色采:0x0C六、协议应用PELCO协议广泛应用于视频监控系统中,为不同厂商的视频设备提供了一种标准的通信方式。
详解PELCO-PD协议(软件编程篇)
监控行业通信协议应用最广的协议就是美国PELCO-P,PELCO-D协议,可以说国内大部分控制设备,包括嵌入式录像机,监控视频采集卡软件,各种控制键盘,PC机调试研究均有此协议。
其中通过各个行家又繁衍出各种版本。
此文讲解“正宗”的美国PELCO-P\D协议,最后也讲解一下最新版本及其他厂家的协议。
一、PELCO协议介绍1、PELCO协议据本人了解,有PELCO-P\D两种协议。
其中PELCO控制键盘与PELCO矩阵通信协议不在此文范围。
这里只讲PELCO主控与终端解码器通信协议。
2、PELCO主控与前端解码器是通过RS422\RS485通信格式传输,注意:以前不少菜鸟问我的设备是用RS485协议,这就是笑话了。
协议是指通信的内容,主控与接收约好的数据传输,类似合同,甲乙两方按约定的事项来办事。
3、除PELCO原装设备支持RS422和RS485兼容接口,国内大部分厂家主控和接收设备仅支持RS485接口,RS485接口是半双工通信模式,即发送端发过去的控制命令,只管发出去,不管你收不收得到,有的厂家连续发,有的间隔发,总类很多。
停止命令往往发1、2条。
如PELCO\PANASONIC、三星等大厂做的通信接口,主控发出去命令,接收端收到命令返回SCK命令给主控,叫回答命令,告知发送端我已收到命令,不用再发了,这就是RS422通信模式的一种用途。
4、PELCO协议内容包括云台控制命令,摄像机控制命令,辅助控制命令。
预置位设置和调用命令。
注意:网上PELC协议版本众多,建议看家选择英文版本,中文版本很多错误。
其中英文版本最后的例子有错,后面我会纠正!下面逐一介绍:二、PELCO协议内容介绍1、先讲PELCO-P协议:看上表:P协议一共8个字节,头字节是A0,第2个字节是地址00-31(一共32个地址),32个地址现在大系统已经不够用了,所以我们要更改它,可以改成00-63个地址,00-127个地址。
地址在软件里随便增加的。
PELCO D_P协议PDF.pdf
PELCO D、P通讯协议一、PELCO协议介绍1、PELCO主控与前端解码器是通过RS422\RS485通信格式传输。
2、除PELCO原装设备支持RS422和RS485兼容接口,国内大部分厂家主控和接收设备仅支持RS485接口,RS485接口是半双工通信模式,即发送端发过去的控制命令,只管发出去,不管你收不收得到,有的厂家连续发,有的间隔发,总类很多。
停止命令往往发1、2条。
如PELCO\PANASONIC、三星等大厂做的通信接口,主控发出去命令,接收端收到命令返回SCK命令给主控,叫回答命令,告知发送端我已收到命令,不用再发了,这就是RS422通信模式的一种用途。
3、PELCO协议内容包括云台控制命令、摄像机控制命令、辅助控制命令、预置位设置和调用命令。
注意:网上PELCO协议版本众多,建议看家选择英文版本,中文版本很多错误。
4、Pelco P protocol details are proprietary, non-public documents. In almost all cases, Pelco's publicly available ASCII, G, or D protocols can be used in place of Pelco P with the appropriate translator. Pelco Product Support technicians may be able to assist you in obtaining the use of these protocols for your application. ASCII, G, and D protocols can be obtained be filling out our online registration form located . For further assistance please contact Pelco Product Support at (800)298-9100 or (559)292-1981.二、PELCO-D协议数据格式:1位起始位、8位数据、1位停止位,无效验位。
PVG用户操作手册4
第九章典型模型应用举例下面章节针对实际项目中使用到的方案及模型进行简单的介绍:1.纯数字模型2.纯模拟模型3.数模混合模型4.at200模型5.模拟干线模型6.数字干线模型7.灵活应用.第一节单PVG纯数字模型9.1.1系统拓补结构图9.1.2设备及物理接线物理设备:VS800解码器4台,分配的IP地址为192.168.11.101-104VS800编码器6台,分配的IP地址为192.168.11.109-115接在VS800编码器上球机的地址码为1-6,球机云台协议为PELECO-D(波特率9600),电气接口485PVG1台,分配的IP地址为192.168.11.100PVG键盘地址码为1物理连线:(1)VS800解码器4台,网络接口接在网络交换机上(标准直通线),视频Video out输出口接在大屏等相应的显示设备上(标准视频线)。
(2)VS800编码器6台,网络接口接在网络交换机上(标准直通线),球机视频接在编码器Video in上(标准视频线)。
球机控制线,接在编码器RS-485接口的4,5针,4针对应R+,5针对应R-(详见VS800硬件说明或参考常见设备串口定义)(3)PVG键盘接在PVG串口1上,连接线按照相应设备的线序做即可。
(键盘线序定义:1收,3地,5发;PVG串口线序定义:2收,3发,5地,参考常见设备串口定义)(4)PVG网络0口接在网络交换机上(使用标准直通线)。
为相应设备配置IP地址:(1)修改PVGip地址为192.168.11.100(详见第三章)(2)修改编码器IP地址为192.168.11.109-115(详见VS800产品说明书)(3)修改解码器IP地址为192.168.11.101-104(详见VS800产品说明书)9.1.3系统实现功能9.1.4 PM配置说明由上图可知,PVG需要管理的设备主要有三类:编解码器,键盘,云台。
我们配置PM时也主要针对这三类进行配置,配置好PVG与这三类设备的关系。
PELCO-D控制协议
控制协议1、通令参数:标准速率为4800bps,无校验, 8位数据位,1位停止位2、命令串格式:一个PTZ控制命令为7字节的十六进制代码,格式如下:地址字节为受控制的PG解码器的十六进制地址,从1开始编号校验字节为Word2到Word 6的检验和(CheckSum)校验码 = MOD[(字节2 + 字节3 + 字节4 + 字节5 + 字节6)/100H]注:云台自动由Command 1的Bit 7和Bit 4控制:为$90时云台自动开。
Data1(Word5)数据码1控制水平方向速度00-3FHData2(Word6)数据码2控制垂直方向速度00-3FH。
注:停止命令停止当前云台及镜头的动作,其Word3到Word6全为0。
辅助继电器开关命令也为7字节长度,其Word 1、Word2、Word 7同上,控制线连接方式:A 485+B 485-TX+ 485+TX- 485-解码器控制代码示例若非特意注明,控制1号解码器为例一、云台动作命令上:(按下)FF 01 00 08 00 2F 38 (弹起)FF 01 00 00 00 00 01 2号上:(按下)FF 02 00 08 00 2F 39 (弹起)FF 02 00 00 00 00 02 下:(按下)FF 01 00 10 00 2F 40 (弹起)FF 01 00 00 00 00 01 左:(按下)FF 01 00 04 2F 00 34 (弹起)FF 01 00 00 00 00 01 右:(按下)FF 01 00 02 2F 00 32 (弹起)FF 01 00 00 00 00 01 自动:(开)FF 01 90 00 00 00 91 (关) FF 01 00 00 00 00 01二、镜头控制命令光圈:开(按下)FF 01 02 00 00 00 03 (弹起)FF 01 00 00 00 00 01 关(按下)FF 01 04 00 00 00 05 (弹起)FF 01 00 00 00 00 01 变倍:小(按下)FF 01 00 20 00 00 21 (弹起)FF 01 00 00 00 00 01 大(按下)FF 01 00 40 00 00 41 (弹起)FF 01 00 00 00 00 01 聚焦:近(按下)FF 01 01 00 00 00 02 (弹起)FF 01 00 00 00 00 01 远(按下)FF 01 00 80 00 00 81 (弹起)FF 01 00 00 00 00 01三、辅助继电器控制命令AU×1:(断开)FF 01 00 0B 00 01 0D (闭合)FF 01 00 09 00 01 0B AU×2:(断开)FF 01 00 0B 00 02 0E (闭合)FF 01 00 09 00 02 0C AU×3:(断开)FF 01 00 0B 00 03 0F (闭合)FF 01 00 09 00 03 0D AU×4:(断开)FF 01 00 0B 00 04 10 (闭合)FF 01 00 09 00 04 0E说明:1、云台上下左右及镜头控制按钮弹起时必须发出停止命令。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
PELCO_D通信协议
1、球机通信接口(EIA/RS-485)
数据传输方式:非同步半雙工串列通讯
通信波特率:9600Bps
数据格式:Start Bit :1 Bit;
Data Bit :8 Bit
Parity Bit:None
Stop Bit :1Bit
信号极性:Mark=Logic“1” ;Space=Logic“0”
2、命令格式(一个数据包的代码长度为固定的8字节)
控制器与摄像机的通信顺序:控制器→摄像机(8-Byte)
WORD1 STX FFH
WORD2 RECIEVER ADDRESS 00H~1FH
WORD3 DATA(1)
WORD4 DATA(2)
WORD5 DATA(3)
WORD6 DATA(4)
WORD7 Check Sum
Check-Sum (校验和)的计算方法:
将WORD2到WORD6的内容进行加法运算后取模100H而得到
3、命令注解
球机的控制命令分为两大类,即PTZ命令和扩展命令。
PTZ命令主要执行云台的“上”、“下”、“左”、“右”和镜头的“变倍”、“变焦”、“光圈”等
控制;扩展命令则控制云台的预置、巡视等功能
4、PTZ命令(PAN/TILT/ZOOM)
WORD3(DATA1) BIT0 FOCUS FAR
BIT1 FOCUS NEAR
BIT2 IRIX OPEN
BIT3 IRIX CLOSE
BIT4 CAMERA ON/OFF
BIT5 AUTOSCAN ON
BIT6 CAMERA ON
BIT7 0
WORD4(DATA2) BIT0 FOR PAN/TITL
BIT1 PAN RIGHT
BIT2 PAN LEFT
BIT3 TITL UP
BIT4 TITL DOWN
BIT5 ZOOM TELE
BIT6 ZOOM WIDE
BIT7 0
WORD5(DATA3) PAN SPEED(00~3FH)
WORD6(DATA4) TILT SPEED(00~3FH)
PTZ命令控制说明:
⒈当控制云台水平、上下方向动作或“IRIS”、“FOCUS”、“ZOOM”时
需要使相应的控制位为“1”,不用控制的相应位置为“0”
⒉当需要云台PAN/TILT两方向同时动作时,只需将PAN/TILT的相应控制位置“1”即可,PAN/TILT 的速度控制由WORD5/WORD6决定
⒊将WORD3、WORD4的所有位置为“0”可以停止云台的动作
5、扩充命令
(1)、设置预置点
WORD3 WORD4 WORD5 WORD6
00H 03H 00H XX
XX=00H~3FH(PRESET NUMBER)
(2)、清除预置点
WORD3 WORD4 WORD5 WORD6
00H 05H 00H XX
XX=00H~3FH(PRESET NUMBER)
(3)、调用预置点
WORD3 WORD4 WORD5 WORD6
00H 07H 00H XX
XX=00H~3FH(PRESET NUMBER)
(4)、全清预置点
WORD3 WORD4 WORD5 WORD6
00H 07H 00H 77
(5)、运行巡视序列
WORD3 WORD4 WORD5 WORD6
00H 07H 00H 4CH
(6)、停止巡视序列(解码器停自动)
WORD3 WORD4 WORD5 WORD6
00H 07H 00H 60H
(7)、设置预置点停留时间
WORD3 WORD4 WORD5 WORD6
00H 03H 00 XX
XX=46H,47H或48H
(8)、启动自动扫描方法
WORD3 WORD4 WORD5 WORD6 00H 07H 00 63H
(9)、设置扫描方法起点
WORD3 WORD4 WORD5 WORD6 00H 07H 00 5CH
(10)、设置扫描方法终点WORD3 WORD4 WORD5 WORD6 00H 07H 00 5DH
(11)、设置扫描速度
WORD3 WORD4 WORD5 WORD6 00H 07H 00 XX
XX=50-59H
(12)、水平反转
WORD3 WORD4 WORD5 WORD6 00H 07H 00 21H
(13)、高速球水平复位
WORD3 WORD4 WORD5 WORD6 00H 07H 00 22H
(14)、解码器灯光开/关
WORD3 WORD4 WORD5 WORD6 00H 07H 00 22H
(15)、辅助接口一
WORD3 WORD4 WORD5 WORD6 00H 07H 00 02H
(16)、辅助接口二
WORD3 WORD4 WORD5 WORD6 00H 07H 00 03H。