Magic Lantern Forum

Developing Magic Lantern => Reverse Engineering => Topic started by: Ilias on October 18, 2012, 11:47:09 PM

Title: Command Dials and Eos Utility
Post by: Ilias on October 18, 2012, 11:47:09 PM
The remote shooting function in eos utility in a way emulates button presses and command dials. I wonder if anyone has looked at the commands transmited through usb and what in-camera code they execute?
Title: Re: Command Dials and Eos Utility
Post by: nanomad on October 19, 2012, 12:30:31 AM
It doesn't emulate button presses, it calls the appropriate routines in canon code. I didn't see anything extremely interesting (beside a couple of anonymous functions which I couldn't understand).
Have you got something in particular in mind? (I don't use EOSUtilty too much to be honest)
Title: Re: Command Dials and Eos Utility
Post by: Ilias on October 19, 2012, 01:01:15 AM
Both pyshical and remote commands execute the same code. Once you know what routine is called upon receiving a remote command, you can trap and redirect physical key presses.
Title: Re: Command Dials and Eos Utility
Post by: Ilias on October 19, 2012, 01:19:16 AM
Actually, remote shooting completly controls the camera. If you can map the code executed and set breakpoints you have total control.
Title: Re: Command Dials and Eos Utility
Post by: Ilias on October 19, 2012, 01:48:53 AM
Sorry for writting in pieces. To connect with the original subject, here is an example: from remote shooting i can learn how to read and how to set the av and iso. Then breakpoint the av setting routine on the camera side and when the front wheel turns change the iso instead.
Title: Re: Command Dials and Eos Utility
Post by: ryebrye on November 05, 2012, 08:01:36 PM
Quote from: Ilias on October 18, 2012, 11:47:09 PM
The remote shooting function in eos utility in a way emulates button presses and command dials. I wonder if anyone has looked at the commands transmited through usb and what in-camera code they execute?

IIRC, It doesn't emulate all command dials - you have to be in the "Bulb" setting to do bulb exposure stuff with the EOS utility, don't you? (It can't just send a "bulb mode" command to simulate changing the dial over)