Canon A60 - retracting the lens with capture=off is not working!

View: New views
3 Messages — Rating Filter:   Alert me  

Canon A60 - retracting the lens with capture=off is not working!

by Jiri Hladky-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I'm using gphoto2 to create lapse movies with Canon A60.

As already reported by Günter Neustädter
(http://sourceforge.net/mailarchive/forum.php?thread_name=916638.14125.qm%40web53011.mail.re2.yahoo.com&forum_name=gphoto-devel),
retracting the lens with capture=off is not working.

Actually, it's not working from command line. When I request
capture=off from cdk menu then it's working.

Can you please help me to resolve this?

Thanks a lot!
Jiri

Facts:
1)capture=on is working fine
2)get-config ALWAYS report that capture is in state off
3)capture=off is not working
gphoto2 --camera="Canon PowerShot A60 (PTP)" --debug --debug-logfile
/tmp/capture-off --port=usb: --set-config /main/settings/capture=off
See attached  debug-logfile /tmp/capture-off
4)when using cdk shell (--config), capture is always first at state No
(Off) (even if the real state is on). When I switch to Yes (On) and
after it to No (Off) then the lenses are retracted. So it seems that
capability is here but it's buggy and CANNOT BE ACCESSED FROM SCRIPT
USING --set-config /main/settings/capture=off

See attached log-file config
gphoto2 --camera="Canon PowerShot A60 (PTP)" --debug --debug-logfile
/tmp/config --port=usb:  --config


gphoto2 --version
This version of gphoto2 is using the following software versions and options:
gphoto2         2.4.1          gcc, popt(m), exif, cdk, aa, jpeg, readline
libgphoto2      2.4.1.3        gcc, ltdl, EXIF
libgphoto2_port 0.8.0          gcc, ltdl, USB, serial resmgr locking


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gphoto-devel mailing list
Gphoto-devel@...
https://lists.sourceforge.net/lists/listinfo/gphoto-devel

debug-logfiles.tar.bz2 (23K) Download Attachment

Canon A60 - retracting the lens with capture=off is not working!

by Jiri Hladky-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I'm using gphoto2 to create lapse movies with Canon A60.

As already reported by Günter Neustädter
(http://sourceforge.net/mailarchive/forum.php?thread_name=916638.14125.qm%40web53011.mail.re2.yahoo.com&forum_name=gphoto-devel),
retracting the lens with capture=off is not working.

Actually, it's not working from command line. When I request
capture=off from cdk menu then it's working.

Can you please help me to resolve this?

Thanks a lot!
Jiri

Facts:
1)capture=on is working fine
2)get-config ALWAYS report that capture is in state off
3)capture=off is not working
gphoto2 --camera="Canon PowerShot A60 (PTP)" --debug --debug-logfile
/tmp/capture-off --port=usb: --set-config /main/settings/capture=off
See attached  debug-logfile /tmp/capture-off
4)when using cdk shell (--config), capture is always first at state No
(Off) (even if the real state is on). When I switch to Yes (On) and
after it to No (Off) then the lenses are retracted. So it seems that
capability is here but it's buggy and CANNOT BE ACCESSED FROM SCRIPT
USING --set-config /main/settings/capture=off

See attached log-file config
gphoto2 --camera="Canon PowerShot A60 (PTP)" --debug --debug-logfile
/tmp/config --port=usb:  --config


gphoto2 --version
This version of gphoto2 is using the following software versions and options:
gphoto2         2.4.1          gcc, popt(m), exif, cdk, aa, jpeg, readline
libgphoto2      2.4.1.3        gcc, ltdl, EXIF
libgphoto2_port 0.8.0          gcc, ltdl, USB, serial resmgr locking


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gphoto-devel mailing list
Gphoto-devel@...
https://lists.sourceforge.net/lists/listinfo/gphoto-devel

debug-logfiles.tar.bz2 (23K) Download Attachment

Re: Canon A60 - retracting the lens with capture=off is not working!

by Bugzilla from marcus@jet.franken.de :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jun 30, 2008 at 11:51:49PM +0200, Jiri Hladky wrote:

> Hi all,
>
> I'm using gphoto2 to create lapse movies with Canon A60.
>
> As already reported by Günter Neustädter
> (http://sourceforge.net/mailarchive/forum.php?thread_name=916638.14125.qm%40web53011.mail.re2.yahoo.com&forum_name=gphoto-devel),
> retracting the lens with capture=off is not working.
>
> Actually, it's not working from command line. When I request
> capture=off from cdk menu then it's working.
>
> Can you please help me to resolve this?

I have found the problem and fixed it in SVN.

The patch:

Index: camlibs/ptp2/config.c
===================================================================
--- camlibs/ptp2/config.c (Revision 11198)
+++ camlibs/ptp2/config.c (Revision 11199)
@@ -1971,7 +1971,7 @@
 
  gp_widget_new (GP_WIDGET_TOGGLE, _(menu->label), widget);
  gp_widget_set_name (*widget, menu->name);
- val = 0;
+ val = 2; /* always changed, unless we can find out the state ... */
  gp_widget_set_value  (*widget, &val);
  return (GP_OK);
 }

Ciao, Marcus

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Gphoto-devel mailing list
Gphoto-devel@...
https://lists.sourceforge.net/lists/listinfo/gphoto-devel
LightInTheBox - Buy quality products at wholesale price!