PTP Control for IXUS105 / SD1300 - CHDK Releases - CHDK Forum

PTP Control for IXUS105 / SD1300

  • 19 Replies
  • 10192 Views
PTP Control for IXUS105 / SD1300
« on: 26 / January / 2013, 10:04:00 »
Advertisements
Hi Everyone!

I have problem interfacing my IXUS105 Canon camera with PC. I downloaded chdk script for this camera version 100D and successfull added those script to my camera.. I used bootable method for update.

My problem is i cant get to control my camera from PC using "ptpCamGui2.0.134". First i tried to connect with camera without adding chdk script at that moment it connected to camera but then it gave the following error before i could explore anything:

 error: cannot get camera CHDK PTP version; either it has an unsupported version or no CHDK PTP support at all (Length: 109) [unexpected return code 0x2005 (Length: 29)]
** init() start ...
>> version << ptpcam: 2.0 (Length: 11) [unexpected return code 0x2005 (Length: 29)]

then i added chdk script using bootable method.. now software dont recognize any camera at all.. like nothing is connected to it. I also tried "chdkptp-r291-win32.zip" software but same error appears..

Any Help?
« Last Edit: 01 / February / 2013, 01:14:37 by NaveedESahar »
Naveed E Sahar

*

Offline srsa_4c

  • ******
  • 4451
Re: PTP Control for IXUS105 / SD1300
« Reply #1 on: 26 / January / 2013, 11:09:55 »
unexpected return code 0x2005
You may have enabled USB remote in CHDK settings, which blocks the USB port on the camera. Untick "Enable Remote" in the "Remote Parameters" menu.
If that was not enabled, you may need to (re-)install libusb-win32 for your camera.

Re: PTP Control for IXUS105 / SD1300
« Reply #2 on: 28 / January / 2013, 00:08:01 »
srsa_4c thanks for reply. "Enable Remote" in "Remote Parameters" was unchecked by default since the beginning. I uninstalled my lib-usbwin32 drivers which were previously installed before sd card was made bootable. And Now when I'm trying to install usb-libwin32 driver win boot enabled, camera device deosn't appear in the list.. same as i said: PC is behaving as nothing is connected to it when card is made bootable. any thoughts?
Naveed E Sahar

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: PTP Control for IXUS105 / SD1300
« Reply #3 on: 28 / January / 2013, 03:51:33 »
And Now when I'm trying to install usb-libwin32 driver win boot enabled, camera device deosn't appear in the list.
It seems you have installed the driver not in the right way. Follow this description: http://chdk.wikia.com/wiki/PTP_Extension#LibUSB_Driver_for_Windows

The driver can only be installed correctly if there is an active connection PC <=> camera.

msl
CHDK-DE:  CHDK-DE links


Re: PTP Control for IXUS105 / SD1300
« Reply #4 on: 28 / January / 2013, 06:01:34 »
msl, I have installed the drivers as instructed in your link.. when I install the libusb drivers, I can't access the pictures stored in camera directly which is the sign that usb drivers are installed perfectly. Here is my situation:

when nothing installed: ptpcam software keeps on waiting for camera
when libusb-win32 drivers are installed: usblib-win32 drivers with camera name in sub-directory appears in device manager. ptpcam software initially displays connected in status bar and then immediately gives the error i copied in my first message.
when CHDK Firmware is Installed using bootable method: Camera act like nothing is connected when it's connected to pc.. niether pc acknowledge anything when CHDK firmware is updated, nothing appears in device manager. and ptpcam software keeps on waiting for camera.

I'm going in circles here, installing one thing uninstalling 2nd thing.. Dont know how to get this software work.
Naveed E Sahar

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: PTP Control for IXUS105 / SD1300
« Reply #5 on: 28 / January / 2013, 06:53:16 »
Okay, the driver installation seems to be correct. The sd card is bootable. CHDK runs.

When you try to connect, runs the camera in play or in record mode?

For the CHDK PTP connection you need the play mode. You can start the camera with the [>] button.

msl
CHDK-DE:  CHDK-DE links

*

Offline ahull

  • *****
  • 634
Re: PTP Control for IXUS105 / SD1300
« Reply #6 on: 28 / January / 2013, 08:46:16 »
At the risk of muddying the water here, this is what I observe with my SD1300 IS

CHDK Ver 1.2.0-2517
FW Ver 100d

Computer is Raspberry Pi, works fine with the IXY 25 (SD770)

If I power up the camera with CHDK off (write protect on SD card off) using the (>) button , the PI  "sees" the camera.
lsusb shows...

Bus 001 Device 006: ID 04a9:31f4 Canon, Inc.

.. so far so good.
If I enable CHDK (Write protect On on the SD card), power up the camera using the (>) button.
Camera starts, CHDK screen shows, however lsusb does *not* show the camera.

All of the remote parameters are as follows

Enable Remote [off]
Switch type [None]
Control Mode [None]
---
Enable Synch [off]
Enable Synch Delay [off]
Synch Delay 0.1ms [ 100]
Enable script Start [Off]

... so it looks like there may be an issue, at least with the version I have here.

Re: PTP Control for IXUS105 / SD1300
« Reply #7 on: 29 / January / 2013, 03:02:44 »
@msl, I usually run the camera in Play mode when it's connected to PC. But I have tried everything else to get this thing work tried power button as well opening shutter etc. As I said before, Camera behaves as if nothing is connected to its port. I can even take pictures while it's connected to pc via usb hub.

@ahull, Maybe This is the Linux version of the same problem.
Naveed E Sahar


*

Offline srsa_4c

  • ******
  • 4451
Re: PTP Control for IXUS105 / SD1300
« Reply #8 on: 29 / January / 2013, 10:54:00 »
I found a typo and some missing lines in the 1.00d port. Test version (CHDK 1.1!) attached, please report whether it helps. DISKBOOT.BIN + modules only, you need to use a bootable SD card.

Code: [Select]
Index: platform/ixus105_sd1300/sub/100d/boot.c
===================================================================
--- platform/ixus105_sd1300/sub/100d/boot.c (revision 2519)
+++ platform/ixus105_sd1300/sub/100d/boot.c (working copy)
@@ -172,8 +172,12 @@
                  "MOV     R0, #0x53000\n"
                  "STR     R0, [SP,#4]\n"
                  //"LDR     R0, =0x12E9FC\n"
+#if defined(OPT_CHDK_IN_EXMEM)
+                 "LDR     R0, =0x12E9FC\n"
+#else
                  "LDR     R0, =new_sa\n"        // + remove the line ^ if using these two
                  "LDR     R0, [R0]\n"           // + this is related to chdk size
+#endif
                  "LDR     R2, =0x2F9C00\n"
                  "LDR     R1, =0x2F24A8\n"
                  "STR     R0, [SP,#8]\n"
@@ -266,7 +270,7 @@
                  "BL      sub_ffc239e4\n"
                  "LDR     R1, =0xC0220000\n"
                  "MOV     R0, #0x44\n"
-                 "STR     R0, [R1,#0x20]\n"
+                 "STR     R0, [R1,#0x1c]\n"
                  "BL      sub_ffc23bd0\n"
  "loc_ffc0fb30:\n"
                  "B       loc_ffc0fb30\n"
edit: attachment no longer useful, removed
« Last Edit: 09 / April / 2013, 19:00:40 by srsa_4c »

Re: PTP Control for IXUS105 / SD1300
« Reply #9 on: 30 / January / 2013, 06:13:44 »
srsa thanks for your work but unfortunately it didn't work. Card is bootable. I tested your attached CHDK version still can't able to access camera from PC. Same problem.
« Last Edit: 09 / April / 2013, 09:21:52 by NaveedESahar »
Naveed E Sahar

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal