Fandom

CHDK Wiki

Ptpcam in headless linux Dockstar

599pages on
this wiki
Add New Page
Talk0 Share

I wanted to make ptpcam work from my Dockstar, an Arm device with no video output, with debian squeeze installed, with a 1.8-inch 20gb hard drive.

I set up the build environment with the following:

apt-get install build-essential subversion git libusb-dev lua5.1 liblua5.1 liblua5.1-dev

I downloaded ptpcam from the German chdk forum and compiled:


cd /usr/src
svn co http://subversion.assembla.com/svn/chdkde/trunk/tools/ptpcam/
cd ptpcam
make
cp ptpcam /usr/lib/ptpcam

I plugged in my camera (an A590is) and executed the following commands:


ptpcam --chdk
<conn>mode 1
<conn>lua set_zoom(3)
<conn>lua shoot()
<conn>mode 0
<conn>download A/DCIM/133CANON/IMG_7436.JPG image
<conn>q
cp image /var/www

IMG_7436.JPG is downloaded to my dockstar as "image" and then is copied to my web server directory, /var/www.

Then in a browser, http://192.168.1.84/image shows the following:

Ptpcam1

ptpcam capture from dockstar

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki