* blink2.txt: New file describing the protocol of the Blink2.

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7669 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Marcus Meissner
2005-03-23 23:20:51 +00:00
parent e6592ac8e6
commit 217eee5109
2 changed files with 34 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ camlib_LTLIBRARIES = \
libgphoto2_sipix_blink2.la \
libgphoto2_sipix_web2.la
EXTRA_DIST = web2.html blink.txt xjpeg.c
EXTRA_DIST = web2.html blink.txt xjpeg.c blink2.txt
INCLUDES = \
-I$(top_srcdir)/intl \

33
camlibs/sipix/blink2.txt Normal file
View File

@@ -0,0 +1,33 @@
Blink2 Protocol
Mostly control messages.
Number of pictures:
control read 0x08, 0x03, 0x00 -> buf[2] (high, low byte)
Get Dir:
control read 0x0d, 0x03, 0x00 -> buf[1]
bulk read (((8*(1+numpics))+0x3f) & ~0x3f) bytes.
Buffer has now:
i = 0 .. numpics:
buf[8*(i+1)] - movie flag
buf[8*(i+1)+5 ... 7] - 3 bytes start, MSB first
buf[8*(i+1)+13 ... 15] - 3 bytes end, MSB first
Get Memory:
Prepare buffer as:
buf[0..4] start (MSB first)
buf[5..7] length (MSB first)
control write 0x0a, 0x03, 0x00, buf[8]
bulk read (length)
Capture Picture:
control read 0x0e, 0x03, 0x00 -> buf[1]
do
control read 0x16, 0x03, 0x00 -> buf[1]
while buf[0] == 0
Afterwards the image is in the camera memory.