get_tick_count overflow after 24 days - page 5 - Script Writing - CHDK Forum supplierdeeply

get_tick_count overflow after 24 days

  • 60 Replies
  • 19448 Views
*

Offline Caefix

  • *****
  • 947
  • Sorry, busy deleting test shots...
Re: get_tick_count overflow after 24 days
« Reply #40 on: 24 / July / 2021, 12:41:49 »
Advertisements
as a quick fix..
:D Download & unzip toolchain and source ...
 https://chdk.setepontos.com/index.php?topic=12788.msg146260#msg146260
edit +...
https://chdk.setepontos.com/index.php?topic=13737.msg139833#msg139833
compile for Your cam...
All lifetime is a loan from eternity.

*

Offline c_joerg

  • *****
  • 1250
Re: get_tick_count overflow after 24 days
« Reply #41 on: 24 / July / 2021, 15:02:53 »
compile for Your cam...

There is no need for compile.

Maybe I have to set it only once when the camera reboots in chdkptp with a lua command?
Do you have any code snippets you use on your G1X you can share?

 
Code: [Select]
     --cancels the retract timer
      if (bi.platform=="sx50hs") and (bi.platsub=="100c") then
        call_func_ptr(0xFF049EB4)
        print("Cancel retract timer SX50Hs 100c")
      elseif (bi.platform=="s110") and (bi.platsub=="103a") then
        call_func_ptr(0xf8066b88)
        print("Cancel retract timer S110 103a")
      elseif (bi.platform=="sx230hs") and (bi.platsub=="101a") then
        call_func_ptr(0xff096474)
        print("Cancel retract timer SX230Hs 101a")
      elseif (bi.platform=="g1x") and (bi.platsub=="100e") then
        call_func_ptr(0xff099f1c)
        print("Cancel retract timer G1x 100e")
      elseif (bi.platform=="g1x") and (bi.platsub=="101a") then
        call_func_ptr(0xff099f50)
        print("Cancel retract timer G1x 101a")
      else
        print("No Cam")
      end

On forum.lrtimelapse.com you wrote "für eine bestimmte Zeit automatisch in den Shutdown schicken kann" do you have any code snippets how to code that? I could set the camera to shutdown for some hours as a quick fix..
Yes, but only for EOS M.
Script is here:
https://chdk.setepontos.com/index.php?topic=13956.0
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 Caefix

  • *****
  • 947
  • Sorry, busy deleting test shots...
Re: get_tick_count overflow after 24 days
« Reply #42 on: 24 / July / 2021, 15:13:50 »
No need to update stubs_entry.s ... :) ?
Quote
+// Additional params
+//         PARAM_REGIONAL_SETTINGS 8
+//         PARAM_RETRACT_DELAY 114
+
All lifetime is a loan from eternity.

*

Offline c_joerg

  • *****
  • 1250
Re: get_tick_count overflow after 24 days
« Reply #43 on: 24 / July / 2021, 15:34:57 »
No need for the code in   Reply #41
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 reyalp

  • ******
  • 14111
Re: get_tick_count overflow after 24 days
« Reply #44 on: 24 / July / 2021, 16:11:52 »
Do you know if this is possible without retracting the lens each time? ??? I actually don't know how many lense-retractions this camera can handle (also here a m lens would be better..)
I don't have any hard data, but I'd expect it to last a very long doing it twice a day. It's a very benign environment compared to a camera that's being carried around and used outdoors by a human.

You might also get somewhat less dust on the lens having it retracted most of the time.
« Last Edit: 25 / July / 2021, 14:14:51 by reyalp »
Don't forget what the H stands for.

*

Offline c_joerg

  • *****
  • 1250
Re: get_tick_count overflow after 24 days
« Reply #45 on: 25 / July / 2021, 02:42:22 »
You might also get somewhat less dust on the lens having it retracted most of the time.

Why? The G1x has a fixed lens cap, no curtains.
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: get_tick_count overflow after 24 days
« Reply #46 on: 25 / July / 2021, 14:21:52 »
Do you know if this is possible without retracting the lens each time? ??? I actually don't know how many lense-retractions this camera can handle (also here a m lens would be better..)
I don't have any hard data, but I'd expect it to last a very long doing it twice a day. It's a very benign environment compared to a camera that's being carried around and used outdoors by a human.

You might also get somewhat less dust on the lens having it retracted most of the time.

Actually the camera is placed in a quite dusty room  ::)

I experienced that part of the dust on the lens is carried inside the lens with each lens retracting. So that's why I use some lens cover to minimise dust... cleaning a p&s sensor is like a nightmare, I won't do that again.

After I saw the timelapse of the construction site with the horrible wobbling c_joerg posted earlier on this thread, I'm not sure if it is a good idea to retract the lens after each timelapse  ???
If you want to see a sunset or sunrise of Dolomiti Val Gardena shot with CHDK visit
Instagram: dolomiti_timelapse
YouTube: https://www.youtube.com/channel/UCEJHg--ujxLkjMrevJXh-Gw

*

Offline Mlapse

  • *****
  • 584
  • S95 S110
Re: get_tick_count overflow after 24 days
« Reply #47 on: 25 / July / 2021, 14:38:19 »
I'm not sure if it is a good idea to retract the lens after each timelapse  ???

every time it extends the lens there is a chance that there is a small shift in barrel distortion or, at most, a few pixels shift. but that is not different to touching the cam.
a stable mount will solve all other issues.
my system automatically retracts and extends the lens once a month and most of the times you can't see any difference between the pre and after images.
frustration is a key ingredient in progress


Re: get_tick_count overflow after 24 days
« Reply #48 on: 25 / July / 2021, 15:14:07 »
Code: [Select]
     --cancels the retract timer
      if (bi.platform=="g1x") and (bi.platsub=="100e") then
        call_func_ptr(0xff099f1c)
        print("Cancel retract timer G1x 100e")
      else
        print("No Cam")
      end


Thank you very much! I will try this out the next few days!

I need some more background information to better understand what I'm actually doing :'(

I found this website:  https://chdk.fandom.com/wiki/Lua/Lua_Reference/Native_Function_Calls
Calling native functions somehow goes deeper into the Canon firmware than just using the chdk functionality?

With that in mind, do I need to run testcallf https://chdk.fandom.com/wiki/Lua/Scripts:Standard/Test/Tstcallf first?

Is this change permanent until the camera is rebooted?

Also, I read here https://chdk.fandom.com/wiki/Ultimate_Intervalometer that
Quote
Also, make sure the Lens Retract setting in the Canon menu is not set to 0 sec
is this also the case for this native function call?

After running this function with lua as a chdkptp command for example, can I then use the rec and play command to go back and forth without the lens retracting, zooming or changing focus? 8)

I ask all this because I can only change the code remotely without physically being at home where the camera is placed :(
If you want to see a sunset or sunrise of Dolomiti Val Gardena shot with CHDK visit
Instagram: dolomiti_timelapse
YouTube: https://www.youtube.com/channel/UCEJHg--ujxLkjMrevJXh-Gw

Re: get_tick_count overflow after 24 days
« Reply #49 on: 25 / July / 2021, 15:16:41 »
I'm not sure if it is a good idea to retract the lens after each timelapse  ???

every time it extends the lens there is a chance that there is a small shift in barrel distortion or, at most, a few pixels shift. but that is not different to touching the cam.
a stable mount will solve all other issues.
my system automatically retracts and extends the lens once a month and most of the times you can't see any difference between the pre and after images.

Thanks!
If you want to see a sunset or sunrise of Dolomiti Val Gardena shot with CHDK visit
Instagram: dolomiti_timelapse
YouTube: https://www.youtube.com/channel/UCEJHg--ujxLkjMrevJXh-Gw

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal