beautypg.com

2 remote control protocol – EverFocus EDR-920 User Manual

Page 144

background image

134

15.2 Remote Control Protocol

A computer can be used to control the DVR by sending the packet as follows.

=========================================================

EDR1640/1620/920 485 Control Code Protocol

=========================================================

1-1. Sample control code packets

Example1: A packet that send "REC" key to EDR(ID=5)

0x85 (length)

0x00 (Receiver ID high byte)

0x05 (Receiver ID low byte)

0x4B (OPcode = key)

0x08 (DATA1 = "Rec" keycode)

0x5D (checksum)

Example2: A packet that send "PAUSE" key to EDR(ID=4999)

0x85 (length)

0x27 (Receiver ID high byte)

0x07 (Receiver ID low byte)

0x4B (OPcode = key )

0x0C (DATA1 = "Pause" keycode )

0x0A (checksum)

Example3: A packet that send "PLAY" key to all EDR(broadcast)

0x85 (length)

0x7f (Receiver ID high byte)

0x7f (Receiver ID low byte)