Switch CHDK cam on / off remotely? - General Discussion and Assistance - CHDK Forum

Switch CHDK cam on / off remotely?

  • 6 Replies
  • 4267 Views
Switch CHDK cam on / off remotely?
« on: 19 / March / 2014, 11:07:13 »
Advertisements
Hi,

Is there any way to switch the CHDK cams on / off remotely?
A friend of mine needs a function where he can switch on/off the cam by e.g. a signal on USB port.
If a trigger signal comes in (e.g. light sensor) the camera should wake up and be ready for taking a photo.
If the signal disappears again the cam should go back into sleep mode to save battery power.
If you switch off the cam by the 'normal' on/off switch then the camera is really off so CHDK is not working.
(correct me if I am wrong).
So what I need to help him is a kind of CHDK sleep mode. Where all camera functions are sleeping except watching the USB port for the wake up signal.

Do you think something like this will be possible?




2 x IXUS 860IS 100c
2 x Powershot S110 103a

Re: Switch CHDK cam on / off remotely?
« Reply #1 on: 19 / March / 2014, 12:11:25 »
Some early Canon P&S cameras apparently supported this.  The newer ones do not.

About the only thing you can do is rig something up mechanically to hold the power button down and then switch the battery power on/off remotely.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline srsa_4c

  • ******
  • 4451
Re: Switch CHDK cam on / off remotely?
« Reply #2 on: 19 / March / 2014, 14:47:32 »
Some early Canon P&S cameras apparently supported this.  The newer ones do not.
Cameras with this feature have a so-called "subcpu" which is always active when there is power. S2IS, S3IS, S80 are the ones I know about.

Re: Switch CHDK cam on / off remotely?
« Reply #3 on: 19 / March / 2014, 15:54:50 »
Hi,

thanks guys, the cam I am talking about is a S90 model.
So it seems there is only the mechanical solution.

Thanks anyway!
2 x IXUS 860IS 100c
2 x Powershot S110 103a

Re: Switch CHDK cam on / off remotely?
« Reply #4 on: 09 / June / 2015, 09:41:19 »
Hi,

I have a similar question for the S110.
I want to use the external battery to also switch the S110 on and off.
If the cam is on, and I take away the external battery then (of course) the cam does nothing but switch off immediately. Here two questions:

1.
Can this be done safely? Or does the S110 need a soft shutdown like e.g. a windows PC to complete some internal tasks??

2.
Before taking away the battery power is there any way to (smoothly) shutdown the camera first?
I mean I want to retract the lens first before taking away the battery power.
Is there any shutdown command available in CHDK I can execute and after that I can safely take away the battery power?

Thanks...
2 x IXUS 860IS 100c
2 x Powershot S110 103a

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: Switch CHDK cam on / off remotely?
« Reply #5 on: 09 / June / 2015, 10:21:41 »
1.
Perhaps ... file operations, lens operations?

2.
This is an easy task with Lua  ;) :
Code: [Select]
if get_mode() then
    set_record(false)
    while get_mode() do
           sleep(50)
    end
end
shutdown()

msl
CHDK-DE:  CHDK-DE links

*

Offline reyalp

  • ******
  • 14134
Re: Switch CHDK cam on / off remotely?
« Reply #6 on: 09 / June / 2015, 17:20:52 »
If you use
Code: [Select]
post_levent_to_ui'PressPowerButton'
It should be equivalent to pressing the physical button on the camera, including retracting the lens if needed and cleanly shutting down the filesystem.

Don't forget what the H stands for.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal