SC30MPA: 3 Mega Pixels Serial JPEG Camera User Manual
Spinel USA LLC
www.spinelelectronics.com
14
Return: 76 00 8B 02 01 00
Send command description:
0x56 //fixed frame header
0x00 //ID
0x8B //area cropping command
0x0A //data length 10bytes
0x01 //sub-command: set cropping area
0x01 //cropping status: enabled
0x00 0xA0 // X axis 160 (Decimal)
0x00 0x78 //Y axis 120 (Decimal)
0x01 0x40 //cropping width 320 pixels
0x00 0xF0 //cropping height 240 pixels
Return description:
0x76 //fixed return header
0x00 //ID
0x8B //cropping command
0x02 // data length 2bytes
0x01 //sub-command: set cropping area
0x00 //results, setting succeed
21.2 READ CROPPING AREA PARAMETERS: 56 00 8B 01 02
RETURN:
76 00 8B 0E 02
B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 B10 B11 B12
B0 ---- cropping status
B1 B2 --- cropping start X axis
B3 B4 ---- cropping start Y axis
B5 B6 ---- cropping width
B7 B8 ---- cropping height
B9 B10 ---- cropped image horizontal pixels
B11 B12 ---- cropped image vertical pixels
Example:
Send: 56 00 8B 01 02
Return: 76 00 8B 0E 02 01 00 A0 00 78 01 40 00 F0 02 80 01 E0
21. SET COLOR OR B/W SWITCHING: 56 00 8C 01
B1
RETURN:
76 00 8C 01 00
B1 ---- 1byte the image color switched 00 – color, 01 – B/W
Warning: must be set prior to image capturing, can’t be saved after power-off, it also switch the IR-
cut filter when switching the color.