CHDK PTP interface - page 16 - General Discussion and Assistance - CHDK Forum supplierdeeply

CHDK PTP interface

  • 1241 Replies
  • 491415 Views
*

Offline JMD

  • *
  • 34
Re: CHDK PTP interface
« Reply #150 on: 29 / December / 2009, 12:50:48 »
Advertisements
Thanks for everyone's hard work on this.  A special thanks to ewavr for making modes for the SX1 and getting chdkcam to work.  The SX1 works fairly well.  Everything seems to work except switching from record mode to play back.  That seems to be a common theme with this series of cameras.

What are the benefits of switching to play mode?  I will likely be downloading every picture in the camera anyway through the file transfer option in chdkcam (which works in record mode).  Would this work better in play mode?  Would it be faster?  Or would it allow me to mount the camera as a Windows removable storage and get faster downloads?  I'm just curious what this buys us.

Re: CHDK PTP interface
« Reply #151 on: 30 / December / 2009, 03:53:00 »
The problem is, that the G9 for example (an I assume all other DryOS cams, too) start in PLAY mode and I have to switch to record mode first   :)

*

Offline JMD

  • *
  • 34
Re: CHDK PTP interface
« Reply #152 on: 30 / December / 2009, 20:35:28 »
But chdkcam correctly switches my SX1 from "play" to "record".  I thought the problem people were have was in switching back to "play".

Does the problem occur when the USB cable is plugged in?  I noticed that if I plugged in the USB cable after the CHDK had started on the camera that 4 out of 5 times the camera would switch to "disk" mode (for lack of a better term) and not accept commands and not come out of it until I opened the battery compartment.  This is how I fixed it:

1) put a normal SD card in the camera
2) turn it on and plug in the USB cable
3) open "My Computer" in Windows
4) find the "Canon Camera" among your drives and right click
5) select "properties"
6) click on the "Events" tab
7) select "Take no action"
8 ) click "OK"

This keeps windows from trying to start a program to talk to the camera.  I found that this interfered with chdkcam and put the camera in a bad state.  Since I made this change to windows my camera never freezes up unless I click on "play" mode in chdkcam.

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: CHDK PTP interface
« Reply #153 on: 02 / January / 2010, 16:27:00 »
Everything seems to work except switching from record mode to play back.
If camera hangs, the problem maybe located in CHDK function:
Code: (c) [Select]

void switch_mode(int mode)
{
  if ( mode == 0 )
  {
    _Rec2PB();
    _set_control_event(0x80000902); // 0x10A5 ConnectUSBCable
  } else if ( mode == 1 )
  {
    _set_control_event(0x902); // 0x10A6 DisconnectUSBCable
    _PB2Rec();
  }
}
It seems that Rec2PB() address and magic number 0x80000902 are correct... Sorry, I can't find solution remotely, developer with SX1 wanted.


Re: CHDK PTP interface
« Reply #154 on: 23 / January / 2010, 15:08:56 »

Re: CHDK PTP interface
« Reply #155 on: 24 / January / 2010, 10:12:43 »
The problem is that after shooting the camnera always disconnects. If you reconnect again it works fine.
Is this a bug or it is the way the firmware was supposed to work ?

I can control the Zoom but the focus seems not to work whatever value I set.
I am trying also to set ansd reset the flash with set_pro 16 and it also seems not to work.

Re: CHDK PTP interface
« Reply #156 on: 24 / January / 2010, 10:14:58 »

Re: CHDK PTP interface
« Reply #157 on: 24 / January / 2010, 15:40:19 »
Is there a chdk build for A570 IS that have  PTP functionality?


Re: CHDK PTP interface
« Reply #158 on: 28 / January / 2010, 20:31:12 »

Re: CHDK PTP interface
« Reply #159 on: 10 / February / 2010, 04:46:13 »

 

Related Topics