A590IS porting... - page 93 - DryOS Development - CHDK Forum
supplierdeeply

A590IS porting...

  • 968 Replies
  • 352393 Views
Re: A590IS porting...
« Reply #920 on: 28 / July / 2013, 10:13:03 »
Advertisements
As indicated in my previous posting the camera does take a shot. So it works fine with the USB cable.  Plugging and unplugging the cable does the same thing as pressing the button. When doing this, in my case, the direct-print (blue) LED is always off.
At the risk of repeating myself (and everyone) else,  the LED will only light when USB sync mode is enabled and 5V has been applied to the USB power pins.
 
When using "One Push"mode,  the camera behaves a little differently when sync is enabled.  With sync disabled,  it will do a "half press" when power is applied and a "full press" when its removed. With sync enabled,  it also does the "half press" when power is applied but moves immediately to a full press once the camera is ready.    The full press completes when power is released.

While these sound very similar,  you will notice one big difference.  When sync is enabled, the LCD goes black when the USB power is applied.  When sync is not enabled,  the LCD will stay on (or active).
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #921 on: 28 / July / 2013, 10:31:56 »
>At the risk of repeating myself (and everyone) else,  the LED
>will only light when USB sync mode is enabled and 5V has
>been applied to the USB power pins.

Ok, only with the 5V applied to the USB power pins the LED will light.
I tested it just with a plain USB cable since I don't have the other.
Perhaps someone with this:
http://images1.wikia.nocookie.net/__cb20080528132342/chdk/images/e/e4/Remoterelease1rastercy6.gif
can test it with 5V applied to the USB power pins.

Re: A590IS porting...
« Reply #922 on: 28 / July / 2013, 10:50:42 »
Ok, only with the 5V applied to the USB power pins the LED will light.  I tested it just with a plain USB cable since I don't have the other.

Sorry - I was not clear (again).  You did it correctly using a plain USB cable.

When you plug that cable between the PC and camera, you are actually providing "5V" to the camera USB port power pins (assuming your PC is on).  The PC is the power source rather than the battery in the link you provided.


Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline blackhole

  • *****
  • 862
  • A590IS 101b
    • Planetary astrophotography
Re: A590IS porting...
« Reply #923 on: 28 / July / 2013, 13:17:57 »
Quote
At the risk of repeating myself (and everyone) else,  the LED will only light when USB sync mode is enabled and 5V has been applied to the USB power pins.
Does not work, LED is not activated.
Quote
While these sound very similar,  you will notice one big difference.  When sync is enabled, the LCD goes black when the USB power is applied.  When sync is not enabled,  the LCD will stay on (or active).
The LCD is on , all the time.
dvip is probably all did well, it just does not work on the A590.


Re: A590IS porting...
« Reply #924 on: 28 / July / 2013, 13:48:41 »
Quote
At the risk of repeating myself (and everyone) else,  the LED will only light when USB sync mode is enabled and 5V has been applied to the USB power pins.
Does not work, LED is not activated.
Quote
While these sound very similar,  you will notice one big difference.  When sync is enabled, the LCD goes black when the USB power is applied.  When sync is not enabled,  the LCD will stay on (or active).
The LCD is on , all the time.
dvip is probably all did well, it just does not work on the A590.

Doh! The source for capt_seq.c for both firmware versions of this camera has this line commented out :

Code: [Select]
BL      wait_until_remote_button_is_releasedWithout that hook,  USB sync will not work.
« Last Edit: 28 / July / 2013, 13:50:30 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline nafraf

  • *****
  • 1308
Re: A590IS porting...
« Reply #925 on: 28 / July / 2013, 17:14:33 »
Thanks waterwingz!! I forgot to check that.

In attachment, a new patch and a compiled version for 101b.
This patch generates capt_seq.c using code_gen.

*

Offline blackhole

  • *****
  • 862
  • A590IS 101b
    • Planetary astrophotography
Re: A590IS porting...
« Reply #926 on: 28 / July / 2013, 17:19:03 »
Quote
Without that hook,  USB sync will not work.
That's it, now everything works fine.

*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #927 on: 28 / July / 2013, 21:01:09 »
Good to know! :D


*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #928 on: 31 / July / 2013, 14:03:16 »
@nafraf,
Did you add this patch to the trunk?
Are you still working on  CAMERA_MIN_DIST/ CAMERA_MAX_DIST?
 

*

Offline nafraf

  • *****
  • 1308
Re: A590IS porting...
« Reply #929 on: 31 / July / 2013, 17:53:11 »
@nafraf,
Did you add this patch to the trunk?
If you confirm that sync LED and capture overrides  are working with version that I posted previously I submit the patch :)

Quote
Are you still working on  CAMERA_MIN_DIST/ CAMERA_MAX_DIST?
Patch includes CAMERA_MIN_DIST = 51, but CAMERA_MAX_DIST was not modified (52855). I'm still not sure about MAX, but I'm tempted to use default value.
Code: [Select]
#define CAMERA_MAX_DIST         65535       // Define max distance that can be set in _MoveFocusLensToDistance (allow override for superzooms - SX30/SX40)I'm not photographer, probably I'm wrong  :-[, but that value does not seems to be in mm as suggested in reply #917

« Last Edit: 31 / July / 2013, 18:04:03 by nafraf »

 

Related Topics