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.