Communication – Samsung SCC-ZM395N User Manual

Page 24

Advertising
background image

Version 1.1

- 24 -

5. Communication

1) Connection

◆ Data Communication : Start-Stop Synchronized serial interface

◆ Data length : 8bit data

◆ Stop bit

:

1 bit

◆ Parity

:

None

◆ Baudrate

:

4800, 9600, 19200, 38400 bps

※default value : 9600 bps

2) Communication Protocol

◆ All communication data consist of nine bytes.

◆ Communication data start with A0(h).

◆ The format of the communication data is shown below.

9 Byte Fixed

Byte1

Byte 2

Byte 3

Byte 4~8

Byte 9

Start Code

A0H(1)

Sender

Address(1)

Target

Address(1)

Command (5)

Check sum

(1)

Data Byte

Type

Contents

Remarks

Byte 1

Start Code

A0H

Data Packet Starting Point

Byte 2

Sender Address

Sender address

Byte 3

Target Address

Target address

Byte 4

Command

Byte 5

Byte 6

Byte 7

Byte 8

Byte 9

Check Sum

LSB* of

(FFFFH - ( Sum from Byte2 to Byte8))

※ Checksum calculating example

Example of Pan(Left) command with motor speed 20H.

In this example, camera's address is 01H.

Byte 2

Byte 3

Byte 4

Byte 5

Byte 6

Byte 7

Byte 8

Byte 9

00H

01H

01H

00H

01H

20H

00H

DCH

Sum from Byte2 to Byte8 = 23H

∴ FFFFH - 23H = FFDCH ; LSB of FFDCH=DCH

∴ Check Sum : DCH

Ack. Format

Samsung communication utilizes Ack. codes. When controller sends a command,

the camera sends back an Ack. This is our basic procedure to make sure that the

communication and the camera function are properly executed.

Advertising
This manual is related to the following products: