ptpcam gui

  • 95 Replies
  • 32913 Views
*

Offline rudi

  • ***
  • 123
  • A590IS_101B, SX260HS_100B
Re: ptpcam gui
« Reply #40 on: 11 / October / 2011, 14:10:14 »
Advertisements
I tried the recommended code in the ptp monitor.  It had no effect.
If you want to use ptpcam console, then use this command (incl. switch to record)
Code: [Select]
lua set_record(1) if (md_detect_motion()>0) then shoot() end
More important would be a return to the ability to show the camera led screen on the laptop in real time.  I gather that feature is eventually returning.
philmoz work on ptp extension for LiveView: http://chdk.setepontos.com/index.php?topic=4338.msg72009#msg72009

rudi

*

Offline msl

  • *****
  • 1239
  • A720 IS, SX220 HS 1.01a
    • CHDK inside
Re: ptpcam gui
« Reply #41 on: 12 / October / 2011, 05:50:47 »
ptpCamGui Update (revision 111)

-Added experimental function for AF lock. You can lock the AF in capture mode by switching a GUI button.
-Some small improvements

More about the GUI here (download 6 description): http://chdk.setepontos.com/index.php?topic=6285.msg64905#msg64905

msl
German CHDK pages:  CHDK forum | CHDK inside | CHDK Twitter News by msl | Download CHDK-DE (Autobuild)
Note: SDM violates the GPL rules!

Re: ptpcam gui
« Reply #42 on: 17 / October / 2011, 19:31:04 »
The early LiveView varinat chdkcam use a older ptp-protocol version and worked only with extra prepared chdk-versions. Newer cameras use a 256 byte color matrix for overlay colors. Chdkcam use only 16 byte packed color matrix.
I can see why the earlier PTP implementation was abandoned.

*

Offline msl

  • *****
  • 1239
  • A720 IS, SX220 HS 1.01a
    • CHDK inside
Re: ptpcam gui
« Reply #43 on: 04 / November / 2011, 08:25:19 »
ptpCamGui update (revision 113)

- Added functions for setting Ev, Av (only for cameras with Av mode) and MF (only for cameras with MF mode)
- Added an info section (battery & SD card level)
- Added a busy/ready indicator, displays state of communication GUI - camera
- Some small improvements

More about the GUI here (download & description): http://chdk.setepontos.com/index.php?topic=6285.msg64905#msg64905

msl
German CHDK pages:  CHDK forum | CHDK inside | CHDK Twitter News by msl | Download CHDK-DE (Autobuild)
Note: SDM violates the GPL rules!


Re: ptpcam gui
« Reply #44 on: 19 / November / 2011, 12:22:18 »
ptpCamGui update (revision 113)


Tried this with the latest CHDK autobuild, and the console says: 
Code: [Select]
** init() start ...
>> version << error: camera has unsupported camera version 2.1; some functionality may be missing or cause unintented consequences
ptpcam: 1.0
camera: 2.1 (Length: 142)

Then ptpCamGui shows a pop-up:
Code: [Select]
CHDK isn't started on camera!
ptpCamGui 2.0.113 will be closed now

Am I missing a step?

Here is my model info
Quote
Listing devices...
bus/dev vendorID/prodID device model
bus-0/\\.\libusb0-0001--0x04a9-0x31bf   0x04A9/0x31BF   Canon PowerShot A480
« Last Edit: 19 / November / 2011, 12:23:58 by sle118 »

*

Offline msl

  • *****
  • 1239
  • A720 IS, SX220 HS 1.01a
    • CHDK inside
Re: ptpcam gui
« Reply #45 on: 19 / November / 2011, 13:18:28 »
Tried this with the latest CHDK autobuild, and the console says: 
Code: [Select]
** init() start ...
>> version << error: camera has unsupported camera version 2.1; some functionality may be missing or cause unintented consequences
ptpcam: 1.0
camera: 2.1 (Length: 142)

You use an old ptpcam.exe (v1.0) - see the message in console. Delete the ptpcam.exe in your ptpCamGui folder. The ptpcam.dll from the ptpCamGui package will generate the correct ptpcam.exe for you.

msl
German CHDK pages:  CHDK forum | CHDK inside | CHDK Twitter News by msl | Download CHDK-DE (Autobuild)
Note: SDM violates the GPL rules!

Re: ptpcam gui
« Reply #46 on: 13 / December / 2011, 17:55:38 »
The PTPCamGui is a great piece of software! Someone should update the (very google-able) wiki to include that you can remotely take shots and download them.

There are several mentions to ptpcam.dll. Is there a .NET interface to this somewhere? (or any other environment, don't really care...)

Re: ptpcam gui
« Reply #47 on: 22 / December / 2011, 07:26:31 »
I'm trying to use ptpcamGUI with my G12. CHDK is working great on it, but so far I've been having trouble trying to make it work with ptpcamGUI. I've installed the libusb driver successfully, but whenever I connect the camera, start it in playmode and open the application, I'm getting the following error in the console (it keeps on looping):

Code: [Select]
** init() start ...
>> version << ptpcam: 2.0
camera: 2.1 (Length: 24)
>> script-support << script-support:0x1 lua=yes (Length: 26)
>> luar not(os.stat("A/CHDK/LUALIB/lptpgui.lua")==nil) << script:1
1:ret:false (Length: 21)
>> upload lptpgui.lua A/CHDK/LUALIB/lptpgui.lua << upload failed! (Length: 14) [unexpected return code 0x2002 (Length: 29)]
** init() fail

Anyone has any idea how I can solve this please?

EDIT: Solved this problem by creating a new directory named 'LUALIB" in the CHDK folder on the sd card, and it's working great now!
« Last Edit: 22 / December / 2011, 08:18:36 by mdebono »


*

Offline msl

  • *****
  • 1239
  • A720 IS, SX220 HS 1.01a
    • CHDK inside
Re: ptpcam gui
« Reply #48 on: 22 / December / 2011, 08:36:13 »
EDIT: Solved this problem by creating a new directory named 'LUALIB" in the CHDK folder on the sd card, and it's working great now!

Good to hear.

For your information: Use the complete package from autobuild server for your G12. This package includes all necessary subdirectories inc. files. For a fully functional ptpCamGui you need also CHDK/LUALIB/capmode.lua.

msl
German CHDK pages:  CHDK forum | CHDK inside | CHDK Twitter News by msl | Download CHDK-DE (Autobuild)
Note: SDM violates the GPL rules!

Re: ptpcam gui
« Reply #49 on: 22 / December / 2011, 09:41:34 »
For your information: Use the complete package from autobuild server for your G12. This package includes all necessary subdirectories inc. files. For a fully functional ptpCamGui you need also CHDK/LUALIB/capmode.lua.

Thanks! Was under the impression that I was using the full build, but apparently wasn't as I also had some other missing stuff including the symbols. Probably copied the wrong folder when I was playing around to get a 16gb sd card working with chdk.

 

Related Topics