Bug - Synch Delay time options do nothing - General Discussion and Assistance - CHDK Forum

Bug - Synch Delay time options do nothing

  • 30 Replies
  • 15055 Views
Bug - Synch Delay time options do nothing
« on: 06 / September / 2011, 20:03:42 »
Advertisements
Menu -> Miscellaneous Stuff -> Remote parameters -> Synch Delay 0.1ms and Synch Delay 0.1s


I have been unable to get the sync delay time parameters to work on my camera. I have all the other options enabled (enable remote, enable synchable remote, enable synch, enable synch delay), and those work as they are supposed to; When I apply power via USB, the camera focuses and prepares to take a picture, and when I remove power the camera takes the picture. However, it does not seem to use any of the values set for the sync delay time options. That is, if I set "Synch Delay 0.1s" to 10 (meaning a full second delay), the camera still takes the picture as soon as I cut power to USB. I have tried using both a small and large value in both of the parameters.

I have two cameras (A650 and A630), and both exhibit the same problem. That is, it doesn't seem to be specific to my particular camera but rather all cameras. The entire reason I want the sync delay is to syncronize my two cameras in the use of stereo photography. I do know that there exists a specialized branch of CHDK just for stereo photography, and I have used that in the past. The stereo build uses the same time delay parameters and it actually delays the camera so that two different models can be manually syncronized. However, I really like the main build as the stereo build is updated less frequently, has fewer options, and (in my opinion) has an uglier interface.

Is there anything that I am missing? Am I misunderstanding the purpose of these two parameters? Or is this a bug?

Re: Bug - Synch Delay time options do nothing
« Reply #1 on: 06 / September / 2011, 20:29:11 »
Menu -> Miscellaneous Stuff -> Remote parameters -> Synch Delay 0.1ms and Synch Delay 0.1s

When I apply power via USB, the camera focuses and prepares to take a picture, and when I remove power the camera takes the picture.

This is very interesting.   When I try to use a USB remote,  it have to apply power twice - once to focus (i.e. half press) and a second time to shoot ( i.e full press).   How did you get CHDK to do what you describe ? I can see how to do it with a script but not with any of the menu setup values.

(Sorry - I know this does not answer your question. I don't have that information.)

Ported :   A1200    SD940   G10    Powershot N    G16

Re: Bug - Synch Delay time options do nothing
« Reply #2 on: 06 / September / 2011, 22:41:50 »
Menu -> Miscellaneous Stuff -> Remote parameters -> Synch Delay 0.1ms and Synch Delay 0.1s

When I apply power via USB, the camera focuses and prepares to take a picture, and when I remove power the camera takes the picture.

This is very interesting.   When I try to use a USB remote,  it have to apply power twice - once to focus (i.e. half press) and a second time to shoot ( i.e full press).   How did you get CHDK to do what you describe ? I can see how to do it with a script but not with any of the menu setup values.

(Sorry - I know this does not answer your question. I don't have that information.)

In order to make the camera fire when releasing the power, you activate "Enable Synchable Remote". That option changes it from a normal remote (which focuses on first 'power->release' and then fires on the second power-detected) to a remote that focuses when power is detected and fires on release.

My model may be different than yours, though. I tried only having the "Enable Remote" option selected without any of the sync items checked. The camera would focus on the first power and then take the picture on the second like you described, but I had to initiate the second power within about a second of the first or the camera would act as though you had stopped half-pressing.

Re: Bug - Synch Delay time options do nothing
« Reply #3 on: 07 / September / 2011, 01:20:23 »
In order to make the camera fire when releasing the power, you activate "Enable Synchable Remote". That option changes it from a normal remote (which focuses on first 'power->release' and then fires on the second power-detected) to a remote that focuses when power is detected and fires on release.

Tried that on my SD940 but it doesn't work.  With "Enable Synchable Remote" selected, providing or removing power on the USB jack does nothing.  Curiously,  when I select "Enable Synchable Remote", exit and re-enter <ALT> mode and then return to the Remote Parameter menu, the Enable Sync option is also selected.  I guess I need to look at the platform/ixus120_SD940/kbd.c and see if I can figure out what's different.

Quote
The camera would focus on the first power and then take the picture on the second like you described, but I had to initiate the second power within about a second of the first or the camera would act as though you had stopped half-pressing.

Reading through the SDM documentation on remote devices leads me to believe that the "timeout" action you descibe is done on purpose to allow you to not take a picture if you chose and resync the process back to the start.

Ported :   A1200    SD940   G10    Powershot N    G16

Re: Bug - Synch Delay time options do nothing
« Reply #4 on: 07 / September / 2011, 06:02:05 »
the "timeout" action you descibe is done on purpose to allow you to not take a picture if you chose and resync the process back to the start.

That is the purpose on SDM.

I do not know how the code 'fits' into CHDK.

Re: Bug - Synch Delay time options do nothing
« Reply #5 on: 11 / September / 2011, 15:00:35 »
I filled out a bug report at mantis. Please respond either in this thread or in the bug report if you guys have any ideas. Thanks!

http://chdk.kernreaktor.org/mantis/view.php?id=369

Re: Bug - Synch Delay time options do nothing
« Reply #6 on: 11 / September / 2011, 15:16:24 »
I filled out a bug report at mantis. Please respond either in this thread or in the bug report if you guys have any ideas. Thanks!

http://chdk.kernreaktor.org/mantis/view.php?id=369
I'm not sure anyone pays much attention to the mantis.  Most bugs are reported and dealt with here. 

Meanwhile,  I fixed the bug(s) in the SD940 preventing it from operating in the sync mode you described.  Thanks for  letting me know that was possible - it was easy to fix once I knew what it should do.

To look at your situation further,  I set the Synch Delay 0.1s  to 100 (and left the Synch Delay .1ms at 100).  After I remove the 5V USB power,  I get about a 5 second delay and the shutter fires.  Trying other values give a consistent 2x time difference but the delay does work.

UPDATE :  looking at the code,  it will not delay if the Synch Delay .1ms value = 0 regardless of what value is in Synch Delay 0.1s.   I'd submit a patch but it needs to go into every camera version's kbd.c code - too much work for now.  But maybe that's your problem ?
« Last Edit: 11 / September / 2011, 15:22:29 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Bug - Synch Delay time options do nothing
« Reply #7 on: 11 / September / 2011, 21:43:28 »

Meanwhile,  I fixed the bug(s) in the SD940 preventing it from operating in the sync mode you described.  Thanks for  letting me know that was possible - it was easy to fix once I knew what it should do.

That's great that you figured out how to fix your issue. :-)

To look at your situation further,  I set the Synch Delay 0.1s  to 100 (and left the Synch Delay .1ms at 100).  After I remove the 5V USB power,  I get about a 5 second delay and the shutter fires.  Trying other values give a consistent 2x time difference but the delay does work.

UPDATE :  looking at the code,  it will not delay if the Synch Delay .1ms value = 0 regardless of what value is in Synch Delay 0.1s.   I'd submit a patch but it needs to go into every camera version's kbd.c code - too much work for now.  But maybe that's your problem ?

I went ahead and tried that. I set the 0.1s and 0.1ms both to 100. It didn't do any delay, though. I tried it on both my A630 and A650.

I've been meaning to actually look into the code, but I've never worked on a project like this before. Mainly java programming (I know some c++ from college, which was only a few years ago).

Re: Bug - Synch Delay time options do nothing
« Reply #8 on: 11 / September / 2011, 22:45:10 »
Took me a bit, but I got the source downloaded and my environment setup. Now I just have to find the code I need to change.

I have no idea how to submit a patch, if I end up getting the bug fixed. That's for later, though. Now, to code!

Re: Bug - Synch Delay time options do nothing
« Reply #9 on: 11 / September / 2011, 22:55:17 »
Took me a bit, but I got the source downloaded and my environment setup. Now I just have to find the code I need to change.
The USB remote code is in two files - both called kbd.c.  One is trunk/core/kbd.c and the other is in the camera specific directories. In your case,  that would be trunk/platform/A650/kbd.c and trunk/platform/A630/kbd.c

Quote
I have no idea how to submit a patch, if I end up getting the bug fixed. That's for later, though. Now, to code!

If you find a fix - I'll help you with a patch file.

Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics


SimplePortal © 2008-2014, SimplePortal