A470 Crashing during script - Script Writing - CHDK Forum

A470 Crashing during script

  • 4 Replies
  • 3810 Views
A470 Crashing during script
« on: 15 / May / 2011, 15:34:41 »
Advertisements
I have a timelapse script that is crashing my camera.

It seems that if I call set_aflock while the LCD is off the camera just turns off.

I've set the LCD off time on the camera to 3 minutes to deal with the problem so far, but I'm trying to do a really long time lapse (2-3months) and I can't get the script to keep running.

I also noticed the camera turns off at the same point if I plug in an AV cable.

Cannon A470 1.01B, CHDK 0.9.9 build 958 and 1064

Is there a command I can run to wake the camera up so that the set_aflock will not crash, or does anyone have any other ideas?

This simple script demonstrates the problem:
Code: [Select]
--[[
Script demonstrates the crash condition
]]
--[[
@title crashtest
--]]


print("Focus")

-- Set and lock focus.
set_aflock(1)

sleep(1000)

print("shoot")
shoot()

sleep (20000)
print("refocus") 

-- Camera turns off here.
set_aflock(1)

sleep(1000)

print("shoot")
shoot()

*

Online reyalp

  • ******
  • 14125
Re: A470 Crashing during script
« Reply #1 on: 15 / May / 2011, 15:51:37 »
Pressing a key should wake the camera up, right ? E.g click("set")

FWIW, I would not expect the camera to run continuously for months on end. The canon firmware was never designed to do this. You'll want to reboot periodically somehow.

Don't forget what the H stands for.

Re: A470 Crashing during script
« Reply #2 on: 15 / May / 2011, 16:21:30 »
Pressing a key should wake the camera up, right ? E.g click("set")

FWIW, I would not expect the camera to run continuously for months on end. The canon firmware was never designed to do this. You'll want to reboot periodically somehow.

That seemed to work, thank you for the quick reply!

I keep my eye on the camera as I run the time lapses, so far I've never had the camera lock up on me (other than for script bugs :)). however the longest I've run it was 3 weeks, but that was without focusing.

(over 92000 images taken with this thing so far and I bought it in Dec 2010 so I'm averaging over 600 shots a day)
« Last Edit: 15 / May / 2011, 16:28:33 by dodald »

*

Online reyalp

  • ******
  • 14125
Re: A470 Crashing during script
« Reply #3 on: 15 / May / 2011, 16:32:14 »
Pressing a key should wake the camera up, right ? E.g click("set")

FWIW, I would not expect the camera to run continuously for months on end. The canon firmware was never designed to do this. You'll want to reboot periodically somehow.

That seemed to work, thank you for the quick reply!

I keep my eye on the camera as I run the time lapses, so far I've never had the camera lock up on me. however the longest I've run it was 3 weeks, but that was without focusing.

(over 92000 images taken with this thing so far and I bought it in Dec 2010 so I'm averaging over 600 shots a day)
Just FWIW, at ~24 days, the tick counter wraps around into negative, and at ~49 it wraps completely. Getting close to either of those could cause unexpected behavior in CHDK, scripts, or the original firmware.

Some people also find they run out of memory: http://chdk.setepontos.com/index.php?topic=6372.0

But if it works, that's great :)

What sort of intervals are you using ? Are you using eye-fi to transfer the images ?
Don't forget what the H stands for.

Re: A470 Crashing during script
« Reply #4 on: 15 / May / 2011, 16:49:14 »
Just FWIW, at ~24 days, the tick counter wraps around into negative, and at ~49 it wraps completely.

I guess I am getting close to the limit there!  I'll keep that in mind, I'll have to manually reboot occasionally.

What sort of intervals are you using ? Are you using eye-fi to transfer the images ?

No eye-fi, I have 2 16gb memory cards (Dual Partitioned), and I can take ~5000 images on 1, which at 60fps gets me about 1.5 minutes of video (3.5 at 24fps). I usually target 5000 so if I need 3 weeks I set my interval to ~6 minutes.

The one I'm trying now is an 11 minute interval.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal