26
RS 232 Protocols
Package Format :
00 FE CH_ID[4X] CMD[6X-DF] Param0~ParamN[3X] CRCH[5X] CRCL[5X] FF
CH_ID : PC=40~47, 40=Current Camera, 41=CAM1, 42=CAM2
Panel=48~4F, 48=Current Camera, 49=CAM1, 4A=CAM2
Param Data Types :
hex : 1-byte [3X] means X=0~Fh
int2 : 2-bytes [3X 3Y] means XYh (signed)
uint2 : 2-bytes [3X 3Y] means XYh (unsigned)
int3 : 3-bytes [3X 3Y 3Z] means XYZh
hex4 : 4 hex for version N.NNN
hex6 : 6 hex for date YYMMDD
str2N : N*2 bytes, MSB first ASCII * N
CRCH/L = 8-bit CRC for error protection, generated by lookup table from (CH_ID / CMD / Param0~ParamN)
Command & Parameter Lists
DVKCMD ( - used by Get command)
use CH_ID
Param0~ParamN (Data Type
)
DVKCMD_GetVersion
60
FirmwareVersion(hex4)
[31 32 33 34] = v1.234
FirmwareDate(hex6) [30 35 31 32 32 35] = 2005/12/25
PanelVersion(hex4)
[3132
33
34]
=
v1.234
ModelName(str2N) [34 34 35 36 34 3B] = 44 56 4B = "DVK"
DVKCMD_GetFeature
61
HardwareVer(hex4) [31 32 33 34] = v1.234
MaxCameraUnit
(32)
32
=
support
2
Cameras
DVKCMD_GetStatus 62
CAM1_Status
b0-1=None/NTSC/PAL
b2-3=CV/S
CAM2_Status
b0-1=None/NTSC/PAL
b2-3=CV/S
BG_Status
b0-1=None/NTSC/PAL
b2-3=CV/S
IRE
30=0IRE,
31=7.5IRE
ColorBar
30=off,
31=on
DVKCMD_Get/SetOutput
64/65
FG/BG/Comp
(30/31/32)
DVKCMD_Get/SetCameraUnit 66/67
CAM1/CAM2
(30/31)
DVKCMD_Get/SetColorProc 68/69
Cur/CAM1,2 FG/BG (30/31) Bright(int2=-128~127) def=0 [30 30]
Contrast(uint2=0~255)
def=128
[38
30]
Color(uint2=0~255)
def=128
Tint(int2=-127~128)
def=0
(-90
~
+90deg)
DVKCMD_Get/SetFreeze
6A/6B
FGFreeze 30=off / 31=on
BGFreeze
30=off
/
31=on
DVKCMD_Get/SetKeyMode 70/71
Cur/CAM1,2
Green/Blue/Luma
(30~32)
DVKCMD_Get/SetCKBackColor 72/73
Cur/CAM1,2 HueOffset(int2=-60~60)
def=0
DVKCMD_Get/SetCKParam 74/75
Cur/CAM1,2
Level(int2=0~100)
def=40
Density(int2=0~100)
def=30
SpilllSuppress(int2=-32~64)
def=16
DVKCMD_Get/SetLKParam 7A/7B Cur/CAM1,2
DarkLevel(int2=0~100)def=10
DarkGrad(int2=0~100)
def=10
BrightLevel(int2=0~100)def=0
BrightGrad(int2=0~100)
def=0
DVKCMD_Get/SetEdgeShrink 7C/7D
Cur/CAM1,2
Left (0~6) def=0
Right (0~6) def=0
DVKCMD_Get/SetWindowPosition 80/81
Cur/CAM1,2
Xleft(int3=0~720) def=0 [30 30 30]
Xright(int3=0~720)
def=720
[32
3D
30]
Ytop(int3=0~576)
def=0
Ybottom(int3=0~576)def=486
(NTSC)
or
576
(PAL)
DVKCMD_Get/SetWindowBorder
82/83
BorderOn/Off 30=off / 31=on
DVKCMD_Get/SetBlankColor
86/87
R(int2=0~100)def=0
G(int2=0~100) def=70
B(int2=0~100)
def=70