Magic Lantern Forum

General Discussion => General Chat => Topic started by: mi360_sergej on February 07, 2013, 04:27:26 PM

Title: Release while USB-Connection is active?
Post by: mi360_sergej on February 07, 2013, 04:27:26 PM
Hi!

i am writing a small windows-application to set camera parameters on several connected canon 60Ds (it is for my bachelor thesis). therefore i use the canon sdk.
my problem is, that i can't release the shutter while the cameras are plugged to the pc via usb. if i try, "busy" flashes up.

opening a session with a camera via SDK solves the problem, but i can't do that simultaneous for all connected cameras. that is exactly what i need.

does someone know, if there is another way to release the cameras while they are plugged to a pc?

i would appreciate your help!
Title: Re: Release while USB-Connection is active?
Post by: a1ex on February 07, 2013, 04:39:43 PM
Nobody can help you here with Canon SDK, because of the NDA's involved. Sorry.

You may try gphoto2 instead.
Title: Re: Release while USB-Connection is active?
Post by: mi360_sergej on February 07, 2013, 04:46:38 PM
ah, ok i understand.... , then without any canon sdk involved.

is it somehow possible to push the release-button and take a picture while the camera is plugged to a pc? (without running the canon eos utility)

:-\
Title: Re: Release while USB-Connection is active?
Post by: a1ex on February 07, 2013, 04:48:19 PM
http://magiclantern.wikia.com/wiki/Remote_control_with_PTP_and_Python
Title: Re: Release while USB-Connection is active?
Post by: 1% on February 07, 2013, 04:48:54 PM
try factory functions there is fA_release ... there is also a function to clear the busy error (6d its clearbusy and realclearbusy).. not sure how that plays into the sdk but these exist in the camera..
Title: Re: Release while USB-Connection is active?
Post by: coutts on February 08, 2013, 12:03:34 AM
on EOSM, i was able to unlock the UI by disabling ptpUILock (search for strings in ROM). This allowed me to use the camera while connected via usb (for debugging with ptpcam for example).


From ptp-chdk.c, I call this upon connecting to disable the busy message:
QuoteptpPropSetUILock(0, 2);

ptpPropSetUILock is located at 0xFF2A3378 in EOSM v1.0.6 firmware.