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

CHDK PTP interface

  • 1244 Replies
  • 541226 Views
*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: CHDK PTP interface
« Reply #560 on: 02 / September / 2011, 08:48:31 »
Advertisements
hi phil,
any progress on your changes to the live preview or adding it to the trunk. ?

not that everything is not working as it should, just as it is, just hoping to get a little more juice out of it. at the moment im getting around 7fps. i know it is the code at my client side which is to be blamed but was hoping to optimize it only after the thing got incorporated in the trunk so that i do not have to worry about patching every time the trunk changes, :)

Had a busy week last week, then went whale watching over the weekend - actually took some photos for a change :)

I sent the the latest code to mweerden for review a couple of days ago - so I should have something to put into the core code soon.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: CHDK PTP interface
« Reply #561 on: 02 / September / 2011, 09:44:14 »
Quote

Had a busy week last week, then went whale watching over the weekend - actually took some photos for a change :)


hope u had a good time :)

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: CHDK PTP interface
« Reply #562 on: 02 / September / 2011, 20:02:51 »
Quote

Had a busy week last week, then went whale watching over the weekend - actually took some photos for a change :)


hope u had a good time :)

Yes, saw lots of whales and they were very curious and came right up to the boat.
Didn't get any shots of them breaching unfortunately; but got a few that I'm happy with (http://www.pbase.com/phil_a_mitchell/whalewatching)

Attached are two files.
The first is the PTP code patch for CHDK & SX130. If it works then this is what will be put into SVN for live view.
The second is my current test .Net code (based on mweerden's original).

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: CHDK PTP interface
« Reply #563 on: 03 / September / 2011, 09:53:29 »
hi phil,
managed to patch the DE version that i had and it compiled ok after a bit of tweaking

however could not compile your .net app as it is in a newer version (vs 2008) i could try adding the files manually and tweaking the few incompatible function but if you could just post the binary for the moment i could verify that the thing works ok
your old binary posted on the 130 forum does not recognize the cam - probably due to the PTP vers 2.1-

by the way....
excellent pics !!
« Last Edit: 03 / September / 2011, 10:00:02 by ntstatic »

Re: CHDK PTP interface
« Reply #564 on: 03 / September / 2011, 10:03:28 »
your old binary posted on the 130 forum does not recognize the cam - probably due to the PTP vers 2.1-
You can also change the CHDK code (see core/ptp.h) to match the version, but that won't help here as the code is incompatible, I'm sure.

Re: CHDK PTP interface
« Reply #565 on: 03 / September / 2011, 10:09:16 »
yes mweerden i thought about that - i just mentioned it because i did try it !

Re: CHDK PTP interface
« Reply #566 on: 03 / September / 2011, 10:18:07 »
though i dont think much has changed - which is the feeling i got while copying the changes from the patch file.

by the way is there a better way to patch - i am using the DE version with CHDK Shell and the patch always fails
ive since stopped trying to apply the patch and just make the changes in an editor

Re: CHDK PTP interface
« Reply #567 on: 03 / September / 2011, 10:50:06 »
by the way is there a better way to patch - i am using the DE version with CHDK Shell and the patch always fails
ive since stopped trying to apply the patch and just make the changes in an editor
This depends on the problem. If CHDK-DE doesn't differ too much in the changed files, patching shouldn't be much of a problem. There might be an issue with line endings, though, which seem to be able to confuse the patch tool.

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: CHDK PTP interface
« Reply #568 on: 03 / September / 2011, 18:29:50 »
hi phil,
managed to patch the DE version that i had and it compiled ok after a bit of tweaking

however could not compile your .net app as it is in a newer version (vs 2008) i could try adding the files manually and tweaking the few incompatible function but if you could just post the binary for the moment i could verify that the thing works ok
your old binary posted on the 130 forum does not recognize the cam - probably due to the PTP vers 2.1-

by the way....
excellent pics !!

Compiled version attached.
One note, there is a checkbox to 'autoupdate' the live view (also calculates the frame rate).
If you have this checked it will crash if you try and send other commands to the camera (it needs to stop the autoupdate before sending the command; but I haven't coded this yet).

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: CHDK PTP interface
« Reply #569 on: 05 / September / 2011, 01:30:42 »
runs ok gives me around 5.5fps

 

Related Topics


SimplePortal © 2008-2014, SimplePortal