SD940 (IXUS120) porting thread

  • 542 Replies
  • 81153 Views
Re: SD940 rev 103c porting thread (IXUS120)
« Reply #60 on: 13 / December / 2010, 22:25:07 »
Advertisements
In your version of boot.c there is a line with the comment "removed for correct power-on on 'on/off' button."  You should comment out the code on this line.

Works now.  Wow - have you also got any tips for me on the stock market?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline waldo

  • ***
  • 238
Re: SD940 rev 103c porting thread (IXUS120)
« Reply #61 on: 13 / December / 2010, 22:47:19 »
In your version of boot.c there is a line with the comment "removed for correct power-on on 'on/off' button."  You should comment out the code on this line.

Works now.  Wow - have you also got any tips for me on the stock market?

I can't take credit for that.  I asked the same question on the S95 port and reyalp helped.
http://chdk.setepontos.com/index.php?topic=5641.msg55193#msg55193

*

Offline waldo

  • ***
  • 238
Re: SD940 rev 103c porting thread (IXUS120)
« Reply #62 on: 13 / December / 2010, 22:51:20 »
I spent some time on the SD940 port.  Here's what's different today:
  • ubasic shoot function works
  • capt seq patches work
  • FAT32 patches work (or at least doesn't crash anymore)
  • Screen updates work properly
  • USB remote works
  • Short press on DISP=ALT / Long press = Display

Not yet working:
  • battery readout is always 0V [strange problem !]
  • Wants to change LCD brightness with DISP long press
   
Here are the 1.02c binaries:
http://www.zshare.net/download/83886141db0cc4a0/

...And the source:
http://www.zshare.net/download/83886172ad3c8fee/

I'm hoping that more than the two of us are using this.  I'm counting on others to test this, since I only rigorously test what I use, which is about 10% of the features.
« Last Edit: 13 / December / 2010, 22:54:59 by waldo »

Re: SD940 rev 103c porting thread (IXUS120)
« Reply #63 on: 13 / December / 2010, 23:06:10 »
I spent some time on the SD940 port.  Here's what's different today:

Wow - you get more done in one day than I do in a week.  I bow to you.

battery readout is always 0V [strange problem !

I get a voltage reading of 3.638 in text mode but the icon does not fill.  I assume its supposed to do that but maybe needs some sort of scaling factor ?

I'm hoping that more than the two of us are using this.  I'm counting on others to test this, since I only rigorously test what I use, which is about 10% of the features.

I have not seen an SD940 in any of the weekend flyers for over a year - its pretty much an obsolete camera despite being a 2010 Consumers Report "Best But".  Most of its owners have probably given up on CHDK after visiting the wiki and learning it is not supported.  I suspect we will get converts as we go forward - especially if we can offer ports to other firmware versions.  The differences between yours & mine are not big - as long as someone says please I will do what I can to help them out.
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline waldo

  • ***
  • 238
Re: SD940 rev 103c porting thread (IXUS120)
« Reply #64 on: 13 / December / 2010, 23:27:36 »
I get a voltage reading of 3.638 in text mode but the icon does not fill.  I assume its supposed to do that but maybe needs some sort of scaling factor ?
The battery voltage code has a low pass filter on the value from the firmware function, otherwise it is a thin wrapper around the firmware.  I bypassed the filter with no difference, The stub address for 102c is the same as for 103c so I'm a little mystified by the difference.  I suppose I'll find a misplaced semicolon eventually.  Until then, I can convince myself that I don't need a battery readout.

The SD940 was always a bit of a niche camera.  It's basically a SD780 with a larger LCD, no optical viewfinder, a bigger lens and a higher price.  I don't think they sold very many.  I like it because it was one of their first cameras Canon made after they rediscovered the importance of making things small.  The SD780 is ranked 15th most popular Canon camera on Flickr.  The SD940 is ranked #60.

Re: SD940 rev 103c porting thread (IXUS120)
« Reply #65 on: 13 / December / 2010, 23:39:39 »
The SD940 was always a bit of a niche camera.  It's basically a SD780 with a larger LCD, no optical viewfinder, a bigger lens and a higher price. 

Well,  I spent weeks thinking about the 780 vs 940. I was sold on those camera's size.  A CHDK beta for the 780 almost sent me that way but from what I read,  the optical viewfinder was pretty much useless and the lens on the 940 had a much better zoom.  So I ignored the roughly $50 different price and foolishly figured I could puzzle out the CHDK port on my own. 

All of which leads me to my conclusion that the small cadre of  SD940 owners will be pretty excited once CHDK is available for their favorite camera.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SD940 rev 103c porting thread (IXUS120)
« Reply #66 on: 16 / December / 2010, 13:51:35 »
I'm hoping that more than the two of us are using this.  I'm counting on others to test this, since I only rigorously test what I use, which is about 10% of the features.

I've been thinking about this and how supporting multiple firmware version might be one component of getting enough testing help.   Looking at the SD940 dumps I've seen so far, the code for the routines in stubs_entry_2.S is pretty much the same from version to version - just relocated a little in memory.  However, the signatures_dryos.h file is sufficiently generic to many cameras that it does not 100% find these routines for the SD940.

Would is be worth doing a version of signatures_dryos.h tuned for the SD940 ?  If we could get 100% converage then converting for different firmware versions becomes almost trivial.

Has anyone tried this approach ?
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SD940 rev 103c porting thread (IXUS120)
« Reply #67 on: 17 / December / 2010, 05:12:25 »
Hi,

Hope it is ok to break in on this thread to ask a quick question.

I am currently thinking of buying an Ixus 940IS, but only if it would be possible to use certain chdk functions on it. I am mainly interested in the ability to run scrips (for remote control of the camera). Is this possible in the current alfa version of chdk, or is anybody working on this functionality?
 


Re: SD940 rev 103c porting thread (IXUS120)
« Reply #68 on: 17 / December / 2010, 08:32:37 »
Scripts run in the alpha version.  However, none of the scripting functions have been tested so likely some will work and some will not.  This will get better as we get more experience with the port and move into Beta stage. 

One possible challenge will be the firmware version of the SD940 you purchase.  If its not one we are currently working on then you will either need to modify the port yourself or wait until somebody has the time and inclination to do so (i.e. not guaranteed to happen soon)
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline waldo

  • ***
  • 238
Re: SD940 rev 103c porting thread (IXUS120)
« Reply #69 on: 17 / December / 2010, 21:56:53 »
Scripts run in the alpha version.  However, none of the scripting functions have been tested so likely some will work and some will not.

FWIW, I'm working on a fairly complex time lapse script involving exposure overrides, math, timers, and shooting and it all works perfectly on the SD940.

 

Related Topics