chdkptp - alternative ptp client - page 27 - General Discussion and Assistance - CHDK Forum supplierdeeply

chdkptp - alternative ptp client

  • 1106 Replies
  • 551203 Views
Re: alternative ptp client
« Reply #260 on: 28 / October / 2012, 06:03:24 »
Advertisements
Hi !

I have a Powershot S2 IS with "CHDK-DE_s2is-100f-1.1.0_rev_2228" installed.
"libusb-win32-bin-1.2.6.0" and "chdkptp-r311-win32" on the computer.
When I start chdkptp I can see the latest picture in play-mode and see the files on the camera.
But the camera doesn't react to commands.
When i press "rec" i get
error: :82: module 'capmode' not found:
   no field package.preload['capmode']


I'm for sure doing something wrong or missing something, but what ?

Thanks in advance

Edit: Chdk wasn'tinstalled in a correct way...
New complete install, but now it freezes/hangs when I press "rec", without any errormessages.

On first "rec":
error: error loading module 'GEN/modelist' from file 'A/CHDK/LUALIB/GEN/modelist.LUA':
   cannot fopen A/CHDK/LUALIB/GEN/modelist.LUA

On second "rec" no respons/hangs.
« Last Edit: 28 / October / 2012, 08:58:08 by skrylten »

*

Offline srsa_4c

  • ******
  • 4451
Re: alternative ptp client
« Reply #261 on: 28 / October / 2012, 08:56:42 »
I have a Powershot S2 IS
The S1IS, S2IS, S3IS models use a different hardware design. They have an additional CPU that makes the built-in timelapse feature possible, and also enables the camera to "wake up" when USB is connected. This could be the reason that not all features of CHDK's PTP support work as expected.
What exactly happens when you hit the "rec" button in chdkptp? Is the USB connection gone? What happens with the camera? Does it crash / freeze? What does the camera do if you remove the USB cable after this?

You may need to use the official remote capture support of the camera (with software like Canon's RemoteCapture, gphoto, etc.), which chdkptp does not support.

*

Offline srsa_4c

  • ******
  • 4451
Re: alternative ptp client
« Reply #262 on: 28 / October / 2012, 09:04:31 »
On first "rec":
error: error loading module 'GEN/modelist' from file 'A/CHDK/LUALIB/GEN/modelist.LUA':
   cannot fopen A/CHDK/LUALIB/GEN/modelist.LUA
The complete CHDK install package should include that file. Make sure that the CHDK folder in the install archive is completely unpacked to your SD card (with all the files and subdirectories).

Re: alternative ptp client
« Reply #263 on: 28 / October / 2012, 09:14:11 »
The file is there, but what about the first "A/" ? Is "A" the camera (no A map exists).

On first "rec":
error: error loading module 'GEN/modelist' from file 'A/CHDK/LUALIB/GEN/modelist.LUA':
   cannot fopen A/CHDK/LUALIB/GEN/modelist.LUA

On second "rec" no respons/hangs.

Nothing happens with the camera if I remove the usb cable. Its still responsive to whatever I want to do with it.

So this might be a dead end for me ...  :(


*

Offline srsa_4c

  • ******
  • 4451
Re: alternative ptp client
« Reply #264 on: 28 / October / 2012, 09:23:18 »
The file is there, but what about the first "A/" ? Is "A" the camera (no A map exists).
The camera calls the SD card "A", "A/CHDK" is the CHDK directory on the card, etc.
Quote
cannot fopen A/CHDK/LUALIB/GEN/modelist.LUA
The camera tells you that this file is missing. Make sure you copy it to the card.
Quote
So this might be a dead end for me ...  :(
Don't give up yet.

Re: alternative ptp client
« Reply #265 on: 28 / October / 2012, 09:30:05 »
Confused, can't see whats wrong...
« Last Edit: 28 / October / 2012, 09:31:36 by skrylten »

*

Offline srsa_4c

  • ******
  • 4451
Re: alternative ptp client
« Reply #266 on: 28 / October / 2012, 09:41:23 »
Confused, can't see whats wrong...
Well, me neither.
Can you open that file with CHDK's file viewer? Or, what happens, if you attempt to download it with chdkptp?

Re: alternative ptp client
« Reply #267 on: 28 / October / 2012, 12:58:48 »
Its strange, but I dont get those errormessages every time.
I can open the files with CHDK's viewer, but cant do anything from chdkptp.

Its like I can see what's on the camera but not communicate with it.
For most of the "buttons" in chdkptp I can see something like ****FINISHED**** flash briefly on the cameras LCD but no other response.
If I press "rec" chdkptp hangs with no response.
If I close chdkptp and give it a new try, it says a script is running for every button i press.


*

Offline reyalp

  • ******
  • 14118
Re: alternative ptp client
« Reply #268 on: 28 / October / 2012, 15:01:53 »
The fact that you can browse the directory tree means you are successfully communicating with the camera.

The intermittent error with capmode is very strange, I don't know what to think about that.

I don't know if mode switching while connected to USB has ever been tested on S2IS, it's possible it doesn't work.

To narrow down exactly where the problem occurs, you can call individual lua functions on the camera from the console. For example, you can try:
Code: [Select]
=return os.stat('A/CHDK/LUALIB/GEN/MODELIST.LUA')
the result should be a table if the camera is able to access the file.
You could also do
Code: [Select]
=return require'gen/modelist'
which should return a table with all the known CHDK modes, indicating the file was read OK.

You can try to switch to record mode using
Code: [Select]
=switch_mode_usb(1)
this doesn't require capmode or modelist.

Note when you plug the camera into USB, the mode switch should probably be in the 'play' position.

Quote
If I close chdkptp and give it a new try, it says a script is running for every button i press.
This indicates that some previous script never completed. If you can identify exactly which call failed to end, that might be helpful.
Don't forget what the H stands for.

Re: alternative ptp client
« Reply #269 on: 28 / October / 2012, 15:33:52 »
Thanks for all your efforts !
1. Restarted computer
2. Started chdkptp
3. Pressed "play"
4. Connected usb cable
5. "Connect" in chdkptp
6. Tested your codes

See result below

Seems like I can get info from the camera but not change anything from chdkptp.
« Last Edit: 28 / October / 2012, 15:44:35 by skrylten »

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal