Dukane 335, DC335 Protocol Information

Page 1
DC335 Protocol
1. Communication Protocol
Transmit Method : Asynchronous Interface Half
Duplex Serial Communication.
Ø Transmit Speed: 9600bps Ø Flow control: NA Ø Data Bit: 8Bit Ø Parity Bit: NA Ø Stop Bit: 1Bit
2. The command Sets and protocol
Control method Control scheme as below
PC
Master
1st
P-Code Request to Send STX
1st
M-Code ACK
3nd
P-Code Function
5th
P-Code Data 2
7th
P-Code Cmd End 0xAFh
6th
P-Code Data 3
4rd
P-Code Data 1
Master Active Time 10ms< Time<12s
3rd
M-Code reFunction
2nd
M-Code reCmd Start A0h
5th
M-Code reData 2
6th
M-Code reData 3
4th
M-Code reData 1
7th
M-Code reCmd End 0xAFh
TIME
2nd
P-Code Cmd Start A0h
Delay 0.1 ms
…
Ø The Acknowledge code from presenter is hex code AA Ø PC must wait the ACK code before send the 2nd code Ø ‘ U ‘ mean the ASCII code o character U Ø 0xAA mean the hex code AA
Page 2
Control Command
PC AP to DC335 Master command format
Item
Function
1st 2nd 3rd 4th 5th 6th
Comment
1
Reset A0h 03h P1 00h 00h AFh P1: 00=Factory
2
Zoom Direct (Tracking) (No AF) A0h 12h P1 P2 P3 AFh
P1(LowByte) P2(HighByte):Zoom Position= 0~18 P3: Speed=01~05
3
White Balance once trigger A0h 22h 00h 00h 00h AFh AWB once trigger
4
Freeze A0h 2Ch P1 00h 00h AFh P1: 00/01=OFF/ON
5
Image A0h 36h P1 00h 00h AFh P1: 00/01/02/03= Normal/Film/Positive/Microscope
6
Source A0h 37h P1 00h 00h AFh P1: 00/01=Camera/PC
7
Lamp A0h 38h P1 00h 00h AFh P1: 00/01=OFF/ON
8
Key Function A0h A0h P1 00h 00h AFh P1: 01/02/03/04/05/06=Set/Up/Down/Left/Right/menu
9
Set R/B value A0h A1h P1 P2 00h AFh
P1: Red value (0~96) P2: Blue value (0~96)
This function is for adjust R/B Gain. For general user, please don’t change value for prevent wrong operation.
10
Call R/B value A0h A2h 00h 00h 00h AFh
P1: Red value (0~96) P2: Blue value (0~96)
This function is for adjust R/B Gain. For general user, please don’t change value for prevent wrong operation.
11
AF One Push Trigger A0h A3h 00h 00h 00h AFh AF once trigger
12
Set Sharpness(Gamma) A0h A7h P1 00h 00h AFh P1: 00/01 = Photo/Text
13
Power On/Off A0h B1h P1 00h 00h AFh P1: 00/01=OFF/ON
14
Capture A0h B2h 00h P2 00h AFh
P2: 00 = Normal Capture In order
15
PlayBack A0h B3h 00h P2 00h AFh
P2: 00 = Normal Playback 64 small index
16
Flip A0h B5h P1 00h 00h AFh P1: 00/01=Disable/Flip
17
Delete A0h B6h P1 P2 00h AFh
P1: 00/01/02=delete one picture/delete all picture/Format P2: 00 = Normal Delete One Image Under Playback Index , RP2: Amount current storage pictures
18
Call Digital Zoom Position A0h 62h 00h 00h 00h AFh Please refer to Return Value for status comment
19
Call Focus Position A0h 64h 00h 00h 00h AFh
Please refer to Return Value for status comment
20
Call Freeze Status A0h 78h 00h 00h 00h AFh
Please refer to Return Value for status comment
21
Call flip Status A0h 79h 00h 00h 00h AFh
Please refer to Return Value for status comment
22
Call AE Status A0h 80h 00h 00h 00h AFh
Please refer to Return Value for status comment
23
Call Image A0h 87h 00h 00h 00h AFh
Please refer to Return Value for status comment
24
Call lamp Status A0h 50h 00h 00h 00h AFh
Please refer to Return Value for status comment
Page 3
PC AP to DC335 Master command format
Item
Function
1st 2nd 3rd 4th 5th 6th
Comment
25
Call text/photo Status A0h 51h 00h 00h 00h AFh
Please refer to Return Value for status comment
26
Brightness Control A0h 39h P1 00h 00h AFh
P1: 02/01/00 = Increase brightness value( 1) / Decrease brightness value( 1)
27
Zoom Control A0h 3Ah P1 00h 00h AFh
P1: 01/00 = ZoomIn( 1)/ZoomOut( 1)
28
Focus Control A0h 3Bh P1 00h 00h AFh
P1: 01/00 = Focus( 1)/Focus( 1)
29
Output Format SVGA/XGA A0h B9h P1 00h 00h AFh P1: 00/01=SVGA/XGA
30
Call Mix Zoom Position A0h 8ah 00h 00h 00h AFh
P1(LOW BYTE) P2(HIGH BYTE)
31
Call Version x.xx A0h 45h 00h 00h 00h AFh Version CN P1. P2 P3
32
Preset A0h A4h P1 00h 00h AFh P1: 0/1/2 = Call Preset Menu / Load / Save
33
VGA Output Freq. 60Hz/75Hz A0h 49h P1 00h 00h AFh
VGA output Frequency P1:00/01 = 60Hz/75Hz Default 60Hz
34
AE A0h 30h P1 00h 00h AFh P1:00/01=OFF/ON
35
Video A0h 46h P1 00h 00h AFh P1: 0:VGA_Out / 1:NTSC / 2:PAL
36
Auto Erase A0h 14h P1 00h 00h AFh P1: 0:OFF / 1:ON
37
Call Model A0h 15h 00h 00h 00h AFh
Return Model Code Ex: If PS400's version is PZ130, RP1= 'P' and RP2 ='Z'
38
AC Freq. A0h 17h P1 P2 00h AFh
P1: 0/1=Read/Write P2: When P1=1,0/1=50Hz/60Hz RP2:The AC status 0/1=50Hz/60Hz
39
call power on over A0h B7h 00h 00h 00h AFh
P1(System status):00/01=Warming up/ Unit is ready for receiving commands; P2(Power Status):00/01 = OFF/ON
40
Call Auto Erase Status A0h 8Ch 00h 00h 00h AFh
RP1: 00/01=OFF/ON
41
Call Source Status A0h 8Eh 00h 00h 00h AFh
RP1: 00/01=Camera/PC
Page 4
Return value
DC335 feedback to PC value format
Item
Function
1st 2nd 3rd 4th 5th 6th
Comment
1
Reset A0h 03h P1 00h St AFh P1: 00=Factory
2
Zoom Direct (Tracking) (No AF) A0h 12h P1 P2 St AFh
P2(HighByte)P1(LowByte): Zoom Position=0~18
3
White Balance once trigger A0h 22h P1 00h St AFh AWB once trigger
4
Freeze A0h 2Ch P1 00h St AFh P1: 00/01=OFF/ON
5
Image A0h 36h P1 00h St AFh P1: 00/01/02/03=Normal/Film/Positive/Microscope
6
Source A0h 37h P1 00h St AFh P1: 00/01=Camera/PC
7
Lamp A0h 38h P1 00h St AFh P1: 00/01=OFF/ON
8
Key Function A0h A0h P1 00h St AFh P1: 01/02/03/04/05/06=Set/Up/Down/Left/Right/menu
9
Set R/B value A0h A1h P1 P2 St AFh
P1: Red value (0~96) P2: Blue value (0~96)
This function is for adjust R/B Gain. For general user, please don’t change value for prevent wrong operation.
10
Call R/B value A0h A2h P1 P2 St AFh
P1: Red value (0~96) P2: Blue value (0~96)
This function is for adjust R/B Gain. For general user, please don’t change value for prevent wrong operation.
11
AF One Push Trigger A0h A3h 00h 00h St AFh AF once trigger
12
Set Sharpness(Gamma) A0h A7h P1 00h St AFh P1: 00/01= Photo/Text
13
Power On/Off A0h B1h P1 00h St AFh P1: 00/01=OFF/ON
14
Capture A0h B2h 00h RP2 St AFh
RP2 Amount current storage pictures
15
PlayBack A0h B3h 00h RP2 St AFh
RP2 Amount current storage pictures
16
Flip A0h B5h P1 00h St AFh P1: 00/01=Disable/Flip
17
Delete A0h B6h P1 RP2 St AFh
P1: 00/01/02=delete one picture/delete all picture/Format RP2: Amount current storage picture
18
Call Digital Zoom Position A0h 62h P1 00h St AFh P1: 00(Wide)~18(Tele)
19
Call Focus Position A0h 64h P1 P2 St AFh RP2(HIGH)/RP1(LOW)
20
Call Freeze Status A0h 78h P1 00h St AFh P1: 00/01=OFF/ON
21
Call flip Status A0h 79h P1 00h St AFh P1: 00/01=OFF/ON
22
Call AE Status A0h 80h P1 P2 St AFh
P1: 00/01=Manual/Auto P2=Brightness value
23
Call Image A0h 87h P1 00h St AFh P1: 00/01/02/03/04=Normal/Gray/Film/Positive/Microscope
24
Call lamp Status A0h 50h P1 00h St AFh P1: 00/01=OFF /ON
25
Call text/photo Status A0h 51h P1 00h St AFh P1: 00/01=Photo/Text
Page 5
DC335 feedback to PC value format
Item
Function
1st 2nd 3rd 4th 5th 6th
Comment
26
Brightness Control A0h 39h RP1 00h St AFh
P1: 01/00 =Increase brightness value( 1) / Decrease brightness value( 1)
27
Zoom Control A0h 3Ah RP1 RP2 St AFh RP2(HIGH)/RP1(LOW)= Zoom Position
28
Focus Control A0h 3Bh RP1 RP2 St AFh RP2(HIGH)/RP1(LOW) = Focus Position
29
Output Format SVGA/XGA A0h B9h P1 00h St AFh P1: 00/01=SVGA/XGA
30
Call Mix Zoom Position A0h 8ah P1 P2 St AFh P1(LOW BYTE) / P2(HIGH BYTE)
31
Call Version x.xx A0h P1 P2 P3 St AFh Version CN P1. P2 P3
32
Preset A0h A4h P1 00h St AFh P1: 0/1/2 =Call Preset Menu / Load / Save
33
VGA Output Freq. 60Hz/75Hz A0h 49h P1 00h St AFh
VGA output Frequency P1:00/01 = 60Hz/75Hz Default 75Hz
34
AE A0h 30h P1 00h St AFh P1: 00/01=OFF/ON
35
Video A0h 46h P1 00h St AFh P1: 0:VGA_Out / 1:NTSC / 2:PAL
36
Auto Erase A0h 14h P1 00h St AFh P1: 0:OFF / 1:ON
37
Call Model A0h 15h RP1 RP2 St AFh
Return Model Code Ex: If PS400's version is PZ130, RP1= 'P' and RP2 ='Z'
38
AC Freq. A0h 17h P1 RP2 St AFh
P1: 0/1=Read/Write P2:When P1=1,0/1=50Hz/60Hz RP2: The AC status 0/1=50Hz/60Hz
39
call power on over A0h B7h RP1 00h St AFh
P1(System status): 00/01=Warming up/ Unit is ready for receiving commands; P2(Power Status): 00/01 = OFF/ON
40
Call Auto Erase Status A0h 8Ch RP1 00h St AFh
RP1: 00/01=OFF/ON
41
Call Source Status A0h 8Eh RP1 00h St AFh
RP1: 00/01=Camera/PC
St : 0 =Action Succeed, 1= NAK (No Action), 2=IGNORE (Wrong Command)
Loading...