SD940 (IXUS120) porting thread - page 42 - DryOS Development - CHDK Forum

SD940 (IXUS120) porting thread

  • 542 Replies
  • 202757 Views
Re: SD940 (IXUS120) porting thread
« Reply #410 on: 09 / April / 2011, 10:04:56 »
Advertisements
Hello,
are you planning port CHDK for firmware GM1.01A? Thank you!

Re: SD940 (IXUS120) porting thread
« Reply #411 on: 09 / April / 2011, 10:36:44 »
Hello,  are you planning port CHDK for firmware GM1.01A? Thank you!
@zawin : As suggested in my earlier post on this forum, [http://chdk.setepontos.com/index.php?topic=5855.msg64039#msg64039]  I will port for the 1.01A if I can get at least two users who will give me a real email address and commit to testing early releases of the port.  A port is a lot of work but part of my motivation is to test some porting utilities that I have been working on that should make it easier.  However, as I do not have that camera firmware,  I have no way to test the results and will not do that much work without a couple of committed "helpers".

I have the email address you sent me in a PM (thank you).  We just need one more volunteer.



Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline mgg

  • *
  • 16
Re: SD940 (IXUS120) porting thread
« Reply #412 on: 09 / April / 2011, 19:03:51 »
Ah, yes, get_prop 49 shows 32768, 32764 and 2603 - but, and I may have missed this somewhere, whenever CHDK starts up on the 940, it is in playback mode.  Is that a feature of this camera (I can put it in record mode by hitting shutter to stop script, Alt to drop chdk menu, half press to go to record, alt to bring chdk back and full shutter to restart script.  I've also found that holding the power button for a second when turning on, brings out the lens. 

ok, more tests.

Re: SD940 (IXUS120) porting thread
« Reply #413 on: 09 / April / 2011, 19:29:52 »
whenever CHDK starts up on the 940, it is in playback mode.  Is that a feature of this camera (I can put it in record mode by hitting shutter to stop script, Alt to drop chdk menu, half press to go to record, alt to bring chdk back and full shutter to restart script.) 
I've also found that holding the power button for a second when turning on, brings out the lens. 
Normal behavior for a CHDK camera.  The playback button gets you playback mode.  A short press on the ON/OFF button gets you playback mode.  Hold the ON/OFF button for more than one second and you are in shooting mode.

Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline mgg

  • *
  • 16
Re: SD940 (IXUS120) porting thread
« Reply #414 on: 09 / April / 2011, 21:28:27 »
I ran setmode.lua and got...


ixus120_sd940 103c CHDK 0.9.9-1133 Apr  9 2011 13:16:42 dryos 0x31e6
START                        |                    P   2 32772 STL
TRY                 AUTO   1 |                 AUTO   1 32768 STL  870ms OK
TRY                    P   2 |                    P   2 32772 STL 1110ms OK
TRY                   TV   3 |                    P   2 32772 STL 1010ms CHANGE FAIL req   3 got   2
TRY                   AV   4 |                    P   2 32772 STL  970ms CHANGE FAIL req   4 got   2
TRY                    M   5 |                    P   2 32772 STL 1100ms CHANGE FAIL req   5 got   2
TRY             PORTRAIT   6 |                    P   2 32772 STL  890ms CHANGE FAIL req   6 got   2
TRY            LANDSCAPE   8 |                    P   2 32772 STL  970ms CHANGE FAIL req   8 got   2
TRY            VIDEO_STD   9 |                    P   2 32772 STL  970ms CHANGE FAIL req   9 got   2
TRY               STITCH  15 |               STITCH  15 33290 STL  990ms OK
TRY             SCN_SNOW  22 |             SCN_SNOW  22 16404 STL  550ms OK
TRY            SCN_BEACH  23 |            SCN_BEACH  23 16405 STL  350ms OK
TRY         SCN_FIREWORK  24 |         SCN_FIREWORK  24 32790 STL  390ms OK
TRY     SCN_COLOR_ACCENT  25 |     SCN_COLOR_ACCENT  25 16923 STL  370ms OK
TRY       SCN_COLOR_SWAP  26 |       SCN_COLOR_SWAP  26 16924 STL  370ms OK
TRY         SCN_AQUARIUM  28 |         SCN_AQUARIUM  28 32792 STL  320ms OK
TRY      SCN_NIGHT_SCENE  30 |      SCN_NIGHT_SCENE  30 16398 STL  340ms OK
TRY         SCN_ISO_3200  31 |         SCN_ISO_3200  31 16413 STL  330ms OK
TRY       NIGHT_SNAPSHOT  36 |       NIGHT_SNAPSHOT  36 32779 STL  310ms OK
TRY          SCN_FOLIAGE  38 |          SCN_FOLIAGE  38 32787 STL  310ms OK
TRY           SCN_INDOOR  40 |           SCN_INDOOR  40 16401 STL  340ms OK
TRY               SPORTS  53 |               SPORTS  53 33287 STL  670ms OK
TRY           SCN_SUNSET  55 |           SCN_SUNSET  55 16402 STL  710ms OK
TRY                    P   2 |                    P   2 32772 STL  340ms OK

*

Offline mgg

  • *
  • 16
Re: SD940 (IXUS120) porting thread
« Reply #415 on: 09 / April / 2011, 21:47:33 »
Perhaps newer cameras work that way. My sd400's power on in record mode.  I can live with it.

Re: SD940 (IXUS120) porting thread
« Reply #416 on: 09 / April / 2011, 22:49:11 »
Perhaps newer cameras work that way. My sd400's power on in record mode.  I can live with it.
Understood, and CHDK source code is available at http://tools.assembla.com/svn/chdk/ for anytime you would like to change things to more closely suit your taste. The SD940 is my only CHDK camera so my frame of reference is limited by what I have been able to get working.


« Last Edit: 09 / April / 2011, 22:55:14 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SD940 (IXUS120) porting thread
« Reply #417 on: 09 / April / 2011, 22:53:41 »
I ran setmode.lua and got...
Cool - except that I have no idea what it means or what you want to know. 

Looks like most stuff worked and some stuff didn't ?  Would be nice to better understand how the whole mode thing works - I suspect its a question of mapping what the Digic IV cameras want / return rather than any bug in the SD940 port.   If you can work through this and provide an updated cross reference for current cameras that would be really good.

Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline reyalp

  • ******
  • 14082
Re: SD940 (IXUS120) porting thread
« Reply #418 on: 10 / April / 2011, 00:59:44 »
Looks like most stuff worked and some stuff didn't ?  Would be nice to better understand how the whole mode thing works - I suspect its a question of mapping what the Digic IV cameras want / return rather than any bug in the SD940 port.   If you can work through this and provide an updated cross reference for current cameras that would be really good.
The script at http://tools.assembla.com/chdk/browser/trunk/CHDK/SCRIPTS/TEST/setmode.lua

See also http://chdk.wikia.com/wiki/Lua/Scripts:Standard/Test/Setmode

Essentially, it tries to set all the modes listed in the cameras modemap and then get the current mode to verify it was set. Failures indicate your modemap contains modes which don't exist on your camera. This doesn't have anything to do with propsets or digic X vs. digic Y.

Code: [Select]
TRY                    P   2 |                    P   2 32772 STL 1110ms OK
TRY                   TV   3 |                    P   2 32772 STL 1010ms CHANGE FAIL req   3 got   2
TRY                   AV   4 |                    P   2 32772 STL  970ms CHANGE FAIL req   4 got   2
TRY                    M   5 |                    P   2 32772 STL 1100ms CHANGE FAIL req   5 got   2
TRY             PORTRAIT   6 |                    P   2 32772 STL  890ms CHANGE FAIL req   6 got   2
TRY            LANDSCAPE   8 |                    P   2 32772 STL  970ms CHANGE FAIL req   8 got   2
TRY            VIDEO_STD   9 |                    P   2 32772 STL  970ms CHANGE FAIL req   9 got   2
TRY               STITCH  15 |               STITCH  15 33290 STL  990ms OK
So, P was OK. Tv through VIDEO_STD were not. Tv, Av and M wouldn't be expected to exist on a camera without a real aperture, so they shouldn't be in the modemap. The other failures might not exist, or have the wrong canon mode value in the modemap.

To correct the modemap, look at the canon manual to find the actual modes available, and find the corresponding propcase values using the propcase display, or the modelist found in canon ROM. Most ports have a reference to the address of this table in shooting.c (because I went through every single port and found them when I implemented mode switching >:( edit: history http://chdk.setepontos.com/index.php?topic=3228.30 )
« Last Edit: 10 / April / 2011, 01:11:09 by reyalp »
Don't forget what the H stands for.

*

Offline mgg

  • *
  • 16
Re: SD940 (IXUS120) porting thread
« Reply #419 on: 10 / April / 2011, 09:04:24 »
Fraser McCrossan's lua time lapse script works fine on the 940!

now on to porting my code.

 

Related Topics