How can I shoot without the lenses? - page 10 - Hotwire! Hardware Mods, Accessories and Insights - CHDK Forum supplierdeeply

How can I shoot without the lenses?

  • 121 Replies
  • 61396 Views
Re: How can I shoot without the lenses?
« Reply #90 on: 11 / September / 2013, 09:03:21 »
Advertisements
=return peek(0x3050)
when the lens error screen appears, and see if it's still 0 or not.

Yes, the return is still 0.

Quote
To see the exact error list, you can use the following:
Code: [Select]
call_event_proc("UI.Create")
call_event_proc("UIFS_WriteFirmInfoToFile",0)
This will create a file named firminfo.txt in the root of the card.

Only apear a Zoom error,

"Canon PowerShot SX260 HS
P-ID:3244  NT D
Firmware Ver GM1.01A (1.0.1.0)
Adj Ver.005.011             
Serial No. 622032008978
Build: Jun  7 2012   20:01:32

Mecha Firm Ver.  3.00
MechaDSP Firm Ver.  0.00

2012.02.05 21:04:25  E18 ZoomLensSpeedError
2012.02.05 21:00:00  E18 ZoomLensSpeedError
2012.02.05 18:28:03  E18 ZoomLensSpeedError
2012.02.05 18:26:41  E18 ZoomLensSpeedError
2012.02.05 18:23:03  E18 ZoomLensSpeedError
2012.02.05 18:20:22  E18 ZoomLensSpeedError
2012.02.05 18:19:08  E18 ZoomLensSpeedError
2012.02.05 18:16:51  E18 ZoomLensSpeedError
2012.02.04 21:03:41  E18 ZoomLensSpeedError
2012.02.04 20:57:46  E18 ZoomLensSpeedError"


Quote
If all these fail, you're going to need to wire up either the original lens mechanism or a simulator...

Do you know were i get some information of how do a simulation hardware?



Thank a lot for all your help!
If you have another idea i be happy to try it.

*

Offline srsa_4c

  • ******
  • 4451
Re: How can I shoot without the lenses?
« Reply #91 on: 11 / September / 2013, 09:49:43 »
Yes, the return is still 0.
That means this setting is permanent until the cam is switched off.
I was kind of expecting DisableLensError to be the solution for all lens related error conditions. Apparently, this isn't the case.

Quote
2012.02.05 21:04:25  E18 ZoomLensSpeedError
2012.02.05 21:00:00  E18 ZoomLensSpeedError
2012.02.05 18:28:03  E18 ZoomLensSpeedError
2012.02.05 18:26:41  E18 ZoomLensSpeedError
2012.02.05 18:23:03  E18 ZoomLensSpeedError
2012.02.05 18:20:22  E18 ZoomLensSpeedError
2012.02.05 18:19:08  E18 ZoomLensSpeedError
2012.02.05 18:16:51  E18 ZoomLensSpeedError
2012.02.04 21:03:41  E18 ZoomLensSpeedError
2012.02.04 20:57:46  E18 ZoomLensSpeedError
Knowing the exact error message can give hints. I still expect that DisableLensError will prevent some of the errors from appearing.
Quote
Do you know were i get some information of how do a simulation hardware?
As your camera has one of the more complicated lens assemblies, you could take a look at the following threads:
http://chdk.setepontos.com/index.php?topic=5564.0
http://chdk.setepontos.com/index.php?topic=8801.0 (this one is huge and hard to follow, but has lots of information - you can use "print view" for easier overview).

Re: How can I shoot without the lenses?
« Reply #92 on: 11 / September / 2013, 12:55:34 »
Knowing the exact error message can give hints. I still expect that DisableLensError will prevent some of the errors from appearing.

I try to put .poke(0x3050,1) and after generate the file firminfo.txt

Change the error because i connect another lens motor (less broken), wich i have. Move the motor but no detect the "home" sensor i guess.


Canon PowerShot SX260 HS
P-ID:3244  NT D
Firmware Ver GM1.01A (1.0.1.0)
Adj Ver.005.011             
Serial No. 622032008978
Build: Jun  7 2012   20:01:32

Mecha Firm Ver.  3.00
MechaDSP Firm Ver.  0.00

2012.02.06 19:18:00  E18 ZoomLensError
2012.02.06 19:15:10  E18 ZoomLensError
2012.02.06 17:39:59  E18 ZoomLensSpeedError
2012.02.06 17:36:23  E18 ZoomLensSpeedError
2012.02.05 21:04:25  E18 ZoomLensSpeedError
2012.02.05 21:00:00  E18 ZoomLensSpeedError
2012.02.05 18:28:03  E18 ZoomLensSpeedError
2012.02.05 18:26:41  E18 ZoomLensSpeedError
2012.02.05 18:23:03  E18 ZoomLensSpeedError
2012.02.05 18:20:22  E18 ZoomLensSpeedError

*

Offline srsa_4c

  • ******
  • 4451
Re: How can I shoot without the lenses?
« Reply #93 on: 11 / September / 2013, 17:02:41 »
I try to put .poke(0x3050,1) and after generate the file firminfo.txt
peek(0x3050) should give you 1 by default (which means "lens errors" are enabled), so there's no point in poking the same value there.
Quote
Change the error because i connect another lens motor (less broken), wich i have. Move the motor but no detect the "home" sensor i guess.
Well, you'll need to discover the sensors in that lens unit. There will be "optoswitches" (I don't know the proper terms for these parts) which simply sense whether the light they emit is blocked or not, and there will be "encoders" which are also optical, but they are for counting impulses. If you try to take a look at the S90 thread I linked earlier, you'll see that several sensors had to be faked to make rec mode possible.

And of course
Of course best solution would be some kind CHDK feature so that external circuits are not needed.
I imagine something like: hijacking zoom task and assert relevant flag or ... But this is too complicated for me.
meelist is right...


Re: How can I shoot without the lenses?
« Reply #94 on: 17 / September / 2013, 12:27:57 »
Of course best solution would be some kind CHDK feature so that external circuits are not needed.
I imagine something like: hijacking zoom task and assert relevant flag or ... But this is too complicated for me.
meelist is right...

Hello, I'm keep trying to disable lens error, i have some questions if you can answer i will be grateful :
.poke(0x3050,0) change a byte or a bit of the ram?
do you know the function address which ask for the 0x3050?

thanks.

*

Offline srsa_4c

  • ******
  • 4451
Re: How can I shoot without the lenses?
« Reply #95 on: 17 / September / 2013, 14:55:19 »
.poke(0x3050,0) change a byte or a bit of the ram?
When size is not specified, it's a word (32 bit), see here.
Quote
do you know the function address which ask for the 0x3050?
Several lens hardware related functions check that, and decide to show an error or not depending on its value.
Unfortunately, understanding the hardware related code is very hard, I tried once and failed.
If you're brave, you can try to analyze a SX260 firmware dump using the information found on this page. You're going to need some ARM assembly skills for that. The other way is the external microcontroller way...

Re: How can I shoot without the lenses?
« Reply #96 on: 20 / September / 2013, 12:32:32 »
Hey, i have some questions if somebody can answer i be gratefull.

1. If i run the lua comand "Shoot()" in playback mode, take a picture any way?
2. where (in the code) could i read what the shoot command is doing?
3. the file "dump-sx260hs-101a.txt" located in "<compiler folder>/tunk/bin/logs", is complete chdk dump?

thaks.

*

Offline reyalp

  • ******
  • 14118
Re: How can I shoot without the lenses?
« Reply #97 on: 20 / September / 2013, 16:50:20 »
Hey, i have some questions if somebody can answer i be gratefull.

1. If i run the lua comand "Shoot()" in playback mode, take a picture any way?
No.
Quote
2. where (in the code) could i read what the shoot command is doing?
core/action_stack.c
Quote
3. the file "dump-sx260hs-101a.txt" located in "<compiler folder>/tunk/bin/logs", is complete chdk dump?
That's some kind of log file generated by chdkshell. I'm not sure what you mean by "complete chdk dump".
Don't forget what the H stands for.


Re: How can I shoot without the lenses?
« Reply #98 on: 23 / September / 2013, 11:08:44 »
core/action_stack.c

thaks for your answers, for what i undestand in de code, to take a picture calls "KEY_SHOOT_FULL". It that right?

in the kdb.c file of the sx 260 i found this
Code: [Select]
// Using Finsig
static KeyMap keymap[] = {
    { 1, KEY_PRINT           ,0x00800000 }, // KEY_PLAYBACK as ALT
    { 1, KEY_PLAYBACK        ,0x00800000 }, // Found @0xff441578, levent 0x101
    { 1, KEY_SHOOT_FULL      ,0x03000000 }, // Found @0xff441588, levent 0x01
    { 1, KEY_SHOOT_FULL_ONLY ,0x02000000 }, // Found @0xff441588, levent 0x01
    { 1, KEY_SHOOT_HALF      ,0x01000000 }, // Found @0xff441580, levent 0x00
....
    { 0, 0, 0 }
};

do you know whats this means?



*

Offline reyalp

  • ******
  • 14118
Re: How can I shoot without the lenses?
« Reply #99 on: 23 / September / 2013, 13:24:48 »
thaks for your answers, for what i undestand in de code, to take a picture calls "KEY_SHOOT_FULL". It that right?
That's not the only thing it does, it tries to wait for various things to be ready in the camera. If you just want to press the shoot button, you can use script click('shoot_full'). This also goes through the action stack.

Quote
Code: [Select]
in the kdb.c file of the sx 260 i found this
[code]// Using Finsig
static KeyMap keymap[] = {
    { 1, KEY_PRINT           ,0x00800000 }, // KEY_PLAYBACK as ALT
    { 1, KEY_PLAYBACK        ,0x00800000 }, // Found @0xff441578, levent 0x101
    { 1, KEY_SHOOT_FULL      ,0x03000000 }, // Found @0xff441588, levent 0x01
    { 1, KEY_SHOOT_FULL_ONLY ,0x02000000 }, // Found @0xff441588, levent 0x01
    { 1, KEY_SHOOT_HALF      ,0x01000000 }, // Found @0xff441580, levent 0x00
....
    { 0, 0, 0 }
};

do you know whats this means?
Yes, I do  :P

It's a mapping of key names to the MMIO bits (and physw_status bits) that represent the buttons on the camera.
Don't forget what the H stands for.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal