Debian Codegraph @

camlibs/agfa-cl20/RANDOM

raw
1 Just some random ramblings :-)
2
3
4 -------------------
5
6 Why does the damn windows software poll the camera so often?
7 Answer: Because of the stupid "print" button on the camera!
8 It does not use an interrupt or anything, but you have to send:
9
10 usb_control_msg( cl20_dev, 0xC1, 0x00, 0x0000, 0x8985, data, 1, 5000);
11 which is: C1 00 00 00 85 89 00 01
12
13 If *data now contains "0", nothing happened.
14 If *data is now "8", the user is PRESSING the button.
15
16 Notice I say "PRESSING" :-) it has no memory, if you miss the moment the
17 user presses the button, you do not see it!
18
19 -------------------
20
21 If you have a low quality picture on the camera, downloading the
22 thumbnail is the same transaction as downloading the whole picture.
23 Even worse, it's only 16k! So it's quite low resolution :-)
24
25 -------------------
26
27 If you are using the compactflash card, data download is a proper
28 JPEG file, ready to use.
29
30 If you are NOT using the compactflash card, data download is a so
31 far meaningless heap of garbage !! You can get the picture, no
32 problem, but you have to know how to process it for it to be useful!
33
34 -------------------
35
36 There are only a few different USB commands used, with slightly different
37 parameters. I have good hopes for this camera :-)
38
39 -------------------
40
41 For the first time (for me) USB snoopy actually saw the USB transactions
42 used when using the CL20 as a webcam (in streaming mode).
43
44 -------------------
45
46 Camera has 1 configuration, which is set as 1 (so do not start counting at 0!)
47 Camera has 2 interfaces, "dmesg" should show you all info you could ever need
48 , and it shows interface 1 (which is 0) only has Iso endpoints, whereas
49 interface 2 (which is 1) has a bulk endpoint. Iso's are used for streaming
50 video, and bulk is used for downloading picture data. It should be possible
51 (the latest Agfa windows driver claims this) to use interface 1 and 2 at
52 the same time, i.e. downloading pictures while also streaming video.
53 #TODO verify this, it was late when I read it, could be wrong :-)
54
55 -------------------
56
57 When the camera erases all pictures, my guess is it is actually just sending
58 the command to delete the last picture until there are no pictures left :)