SC30MPA: 3 Mega Pixels Serial JPEG Camera User Manual
Spinel USA LLC
www.spinelelectronics.com
4
images command.
SS SS SS SS
---- start address
(
the address must be times of 8
,
for example
00 00
)
LL LL LL LL
---- the length of image data
(
high byte
,
low byte
)
Notes:
JPEG IMAGE DATA must start with
FF D8
and end with
FF D9.
If read all the image data at once, the start address shall be: “00 00 00 00”, the length to read is the
same as what data length item 3 above has read; the data read starts with “FF D8”, and ends with
“FF D9”.
If read the image data in multi attempts, the first start address shall be: “00 00 00 00”, each time after
the start address shall be the last frame’s end address.
Example:
Send: 56 00 32 0C 00 0A 00 00 00 00 00 01 4B C6 00 FF
Return: 76 00 32 00 00 FF D8 ... FF D9 76 00 32 00 00
56 00 32 0C 00 0A 00
00 00 00 00
01 4B C6 00
FF
It means read the image data from the address 0x00000000 with data length 0x00014BC6.
6. STOP CAPTURE
:
56 00 36 01 03
RETURN
:
76 00 36 00 00
7. SET IMAGE COMPRESSION RATIO
:
56 00 31 05 01 01 12 04
XX
RETURN
:
76 00 31 00 00
XX is default at value of 54, valid value ranges from 0x36 to 0x8f, the greater value the poorer image
quality and less image file size. Recommended values: 0x36 --- high image quality; 0x54 ---- good
image quality; 0x72 ---- low image quality.
The changed value can get saved after power-off
.
8. SET IMAGE RESOLUTION
:
(default: 1920 * 1080)
56 00 31 05 04 01 00 19
22
(
160*120
)
RETURN
:
76 00 31 00 00 //
image size is around 5kb
56 00 31 05 04 01 00 19
11
(
320*240
)
RETURN
:
76 00 31 00 00 //
image size is around 13kb
56 00 31 05 04 01 00 19
00
(
640*480
)
RETURN
:
76 00 31 00 00 //
image size is around 37kb
56 00 31 05
05
01 00 19
33
(
1024*768
)
RETURN
:
76 00 31 00 00 //
image size is around 82kb