From: Hans v. D. <do...@xs...> - 2005-10-31 18:02:34
|
Marcus Meissner wrote: >On Sun, Oct 30, 2005 at 07:48:56PM +0100, Hans van Dok wrote: > >>Hello >> >>I am the happy owner of a Canon PowerShot A520. gphoto2 can get pictures >>from it just fine, and that's the most important bit to me, but it >>doesn't identify the camera properly, which I suppose is why it can't do >>other things such as "capture". >> >>As noted before on gphoto-user in the thread that started here >> >> <http://sourceforge.net/mailarchive/message.php?msg_id=12936726> >> >>there seems to be a problem with the product ID, but that thread has >>fizzled out somehow. Apparently the required information to support this >>camera is the product ID which can be found in the output of "cat >>/proc/bus/usb/devices" >> >>T: Bus=01 Lev=01 Prnt=01 Port=09 Cnt=02 Dev#= 36 Spd=12 MxCh= 0 >>D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=32 #Cfgs= 1 >>P: Vendor=04a9 ProdID=30c1 Rev= 0.01 >>S: Manufacturer=Canon Inc. >>S: Product=Canon Digital Camera >>C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA >>I: If#= 0 Alt= 0 #EPs= 3 Cls=06(still) Sub=01 Prot=01 Driver=(none) >>E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms >>E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms >>E: Ad=83(I) Atr=03(Int.) MxPS= 8 Ivl=96ms >> >>I hope this is enough to get full support for this camera in gphoto2. If >>anyone wants me to test anything with my camera or needs more >>information I'd be glad to try and help. >> > >It is. Thanks! > >It should even work fully only when reported as "USB PTP Camera", the id addition >does not add functionality besides the name. > >Ciao, Marcus > > Marcus, Glad to be of some assistance! Some more information (possibly): When using the "default" libgphoto2 2.1.6, it gets reported as a Canon Digital IXUS 50 when I use "gphoto2 --auto-detect". Then, if I try "gphoto2 --capture-picture" it says it "Detected a 'Canon:PowerShot SD400 (normal mode)'". They are the same thing, but it's still a bit odd in itself. Anyhow; using it, I was unable to get it to "capture" an image. So, I messed with the source just a tiny bit (not being much of a programmer at all, I must admit), adding this line to canon.c: {"Canon:PowerShot A520 (normal mode)", CANON_CLASS_1, 0x04A9, 0x30c1, CAP_SUP, SL_MOVIE_LARGE, SL_THUMB, SL_PICTURE, NULL}, This made "capture" work somewhat --- that is, when I turned the cam on after connecting it and issuing "gphoto2 --camera "Canon PowerShot A520 (PTP Mode)" --capture-image" it works, but I got some flaky performance (I think), in that whenever I forget to include the --camera argument, afterwards it won't work anymore and return errors of this kind: -- gp_port_write: Resource temporarily unavailable gp_port_write: Resource temporarily unavailable *** Error *** PTP I/O error *** Error *** An error occurred in the io-library ('Unspecified error'): Could not query kernel driver of device. ERROR: Could not capture. *** Error (-1: 'Unspecified error') *** -- (etc.) So, uhm, I hope that is of some use to you all. Hans |