www.linksprite.com
4
/
9
4. Communication Protocol
1. Reset
Command (HEX)
Return (HEX)
56 00 26 00
76 00 26 00
2. Take picture
Command (HEX)
Return (HEX)
56 00 36 01 00
76 00 36 00 00
3. Read JPEG file size
Command (HEX)
Return (HEX)
56 00 34 01 00
76 00 34 00 04 00 00 XH XL
XH XL is the file length of JPEG file, MSB is in the front, and followed
by LSB.
4. Read JPEG file content
JPEG file starts with FF D8 and ends with FF D9.
To read the JPEG file, always starts with address 00 00,and choose a
chunk size that are an integer times of 8, and read the chunk many
times until reds FF D9 which indicates the end of the JPEG file.
Command(HEX)
56 00 32 0C 00 0A 00 00 MH ML 00 00 KH KL XX XX
Return (HEX)
76 00 32 00 00
(
Interval time
)
FF D8
。。。
……
。。。(
Interval time
)
76 00 32 00 00
(
Interval time
)
= XX XX*0.01mS XX XX are recommended to be 00 0A
00 00 MH ML: Starting address
00 00 KH KL: Length of JPEG file
MSB first, and LSB last