Is it possible to power on via CHDKptp - General Discussion and Assistance - CHDK Forum  

Is it possible to power on via CHDKptp

  • 3 Replies
  • 2581 Views
Is it possible to power on via CHDKptp
« on: 03 / July / 2013, 12:47:21 »
Advertisements
Hello,

Is there a command that can be sent with chdkptp to power on a camera?
I'm using
canon a470 1.02c
chdk 1.1.0 2870
chdkptp-r330-linux_x86_64
ubuntu 12.10

If I have the camera connected to chdkptp console, after a few minutes of inactivity the camera shuts itself off and I have to manually press the power button and reconnect. It would also be handy to be able to reboot the camera if it should crash and shut down at any point. My end goal is to have a completely remote system with the camera connected to a raspberry pi via usb, all running off a large battery (all controlled inside python but I haven't gotten that far yet).

Im not sure if this is relevant but each time I reconnect I get
___> c
open_camera_dev: ptp_opensession failed 0x2ff
open_camera_dev:usb_ptp_device_reset(): Device or resource busy
usb_ptp_get_device_status(): Device or resource busy
connected: Canon PowerShot A470, max packet size 64
con> list
*1:Canon PowerShot A470 b=003 d=028 v=0x4a9 p=0x317a s=7FF1D1BE1F8146C1A7BDE032EEDCA340


Thanks for any help you can give,
-murk


also as a  quick aside, how do you set things like shot_histo_enable in chdkptp console? I've tried
con 2> =return shot_histo_enable(1)
con 3> =return get_histo_range(100,800)
4:return:-1
and ever variant of "=shot_histo_enable(1)", "lua shot_histo_enable(1)", ".shot_histo_enable(1)" i can think of and "=return get_histo_range(a,b)" always returns -1

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: Is it possible to power on via CHDKptp
« Reply #1 on: 03 / July / 2013, 13:10:03 »
Is there a command that can be sent with chdkptp to power on a camera?
No.

If I have the camera connected to chdkptp console, after a few minutes of inactivity the camera shuts itself off and I have to manually press the power button and reconnect.
Use CHDK option 'Disable LCD Off' with 'Always'. This prevents the automatic shutdown.
=> http://chdk.wikia.com/wiki/CHDK_User_Manual#Disable_LCD_Off

msl
CHDK-DE:  CHDK-DE links

*

Offline srsa_4c

  • ******
  • 4451
Re: Is it possible to power on via CHDKptp
« Reply #2 on: 03 / July / 2013, 13:29:50 »
If I have the camera connected to chdkptp console, after a few minutes of inactivity the camera shuts itself off and I have to manually press the power button and reconnect.
Disable "auto power down" in the Canon menu.

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: Is it possible to power on via CHDKptp
« Reply #3 on: 03 / July / 2013, 14:42:26 »
Disable "auto power down" in the Canon menu.
We talk about the same CHDK function. But the entry is called "Disable LCD Off".  ;)

Btw., in my mind not the best association for this function.

msl
CHDK-DE:  CHDK-DE links


 

Related Topics