Samsung SCC-ZM395 Security Camera User Manual


 
Version 1.1
- 24 -
5.
Communication
1)
Connection
Data Communication
:
Start-Stop Synchronized serial interface
Data length
:8
bit 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
-(
SumfromByte2toByte8))
Checksum calculating example
Example of Pan(Left) command with motor speed
20
H.
In this example, camera's address is
01
H.
Byte
2
Byte
3
Byte
4
Byte
5
Byte
6
Byte
7
Byte
8
Byte
9
00H 01H 01H 00H 01H 20H 00H
DCH
SumfromByte2toByte8
=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.