三星-SamsungProtocol(V2.6)
- 格式:pdf
- 大小:439.06 KB
- 文档页数:18
SAMSUNG Protocol THE FOLLOWING INFORMATION IS PROPRIETARY AND CONFIDENTIAL. THIS INFORMATION MAY NOT BE DUPLICATED OR DISTRIBUTED IN ANY FORM WITHOUT THE EXPRESS WRITTEN PERMISSION OF SAMSUNG ELECTRONICS CO., LTD.
Ver. 2.6 History
Date Version Comment 2001.01 1.0 First Edition 2002.10 2.0 Adding Position Control/Reporting Command 2004.06 2.1 Changing Position Control/Reporting Command, Adding Menu Mode status in ACK format 2005.02 2.2 Extending a number of SCAN and AUTO-PAN(4 per each function), Adding Function Key(Hot Key) protocol 2006.09 2.3 Adding Position Command Zoom Data for 32X Dome Camera 2008.01 2.4 Representing each Model Name of Camera 2009.05 2.5 Relative position zoom range was added. 2009.07 2.6 Variable zoom speed command was added. CONTENTS 1. Communication Protocol 2. Connect Condition 3. Camera Control Command 4. ACK Format 5. Camera Adjustment Command 6. Focus/Pan/Tilt/Iris/Zoom Control Command 7. System Command 8. Position Control/Reporting Command 9. Requesting Model Name of Camera 1. Communication Protocol Communication between the microcomputer of the camera and the controlling device(includig PC, Controller, etc..) is available by using the RS-485 protocol. The microcomputer receives each control command and echoes it back.
2. Connect condition Data Communication : RS-485, Start-Stop Synchronized serial interface Data length : 8bit data Stop bit : 1 bit Parity : None Baudrate : 4800, 9600, 19200, 38400 bps
3. Camera Control Command All communication data consist of nine bytes. Communication data start with 0xA0. The format of the communication data is shown below.
9 Byte Fixed Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7 Byte8 Byte9 Start Code 0xA0 (1) Sender Addr(1) Target Addr(1) Command (5) Check sum (1) Data Byte Type Contents Remarks Byte 1 Start Code 0xA0 Data Packet Starting Point
Byte 2 Sender Addr Sender address *Samsung WebTX: 0xFE External PC Program : 0xFD
Byte 3 Target Addr Target address
Byte 4 Command
*Camera Adjustment: 0x55 (Factory Use Only) Pan/Tilt Command: 0x01 System Command: 0x03 Requesting Model Name : 0xFC
Byte 5 Byte 6 Byte 7 Byte 8 Byte 9 Check Sum LSB* of (0xFFFF - ( Sum from Byte2 to Byte8))
Ex) Example of Pan(Left) command with motor speed 0x20. In this example, camera's address is 0x01. Byte2 Byte3 Byte4 Byte5 Byte6 Byte7 Byte8 Byte9 0x00 0x01 0x01 0x00 0x01 0x20 0x00 0xDC
Sum from Byte2 to Byte8 = 0x23 ∴ 0xFFFF – 0x23 = 0xFFDC ; LSB of 0xFFDC=0xDC ∴ Check Sum : 0xDC 4. ACK Format Samsung RS-485 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.
9Byte Fixed
Byte5, Byte6, Byte7 and Byte8 of the ACK data means as follows. ①* Byte5 of the ACK data indicates whether the camera received command successfully. 0x00 : OK 0x01 : Error (Request Re-transmission) 0xFC : Ack for Requesting Model Name of Camera Command ②* Byte6 of the ACK data indicates the mode in which camera is working. ③* In case of Pattern, Scan, Auto Pan Mode(Byte6=02~0x04), Byte7 means Play Number(1~4) of each relevant mode.
Camera Mode Byte6 Byte7 Manual 0x00 0x00 Menu 0x01 Don't care Pattern 0x02 0x01~0x03 Scan 0x03 0x01~0x04 Auto-Pan 0x04 0x01~0x04 ⑥* Motion Det. 0x10 Don't care
④* Byte8 means the type of camera.
Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7 Byte8 Byte9 Start Code 0xA0(1) Sender Addr(1) Target
Addr(1)⑦* 0xFF(1) ①* ②* / ⑤* ③* / ⑤* ④* 0xFF 0xAA : SCC-C6XXX Series 0xAF : SCC-C4XXX/B2XXX/Zoom Module Series ⑤* If Byte5 is 0xFC, then Byte6 & Byte7 is the Model Name of Camera. ⑥* Motion Det. Ack is only used in Zoom Module Camera. ⑦* When Motion Det. Ack is used, Byte3 is fixed to 0xFF.
Camera Model Byte5 Byte6 Byte7 SCC-C6403(P) 0xFC 0x64 0x03 SCC-C64X5(P) 0xFC 0x64 0x05 SCC-C6407(P) 0xFC 0x64 0x07 SCC-C4X05(P) 0xFC 0x42 0x05 SCC-C4X07(P) 0xFC 0x42 0x07 SCC-C9302(P) 0xFC 0x93 0x02 ... ... ... ... SCC-CWXYZ(P) 0xFC 0xWX 0xYZ