SAMSUNG_E Protocol 三星协议,内部使用

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

0xAF : SCC-C4XXX/B2XXX Series ⑤* If Byte5 is 0xFC, then Byte6 & Byte7 is the Model Name of Camera. Camera Model SCC-C6403(P) SCC-C64X5(P) SCC-C6407(P) SCC-C4X05(P) SCC-C4X07(P) SCC-C9302(P) ... SCC-CWXYZ(P) Byte5 0xFC 0xFC 0xFC 0xFC 0xFC 0xFC ... 0xFC Byte6 0x64 0x64 0x64 0x42 0x42 0x93 ... 0xWX Byte7 0x03 0x05 0x07 0x05 0x07 0x02 ... 0xYZ
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
5. Camera Adjustment Command (Factory Use Only)
When Byte4 of the command is set to 0x55, camera can be adjusted. Byte3 Target Address (*ID set-up in menu) ※ Caution : It can affects camera's initial data. Byte4 Byte5 Byte6 Byte7 Byte8
Data Byte Byte 1 Byte 2 Byte 3
Type Start Code Sender Addr Target Addr
Contents 0xA0 Sender address *Samsung_E WebTX: 0xFE External PC Program : 0xFD Target address *Camera Adjustment: 0x55 (Factory Use Only) Pan/Tilt Command: 0x01 System Command: 0x03 Requesting Model Name : 0xFC
Byte1 Start Code 0xA0(1)
Byte2 Sender Addr(1)
Byte3 Target Addr(1)
Byte4 0xFF(1)
Byte5 ①*
Byte6 ②* / ⑤*
Byte7 ③* / ⑤*
Byte8 ④*
Byte9 0xFF
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 Manual Menu Pattern Scan Auto-Pan ④* Byte8 means the type of camera. 0xAA : SCC-C6XXX Series Byte6 0x00 0x01 0x02 0x03 0x04 Byte7 0x00 Don't care 0x01~0x03 0x01~0x04 0x01~0x04
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 Start Code 0xA0 (1) Byte2 Sender Addr(1) Byte3 Target Addr(1) Byte4 Byte5 Byte6 Command (5) Byte7 Byte8 Byte9 Check sum (1)
Baidu Nhomakorabea
※1 These commands are only applicable in case of Smart Dome Camera. ※2 When Zoom Speed is On, Variable Zoom Speed can be used. If Zoom Speed is Off, Zoom Speed depends on menu zoom speed setting.
0x55
-
-
-
-
6. Focus/Pan/Tilt/Iris/Zoom Control Command
When Byte4 of the command is set to 0x01, you can control Focus/Pan/Tilt/Iris/Zoom movement of the camera as follows. Bit Bit0 Bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7 0x01 Byte4 Byte5 Focus Far Focus Near One AF Iris Open Iris Close Zoom Tele Zoom Wide Variable Zoom Speed On(1)/Off(0) ※2 Variable Zoom Speed(1~4) Byte6 Pan Left※1 Pan Right※1 Tilt Up※1 Tilt Down※1 Pan Motor Speed (0x00~0x40) Tilt Motor Speed (0x00~0x40) Byte7 Byte8
Focus/Pan/Tilt/Iris/Zoom Command. Focus(Far-Near)/Pan(Left-Right)/Tilt(Up-Down)/Iris(Open-Close)/Zoom(Tele-Wide). control bits are made up as pairs. Focus (Far) Pan (Left) Tilt (Up) Iris(Open) Zoom (Tele) 0 1 0 1 Focus (Near) Pan (Right) Tilt (Down) Iris(Close) Zoom (Wide) 0 0 1 1
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
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.
SAMSUNG _E 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 TECHWIN CO., LTD. Ver. 3.0 History Date 2001.01 2002.10 2004.06 2005.02 2006.09 2008.01 2009.05 2009.07 2009.12 2010.05 2010.05 2010.09 Version 1.0 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3.0 First Edition Adding Position Control/Reporting Command Changing Position Control/Reporting Command, Adding Menu Mode status in ACK format Extending a number of SCAN and AUTO-PAN(4 per each function), Adding Function Key(Hot Key) protocol Adding Position Command Zoom Data for 32X Dome Camera Representing each Model Name of Camera Relative position zoom range was added. Variable zoom speed command was added. DZoom protocol was added. ACK Format Motion Det is deleted. Preset number range is changed. Auto Pan Caution expression added Comment
Remarks Data Packet Starting Point
Byte 4 Command 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 0x00 Byte3 0x01 Byte4 0x01 Byte5 0x00 Byte6 0x01 Byte7 0x20 Byte8 0x00 Byte9 0xDC
Sum from Byte2 to Byte8 = 0x23 ∴ 0xFFFF – 0x23 = 0xFFDC ; LSB of 0xFFDC=0xDC ∴ Check Sum : 0xDC
4. ACK Format
Samsung_E 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
相关文档
最新文档