CHDK PTP interface - page 28 - General Discussion and Assistance - CHDK Forum

CHDK PTP interface

  • 1244 Replies
  • 528424 Views
*

Offline yvesson

  • ***
  • 209
  • A540 SX10IS
    • poll about some pics (not much serious) ^^
Re: CHDK PTP interface
« Reply #270 on: 17 / October / 2010, 16:10:01 »
Advertisements
Hej,
Well it's great news, except I couldn't make it work on my A540. :/
I compiled it with the option enabled and got the tool from ewrar website, I also needed some libusb but not sure if I got it right, anyway nothing happens when I start CHDKcam. :(
I feel kinda left-handed with all that, please someone could sum up again the steps to make it work, thanks.

*

Offline reyalp

  • ******
  • 14121
Re: CHDK PTP interface
« Reply #271 on: 17 / October / 2010, 16:53:14 »
Hej,
Well it's great news, except I couldn't make it work on my A540. :/
I compiled it with the option enabled and got the tool from ewrar website, I also needed some libusb but not sure if I got it right, anyway nothing happens when I start CHDKcam. :(
I feel kinda left-handed with all that, please someone could sum up again the steps to make it work, thanks.
Unfortunately, the current version is not compatible with chdkcam. You have to use ptpcam patched with mweerdens code, and as mentioned before there's no support for chdkcams live view.

For libusb-win32, I used 1.2.2.0 filter, and used the filter wizard to add the cam.
Don't forget what the H stands for.

Re: CHDK PTP interface
« Reply #272 on: 17 / October / 2010, 17:00:50 »
@yvesson

Need more information than that.

I do not know about the latest trunk build, let me tell you what I did with my own build.

With the camera connected, I ran  libusb.
That installed libusb0.dll in the \Windows\system32 folder.
I compiled my version of PTP and a 'special' version of mweerden's ptpcam.

I connect camera to PC and closed any window that popped up.

In MyComputer, I right-clicked on camera icon and in properties set 'do nothing' for the 'on-connect' event.

I do not have Canon Camera Services on my PC so did not have to disable with Windows Task Manager.

In playback mode, booted camera with the USB remote switch disabled.
Heard the 'on connect' event.

In a coomand console, navigated to ptpcam folder and typed ptpcam -r.

ptpcam responded with OK message.

Typed ptpcam --chdk

<conn> mode 1

switched to Record mode

Typed 'run time_lapse.bas'   (but that is another story)

*

Offline yvesson

  • ***
  • 209
  • A540 SX10IS
    • poll about some pics (not much serious) ^^
Re: CHDK PTP interface
« Reply #273 on: 17 / October / 2010, 17:21:25 »
Hej,
Okej guys thanks for the answer, there's what I missed : PTPcam. Is there a usable version downloadable somewhere ? I managed to compile CHDK with the help of whim's tool, but I don't think I'll go further than that. :/

How far are we from being able to use CHDKcam ?


*

Offline reyalp

  • ******
  • 14121
Re: CHDK PTP interface
« Reply #274 on: 17 / October / 2010, 17:40:20 »
Hej,
Okej guys thanks for the answer, there's what I missed : PTPcam. Is there a usable version downloadable somewhere ? I managed to compile CHDK with the help of whim's tool, but I don't think I'll go further than that. :/
My build of ptpcam is here http://drop.io/reyalp_chdk/asset/ptpcam-mingw-reyalp-test-zip

the non-chdk functionality seems a bit broken, but maybe I just don't understand it. Some of the help messages in the CHDK section are also wrong.

ptpcam development seems pretty dead, we may want to fork our own CHDK specific version, or maybe just write our own tool. It would be nice to have something cross platform and easy to build. A library that others could build on would be ideal.
Quote
How far are we from being able to use CHDKcam ?
1) CHDKcam is written with Borland c++ builder, so people without that can't easily update it. I don't know if there is a free tool that can build this code (Borland released some of their command line compilers for free, but it's been a long time since I looked at this)
2) CHDKcam needs to be updated to talk to the current CHDK/ptp protocol
3) The current PTP implementation doesn't include the functions required by some features, e.g. live view. These shouldn't be too hard to add. In the original patches, this required camera specific code, but I think it could be generic for most.
Don't forget what the H stands for.

*

Offline hwntw

  • ***
  • 159
Re: CHDK PTP interface
« Reply #275 on: 17 / October / 2010, 18:39:13 »
1)
Quote
CHDKcam is written with Borland c++ builder, so people without that can't easily update it. I don't know if there is a free tool that can build this code (Borland released some of their command line compilers for free, but it's been a long time since I looked at this)
https://downloads.embarcadero.com/free/c_builder
Ixus 300HS S100


Windows 10

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: CHDK PTP interface
« Reply #276 on: 18 / October / 2010, 12:56:36 »
My build of ptpcam is here http://drop.io/reyalp_chdk/asset/ptpcam-mingw-reyalp-test-zip
I tried to build my ptpcam mod with mingw (32-bit vista) once and finally got it to compile but wasn't able to connect to a camera. I'm pretty sure I didn't install enough/correct device drivers/whatever, so I have no clue what part isn't working so just gave up...I have next to no patience when it comes to things on windows, has anyone written a beginner's guide to getting this thing to work there? :'(

I was really just attempting to get ptpcam's autoconf stuff to work again so that chdk-ptpcam could be compiled on 32/64-bit Linux and mingw without modification.

*

Offline whoever

  • ****
  • 280
  • IXUS950
Re: CHDK PTP interface
« Reply #277 on: 18 / October / 2010, 14:50:01 »
I have next to no patience when it comes to things on windows
Quite understandable. Although, IMHO, it is better to do exercise patience in the face of such a calamity.

Otherwise, ptpcam should easily compile under the normal CHDK win environment. I've just verified that, if I   (i) get patched ptpcam source here, (ii) modify the paths in the makefile to match my environment, and (iii) run gmake in the ptpcam directory, then I get a working ptpcam.exe.


Re: CHDK PTP interface
« Reply #278 on: 18 / October / 2010, 14:54:51 »
@fudgey

Have you followed the steps in message 272 above ?


*

Offline yvesson

  • ***
  • 209
  • A540 SX10IS
    • poll about some pics (not much serious) ^^
Re: CHDK PTP interface
« Reply #279 on: 18 / October / 2010, 15:00:31 »
Hej,
I gave up too, I got an error message when I wrote ptpcam --chdk. :(


 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal