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 2-6
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 Camera Autoscan Camera Iris Iris Focus Focus
On On on / off Close Open Near Far Data 2 0 Zoom Zoom Tilt Tilt Up Pan Left Pan Right 0 (for
Wide Tele Down 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 01 to FF Clear Preset XX 00 05 00 01 to FF Go To Preset XX 00 07 00 01 to FF Flip (rotate 180º) 00 07 00 21 Zero Pan Position 00 07 00 22 Set Aux XX 00 09 00 01 to 08 Clear Aux XX 00 0B 00 01 to 08 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 00 1D 00 00 Pattern Start 00 1F 00 00 Pattern Stop 00 21 00 00 Run Pattern 00 23 00 00 Zoom Lens Speed 00 25 00 00 to 03 Focus Lens Speed 00 27 00 00 to 03
The receiver will respond with an ACK.
To accommodate features of new systems and maintain compatibility with our old systems, some functions have been added through
the use of some of the unused preset functions. These are:
Preset Number Function
99 Begin Auto-scan
98 Begin Frame Scan 97 Begin Random Scan 96 Stop Scan
95 Enter Menu Mode 94 Remote Reset
93 Set Right Limit Stop 92 Set Left Limit Stop 34 Home (return to 0 pan position) 33 Flip
Examples:
To SET PRESET 32 in the receiver with address 1, the command string (in Hexidecimal) would be:
A0 01 00 03 00 20 AF 17 (the last byte is the XOR sum of bytes 2 through 6)
To drive receiver with address 2 LEFT at half speed:
A0 02 00 04 00 1F AF 19
派尔高“P”协议
这部分内容介绍了被用的协议,当在“P”翻译协议中传达命令去拦截DOME:圆拱型:,这协议没有检验就用了,包括
一个开始位,八个数据位和一个终止位,这被用的波特率是4800 信息样式
字节 价值 功能
1 开始传输 $A0
字节1总是$AO 2 地址 $00to $1F 字节2是接收地址,在接收中被DIP开关所设置 3 数据字节1 见下面 字节3-6看下面 4 数据字节2 见下面 字节7总是$AF 5 数据字节3 见下面 字节8是1-7的总和 6 数据字节4 见下面 7 结束传输 $AF 这协议是“零索引”的,这是为了hexadecimal地址传达协议8 检验总数 $00-$FF 的第一个接受者是$00,$00相应的就是地址1
在数据字节中”位”被分类成两个主要群体。为摇摄和倾斜命令,功能由如下决定:
位数
7 6 5 4 3 2 1 0 Data 1 0 相机开 自动浏相机开/光圈光圈开 聚焦近 聚焦远
览器开 关 关
Data 2 0 变倍远 变倍近 倾斜向倾斜使摄像机使摄像机0 (for pan
/ tilt) 下 向上 摇摄左边 摇摄右边 Data 3 水平移动速度 $00 到 $3F 和$40 for Turbo Data 4 上下移动速度 $00 到 $3F
延伸的命令设置
延伸的命令设置将包括数据字节2的0位,和遵循下面
表
关于同志近三年现实表现材料材料类招标技术评分表图表与交易pdf视力表打印pdf用图表说话 pdf
格的形式
命令 数据字节 1 数据字节 2 数据字节 3 数据字节 4 设置预设 XX 00 03 00 01到 FF 清除预设XX 00 05 00 01 到 FF 转到预设XX 00 07 00 01到 FF 旋转:180º) 00 07 00 21 零摇摄位置 00 07 00 22 Set Aux XX设置 00 09 00 01 to 08 Clear Aux XX清除 00 0B 00 01 to 08 偏远设置 00 0F 00 00 区域开始 00 11 00 01到 08 区域结束 00 13 00 01 到 08 向屏幕上写 00 15 0 to 28 0 到 7F 清除屏幕 00 17 00 00 Alarm警告 Ack 00 19 00 01 to 08 区域浏览开 00 1B 00 00 区域浏览关 00 1D 00 00 样式:仿造:开始 00 1F 00 00 停止模式 00 21 00 00 运行模式 00 23 00 00 变倍镜头速度 00 25 00 00到 03 焦距镜头速度 00 27 00 00到 03
注:解码器自动:开启为SET AUXILIARY里的指令。
关闭为CLEAR AUXILIARY里的指令。
接受者以Ack响应:回应:
为适应新系统的特征和保持旧系统的兼容性,通过用一些原来没用过的预设功能一些功能已经被加了进来。如下:
预设数值 功 能
99 开始自动浏览
98 开始结构浏览
97 开始随机浏览
96 停止浏览
95 进入菜单模式
94 偏远预设
93 设置右限度
92 设置左限度
34 回归原位
33 滑动
例如:
为在接收地址1中设置32,命令应该是
A0 01 00 03 00 20 AF 17 (这最后的位是XOR sum of bytes 1 through 7)
为半速度驱动接收地址2左
A0 02 00 04 00 1F AF 19