Chdkptp in headless linux Dockstar - remote control

565pages on
this wiki
Revision as of 07:09, February 27, 2012 by Fe50 (Talk | contribs)

I wanted to make the work-in-progress alternative to ptpcam, chdkptp, work from my Dockstar, an Arm device with no video output, with debian squeeze installed, with a 1.8-inch 20gb hard drive. There is an active thread for chdkptp here:

I downloaded chdkptp with svn:

cd /usr/src
svn co chdkptp
cd chdkptp

The developer, reyalp, was helpful with a number of items which still require intervention by hand. I downloaded a ptp.h file which differs from the ptp.h file in the svn download, and put it into /usr/src/chdkptp/core. I did this by downloading it to my laptop and copying it to the dockstar with Winscp. The file came from here:

Per reyalp's guidence, I copied a config file "cp /usr/src/chdkptp/" and edited it by changing "CHDK_SRC_DIR=/path/to/chdk/source" to "CHDK_SRC_DIR=/usr/src/chdkptp". I then ran "make" to compile the program.

When I ran the program, there were some errors regarding lua files. I found the files in the "lua" subdirectory, and so switched to that: cd /usr/src/chdkptp/lua. Running again got me into the program and connected to my camera (an A590is). Note that the mode switch commands are different from ptpcam

/usr/src/chdkptp/lua# /usr/src/chdkptp/chdkptp -i -c
<con> =switch_mode_usb(1)
<con> lua set_zoom(3)
<con> lua shoot()
<con> =switch_mode_usb(0)
<con> download A/DCIM/133CANON/IMG_7440.JPG /var/www/7440.jpg

IMG_7440.JPG is downloaded directly my web server directory, /var/www.

Then in a browser, shows the following; note that the dockstar is visible on the left of the photo.

If you follow the thread, you will see that my path to reaching this result was not so straightforward.

chdkptp remote grab from dockstar
LyzbyAdded by Lyzby

Around Wikia's network

Random Wiki