37
6. OTHER
5.1 The RS-232 Setup & Protocol
5.1.1 The RS-232 Protocol
Use a Null Modem cable (the standard RS-232 9 Pin Cable with Pin 2 and Pin 3 exchanged ;
see the pin configuration chart below for details) to connect the rear panel of the DVR.
PIN NO.
PIN Assignment
1.
Not Connected
2.
RX
3.
TX
4.
Not Connected
5.
Ground
6.
Not Connected
7.
Not Connected
8.
Not Connected
9.
Not Connected
Set
the
RS-232
option to
ON
in the
COMMUNICATION
page of the setup menu.
The transmission protocol is 8 data bit: 1 start bit, 1 stop bit and no parity. 8 different speeds
can be used: 2400 baud per second, 4800 baud, 9600 baud, 19200 baud, 28800 baud, 38400
baud, 57600 baud and 115200 baud. The default setting is 9600 baud per second.
5.1.2 The Communication Protocol
5.1.2.0 General Command Format
<Lead Code = 0x41>, < Dest ID >, < Src ID >, <Main category >, <Second category >,
{<Number of parameters>, <Parameter 1>, <Parameter 2> ..,} <End Code= 0x4f>
Lead Code = 0x41
Dest ID = 0x01
Src ID
= 0x20
Main Category = 0x01
Keys and Signals
= 0x02 Command
Second Category = 0x01 Handshake
= 0x02 Request Time/Set Time
=
0x06
Request
System
State
=
0x0b
Time
Search
=
0x10
Request
HDD
Info
=
0x11
Request
REC
Position
=
0x12
Playback
Immediately
End Code= 0x4f
The different command types and their corresponding parameters are as follows:
5. MISCELLANEOUS