CHDK PTP DLL - General Discussion and Assistance - CHDK Forum

CHDK PTP DLL

  • 1 Replies
  • 2884 Views
CHDK PTP DLL
« on: 26 / April / 2018, 10:20:41 »
Advertisements
Sooo....searching was not my friend so far, so I figured I would just ask.  Is there anyone who has put together a DLL version of the necessary code to talk to a CHDK equipped camera via PTP.  I'm specifically looking for connect, image list, and image download, if that helps at all.  Unfortunately, my C-fu is not strong enough to do a DLL conversion myself, so I figured before I dove down that rabbit hole, I'd check and see if anyone else had already gone in that direction...

*

Offline reyalp

  • ******
  • 14125
Re: CHDK PTP DLL
« Reply #1 on: 26 / April / 2018, 13:39:52 »
Short answer:
No. Not as a ready to use, standalone library.

Longer answer:
If you just want the low level PTP protocol, compiling ptp.c from chdkptp (https://app.assembla.com/spaces/chdkptp/subversion/source/HEAD/trunk/ptp.c) or the chdkde ptpcam (https://app.assembla.com/spaces/chdkde/subversion/source/HEAD/trunk/tools/ptpcam) shouldn't be very difficult.

Note that the protocol is (by design) quite minimal, so do file listing, you need to run camera side lua code and return the results as returns or messages.

Other related stuff:
The is a .net library (https://chdk.setepontos.com/index.php?topic=9148.msg94643#msg94643), though I don't know know what the current state of it is.

Some people have also built chdkptp as lua shared library, for use with luapython e.g. https://github.com/jbaiter/chdkptp.py

There is also some support for the CHDK extension in gphoto2. I don't know much about this

You could run chdkptp and pipe stdin/stdout or arrange some other communication channel.


If you describe a little more what you are trying to do, we might have other suggestions.
Don't forget what the H stands for.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal