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

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

  • 651 Replies
  • 247016 Views
*

Offline ahull

  • *****
  • 634
Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #260 on: 23 / October / 2014, 18:13:56 »
Advertisements
I've started the "sticks o' dynamite" battery build write up here.. since it is not exactly on topic for this thread.
I'll add a bit more detail and possibly a video soon, time permitting.

Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #261 on: 15 / November / 2014, 23:40:45 »
I have been using the script now for a six weeks on continuous operation. All is working well apart from when the set time of taking an image jumps to 05 seconds beyond the set image capture time, the image is not saved to the SD. The log shows that the image is "shot". Saving of the images only occurs the next day when the timer starts again at 0 seconds. This is difficult to explain, so the follwoing code is a snippet of the log when the error occurs>

Quote
Tue   Oct   28   14:15:03   2014;   Shot; 245; tv:1/400; t861; a572; s401; b1057; V3958; T31                  00:15:00
Tue   Oct   28   14:30:03   2014;   Shot; 246; tv:1/400; t861; a572; s401; b1057; V3967; T31                  00:15:00
Tue   Oct   28   14:45:03   2014;   Shot; 247; tv:1/400; t861; a572; s401; b1057; V3958; T31                  00:15:00
Tue   Oct   28   15:00:03   2014;   Shot; 248; tv:1/400; t861; a572; s401; b1057; V3967; T32                  00:15:00
Tue   Oct   28   15:15:03   2014;   Shot; 249; tv:1/400; t861; a572; s401; b1057; V3967; T32                  00:15:00
Tue   Oct   28   15:30:03   2014;   Shot; 250; tv:1/400; t861; a572; s401; b1057; V3967; T33                  00:15:02
Tue   Oct   28   15:45:05   2014;   Shot; 251; tv:1/400; t861; a572; s401; b1057; V3995; T33                  00:15:00
Tue   Oct   28   16:00:05   2014;   Shot; 252; tv:1/400; t861; a572; s401; b1057; V3991; T34                  00:15:00
Tue   Oct   28   16:15:05   2014;   Shot; 253; tv:1/400; t861; a572; s401; b1057; V3991; T34                  00:15:00
Tue   Oct   28   16:30:05   2014;   Shot; 254; tv:1/400; t861; a572; s401; b1057; V3991; T34                  00:15:00
Tue   Oct   28   16:45:05   2014;   Shot; 255; tv:1/400; t861; a572; s401; b1057; V3991; T34                  00:15:00
Tue   Oct   28   17:00:05   2014;   Shot; 256; tv:1/400; t861; a572; s401; b1057; V3991; T33                  00:15:00

Basically, at 15:45, the seconds jumps from 03 to 05. At this time, no data is saved to the card but the log records as valid shot. In a month of continuous undisturbed operation this occured three times always during the afternoon.

Not sure why this occuring or if the script can be modifed to give some flexibility in the saving operation.

Burt

Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #262 on: 16 / November / 2014, 00:02:28 »
Not sure why this occuring or if the script can be modifed to give some flexibility in the saving operation.
I'm not sure what you are thinking about when you suggest giving some flexibility in the saving operation?  Like what?

The script does the same thing,  over and over and over, for days on end.  Then suddenly the camera firmware can't save images anymore.  And what the log shows is that, after the script tries to take a shot on the "even" minute boundary,  the log entry (made after the shot completes) suddenly starts happening 5 seconds after the shot is made rather than 3.  And the saving of the shot fails - which is probably what is causing the log entry to be a couple of seconds late.  And once it fails,  it stays failed until the script cycles the camera to playback at the end of the day.

But it's not the script failing.  Something else is wrong with the camera - the Canon firmware seems to have grown tired of saving shots.  From the log file you PM'd to me, it seems you are setting the camera to reset every 7 days.   I suppose that one possible solutions is to reset more frequently.  Unfortunately, there is not a lot more the script can do - the save failure is outside of its control from what I can tell.

Edit : one bizarre option would be to have the script watch the image counter, and if it stops advancing then cycle the camera through playback mode and back to shooting mode.  Or even do a full restart.  Kind of a disgustingly bad hack but it might keep you running with only one slightly out of sequence shot if the cam takes a picture automatically after the restart attempt.  Testing to make sure it actually worked would be a bit tricky.

« Last Edit: 16 / November / 2014, 00:15:36 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline timgor

  • ***
  • 150
Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #263 on: 19 / November / 2014, 10:22:23 »
What if you wouldn't use camera_reboot() function in your script?
What was the maximum time of your script testing?

Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #264 on: 19 / November / 2014, 20:17:39 »
What if you wouldn't use camera_reboot() function in your script?
Unknown. 

Canon never intended these cameras to run for hours without being powered down.  Never mind days or weeks.

For example. there is an internal tick counter that will wrap to negative after ~24 days and completely at 49 days. What happens then is unknown.

Quote
What was the maximum time of your script testing?
I've only run the script for a couple of days at a time. Others have reported back about running it for months at a time.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline ahull

  • *****
  • 634
Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #265 on: 20 / November / 2014, 07:55:07 »
For example. there is an internal tick counter that will wrap to negative after ~24 days and completely at 49 days. What happens then is unknown.

Is a "tick" in this context the same on all cameras (i.e an approximate fraction of a second), or is it, as seems more likely,  CPU clock dependent (i.e. a multiple of the CPU clock frequency, in other words a CPU cycle counter). - if the latter, then the random problems it might introduce would occur at a different interval depending on the speed of the digic in any particular camera model.

In other words, some cameras might wrap around to negative after 7 days, faster cpus would do so sooner, slower ones would take longer.

Whatever the truth about the above, I would suggest that a reboot at an interval less than 7 days will probably be the only easy fix for the problem.

Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #266 on: 20 / November / 2014, 08:59:41 »
For example. there is an internal tick counter that will wrap to negative after ~24 days and completely at 49 days. What happens then is unknown.

Is a "tick" in this context the same on all cameras (i.e an approximate fraction of a second),
10 mSec on all cameras so far.   The USB remote pulse timing code depends on it so we would have heard if this was not the case.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline timgor

  • ***
  • 150
Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #267 on: 20 / November / 2014, 09:46:06 »
Oh my gosh!!!
That is what happened to me every time. I have a long time script that run about 27 days and after that it ended up with a different errors. Now I know why. Thanks!

*

Offline timgor

  • ***
  • 150
Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #268 on: 21 / November / 2014, 09:58:22 »
By the way is there any way to reset ticks without restarting the camera?
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.
Is it not reliable to call reboot() function? I don't think that my camera has lens defect because manual button restart works perfectly without any bad known case.

*

Offline ahull

  • *****
  • 634
Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #269 on: 21 / November / 2014, 11:00:33 »
By the way is there any way to reset ticks without restarting the camera?
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.
Is it not reliable to call reboot() function? I don't think that my camera has lens defect because manual button restart works perfectly without any bad known case.

"Resetting the ticks" might be possible, but in effect this would hurtle the camera backwards in time with possibly unpredictable results.

The tick counter is used extensively by operating systems for things like timing loops, and interrupt related matters. Resetting it *might* work, but I expect what would actually happen is that the camera would crash, or throw some sort of a wobbler. 

Crashing when you reset on the other hand... not sure why it does that...   Does the script go in to playback mode prior to rebooting in order to stow the lens? If not, it might be worth trying that.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal