Техническая Спецификация для 4d Systems uCAM-II
4D SYSTEMS µCAM-II
© 2014 4D SYSTEMS Page 9 of 25 www.4dsystems.com.au
µC
AM
–
II
Se
rial
Ca
mer
a M
od
ul
e
6. Command Set
Command
ID Number
Parameter1
Parameter2
Parameter3
Parameter4
INITIAL
AA01h
00h
Image Format
RAW Resolution (Still
Image only)
JPEG Resolution
GET PICTURE
AA04h
Picture Type
00h
00h
00h
SNAPSHOT
AA05h
Snapshot Type
Skip Frame (Low Byte)
Skip Frame (High Byte)
00h
SET PACKAGE
SIZE
AA06h
08h
Package Size (Low Byte)
Package Size (High Byte)
00h
Set Baud Rate
AA07h
1
st
Divider
2
nd
Divider
00h
00h
RESET
AA08h
Reset Type
00h
00h
XXh*
DATA
AA0Ah
Data Type
Length Byte 0
Length Byte 1
Length Byte 2
SYNC
AA0Dh
00h
00h
00h
00h
ACK
AA0Eh
Command ID
ACK Counter
00h / Package ID Byte 0
00h / Package ID Byte 1
NAK
AA0Fh
00h
NAK Counter
Error Number
00h
LIGHT
AA13h
Frequency Type
00h
00h
00h
*If the parameter is 0xFF, the command is a special Reset command and the module responds to it
immediately.
immediately.
6.1. INITIAL (AA01h)
The host issues this command to configure the image size and Image Format. After receiving this command,
the module will send out an ACK command to the host if the configuration was successful. Otherwise, a NAK
command will be sent out.
the module will send out an ACK command to the host if the configuration was successful. Otherwise, a NAK
command will be sent out.
6.1.1. Image Format
The uCAM-II can support 4 different image formats as follow:
8-bit Gray Scale (RAW, 8-bit for Y only)
03h
16-bit Colour (RAW, CrYCbY)
08h
16-bit Colour (RAW, 565(RGB))
06h
JPEG
07h
6.1.2. RAW Resolution
The uCAM-II can support 4 different image resolutions when in RAW mode:
80 x 60
01h
160 x 120
03h
128 x 128
09h
128 x 96
0Bh
6.1.3. JPEG Resolution
The uCAM-II embedded JPEG Code can support only multiples of 16 pixels, therefore the JPEG mode can only
support following image sizes. It is different from the RAW mode.
160 x 128
03h
320 x 240
05h
640 x 480
07h
6.2. GET PICTURE (AA04h)
The host issues this command to request a picture from the uCAM-II.