A490 Porting - page 17 - DryOS Development - CHDK Forum supplierdeeply

A490 Porting

  • 224 Replies
  • 91142 Views
Re: A490 Porting
« Reply #160 on: 15 / January / 2012, 15:59:59 »
Advertisements
Okay, I tried with a switch but got same symptoms. I switch on momentarily (i.e. a fraction of a second) both for autofocus and for shutter release. Camera takes two pictures with about 10 second interval between them. Repeatedly got the same results with both A490s I have.
Try it with Enable Synchable Remote [  ] disabled.

The sequence should be :
1) Press and hold for focus / exposure / flash settings.
2) Release
3) Press again quickly (< 1/2 second) to take a picture.

Assuming you don't need sync, that should do it ?
Ported :   A1200    SD940   G10    Powershot N    G16

Re: A490 Porting
« Reply #161 on: 23 / January / 2012, 02:55:13 »
Ok, I'm about ready to test my 24-camera single-trigger shutter release setup.  Does anyone know if there's a way to capture/copy/transfer all the normal camera menu settings, either via usb to my Mac, or onto a card, so that I can set one camera up and then dump all the settings to all the other cameras?  (Without having to go through and manually page through the menus and set everything, and hope I don't miss something.)

Thanks for any info!

- Jance

Re: A490 Porting
« Reply #162 on: 23 / January / 2012, 07:55:32 »
Ok, I'm about ready to test my 24-camera single-trigger shutter release setup.  Does anyone know if there's a way to capture/copy/transfer all the normal camera menu settings, either via usb to my Mac, or onto a card, so that I can set one camera up and then dump all the settings to all the other cameras?  (Without having to go through and manually page through the menus and set everything, and hope I don't miss something.)
You can copy the CCHDK.CFG file from the CHDK directory on your SD card to replicate your CHDK setup between cameras.   As far as I know,  there is no easy way to move the Canon settings between camera although you could probably play with your shooting script to set things up the way you want assuming each camera starts from its default configuration.  Getting that right might be a bit of work - you'd have to weigh that against the time to set each camera up by hand.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: A490 Porting
« Reply #163 on: 23 / January / 2012, 13:22:23 »
Hi all!
Is motion detection trigger working with the beta version of CHDK for a490? Because I found it for a good price and I'm interested in this feature  :D
Anyways, thanks for your work!


ptpCamGui for A490
« Reply #164 on: 30 / January / 2012, 21:43:58 »
So, I have been mostly successfully triggering my 24-camera setup via one usb switch.  Very cool!  It does get a bit flakey here and there - sometimes a few cameras don't shoot, and then the next time I press the button, they do shoot while the others go into autofocus, so it messes up the sequence and I have to restart those out-of-sync cameras.  But it's mostly working!

I'm continuing my r&d and now I'm trying to get ptpCamGui to work.  I did this part:

----------
All the client applications below require libusb-win32 driver on windows. Available for Windows 2000, Windows XP 32 Bit, Windows Vista 32/64 Bit, Windows 7 32/64 Bit.
1. Extract archive.

2. Connect camera via USB and turn on in play mode.

3. Search in extracted archive in subdirectory for inf_wizard.exe and run this file.

4. Select in the second window 'Device Selection' your camera.

5. The driver will be provided and installed.

6. No PC reboot is needed.
----------

And I turned off the Remote options in the Misc. chdk menus, so now when I launch ptpCamGui.exe, the Console at least looks like it's trying to talk to the camera.  But it just loops through over and over:

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

And then sometimes a window pops up that says "LUA support for CHDK is required."

I'm a bit stuck so I thought I'd ask here again.  The programming/scripting stuff is largely beyond me.  Thanks for any help!

- Jance


Re: A490 Porting
« Reply #165 on: 31 / January / 2012, 14:20:51 »
I read back through some older posts, and tried creating a LUALIB directory on the sd card in the CHDK folder, and that worked for me too.  So now ptpCamGui is controlling camera!  But, when I take one picture, it seems to get stuck in a loop.

The PTPCAM Console just shows

>>script-status<<script-status:0x1 run=yes msg=no (Length: 32)

over and over.  It seems like it's not terminating the "take picture" command or something?

- Jance

Re: A490 Porting
« Reply #166 on: 31 / January / 2012, 15:10:35 »
So now I see that the full .zips have all the lua directories, so I copied those onto my card.

Still trying to figure out how to exit the loop after I take a picture via the ptpCamGui interface.

Thanks for any help!

- Jance

Re: A490 Porting
« Reply #167 on: 31 / January / 2012, 15:16:09 »
If I let it time out after a few minutes, the PTPCAM Console shows >>shutdown and a window pops up showing

AutoIt Error
Line 2972 (File
"C:\Users\jancea\Desktop\JA_Local\123D_Catch\ptpCamGui\ptpCamGui\ptpCamGui.exe"):
Error: Subscript used with non-Array variable
OK

- Jance


*

Offline reyalp

  • ******
  • 14118
Re: A490 Porting
« Reply #168 on: 31 / January / 2012, 22:55:24 »
Responding to PM here
I hope it's cool to pm you with a question (waterwingz suggested I contact you after I posted in the IRC).
It's generally better to post in the forum. If I know the answer, I will answer there, and if other people run into the same problem, they can benefit from the discussion.

I am not involved in the development of ptpcamgui and don't use it, so it's unlikely that I'll be able to help you with anything specific to that.
Quote
Console just shows this over and over: >>script-status<<script-status:0x1 run=yes msg=no (Length: 32).
This looks like the shoot() command is never finishing.

This can happen if the camera is refusing to take the shot (for example, autofocus can't find anything to focus on or something like that). In this case it could depend on your settings and the specific scene. I believe waterwingz was looking into a problem like this, ideally it should time out at some point rather than sitting forever.

It could also be in a bug in the port, if it's not correctly reading the camera status.

Does shoot() work in a regular script loaded from the UI, not connected to PTP ? You can try the ubtest.bas script in the test directory. This shoot, along with several other things.
Don't forget what the H stands for.

Re: A490 Porting
« Reply #169 on: 31 / January / 2012, 23:04:49 »
This can happen if the camera is refusing to take the shot (for example, autofocus can't find anything to focus on or something like that). In this case it could depend on your settings and the specific scene. I believe waterwingz was looking into a problem like this, ideally it should time out at some point rather than sitting forever.
I actually wake up at 3 A.M. thinking about that code.  Its become my life mission figuring out how to test it once I apply the obvious fix.
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal