CHDK PTP interface

  • 1136 Replies
  • 147299 Views
*

Offline yvesson

  • ***
  • 204
  • A540 SX10IS
    • poll about some pics (not much serious) ^^
  • Publish
    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.
    poll, which is the best... ?
    + my pics on the same site

    *

    Offline reyalp

    • ******
    • 9810
  • Publish
    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.

  • Publish
    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

    • ***
    • 204
    • A540 SX10IS
      • poll about some pics (not much serious) ^^
  • Publish
    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 ?
    poll, which is the best... ?
    + my pics on the same site


    *

    Offline reyalp

    • ******
    • 9810
  • Publish
    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

    • ***
    • 132
  • Publish
    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 G9


    Windows XP SP3

    *

    Offline fudgey

    • *****
    • 1705
    • a570is
  • Publish
    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
  • Publish
    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.


  • Publish
    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

    • ***
    • 204
    • A540 SX10IS
      • poll about some pics (not much serious) ^^
  • Publish
    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. :(

    poll, which is the best... ?
    + my pics on the same site

     

    Related Topics