Sie sind auf Seite 1von 2

"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 1 2 3 4 5 6 7 8 Value $A0 $00 to $1F Data byte 1 Data byte 2 Data byte 3 Data byte 4 $AF $00-$FF Function STX (start transmission) Address (see below) (see below) (see below) (see below) ETX (end transmission) 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


7 0 0 6 Camera On Zoom Wide Bit number 5 4 3 2 1 Autoscan Camera Iris Iris Focus On on / off Close Open Near Zoom Tilt Tilt Up Pan Pan Right Tele Down Left Pan Speed $00 to $3F and $40 for Turbo Tilt Speed $00 to $3F 0 Focus Far 0 (for pan / tilt)

Data 1 Data 2 Data 3 Data 4

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 Set Preset XX Clear Preset XX Go To Preset XX Flip (rotate 180) Zero Pan Position Auto scan Stop auto scan Remote Reset Zone Start Zone End Write char to screen Clear Screen Alarm Ack Zone Scan On Zone Scan Off Pattern Start Pattern Stop Run Pattern Zoom Lens Speed Focus Lens Speed Data byte 1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Data byte 2 03 05 07 07 07 09 0B 0F 11 13 15 17 19 1B 1D 1F 21 23 25 27 Data byte 3 00 00 00 00 00 00 00 00 00 00 0 to 28 00 00 00 00 00 00 00 00 00 Data byte 4 01 to FF 01 to FF 01 to FF 21 22 00 00 00 01 to 08 01 to 08 0 to 7F 00 01 to 08 00 00 00 00 00 00 to 03 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 99 98 97 96 95 94 93 92 34 33 Examples: To SET PRESET 32 in the receiver with address 1, the command string (in Hexadecimal) would be: A0 00 00 03 00 20 AF 2C (the last byte is the XOR sum of bytes 1 through 7) To drive receiver with address 2 LEFT at half speed: A0 01 00 04 00 1F AF 15 Function Begin Auto-scan Begin Frame Scan Begin Random Scan Stop Scan Enter Menu Mode Remote Reset Set Right Limit Stop Set Left Limit Stop Home (return to 0 pan position) Flip

Das könnte Ihnen auch gefallen