Sie sind auf Seite 1von 5

PDR-1600 & PDR-2160 Protocol The purpose of this document describes the protocol of PDR-1600 and PDR-2160.

used by the device of Merit Lilin keyboard and controlled by a PC. are connected via RS-485 interface. The protocol is

Both of keyboard and PC

PDR-1600 Protocol

RS-232 Setting: 9600, N, 8, 1

Commend format: LEADING_CODE + ID + COMMAND_CODE + /COMMAND_CODE + ENDING_CODE

1. 2. 3. 4. 5.

LEADING_CODE (1 byte): 0xDB ID (1 byte): RS-485 ID (0 to 255) COMMAND_CODE (1 byte): defined in command code section /COMMAND_CODE: COMMAND_CODE XOR 0xFF ENDING_CODE: 0xD4

Command Code: Command Code 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D 0x0E 0x0F 0x10 0x11 0x12 0x13 0x14 Mapped Button 0 1 2 3 4 5 6 7 8 9 CAM CALL SETUP ESC ENTER NULL << >> PLAY SEARCH STOP

0x15 0x16 0x17 0x18 0x19 0x1A 0x1B 0x1C 0x1D 0x1E 0x1F 0x20 0x21 0x22 0x23 0x24 0x25 0x26 0x27 0x28 0x29 0x2A 0x2B 0x2C 0x2D 0x2E 0x2F 0x90

|< >| REC Up Down Left Right Auto Pan Preset Auto IRIS Auto Focus IRIS+ IRISZoom+ ZoomFocus+ FocusNULL Center 4 window-division 6 window-division 9 window-division 13 window-division 16 window-division NULL SWAPNULL NULL POWER->NULL

Merit Lilin PDR-2160/PDR-3160 Protocol


RS-232 Setting: 9600, N, 8, 1

Commend format: Byte 1 2 3 4 5 6 7 Value DC 01 to FF Command 1 Command 2 Parameter 1 Parameter 2 00 to FF Function Leading code Address (1 to 255) (see below) (see below) (see below) (see below) Check sum

All values below are shown in hexadecimal (base 16). The synchronization byte is always 0xDC. The address is the logical address of the DVR being controlled. The check sum is the 8 bit (modulo 256) sum of the payload bytes (bytes 2 through 6) in the message. Function SETUP ESC ENTER Fast Rewind << Fast Forward >> START |< END >| PLAY SEARCH STOP PAUSE REC SEQ Call camera #1 Call camera #2 Call camera #3 Call camera #4 Call camera #5 Call camera #6 Call camera #7 Call camera #8 Call camera #9 Call camera #10 Call camera #11 Call camera #12 Call camera #13 Call camera #14 Call camera #15 Call camera #16 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Com #1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Com #2 Para #1 00 00 00 00 00 00 00 00 00 00 00 00 00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0a 0x0b 0x0c 0x0d 0x0e 0x0f 0x10 Para #2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Note V V V V V V V V V V V V V Model

400 2160 3160


V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V

Window-division mode 21

00

MM

NN

MM: division windows NN: select NN=0, sequence switch mode page

PIP

22

00

00

NN

NN: subchannel no. ranges from 1 to 16 cam

Call Monitor Call Monitor + Camera Stop Code Set Preset Clear Preset Clear All Preset Go to Preset Set group Auto Pan Stop Auto Pan Flip (180about) Light Spray Wiper Remote Reset Reset Camera to default Auto Focus Auto Iris ICR swap Entry camera setup menu Esc camera setup menu Privacy Zone on/off Set privacy zone start Set privacy zone end Set privacy zone save Delete privacy zone Lens speed swap Date Information Time Information

23 24

00 00

Monitor no 00 Monitor no Camera no

40 C0 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 41 42

00 00 Preset No. Dwell 00 to 3F 02 03 04 05 06 07 09 0A 0B 0C 0F 10 14 15 18 1A 1B 2C 2D 2E 2F 30 34 Year Hour 00 to FF 00 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Month Minute

FF Speed 01 to FF Preset No. 00 to 7F F5 Preset No. 00 to 7F 1110xxxxb 00 00 00 00 00 00 00 00 00 00 00 00 00 00 to 01 01 to 08 01 to 08 01 to 08 01 to 08 00 Date Second

Pan and Tilt Commands are as follows: Command 1 Bit 7 0 1 for zoom Bit 6 1 1 for pan / tilt Parameter 1 Tilt speed step $00 to $0F Pan speed step $00 to $0F Parameter 2 reserved reserved reserved reserved Zoom speed step $00 to 0F Bit 5 Bit 4 Bit 3 reserved reserved Iris Close Command 2 Zoom Wide Zoom Tele Tilt Down Bit 2 Iris Open Tilt Up Bit 1 Focus Far Pan Left Bit 0 Focus Near Pan Right

RESPONSE
The general response to a received command has the following format. Byte 1 2 3 4 5 6 7 Value E0 01 to FF Command 1 Command 2 Parameter 1 Parameter 2 00 to FF Function Synch Byte Address (see below) (see below) (see below) (see below) Check Sum

Re-command Stop Code Set Preset Go to Preset Clear Preset Clear All Preset Pan position Tilt position Zoom position

System to receiver Command 1 Command 2 00 00 80 Preset no. 00 to 7F 81 00 00 00 00 00 Preset no. 00 to 7F 02 03 31 32 33

Parameter 1 00 Dwell time 00 to FF Dwell time 00 to FF 00 FF High byte High byte High byte

Parameter 2 Auto status Speed 01 to FF Speed 01 to FF Preset no. 00 to 7F F5 Low byte Low byte Low byte

The auto status information is one byte formatted as follows: Bit 7 1 Bit 6 1 Bit 5 0 Bit 4 0 Bit 3 0 Bit 2 AI Bit 1 AF Bit 0 Auto pan

If the bit is on (1) then auto is active. If the bit is off (0) then auto is inactive.

Das könnte Ihnen auch gefallen