A490 Porting - page 19 - DryOS Development - CHDK Forum

A490 Porting

  • 224 Replies
  • 91010 Views
Re: A490 Porting
« Reply #180 on: 02 / February / 2012, 02:04:05 »
Advertisements
waterwingz -

Just a quick update that changing the remote options to just Enable Remote (option one on the remote support diagram) has made things stable and consistent.  So much better!  Thanks.

- Jance

his 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).
From IRC information, this theory is wrong because the camera takes the shot first. This implies it's not detecting the shot was completed, which seems more likely to be a bug in the port.
I think its more an issue that he is setting both Enable Remote and Enable Syncable Remote.  If the timing is not exact, some cameras get behind and miss the sync signal.

Re: A490 Porting
« Reply #181 on: 02 / February / 2012, 02:10:35 »
reyalp -

Thanks for the reply.  If I get good enough results with my current rig (good enough meaning the results of the generated 3d models) and I prove that this approach is worthwhile, then I'll look more into changing the system to be computer-controlled, like a multi-ptpCam.exe, and get coding help.

Thanks!

- Jance

*

nosebleed

Re: A490 Porting
« Reply #182 on: 12 / April / 2012, 15:26:24 »
Hello again!
I need to get the scene luminance on A490. So I try

Code: [Select]
press("shoot_half")
sleep(500)
b = get_bv96()
print("Luminance ", b)
release("shoot_half")

But I don't think I get true results because the B value on 'OSD Misc values' shows another value :(
Is the code wrong?

Second question is if the set_aflock(1) really works on this camera...
« Last Edit: 12 / April / 2012, 15:28:25 by nosebleed »

*

nosebleed

Re: A490 Porting
« Reply #183 on: 13 / April / 2012, 08:01:55 »
Ok, found it. But partially.
The following function returns me the Bv value.

Code: [Select]
function get_bv()
press("shoot_half")
sleep(500)
Bv = get_prop(34)
printf("%d.%02d", Bv/100, math.abs(Bv) % 100)
release("shoot_half")
end

But this isn't what I actually wanted.
What I want is the luminance (cd/m^2)
Luminance is calculated using floating point numbers.
However, LUA scripts do not support floating point numbers.
The only way to provide the end user with luminance is to export the native c++ function into a lua function.
This can be done easily by adding the following code. Thanks to user jgrahamc from #highaltitude on freenode.

Code: [Select]
   
core/luascript.c:
    -----------------
    static int luaCB_get_luminance( lua_State* L )
    {
      lua_pushnumber( L, shooting_get_luminance() );
      return 1;
    }
     
    Further down
    ------------
     
    FUNC(get_luminance)

I wish to hear that the next revision will support this :)


*

JEM3

Re: A490 Porting
« Reply #184 on: 24 / July / 2012, 02:03:03 »
Hi there,
Using CHDK stable remote (V1.0.0d), I've gotten an RC switch to operate the shutter for stills, start & stop video, and wake up (a half press).The remote shutter operation in V2 seems a little unpredictable. I'm wondering if there is any work going on to get the Remote V2 in 1.1.0d for the A490 going so the remote ZOOM will function. I'm really interested in doing this so I have zoom functionality while an RC craft is in the air...
Jim:)

Re: A490 Porting
« Reply #185 on: 24 / July / 2012, 05:30:36 »
Using CHDK stable remote (V1.0.0d), I've gotten an RC switch to operate the shutter for stills, start & stop video, and wake up (a half press).
Are you using a script to do this ?  What does your hardware configuration look like ?

Quote
The remote shutter operation in V2 seems a little unpredictable.
Are you sure that you don't mean that the remote operation in V1 seems a little unpredictable ?  If not, then what are you seeing in V2 that leads you to that conclusion ?

Quote
I'm wondering if there is any work going on to get the Remote V2 in 1.1.0d for the A490 going so the remote ZOOM will function.
Nothing specific to the A490 but the code is common to all cameras.   The V2 zoom code is different that what was in V1, partly because the V1 code was hard to use and parly because the V1 code did not work reliably on all cameras.  What specifically do you want to do ?


Ported :   A1200    SD940   G10    Powershot N    G16

*

JEM3

Re: A490 Porting
« Reply #186 on: 28 / July / 2012, 15:27:28 »
waterwingz- Thanks for responding so quickly, I unfortunately had some things to take care of and was delayed.
Question 1
I'm NOT using a script, just the built-in functionality.
Attachment shows the hardware config. On the right side, the brown wire is ground (-), and the red wire is +5V and the yellow is a servo signal wire. On the left, black is ground (-) and red is USB power + (which connect to the correct connector pins). The USB spec for cable power is minimum 4.75V and maximum 5.25V, so I felt confident in using the radio control system's nominal +5 volts, expecting that Canon would design the camera to tolerate that range. (CHDK notes say 3V to 5V OK for the A490).

Here's the behavior of the 'stable' remote version
Notes on 100d-1.0.0-1994-0
7/16/2012
downloaded via ACID

V1 Remote default menu shown below

Enable Remote         [  ]
---------- Synchable remote -------------
Enable Synchable remote      [  ]
Enable Synch         [  ]
Enable Synch Delay      [  ]
Synch Delay 0.1ns         [100 ]
Synch Delay 0.1ms         [ 0 ]
Enable Remote Zoom      [  ]
Zoom Time-out 0.1s      [ 5 ]

Remote parameter/s not set(as above) remote switch does not trigger shutter (screen goes dark momentarily and click is heard, but no image recorded)
In shoot mode, if display power down occurs, remote switch wakes up
In shoot mode, if camera power down occurs (lens retracts) remote switch no effect
   (In playback mode, display won't power down)

Enable Remote         [ * ]
---------- Synchable remote -------------
Enable Synchable remote      [  ]
Enable Synch         [  ]
Enable Synch Delay      [  ]
Synch Delay 0.1ns         [100 ]
Synch Delay 0.1ms         [ 0 ]
Enable Remote Zoom      [  ]
Zoom Time-out 0.1s      [ 5 ]


Remote parameter/s set: remote enabled, as above
   First press on remote-> produces half press, (focus.exposure set only)
   2nd press on remote-> produces full press (takes picture) - must do rapidly after first.

Enable Remote         [ * ]
---------- Synchable remote -------------
Enable Synchable remote      [ * ]
Enable Synch         [  ]
Enable Synch Delay      [  ]
Synch Delay 0.1ns         [100 ]
Synch Delay 0.1ms         [ 0 ]
Enable Remote Zoom      [  ]
Zoom Time-out 0.1s      [ 5 ]


Remote parameter/s set: remote enabled, as above
   OSD small frame white
   First press on remote-> OSD small frame green
   2nd press on remote->  display goes dark, 'busy' 10 sec delay, then photo

Enable Remote         [ * ]
---------- Synchable remote -------------
Enable Synchable remote      [ * ]
Enable Synch         [ * ]
Enable Synch Delay      [  ]
Synch Delay 0.1ns         [100 ]
Synch Delay 0.1ms         [ 0 ]
Enable Remote Zoom      [  ]
Zoom Time-out 0.1s      [ 5 ]


Remote parameter/s set: remote enabled, as above
   OSD small frame white
   First press on remote-> OSD small frame green
   2nd press on remote->  display goes dark, 'busy' 10 sec delay, then photo
   same as previous setup

Enable Remote         [ * ]
---------- Synchable remote -------------
Enable Synchable remote      [  ]
Enable Synch         [  ]
Enable Synch Delay      [  ]
Synch Delay 0.1ns         [100 ]
Synch Delay 0.1ms         [ 0 ]
Enable Remote Zoom      [ * ]
Zoom Time-out 0.1s      [ 5 ]


Remote parameter/s set: remote enabled, as above
   When in ALT mode, First press on remote-> starts loaded script


*

JEM3

Re: A490 Porting
« Reply #187 on: 28 / July / 2012, 15:45:44 »
Regarding the development remote, I loaded  a490-100d-1-1-1993. My statement was intended to be diplomatic and unfortunately unclear. I could not get camera to perform a half or full press with or without 'enable remote' checked or zoom functions checked. I've read how the remote code was restructured and read the 'Remote V2' docs. The V2 version was loaded correctly and active as I saw in the splash page and the new remote menu. I haven't gotten a chance to do as complete an analysis of functionality as I did for v1.0.0.

The zoom  1 thru 5 pulse recognition described the the V2 docs would work great for me as long as it would recognition slow (relatively) 'manual' pulses (i.e. 1 sec or so).


Re: A490 Porting
« Reply #188 on: 28 / July / 2012, 15:46:25 »
Attachment shows the hardware config. On the right side, the brown wire is ground (-), and the red wire is +5V and the yellow is a servo signal wire. On the left, black is ground (-) and red is USB power + (which connect to the correct connector pins). The USB spec for cable power is minimum 4.75V and maximum 5.25V, so I felt confident in using the radio control system's nominal +5 volts, expecting that Canon would design the camera to tolerate that range. (CHDK notes say 3V to 5V OK for the A490).
This all looks okay.

Quote
Remote parameter/s not set(as above) remote switch does not trigger shutter (screen goes dark momentarily and click is heard, but no image recorded)
In this mode,  with remote not enabled,  applying 5V causes the camera to think there is a PC connected so it goes into "picture download" mode.

Quote
Remote parameter/s set: remote enabled, as above
   First press on remote-> produces half press, (focus.exposure set only)
   2nd press on remote-> produces full press (takes picture) - must do rapidly after first.
Normal "two press" switch mode.

Quote
Enable Remote         [ * ]
---------- Synchable remote -------------
Enable Synchable remote      [ * ]
Enable Synch         [  ]
Enable Synch Delay      [  ]
Synch Delay 0.1ns         [100 ]
Synch Delay 0.1ms         [ 0 ]
Enable Remote Zoom      [  ]
Zoom Time-out 0.1s      [ 5 ]

Remote parameter/s set: remote enabled, as above
   OSD small frame white
   First press on remote-> OSD small frame green
   2nd press on remote->  display goes dark, 'busy' 10 sec delay, then photo
Interesting.  I've never seen an the OSD respond to the remote state.   I'll have to take a look at that. However, in this mode,  the camera should focus when you apply power to the USB port and take a picture when you remove it. This can be somewhat timing dependent.  Timing diagram here :
http://chdk.wikia.com/wiki/USB_Remote_Cable#Enable_built-in_CHDK_remote_support

Ported :   A1200    SD940   G10    Powershot N    G16

Re: A490 Porting
« Reply #189 on: 28 / July / 2012, 15:50:55 »
My statement was intended to be diplomatic and unfortunately unclear. I could not get camera to perform a half or full press with or without 'enable remote' checked or zoom functions checked.
No need to be diplomatic.   I had to mass change the code for 90 cameras by hand, one by one.  So far its all been okay but the possibility I messed up on at least one is definitely out there  :-[


Quote
The zoom  1 thru 5 pulse recognition described the the V2 docs would work great for me as long as it would recognition slow (relatively) 'manual' pulses (i.e. 1 sec or so).
Slow is actually better.
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal