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

CHDK PTP interface

  • 1243 Replies
  • 504983 Views
Re: CHDK PTP interface
« Reply #670 on: 19 / February / 2012, 02:57:20 »
Advertisements
i always think of a solution in VB so probably i can do it faster that way.

Are you saying a VB application can extract the frames without requiring the VDub MOV plugin and without having QuickTime installed on your PC ?
QuickTime or Quicktime alternative (i think that is what it is called) is still required, but it wont be requiring VirtualDub. i already have the utility for extracting frames from avi's ready and working. mov should not be very different. however i will not be available in the next week so will be able to see how it turns up only after that.

contrary to belief, you can do quite a lot in vb. eg. my HID dongle (software lock) is totally accessed by vb6(totally no dlls etc), the hardware i use -stepper motor controller, etc is controlled by vb6 via usb apart from the database access etc which my regular softwares use. it is relatively faster to code in vb6, generally(compared to c or c++ for eg) which leaves more time for better features. and for a small (tiny) enterprise like mine (around 10 people) it is the way to go.

Re: CHDK PTP interface
« Reply #671 on: 19 / February / 2012, 08:46:41 »
contrary to belief, you can do quite a lot in vb. eg. my HID dongle (software lock) is totally accessed by vb6(totally no dlls etc), the hardware i use -stepper motor controller, etc is controlled by vb6 via usb apart from the database access etc which my regular softwares use. it is relatively faster to code in vb6, generally(compared to c or c++ for eg) which leaves more time for better features. and for a small (tiny) enterprise like mine (around 10 people) it is the way to go.
Slightly off topic now, but Microsoft no longer supports vb6.  Obviousy, its still usable but you never know when the next OS version or other package will no longer be compatible.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: CHDK PTP interface
« Reply #672 on: 19 / February / 2012, 14:46:05 »
I'm trying to get PTPcamGui working with my A560. Downloaded the latest build, and PTPCamGUI hangs on get_mode() when trying to switch to capture mode. There was a post about half a year ago, but couldn't really find a followup. Assuming this is the same issue, but wondering where to start to tackle this...

Re: CHDK PTP interface
« Reply #673 on: 20 / February / 2012, 00:54:56 »
contrary to belief, you can do quite a lot in vb. eg. my HID dongle (software lock) is totally accessed by vb6(totally no dlls etc), the hardware i use -stepper motor controller, etc is controlled by vb6 via usb apart from the database access etc which my regular softwares use. it is relatively faster to code in vb6, generally(compared to c or c++ for eg) which leaves more time for better features. and for a small (tiny) enterprise like mine (around 10 people) it is the way to go.
Slightly off topic now, but Microsoft no longer supports vb6.  Obviousy, its still usable but you never know when the next OS version or other package will no longer be compatible.

sorry to keep off topic - you are perfectly right waterwingz - but remember in most of these kind of utilities we are using the api anyways and if the next os breaks compatibility, unless it breaks the vb runtime specifically, i dont see y it would not break the same utility written in C or C++ too. anyways i am taking my risk - no doubt my new projects are in .net. but i hardly see the logic in writing a small utility in .net and then expecting for someone to download and install the framework (you would not believe how great of a percentage of my clients still use XP)


Re: CHDK PTP interface
« Reply #674 on: 20 / February / 2012, 01:01:01 »
I'm trying to get PTPcamGui working with my A560. Downloaded the latest build, and PTPCamGUI hangs on get_mode() when trying to switch to capture mode. There was a post about half a year ago, but couldn't really find a followup. Assuming this is the same issue, but wondering where to start to tackle this...

hello webguy,
can you verify the ptpcamgui version is latest
try using the CHDK DE version and see if it solves the problem
try PTPcam command line and verify that it actually fails on get_mode()
check if other commands work


Re: CHDK PTP interface
« Reply #675 on: 20 / February / 2012, 05:25:02 »
i hardly see the logic in writing a small utility in .net and then expecting for someone to download and install the framework

I really hate this lazy reliance on the .Net framework.
It makes it easier for the developer but inconvenient for many users.
I prefer to do development on an old PC because it is connected to a large-screen TV and is easier to view than my modern system.
There are a number of applications I will not run because of the bloat the .Net framework would add.

Quote
(you would not believe how great of a percentage of my clients still use XP)

I believe it, I do.
I see no reason to change, it does not cause me any problems, just the opposite.
« Last Edit: 20 / February / 2012, 10:08:26 by Microfunguy »

Re: CHDK PTP interface
« Reply #676 on: 21 / February / 2012, 14:40:03 »
hello webguy,
can you verify the ptpcamgui version is latest
try using the CHDK DE version and see if it solves the problem
try PTPcam command line and verify that it actually fails on get_mode()
check if other commands work
- Using latest PTPcamgui, version 2.0.113
- Tried using CHDK DE
- Other commands seem to work, but get mode() or set_record() don't seem to work. PTPCamGui ends in a loop like this:
Code: [Select]
>> luar get_mode() << script:10
10:ret:false (Length: 23)
>> luar get_mode() << script:11
11:ret:false (Length: 23)
>> luar get_mode() << script:12
12:ret:false (Length: 23)
>> luar get_mode() << script:13
13:ret:false (Length: 23)
>> luar get_mode() << script:14
14:ret:false (Length: 23)
>> luar get_mode() << script:15
15:ret:false (Length: 23)
>> luar get_mode() << script:16
16:ret:false (Length: 23)
>> luar get_mode() << script:17
17:ret:false (Length: 23)
Other commands on the command line seem to work, even when using the ptpcam command tool.

What's happening also is that in USB/PTP mode, none of the buttons work. The issue is essentially the same as here: http://chdk.setepontos.com/index.php?topic=4338.msg67930#msg67930 (in this same thread). That user however doesn't seem to have a resolution.

Any more ideas?

Re: CHDK PTP interface
« Reply #677 on: 21 / February / 2012, 14:43:47 »
Oh, did just test running "luar post_levent_to_ui(4484)" and that unlocks all the buttons except for the mode switch...


*

Offline rudi

  • ***
  • 129
  • A590IS_101B, SX260HS_100B
Re: CHDK PTP interface
« Reply #678 on: 21 / February / 2012, 15:42:52 »
- Other commands seem to work, but get mode() or set_record() don't seem to work.
All my tests showed, that we should not use set_record() on lua code over ptp. The better way is ptp command "mode".

rudi

Re: CHDK PTP interface
« Reply #679 on: 21 / February / 2012, 16:20:28 »
Just tried that, doesn't do anything either.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal