Reboot the camera in script - Script Writing - CHDK Forum supplierdeeply

Reboot the camera in script

  • 5 Replies
  • 2207 Views
Reboot the camera in script
« on: 13 / September / 2011, 02:25:13 »
Advertisements
Hello!

Someday somewhere somebody asked if it's possible to reboot camera in script. Since it's not simple to do so I found easy walk-around and I like to share it.

The idea is to emulate checking the Update Firmware from the menu. The simplest code looks like:

Code: [Select]
@title reboot

print "Will reboot now!"
sleep 1000

click "menu"
click "up"
click "set"
click "right"
sleep 100
click "set"
end


Nevertheless it's possible only when camera is in play mode and lens are retracted. I know how to swich to the play mode but don't know how to retract the lens immediately after that...
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

*

Offline fe50

  • ******
  • 3119
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: Reboot the camera in script
« Reply #1 on: 13 / September / 2011, 03:17:30 »

Re: Reboot the camera in script
« Reply #2 on: 14 / September / 2011, 12:28:19 »
Unfortunetly, reboot frozes my camera (SX130) and I need to remove bateries then...
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

*

Online reyalp

  • ******
  • 12796
Re: Reboot the camera in script
« Reply #3 on: 14 / September / 2011, 22:20:13 »
Unfortunetly, reboot frozes my camera (SX130) and I need to remove bateries then...
That would be a bug.
Don't forget what the H stands for.


Re: Reboot the camera in script
« Reply #4 on: 15 / September / 2011, 04:24:03 »
Well, maybe it is. I don't know, where is a kind of bugzilla to report this?

Camera frozes only when in record mode or record mode with opened lens. While in play mode it reboots normally.
« Last Edit: 15 / September / 2011, 04:25:37 by outslider »
if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

Re: Reboot the camera in script
« Reply #5 on: 15 / September / 2011, 15:10:32 »
Well, maybe it is. I don't know, where is a kind of bugzilla to report this?

Here you go :  http://chdk.kernreaktor.org/mantis/my_view_page.php

Although you will probably get more action if you post to the SX130 porting thread rather than creating your own thread.
http://chdk.setepontos.com/index.php?topic=5691.msg70203#msg70203

Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics