IXUS 240/ELPH 320 HS Porting thread - page 28 - DryOS Development - CHDK Forum

IXUS 240/ELPH 320 HS Porting thread

  • 283 Replies
  • 57404 Views
*

Offline JvdP

  • ***
  • 174
Re: Re: ELPH300HS aka IXUS220HS - Porting Thread
« Reply #270 on: 24 / July / 2015, 04:19:03 »
Advertisements
Note that the screenshot looks like a touch screen camera (IXUS 240, presumably). IXUS 220 is not touch screen, AFAIK.

If it's confirmed as 240, I will move the posts.
Well spotted reyalp, you're right. I made a mistake, it's a 240HS.

*

Offline JvdP

  • ***
  • 174
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #271 on: 05 / August / 2015, 16:37:55 »
OK, so I've updated to the latest 1.4 from the hoernsche download page and I no longer have a crash when doing a set_aflock(1) or set_focus(1).

I've run a MF_test.lua and this resulted in a failure on the set_aflock() while all other tests passed.

I can now manage to set focus by using set_focus(). However, it doesn't seem to hold focus because the next shot is autofocus agian. How do I hold focus on this camera?
« Last Edit: 05 / August / 2015, 16:41:07 by JvdP »

*

Offline reyalp

  • ******
  • 12072
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #272 on: 05 / August / 2015, 16:51:16 »
I can now manage to set focus by using set_focus(). However, it doesn't seem to hold focus because the next shot is autofocus agian. How do I hold focus on this camera?
Are you using set_mf before you call set_focus? If you do, it should theoretically stay set.
Don't forget what the H stands for.

*

Offline JvdP

  • ***
  • 174
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #273 on: 06 / August / 2015, 12:28:56 »
Unfortunately, it doesn't seem to work that way.

Code: [Select]
___> c
connected: Canon IXUS 240 HS, max packet size 512
con> rec
con 1> =set_mf(1)
con 2> =set_focus(1)
con 3> rs
con 6> rs

The first shot (con 3) is set, the shot after that is autofocus again.

I don't think my camera supports manual focus, should it then support set_mf?


*

Offline reyalp

  • ******
  • 12072
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #274 on: 06 / August / 2015, 16:12:24 »
con 2> =set_focus(1)
I'm sure you camera cannot focus at 1mm. This *may* focus at the closest possible distance, but I wouldn't count on it.

Quote
I don't think my camera supports manual focus, should it then support set_mf?
It works on many cameras that do not have native MF, but CHDK is a hack so ¯\_(ツ)_/¯

Looking at the port, it's using the "PressSw1AndMF" which IIRC may have been a false positive in the test script because the camera can override in AF, it looks like it works even though the levent has no effect.

From the log you posted, it looks the the PT_MFOn / PT_MFOff eventprocs might work (though could be false positive as well?). Attached is a test build using this method.

If set_mf is working with this build, you should be able to see the focus change on the camera screen (or PTP live view) when you do something like
Code: [Select]
set_mf(1)
set_focus(50)
set_focus(10000)
Don't forget what the H stands for.

*

Offline JvdP

  • ***
  • 174
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #275 on: 06 / August / 2015, 16:41:46 »
I'm sure you camera cannot focus at 1mm. This *may* focus at the closest possible distance, but I wouldn't count on it.
Yes I was afraid this would be a problem. However during earlier tests, 1mm worked fine.

I tried set_focus(50) but it didn't make any difference. Sending the set_focus command doesn't seem to change focus on the camera. However I see the CHDK menu coming by a few milliseconds, indicating that CHDK is doing something...

Quote
It works on many cameras that do not have native MF, but CHDK is a hack so ¯\_(ツ)_/¯
Of course! I'm fully aware and I very much appreciate all the help. I would love to donate but I know it's not possible...

Quote
Attached is a test build using this method.
Thanks for that! Unfortunately my firmware is 102a. I've tried the zip (which is 101a?) on my camera but it doesn't even start...
« Last Edit: 06 / August / 2015, 16:43:19 by JvdP »

*

Offline reyalp

  • ******
  • 12072
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #276 on: 06 / August / 2015, 21:37:31 »
Thanks for that! Unfortunately my firmware is 102a. I've tried the zip (which is 101a?) on my camera but it doesn't even start...
Oops, sorry about that. I thought I got the right one from your log in the other thread, but I must have mixed it up.

102a build attached.
Don't forget what the H stands for.

*

Offline JvdP

  • ***
  • 174
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #277 on: 07 / August / 2015, 12:18:18 »
102a build attached.
YES! set_mf(1) works now exactly as expected. I can see focus changing after sending set_focus(). That's fantastic, thank you very much!


*

Offline reyalp

  • ******
  • 12072
Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #278 on: 07 / August / 2015, 15:59:42 »
102a build attached.
YES! set_mf(1) works now exactly as expected. I can see focus changing after sending set_focus(). That's fantastic, thank you very much!
Thanks for reporting and testing. I've checked this in for CHDK 1.3 and 1.4.
Don't forget what the H stands for.

Re: IXUS 240/ELPH 320 HS Porting thread
« Reply #279 on: 03 / January / 2016, 14:57:56 »
I have a problem to work chdk. I use everything like this post, but I can't work.

When I click to firmware, the camera restart, show the chdk logo, and then turn off.

I don't know what to do. My firmware is 1.00D

Thanks for help

 

Related Topics