RS232 Control

Note: Not all commands apply to all models of DVR’s.

                                              

Message Format

 

 

 

 

 

 <BOM><ID>:<Class>:<Code>[:Operands]:<Checksum>[EOM]

Where…

Symbol

Value

Description

:

:

Field delimiter

<BOM>

@

Beginning of message (for command)

<

 

 

 

 

Beginning of message (for reply)

<ID>

00~99

Device ID

<Class>

DR

Device Class (“DR” for DVR systems)

<Code>

AA~zz

Op-code (see below)

<Operands>

 

 

 

Optional operands defined for each operation

<Checksum>

00~99

Checksum (sum of ASCII codes before checksum discarding overflow)

*

No checksum

[EOM]

^J^M

End of message (optional: only for convenience of users using general terminal)

*) All digits are used in decimal format.

*) Letters are case sensitive.

Control Flow

Every transaction consists of one command and one reply.

Characters transmitted before <BOM> are ignored.

The format of operands is defined independently for each op-code.

The <BOM> received before <Checksum> of previous message resets interpretation: i.e., discards the previous message. EXCEPTION: in case of text input, none of characters within specified length has special interpretation.

 

 

 

Common Reply

Reply code

Reply data

Description

ok

 

 

 

 

 

 

er

0000~9999

Error: return error number

 

 

Example

 

 Send @01:DR:FP:18:N:* (Unit ID 1 / menu button push) This is the same as pressing the menu button on the front panel of the DVR. When you finish sending the “*” you will get the response <01:DR:ok:99 at the end of the string if the DVR has received the command.

1.           Front Panel Control

 

Function

 

Code

 

Operands

 

Digit

 

FP

 

01~16:D/U/N(down/up/down&up)[i]

 

Alarm

 

FP

 

17:D/U/N

 

Menu

 

FP

 

18:D/U/N[1]

 

Display

 

FP

 

20:D/U/N

 

Sequence

 

FP

 

21:D/U/N

 

Freeze

 

FP

 

22:D/U/N

 

PTZ

 

FP

 

23:D/U/N

 

Arrow LEFT

 

FP

 

24:D/U/N

 

Arrow UP

 

FP

 

25:D/U/N

 

Arrow DOWN

 

FP

 

26:D/U/N

 

Arrow RIGHT

 

FP

 

27:D/U/N

 

ENTER

 

FP

 

28:D/U/N

 

REC

 

FP

 

29:D/U/N

 

STOP

 

FP

 

30:D/U/N

 

Search

 

FP

 

31:D/U/N

 

Playback

 

FP

 

32:D/U/N