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

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

  • 651 Replies
  • 218254 Views
Re: Ultimate Intervalometer - a script for shooting over a long duration - v4.8
« Reply #540 on: 18 / January / 2019, 09:38:46 »
Advertisements
The script will restore the zoom position to the value selected in the script user parameters each time it switches from playback to shooting mode.
Why is that necessary?
Maybe it's not necessary.  But when I wrote the script, I had no way to test every one of the 100 or so Powershot models supported by CHDK.  So I had no way to know if what you see on your camera works for every camera.  But resetting the zoom position always will.

Also, one way to use the "playback" mode for power saving or camera security / cleanliness when you are shooting over long intervals (60 minutes or more) is to allow the lens to retract between shots.  Does the zoom position also restore properly in that case?

For your camera, feel free to just delete the calls to update_zoom(zoom_setpoint) in function activate_display(seconds) at line 368.
« Last Edit: 18 / January / 2019, 09:43:44 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline c_joerg

  • *****
  • 1248
Re: Ultimate Intervalometer - a script for shooting over a long duration - v4.8
« Reply #541 on: 19 / January / 2019, 10:24:58 »
Also, one way to use the "playback" mode for power saving or camera security / cleanliness when you are shooting over long intervals (60 minutes or more) is to allow the lens to retract between shots.  Does the zoom position also restore properly in that case?
The whole thing works for up to a minute. In the Canon UI, there is a time that you can set at the lens goes in. The maximum value is unfortunately 1 minute. Maybe the function can be found in the firmware to increase this value.

I have now taken some temperature measurements (about 2 hours) with the SX50.
RAWOPINT with 20s interval => sensor goes up to 45C
Interval 20s with Playback    => Sensor goes up to a maximum of 36C
Interval 10min with playback => sensor goes up to 27C
M100 100a, M3 121a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

Re: Ultimate Intervalometer - a script for shooting over a long duration - v4.8
« Reply #542 on: 19 / January / 2019, 18:05:59 »
The whole thing works for up to a minute. In the Canon UI, there is a time that you can set at the lens goes in. The maximum value is unfortunately 1 minute. Maybe the function can be found in the firmware to increase this value.
I seem to recall writing a power saving script at one point that would (amongst other things) briefly toggle from playback to shooting to playback every 58 seconds. That left the lens out while lowering power consumption thru disabling the sensor in playback. I rationalized that the energy used to toggle modes was less than the energy needed to run the motors that would retract / extend the lens.
 
Extending the retract delay time seems possible but unless @srsa_4c has found a likely prop case or function in his explorations, somebody will need to do a lot of reverse assembly work to find it.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline srsa_4c

  • ******
  • 4451
Re: Ultimate Intervalometer - a script for shooting over a long duration - v4.8
« Reply #543 on: 21 / January / 2019, 18:20:56 »
Extending the retract delay time seems possible but unless @srsa_4c has found a likely prop case or function in his explorations, somebody will need to do a lot of reverse assembly work to find it.
https://chdk.setepontos.com/index.php?topic=4602.0
https://chdk.setepontos.com/index.php?topic=9287.0

Above links are about making the camera believe that the lens is retracted.
For newer cams, the address can be found in the IsLensOutside eventproc.
Enabling official script access to this variable is likely not going to happen as incorrect usage could result in lens remaining extended when cam is switched off.
Setting the lens retract delay would be safer, but I don't remember experimenting with that.


Re: Ultimate Intervalometer - a script for shooting over a long duration - v4.8
« Reply #544 on: 21 / January / 2019, 18:36:16 »


Enabling official script access to this variable is likely not going to happen as incorrect usage could result in lens remaining extended when cam is switched off.
Same thing happens if you pop the battery without shutting down the camera first and my cameras have always restated fine for me. Do your think poking the retract variable would be any worse?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline srsa_4c

  • ******
  • 4451
Re: Ultimate Intervalometer - a script for shooting over a long duration - v4.8
« Reply #545 on: 21 / January / 2019, 18:48:09 »
Same thing happens if you pop the battery without shutting down the camera first and my cameras have always restated fine for me. Do your think poking the retract variable would be any worse?
No, it would be about the same. I think that retracting the lens from an unknown state (such as the one you mentioned) is riskier than from a known state.

*

Offline srsa_4c

  • ******
  • 4451
Re: Ultimate Intervalometer - a script for shooting over a long duration - v4.8
« Reply #546 on: 22 / January / 2019, 18:14:55 »
FWIW, I found something better. A function that cancels the retract timer.
Second function call after the "AC:SStoreLensT" or "AC:SStoreLens" log string.

Code: [Select]
    FFC5E948   adr       r1, 0xFFC5EAE4 ; *"AC:SStoreLensT"
    FFC5E94C   mov       r0, #0x20
    FFC5E950   bl        0xffc547f4 ; <LogCameraEvent>
    FFC5E954   bl        0xffc5e46c ; <cancel_lensretract_uitimer>
    FFC5E958   ldr       r0, =0x406C
    FFC5E95C   mov       r2, #4
    FFC5E960   mov       r1, sp
    FFC5E964   bl        0xffc5c474 ; <PTM_RestoreUIProperty_FW>
Needs to be called after each rec->play transition (with the Canon retract time set to 1 minute), has no side effects.
Also on the above snippet, 0x406c contains the ID of the retract delay param. It is 0x6c = 108 on this cam.

*

Offline c_joerg

  • *****
  • 1248
Re: Ultimate Intervalometer - a script for shooting over a long duration - v4.8
« Reply #547 on: 23 / January / 2019, 02:09:14 »
I found something better. A function that cancels the retract timer.
That sounds really great

Second function call after the "AC:SStoreLensT" or "AC:SStoreLens" log string
Should I found the functions here?
chdk/trunk/platform/sx50hs/sub/100c/funcs_by_xxx

Needs to be called after each rec->play transition (with the Canon retract time set to 1 minute), has no side effects.
What exactly I have to call on my SX50 (100c) in lua?
M100 100a, M3 121a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd


*

Offline srsa_4c

  • ******
  • 4451
Re: Ultimate Intervalometer - a script for shooting over a long duration - v4.8
« Reply #548 on: 23 / January / 2019, 12:57:19 »
Should I found the functions here?
chdk/trunk/platform/sx50hs/sub/100c/funcs_by_xxx
Not yet.
Quote
What exactly I have to call on my SX50 (100c) in lua?
call_func_ptr(0xFF049EB4)
You can make a test script that only has that single line and execute it in playback mode (obviously, the lens has to be extended when you run the script).

*

Offline c_joerg

  • *****
  • 1248
Re: Ultimate Intervalometer - a script for shooting over a long duration - v4.8
« Reply #549 on: 23 / January / 2019, 13:42:55 »
call_func_ptr(0xFF049EB4)
You can make a test script that only has that single line and execute it in playback mode (obviously, the lens has to be extended when you run the script).

Great, many Thanks. It works. I tested it for 10 minutes.
What could be the reason why Canon limits time and has no option for ever?
M100 100a, M3 121a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

 

Related Topics