A2500 porting thread - page 14 - DryOS Development - CHDK Forum  

A2500 porting thread

  • 154 Replies
  • 47825 Views
Re: A2500 porting thread
« Reply #130 on: 16 / February / 2014, 21:40:41 »
Advertisements
nafraf,

No success with those either... but I did figure it out!

The following code worked perfectly:

Code: [Select]
set_focus_interlock_bypass(1)
sleep(1000)
call_event_proc("SS.Create")
call_event_proc("SS.MFOn")
set_focus(1000)
f1=get_focus()
print("pre-shoot half")
print(f1)
press('shoot_full')
sleep(200)
f4=get_focus()
print("post-full shoot")
print(f4)
release('shoot_full')
sleep(2000)
f5=get_focus()
print("post-full shoot release")
print(f5)
set_focus(2000)
f1=get_focus()
print("pre-shoot half")
print(f1)
sleep(1000)
press('shoot_half')
sleep(2000)
f2=get_focus()
print("push-shoot half")
print(f2)
release('shoot_half')
sleep(1000)
f3=get_focus()
print("release-shoot half")
print(f3)
press('shoot_full')
sleep(200)
f4=get_focus()
print("post-full shoot")
print(f4)
release('shoot_full')
sleep(2000)
f5=get_focus()
print("post-full shoot release")
print(f5)

Turned out I had the interlock bypass on in the test script. Added that to my existing script, and now it works perfectly! I'm not quite sure what the interlock bypass does (tried searching around to find little about it), but it does in fact work now on the a2500.

I'll check it on the a1400 when I get to my office tomorrow morning (camera is there).

Thanks a million, nafraf and waterwingz!

Oh, and waterwingz, if you'd like to name a charity, I'd be happy to donate to it as a thank you.

Re: A2500 porting thread
« Reply #131 on: 16 / February / 2014, 21:56:10 »
No success with those either... but I did figure it out!
Good to know.  Did some more work on my proposed changes to this mess and the question about what to do with Servo AF and Continuous AF is still hanging out there.

Quote
I'm not quite sure what the interlock bypass does (tried searching around to find little about it), but it does in fact work now on the a2500.
The current CHDK code that handles  SD overrride / set_focus() has a whole bunch of conditional compile and random checks of propcase values that try to determine if the code should actually be allowed to focus the lens under the current shooting conditions.  This has been hacked "five ways to Friday" by different people doing different ports to the point where it almost impossible to understand what was originally intended  (e.g. the special code for the ixus800_sd700).

So there was a change made (interlock bypass) that tells CHDK to simply ignore all the checks it was performing and call the low level MoveFocusLensToDistance() function every time a script executes a set_focus() command.

Quote
Oh, and waterwingz, if you'd like to name a charity, I'd be happy to donate to it as a thank you.
Thanks - pick any one that involves feeding hungry children.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: A2500 porting thread
« Reply #132 on: 22 / February / 2014, 16:19:37 »
Hello everyone, I want to thank everyone working on this CHDK from the bottom of my heart. I can't tell you how much I appreciate the hard work you've put into this!

I know some very basic fundamentals of how code works, but unfortunately have no idea how to write it. But i'll do whatever i can to help you guys out with alpha/beta testing your builds. So let me know what i can do to help :D

I also have 2 quick questions. first of all I know you guys, especially waterwingz, are working on getting the manual focus to work on the a2500. I'm curious how this is coming along? Do you think you will be able to override all the checks within CHDK to get manual focus to work, or do you think we'll have to end up downloading a user script outside of the main CHDK code?

Secondly is the operation that is "supposed" to control manual focus on this camera the "Override Subj. Distance"? or is it some other option within the enhanced photo operations menu?

Re: A2500 porting thread
« Reply #133 on: 22 / February / 2014, 16:23:28 »
I also have 2 quick questions. first of all I know you guys, especially waterwingz, are working on getting the manual focus to work on the a2500. I'm curious how this is coming along?
Slowly and painfully.    :(

Quote
Do you think you will be able to override all the checks within CHDK to get manual focus to work, or do you think we'll have to end up downloading a user script outside of the main CHDK code?
I believe we will get it working correctly.  Older & less popular cameras might get reduced functionality until someone steps forward and volunteers to test.

Quote
Secondly is the operation that is "supposed" to control manual focus on this camera the "Override Subj. Distance"?
Yes.   You should also be able to control manual focus from a script.  And from the keyboard shortcuts - but don't get me started on that "feature" again.

Ported :   A1200    SD940   G10    Powershot N    G16


Re: A2500 porting thread
« Reply #134 on: 22 / February / 2014, 22:53:14 »
Thanks for answering my questions waterwingz! Let me know what i can do to help!

Re: A2500 porting thread
« Reply #135 on: 26 / March / 2014, 06:32:17 »
Just to inform I have been playing around with my A2500 and I found out that most properties are those of the Digic 3 as described here http://chdk.wikia.com/wiki/PropertyCase.
So far, only the white balance control is wrong: on my camera, I can set the white balance mode using property 271 (instead of 268 as noted).


Re: A2500 porting thread
« Reply #136 on: 26 / March / 2014, 07:43:49 »
Just to inform I have been playing around with my A2500 and I found out that most properties are those of the Digic 3 as described here http://chdk.wikia.com/wiki/PropertyCase.
So far, only the white balance control is wrong: on my camera, I can set the white balance mode using property 271 (instead of 268 as noted).
Fixed the URL for you : http://chdk.wikia.com/wiki/PropertyCase.

It looks like your camera is using propset 3 if WB is 271.   The mapping between DIGIC version and propsets seems to be only approximate.

Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline nafraf

  • *****
  • 1308
Re: A2500 porting thread
« Reply #137 on: 26 / March / 2014, 09:25:40 »
A2500 uses propset 6. It is not documented in wikia page, but source code is here: propset6.h


Re: A2500 porting thread
« Reply #138 on: 26 / March / 2014, 09:45:23 »
Thanks - as I typed my previous comment I thought it was strange that a new camera would use an older propset.  If I get a minute I'll update that wiki page.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: A2500 porting thread
« Reply #139 on: 18 / June / 2014, 18:51:02 »
Hi all

I will start that I am newbie with CHDK and with this forum in particular , so please forgive for my mistakes :)

I installed the latest a2500-100a-1.3.0-3467-full_ALPHA.zip firmware and found issue with USB REMOTE


it looks like the camera take 2 pictures  instead of just one

I made the following scenario


Install the latest version of CHDK 1.3.0
In the CHDK Settings -> Remote Parameters menu, set Enable Remote to [ * ], Switch Type to [ OnePush ], Control Mode to [ Normal ], Enable Sync to [ * ],  Sync Delay 0.1ms to [ * ] [ 50000 ]
Exit the CHDK menus and then exit <ALT> mode.
Turn the camera off
Turn the camera back on
Put the camera into shooting mode (lens extended)
Plug your USB cable between your PC and camera.
Unplug your USB cable

Result

Camera take 2 picture (shoot twice), first immediately after  I connected to pc, and 5 sec after i disconnected it

I expected that the camera will take single picture 5 seconds after i disconnected .


I would appreciate your help



Duplicated - http://chdk.setepontos.com/index.php?topic=11603.msg113678;topicseen#new
« Last Edit: 19 / June / 2014, 01:28:44 by novsela »

 

Related Topics