Powershot N Porting Thread - page 2 - DryOS Development - CHDK Forum

Powershot N Porting Thread

  • 212 Replies
  • 61760 Views
Re: Powershot N Porting Thread
« Reply #10 on: 21 / June / 2014, 15:06:09 »
Advertisements
Update : I now have a fairly functional early release up and running.  Downloads available on request.

Biggest challenge was getting the touch screen running.  Code from the ixus240 & ixus310 was of no help as the touchscreen code for the "N" is quite a bit different.  I followed philmoz's lead and focussed on the touch task, and after way too many hours wading through disassembly and testing 100's of different hack attempts, I found something kind of elegant (IMHO). 

Also, the screen on the "N" is not nearly as wide so a different approach to the GUI is needed. 

Fortunately, the rest of the .C task stuff is almost identical to either the ixus140, A1400 or A2500.

Looking at what philmoz designed,  and playing with his touch screen UI code has give me some interesting ideas about how to mod the <ALT> screen to be more effective through the use touch.  Currrently the <ALT> screen does not do much - you can launch the current script, go to the CHDK menu, or use a few shortcuts there.  But it's otherwise pretty much barren and empty.

So I'm thinking a grid of touch buttons that give you instant access to essential items (sort of like the CHDK User Menu) is a good place to start.  Scripts might even launch with the touch of a button (rather than wait for the shutter button).   

And adding a "half-press" button to the normal shooting screen seems like a nice way to add usable "focus & exposure" lock - much better than trying to do a half-press and hold it!

More to come.

Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline oni

  • *
  • 3
Re: Powershot N Porting Thread
« Reply #11 on: 07 / July / 2014, 18:02:41 »
Hi,

I just recently bought a PowerShot N and I'm interested to try your build. I was unable to get the firmware version using ver.req or vers.req. Stick reported 100a.

Thanks a lot for your porting afford.

Alex

Re: Powershot N Porting Thread
« Reply #12 on: 07 / July / 2014, 21:31:25 »
I just recently bought a PowerShot N and I'm interested to try your build. I was unable to get the firmware version using ver.req or vers.req. Stick reported 100a.
I would trust STICK's report.  I suspect the 100a may be the one and only build.

I sent you a download link to a build via PM.  It's not yet really ready for a more general release I'm afraid.

I have not looked at this in a few weeks as other things seem to be taking up my time.  It boots and runs (see http://chdk.wikia.com/wiki/Powershot_N#General_Info and the other info already posted in this thread).  RAW & DNG are working, scripts run, and the GUI currently is really rough.  I have not tested any video stuff or shooting override or setting focus.  And a few hundred other things. 

But if you want to give it a try - or at least workout how to load and run CHDK -  then it should be good enough for that.
« Last Edit: 07 / July / 2014, 21:47:13 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline oni

  • *
  • 3
Re: Powershot N Porting Thread
« Reply #13 on: 08 / July / 2014, 17:48:44 »
Hi waterwingz,

thank you very much for the beta build. I used STICK to prepare my micro sdcard for your build. Camera boots into CHDK when micro sdcard door is open as you found out. I know it is only a very first beta build and I am already very impressed by the functionality. I'm not sure if you want to here bug reports or feature requests for that build but I noticed the following things:

I'm not able to use the camera for anything else but downloading pictures when the usb cable is connected. (screen turns off after showing chdk logo) My expectation would be to take photos when I'm connected, too (maybe after pressing the play button).

 I will play around with this release a bit more and maybe try to setup a chdk build environment.

Thanks

oni


Re: Powershot N Porting Thread
« Reply #14 on: 08 / July / 2014, 19:27:19 »
thank you very much for the beta build. I used STICK to prepare my micro sdcard for your build. Camera boots into CHDK when micro sdcard door is open as you found out. I know it is only a very first beta build and I am already very impressed by the functionality. I'm not sure if you want to here bug reports or feature requests for that build but I noticed the following things:
I'd also be interested in things that work properly for you.

Quote
I'm not able to use the camera for anything else but downloading pictures when the usb cable is connected. (screen turns off after showing chdk logo)
That's normal behavior for a Canon Powershot - nothing special about the Powershot N or its CHDK port. 

Quote
My expectation would be to take photos when I'm connected, too (maybe after pressing the play button).
What you need is a better PTP client to talk to your camera from your PC.  I'd recommend chdkptp, available for Linux or Windows.  It works well with the "N" port.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline oni

  • *
  • 3
Re: Powershot N Porting Thread
« Reply #15 on: 10 / July / 2014, 17:56:35 »
Thanks for the hints. I started playing around a bit more. The following functions seem to work:

  • Edge Live
  • Live Histogram
  • Taking photos
  • Recording Movie
  • Default Script

 

Things I'm not able to get to work:

  • No Zebra in live view
  • Focus bracket is drawing over CHDK menu (hard to navigate menu)


Next I will try to do some tests described in http://chdk.wikia.com/wiki/Testing

Thanks

Re: Powershot N Porting Thread
« Reply #16 on: 10 / July / 2014, 18:05:44 »
[Focus bracket is drawing over CHDK menu (hard to navigate menu)
Unfortunately, that's a problem on pretty much every CHDK camera in shooting mode.  We really don't have a good way for CHDK to play nicely with some of the Canon on-screen activities.

Quote
Next I will try to do some tests described in http://chdk.wikia.com/wiki/Testing
Don't worry about the focus tests -  I have not set that up yet.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Powershot N Porting Thread
« Reply #17 on: 02 / August / 2014, 21:05:33 »
I'm releasing CHDK for the Powershot N to BETA status today.   

Everything compiles and seems to run well.  The touch GUI is working and is actually somewhat easier to use than a regular CHDK "button only" interface IMHO.

A couple of minor TODO things are noted in the notes.txt file. 

I don't think the Powershot N will ever be a great CHDK camera - too much auto-mode stuff that can't be turned off (Continuous AF for example) and the funky "creative shot" modes don't play nicely with overrides and stuff.   However,  scripting works and I have not begun to play yet with the wifi options or the ability to charge / power / control the camera via the USB port.


Here's what <ALT> mode looks like.  Note that the touch screen interface makes it a lot more functional than the standard CHDK <ALT> mode screen - several things that used to be annoying to access are available right away.


This is what CHDK menu mode looks like.  Note that the keys change with context so that navigation keys are available in menu modes.


Finally, script run mode.   The "standard" keys every Powershot offers are available onscreen,  with a semi-transparent background so that scripts can run and mostly still be seen.


Thanks to philmoz for pointing the way here.  The hook I finally found to the touch task is completely different to what he was able to use and the Powershot N screen is not as wide. There are a few other tricks not show here but the guts of the GUI is all his code.

If you can find  refurb / eBay / sale price on this camera,  it's fun to play with and having CHDK available makes it even more so that way.
Ported :   A1200    SD940   G10    Powershot N    G16


*

Online philmoz

  • *****
  • 3332
    • Photos
Re: Powershot N Porting Thread
« Reply #18 on: 02 / August / 2014, 21:28:59 »
Well done - I think I might steal your buttons and a couple of ideas for the IXUS 310 :)

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: Powershot N Porting Thread
« Reply #19 on: 02 / August / 2014, 21:39:02 »
Well done - I think I might steal your buttons and a couple of ideas for the IXUS 310 :)
Thanks.

Unlike your version, I didn't make any CHDK touchscreen buttons active when using normal Canon mode.   Wanted CHDK firmly out of the way so I hijacked the "Wifi enable" button on the side of the camera as the <ALT> button.   I also deleted all the video manual override stuff from your port.

The User Menu button was added to allow me to quickly select scripts.   I gave some thought to adding a third row of buttons in <ALT> mode that would "inherit" the name of any scripts selected in the user menu and run them immediately when pressed.   That one is still on my "to do" list.  An editor for those buttons would be even better but still more work of course.

The Run button is to activate scripts without pressing the shutter button - which on the Powershot N is on the ring around the lens and a little hard to use at times.

The Prgm button just brings up the Script menu (a remap of the Func/Set button in <ALT> mode).

Off does about what you'd expect as do the RAW and OVR buttons (which I lifted wholesale from you).  I didn't intially have room for the OSD on/off button you used but might go back and add it now.

Having the ability to use a semitransparent background for the buttons in Script running mode was a nice touch I think - enabled by your loadable color palette mod of course.  Thanks again for that.

« Last Edit: 02 / August / 2014, 21:41:10 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics