PELCO-P内部Protocol.doc

  1. 1、本文档共5页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
PELCO-P内部Protocol

PELCO P PROTOCOL GENERAL This section describes the protocol used when sending commands to an Intercept Dome in the “P” version protocol. The protocol uses no parity, one start bit, eight data bits, and one stop bit. The recommended baud rate is 4800 (4800, 8, N, 1, 1). MESSAGE FORMAT Byte Value Function 1 $A0 STX (start transmission) 2 $00 to $1F Address 3 Data byte 1 (see below) 4 Data byte 2 (see below) 5 Data byte 3 (see below) 6 Data byte 4 (see below) 7 $AF ETX (end transmission) 8 $00-$FF Check Sum Byte 1 is always $A0 Byte 2 is the receiver address, set by DIP switch in the receiver Byte 3-6, see below Byte 7 is always $AF Byte 8 is an XOR sum of Bytes 1-7 The protocol is “zero indexed” so that the hexadecimal address sent in the protocol for the first receiver is $00 which corresponds to address 1. The bits within the “Data bytes” are broken up into two main groups. For Pan and Tilt commands, the functions are determined as follows: PAN AND TILT COMMANDS Bit number 7 6 5 4 3 2 1 0 Data 1 0 0 0 0 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 EXTENDED COMMAND SET The extended command set will have bit 0 of data byte 2 set and will follow the format in the following table: Command Data byte 1 Data byte 2 Data byte 3 Data byte 4 Set Preset XX 00 03 00 00 to 7F Clear Preset XX 00 05 00 00 to 7F Go To Preset XX 00 07 00 00 to 7F AUX ON 00 09 00 0-8 AUX OFF 00 0B 00 0-8 Flip (rotate 180o) 00 0D 00 0 FLIP(90度) 00 0D 00 1 Zero Pan Position 00 0D 00 2 Begin Random scan 00 0D 00 3 Begin Frame Scan 00 0D 00 4 Begin Auto-Scan 00 0D 00 5 Stop Scan 00 0D 00 6 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

文档评论(0)

qwd513620855 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档