Version 1.1

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

 

Sender

Target

 

Command (5)

 

Check sum

 

A0H(1)

 

Address(1)

Address(1)

 

 

(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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Byte 5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Byte 6

 

 

Command

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.

- 24 -