Powershot SX150 IS Porting Thread - page 4 - General Discussion and Assistance - CHDK Forum

Powershot SX150 IS Porting Thread

  • 279 Replies
  • 125865 Views
Re: Powershot SX150 IS Porting Thread
« Reply #30 on: 08 / November / 2011, 14:42:20 »
Advertisements
Found the task creation addresses at 0x1930 and 0x1934 using the CHDK memory browser.


sgtrum

Re: Powershot SX150 IS Porting Thread
« Reply #31 on: 08 / November / 2011, 19:26:13 »
It looks like I have a working CHDK port.  I tested a few CHDK features on the camera and have tested the following via the PTP extensions protocol on the PC:

-PB2REC and REC2PB
-Live View stream
-lua shoot()
-lua set_prop and get_prop for zooming, iso & white balance

I have attached my working files.  I had to add a define for USB_LEVENT in camera.h in order to override this value for the sx150.  It seems like for all other cameras the USB levent value is 0x902 but for the sx150 it is 0x202.  This value is required for switch_mode_usb() in platform/generic/wrappers.c.  Here is my change for this function:

Code: [Select]
int __attribute__((weak)) switch_mode_usb(int mode)
{
#ifdef CAM_CHDK_PTP
    if ( mode == 0 ) {
        _Rec2PB();
_set_control_event(USB_LEVENT|0x80000000); // 0x10A5 ConnectUSBCable
    } else if ( mode == 1 ) {
_set_control_event(USB_LEVENT); // 0x10A6 DisconnectUSBCable
        _PB2Rec();
    } else return 0;
    return 1;
#else
  return 0;
#endif // CAM_CHDK_PTP
}


-sgtrum

Re: Powershot SX150 IS Porting Thread
« Reply #32 on: 13 / November / 2011, 12:17:14 »
Does any one else here have an SX150 that can test my port?  I have attached the binary for the 1.00a firmware.  I have successfully tested it via the PTP extensions for live view, snapshot and prop changes (zoom, af_lock, iso, whitebalance).


sgtrum

Re: Powershot SX150 IS Porting Thread
« Reply #33 on: 13 / November / 2011, 12:25:38 »
Here's a link to the complete install package :  sx150is-100a-0.9.9-full.zip
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Powershot SX150 IS Porting Thread
« Reply #34 on: 14 / November / 2011, 15:18:27 »
Hi.

I really don't understand all this but you chaps must be pretty cleaver.

Is it safe for me to buy a SX 150 yet?  I have enough Jessops gift vouchers for this and they don't sell the SX 130 any longer.

Biggles

Re: Powershot SX150 IS Porting Thread
« Reply #35 on: 14 / November / 2011, 18:53:35 »
Is it safe for me to buy a SX 150 yet?
If by "safe" you mean,  "Will I be able to get CHDK for the sx150is?" then the answer is most likely yes.  There is a chance you will get a different firmware version but that can be solved with time.

If by "safe" you mean,  "Could this damage my camera?", then read this : http://chdk.wikia.com/wiki/FAQ#Q._Can_CHDK_damage_your_camera.C2.A0.3F .  And be aware that there have been some worries about CHDK and lens errors on sx30, sx130 cameras ...
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Powershot SX150 IS Porting Thread
« Reply #36 on: 15 / November / 2011, 02:49:34 »
Hi.  I did mean safe to buy one knowing I can get CDHK on it in the near future.    I wasn't aware of the lens problem, I trust it is not a permanent physical problem with the camera.

Re: Powershot SX150 IS Porting Thread
« Reply #37 on: 15 / November / 2011, 07:57:46 »
I wasn't aware of the lens problem, I trust it is not a permanent physical problem with the camera.

For some general background,  google the term "Canon Lens Error".  You get something like 1 million results.

For more specific information,  take a look at this : Camera failures suspected to be caused by CHDK

After that, its up to you. 
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Powershot SX150 IS Porting Thread
« Reply #38 on: 25 / November / 2011, 22:58:59 »
This is my second day using this firmware and Im having a bit of trouble. When put on auto-start camera will take a picture on boot of chdk. Take it off auto not a problem. For some reason the override isnt working for the shutter. (Haven't even messed with Av or Iso yet.) On to the main reason I downloaded, the RAW. Will not save a RAW file. In lower right hand corner there is a number of RAW's that can be taken and does not subtract when taking pictures. However when chdk was set to auto-start and the picture would take at start-up the number of RAW's would subtract by one. Still could not load it onto the computer threw USB  to Adobe.  I figured I would just use the .DNG file but it will not create a badpixel.bin no matter how many times I try. I would like to point out this is the first time Ive used anything like this so I could be making a mistake somewhere.

*Edit*
I forgot to mention I do have RAW file in Dir with JPEG checked.

Just formatted card and reloaded again. Same issues, exposure bracketing does not seem to be working either.
 
« Last Edit: 26 / November / 2011, 12:59:44 by Fathem »

*

Offline reyalp

  • ******
  • 14125
Re: Powershot SX150 IS Porting Thread
« Reply #39 on: 26 / November / 2011, 14:19:07 »
This is my second day using this firmware and Im having a bit of trouble. When put on auto-start camera will take a picture on boot of chdk.
When we chatted in  IRC, it sounded like this only happened when you set a script to autostart. Assuming your script has a shoot command, this is expected behavior.
Don't forget what the H stands for.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal