CHDK Control of the Mode Dial for A570IS - General Discussion and Assistance - CHDK Forum

CHDK Control of the Mode Dial for A570IS

  • 76 Replies
  • 27117 Views
*

Offline Jim

  • *
  • 32
CHDK Control of the Mode Dial for A570IS
« on: 07 / February / 2008, 23:15:43 »
Advertisements
Is there any way for CHDK to control the "Dial Mode"? ..... with set prop command?

This is the general need (based on my past KAP scripts posted on this forum)  ..   taking pictures from a kite....

 - have CHDK script running with Mode Dial in Tv or Av mode
 - take a series of pictures - .....no problem doing all of this now
.
. - have CHDK force (via set prop?) the Mode Dial into Movie mode (or any other mode) (without turning the dial!)
  - take a series of pictures (or video - this is what I am looking for)
  - swtich back to Tv or Av Dial Mode and take series of still pictures
  - run loop

I can run a script for doing either stills or video but not swtich between the two in one script (i.e. kite 500' up in the air and I can not reach the dial :-)   

I suspect this is possible ...with set prop command? 

Does any one have the list of properties for the A570IS camera?

Any other approaches?

Jim (a.k.a Wind Watcher)

Re: CHDK Control of the Mode Dial for A570IS
« Reply #1 on: 08 / February / 2008, 11:50:05 »
I agree, this would be extremely useful.

As for other approaches, I've never been fond of hardware mods to digital cameras, but I have taken a few apart for repairs in the past. The mode dial in the Powershot A70 is a very simple arrangement; a set of electrical contacts are fixed beneath the dial, and brushes on the bottom of the dial bridge a different pair of contacts for each position. Probably the only part of the camera that's easy to hardware mod :)

*

Offline jeff666

  • ****
  • 181
  • A720IS
Re: CHDK Control of the Mode Dial for A570IS
« Reply #2 on: 10 / February / 2008, 12:29:06 »
Quote from: Jim
Is there any way for CHDK to control the "Dial Mode"? ..... with set prop command?

There isn't (at least yet), but it should be possible to implement.

The mode-dial is registered as a button or switch just like the other switches are. We are able to override the state of the switches and on my A720 a quick hack proved that the dial-mode can be set in software.

Unfortunately I'm pretty much out of time right now, so I can't implement it.

If someone else wants to, these are my thoughts about the function:
* create a dialmode-mask to clear the bits in physw.
* read original dial-mode position and keep it in a variable
* extend uBasic keyboard-commands to set the dial-position (incl. reset to manual).  The dial-position would be indicated by a number that has to be equal on all models. We would remap this to the device-dependent number somewhere else.
* in my_kbd_read_keys() set dial-mode in physw accordingly

Two bad things, though:
1. It would only work in alt-mode (i.e. scripts) or otherwise require a design break in the keybaord-handling as it is done right now (i.e. override keyboard only in alt-mode).
2. It has to be implemented for each camera since it is platform-dependent.

Cheers.

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: CHDK Control of the Mode Dial for A570IS
« Reply #3 on: 10 / February / 2008, 17:26:14 »
would enhance chdk big time. imagine the possibilities!
* phyrephox votes for all efforts put into that feature :D


*

Offline Jim

  • *
  • 32
Re: CHDK Control of the Mode Dial for A570IS
« Reply #4 on: 11 / February / 2008, 22:38:40 »
All, I agree.  This would be a BIG JUMP in CHDK capability.   I am not certain how changes in the mode dial impact other functions.   Definiately worth exploring. 

*

Offline jeff666

  • ****
  • 181
  • A720IS
Re: CHDK Control of the Mode Dial for A570IS
« Reply #5 on: 12 / February / 2008, 07:51:10 »
Quote from: PhyrePhoX
imagine the possibilities!

Like switching the dial in a loop and watch the funny animations on the display? :D

Well, since there is some demand and I would like to override the dial-mode myself, I will give it a shot, this evening.

I think it could work like this:
* we force a dialmode with a press DM_<num> and switch back to normal with release DM_<num>.
* <num> would be:
  0 - M
  1 - Av
  2 - Tv
  3 - P
  4 - Auto
Do we need the others? I wouldn't miss them.
Note: The numbers are in this case equal to the order of the dial, but this is only by accident. Even if a camera lacked one mode, the others would still have the same numbers. That makes scripts portable.

I think this could be fairly easy to implement, since it would work like any other keyboard-interaction.

Since I have an A720, I will test it on this model first, but A570-owners can help, anyway.

To support the A570 (or any camera), I need the keyboard-bits that are modified by the dial-mode. They are shown if Debug parameters->Show misc. values is switched on. The main screen now shows 4 lines with values. The first three show the keyboard-state (and a few other switches).

Turn on the camera in playback-mode, set 'Show misc. values', turn the dial and observe the numbers that change on each dial switch. Some numbers will change when the dial is not turned, don't care about them.

On my A720 it looks like:
1: oooooooo
2: oXoooooo
3: ooooXooo

The X-marked digits change when I turn the dial. Now I need to know which digits change and what their values are in each mode.

These are the values on my A720. First value is the X in line 2, second value is the X in line 3, third value is the dialposition.

Code: [Select]
d 9 - M
d 8 - Av
d a - Tv
d e - P
d f - Auto
d b - portrait
9 b - landscape
9 f - night
9 c - kids&pets
1 e - indoor
5 e - SCN
5 f - stitch assist
5 d - movie


Additonal note:
I just noticed that it should be possible to set the playback-switch. Any request on this one?

Cheers.
« Last Edit: 12 / February / 2008, 07:55:46 by jeff666 »

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: CHDK Control of the Mode Dial for A570IS
« Reply #6 on: 12 / February / 2008, 08:10:51 »
well in the end setting all switches via script is a good idea!
for example you can make a script that shoots pics all the time, but once in a while it starts a slideshow.

On my A620 it looks like:
2: Xoooooo (only this line changes)


here are my output numbers:
Code: [Select]
1 - mycolors
2 - C
3 - stitch assist
4 - Av
5 - TV
6 - M
7 - P
9 - SCN
b - movie
c - landscape
d - night
e - portrait
f - Auto

good luck!

*

Offline jeff666

  • ****
  • 181
  • A720IS
Re: CHDK Control of the Mode Dial for A570IS
« Reply #7 on: 12 / February / 2008, 08:28:35 »
Quote from: PhyrePhoX
Code: [Select]
1 - mycolors
2 - C

Is 'mycolors' identical to the setting of the same name in the menu of my A720?
What about 'C'? Do we need it?

I think about reordering the numbers for the 'press DM_<x>' command to:
0 - Auto
1 - Manual
2 - Av
3 - Tv
4 - P
5 - C

I think, I read about 'Sv' somewhere. Does such a mode exist on canon cameras? Do we have to take care about it?

Cheers.


Re: CHDK Control of the Mode Dial for A570IS
« Reply #8 on: 12 / February / 2008, 09:41:01 »
Hi Jeff666,

For the A570is I found the same output numbers as you for the A720is.

Quote
1: oooooooo
2: oXoooooo
3: ooooXooo

The X-marked digits change when I turn the dial. Now I need to know which digits change and what their values are in each mode.

These are the values on my A720. First value is the X in line 2, second value is the X in line 3, third value is the dialposition.

Code:
d 9 - M
d 8 - Av
d a - Tv
d e - P
d f - Auto
d b - portrait
9 b - landscape
9 f - night
9 c - kids&pets
1 e - indoor
5 e - SCN
5 f - stitch assist
5 d - movie

Good luck!

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: CHDK Control of the Mode Dial for A570IS
« Reply #9 on: 12 / February / 2008, 09:54:16 »
Quote from: PhyrePhoX
Code: [Select]
1 - mycolors
2 - C

Is 'mycolors' identical to the setting of the same name in the menu of my A720?
What about 'C'? Do we need it?
probably we won't need C. mycolors might come in handy regarding face/color detection (see the motiondetection thread somewhere). i dont know what you mean by your question if mycolours is identical to your setting of your a720.?
anyways, most important would be to be able to switch to MOVIE mode (and back), imho.

 

Related Topics