Ultimate Intervalometer - a script for shooting over a long duration - v4.9 - page 28 - Completed and Working Scripts - CHDK Forum

Ultimate Intervalometer - a script for shooting over a long duration - v4.9

  • 651 Replies
  • 247048 Views
*

Offline nafraf

  • *****
  • 1308
Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #270 on: 21 / November / 2014, 11:39:12 »
Advertisements
Is it not reliable to call reboot() function?
Which camera model are you using?

Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #271 on: 21 / November / 2014, 11:59:00 »
Does the script go in to playback mode prior to rebooting in order to stow the lens?
That's exactly what the Ultimate Intervalometer's reset code does (and it waits in playback for while in case the Canon setting for lens retract delay is not zero).
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline timgor

  • ***
  • 150
Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #272 on: 21 / November / 2014, 12:05:32 »
Sure, I retract lens  mode set_record(0) then I wait until get_mode() == false and then I reset camera. I use A1400. may be I need more delay between set_record(0) and reboot(). i know that A1400 had a problem with lens and needed some extra delay after lens motion

Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #273 on: 21 / November / 2014, 16:57:39 »
I'm asking because sometimes when I restart camera from script it crashes with a strange sound when starting the lens, see the attached romlog.
So does this mean that the script successfully causes a reset to occur but when that happens, the camera crashes while starting back up?   

If so,  the restart should happen in playback mode and there should be no lens activity until you issue a set_record(1). Do you have a delay built-in so that the switch to shooting mode only happens after a few seconds of delay?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline timgor

  • ***
  • 150
Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #274 on: 22 / November / 2014, 17:16:16 »
I've resolved the issue. That's what I was talking about.  I think this is a bug for A1400. sleep(3000) between  set_record(0) and reboot() is not enough. Now it works with sleep(6000). This is because set_record(0) doesn't wait untill lens is retracted in A1400.
p.s. I have another bug that I will start in another thread.

Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #275 on: 22 / November / 2014, 17:26:00 »
I've resolved the issue. That's what I was talking about.  I think this is a bug for A1400. sleep(3000) between  set_record(0) and reboot() is not enough. Now it works with sleep(6000). This is because set_record(0) doesn't wait untill lens is retracted in A1400.
set_record() just says the camera is in playback mode.  If you accidentally set the Lens Retract in the Canon menu to 1 minute then you will need a longer sleep() value because the camera can be in playback mode for 60 seconds before the lens retracts.

Quote
p.s. I have another bug that I will start in another thread.
For the record,  this one was not a "bug" in ultimate.lua   :D
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline timgor

  • ***
  • 150
Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #276 on: 22 / November / 2014, 18:01:36 »
it's really hard to understand the meaning of what you wrote but it would be good to write:
Code: [Select]
           set_record(0)
           sleep(5000)

rather than
Code: [Select]
           set_record(0)
           while ( get_mode() == true ) do sleep(100) end
-- The lens is mooving here (at least for A1400) and can crush something



As well as in the intervalometer script  :)

Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #277 on: 22 / November / 2014, 18:10:20 »
it's really hard to understand the meaning of what you wrote but
.....
As well as in the intervalometer script  :)
Not sure where I have caused confusion but here's the actual code from ultimate.lua that handles the reboot :

Code: [Select]
function camera_reboot()
    set_display(90)
    switch_mode(0)
    local ts=70
    printf("=== Scheduled reboot === : lens retraction wait")
    repeat
        show_msg_box(string.format("   rebooting in %d", ts))
        ts=ts-1
        sleep(1000)
    until ( ts == 0)
    printf("rebooting now")
    set_autostart(2)   -- autostart once
    sleep(2000)
    reboot()
end
The set_display() function turns the LCD on and the switch_mode() function changes the camera from shooting to playback mode.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #278 on: 09 / February / 2015, 14:22:02 »
Hi, I am having some issues with this script. I am using a Canon Powershot D30 and want to use this script to save as much battery size whilst taking pictures in RAW format. I am using default settings, expect for putting the display blanking mode as LCD for the day and night settings. I already tried playback for both and all it did was turn off and take no pictures. I am using just intervals of 1 minute to test how long the battery lasts for how many pictures I am taking.

Is this a problem with the settings of the CHDK, script, or is it an issue of my camera model.

Thanks for the help.

Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #279 on: 10 / February / 2015, 09:52:52 »
Is this a problem with the settings of the CHDK, script, or is it an issue of my camera model?
At this point, I have no idea.

What happens if you run the script with only the default settings on place? (i.e. with the Display Blanking Mode set to [ None ] ) 

And what happens if you run with RAW disabled?
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics


SimplePortal © 2008-2014, SimplePortal