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

CHDK PTP interface

  • 1227 Replies
  • 266761 Views
*

Offline msl

  • *****
  • 1263
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: CHDK PTP interface
« Reply #100 on: 22 / November / 2009, 07:25:15 »
Advertisements
PTP support for a610 100f and sx10 102b by CHDKLover
CHDK-DE:  CHDK-DE links

*

Offline whoever

  • ****
  • 280
  • IXUS950
Re: CHDK PTP interface
« Reply #101 on: 22 / November / 2009, 12:29:46 »
Before too late, I'd suggest to conduct a little discussion on how we actually want it, and whether we want it at all. CHDK PTP, that is. In other words, to formulate a standard if you wish. Does CHDK PTP go into the mainstream, or only remains in personal builds? If it makes it to the trunk, then in which shape? Etc.

(My personal point of view is pretty close to mweerden's: I'd suggest his well-documented implementation to become standard, with small modifications on both the camera side and in ptpcam. Note that ptpcam is easily portable to any platform, and that the basic implementation on the camera side only requires one function address.)

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: CHDK PTP interface
« Reply #102 on: 28 / November / 2009, 08:07:06 »
@msl:
I successfully tested my program under Win7 32-bit.
Libusb-win32 installation instructions under Vista - http://lejos.sourceforge.net/forum/viewtopic.php?t=541
Unfortunately, in this case the libusb-win32 driver completely replaces the standard Windows PTP driver.
To intall webcam driver under Win7, UAC system must be disabled at the time of installation of the driver.

*

Offline msl

  • *****
  • 1263
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: CHDK PTP interface
« Reply #103 on: 01 / December / 2009, 06:55:56 »
Thanks for this informations, ewavr.

rudi (from german CHDK forum) has made a not tested a590 100e version for a better compiler compatibility because of the exceptions in camera.h.
CHDK-DE:  CHDK-DE links


*

Offline rudi

  • ***
  • 126
  • A590IS_101B, SX260HS_100B
Re: CHDK PTP interface
« Reply #104 on: 04 / December / 2009, 15:50:41 »
Today, I tested the newest CHDKCAM and ewavr's BIN, but the "Shooting mode"-Box are empty.

Hint:
Answer "modes_script" form "main.cpp": > 0000000000000017631c30b7e <

Can you check this? Thanks!
« Last Edit: 04 / December / 2009, 15:53:49 by rudi »

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: CHDK PTP interface
« Reply #105 on: 04 / December / 2009, 17:28:00 »
Today, I tested the newest CHDKCAM and ewavr's BIN, but the "Shooting mode"-Box are empty.
Hint:
Answer "modes_script" form "main.cpp": > 0000000000000017631c30b7e <
Can you check this? Thanks!
Maybe delay for script execution was too small for your camera  :(
Now I uploaded PC client with bigger delay, try it.
At present we cannot read script execution state, but this is planned.

*

Offline rudi

  • ***
  • 126
  • A590IS_101B, SX260HS_100B
Re: CHDK PTP interface
« Reply #106 on: 04 / December / 2009, 18:10:21 »
Thanks for your fast answer.

Now I tested the new chdkcam. Usually I start the PC client at first and then the camera. In this moment show me the client an error-box without any message. After "OK" it works. I looking for cause - the messagebox is show after each turn on the camera.
Then I tested your previous client-version (03.12.09) again and it works also!?!

I'm sorry. It was a mistake on my part!

Now I know: "start at first the camera and then the application"

OK, the previous client-version is the better one.

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: CHDK PTP interface
« Reply #107 on: 04 / December / 2009, 18:28:24 »
In this moment show me the client an error-box without any message. After "OK" it works.
Oops! Fixed (maybe).
Quote
Now I know: "start at first the camera and then the application"
Just after connecting PC client executes some scripts in camera to read its capabilities (maximum zoom value and available shooting modes). Maybe we need some delay between these events.
p.s. In your camera script autostart is off?
« Last Edit: 04 / December / 2009, 18:30:54 by ewavr »


*

Offline rudi

  • ***
  • 126
  • A590IS_101B, SX260HS_100B
Re: CHDK PTP interface
« Reply #108 on: 05 / December / 2009, 13:47:54 »
Quote from: ewavr
p.s. In your camera script autostart is off?
Yes, it is.

Re: CHDK PTP interface
« Reply #109 on: 06 / December / 2009, 07:41:10 »
First of all: Thanks mweerden for the great work!

I located the PTP functions in the G9 1.00d firmware, if anyone else is interested:

NHSTUB(add_ptp_handler, 0xFF8D897C) // via ptp handler table
NHSTUB(get_ptp_handler_entry, 0xFF8D8F98)   // via add_ptp_handler
NHSTUB(get_ptp_handler, 0xFF8D8B10)   // directly below get_ptp_handler_entry
NHSTUB(rem_ptp_handler, 0xFF8D8A68) // directly below add_ptp_handler


 

Related Topics