example
ptpcam --chdk
upload ptpmsg.lua A/ptpmsg.lua
lua loadfile('A/ptpmsg.lua')()
putm ls A/
getm
exec return 1+1
getm
Not sure what I'm doing wrong here; but 'putm' and 'getm' give 'unknown command' error message.
Using ptpcam from 'Ptpcam-chdkde-r515.zip' and I've applied the CHDK patches from 'ptpmsg-work-2.zip' and rebuilt (camera is SX30).
You need to build a patched PTPcam too. Patch is against the source in chdkde
http://tools.assembla.com/chdkde/browser/trunk/tools/ptpcamThis is really an experiment, not intended as something for end users yet. But it is pretty functional.
I think the of approach of queuing messages is definitely the way to handle getting data back, but it needs quite different PTP client, because the client needs to be able to poll in the background. It also needs to be flexible enough to handle different scripts on the camera end. I'm still not sure exactly the best way to structure this, but I have some ideas...
Goals:
- easy enough for other developers to work on.
- portable, built with all free tools/libraries
- optional GUI
- PC side scripting/extending
- CHDKcam style live view
Current work uses
- ptpcam code for low level stuff, with everything that isn't CHDK related ripped out
- IUP 3.3
http://www.tecgraf.puc-rio.br/iup/ for gui
- Lua for both GUI (using IUP) and interface to CHDK PTP commands
- all builds with out of the box mingw gcc4.5 binary
I hope to get it in a usable enough state to put it in a public repository this weekend. Once that happens, chdk, chdkde and other interested developers will be welcome to contribute.