CHDK Forum

CHDK Development => General Discussion and Assistance => DryOS Development => Topic started by: nomi_68k on 26 / December / 2008, 14:19:13

Title: SX110IS - howto start porting
Post by: nomi_68k on 26 / December / 2008, 14:19:13
Hi, I'm a newbie of CHDK with some knowledge of assembly (but not ARM assembly  :'( ).
I did the dump of the firmware of my SX110IS and I disassembled it with IDA, helped by some sigs and idc.
The problem is that I can't find in all the wiki a full and well structured tutorial on how to proceed with the porting of CHDK.

Can someone help me with a good link?

Until now I found the first two parameters for the porting of CHDK on this camera:

char *hook_raw_image_addr()
{
   //Found at ROM:FFE60B00
   //      ROM:FFE60B50                 LDR     R6, =0x10805040
   //      ...
   //      ROM:FFE60BA8                 MOV     R1, R6
   //      ROM:FFE60BAC                 ADR     R0, aCrawBuffP  ; "CRAW BUFF       %p"
   
   
   return (char*)0x10805040;
}

long hook_raw_size()
{
   //      Found at ROM:FFE60B00
   //      ROM:FFE60BB4                 LDR     R1, =0xEC04F0
   //      ROM:FFE60BB8                 ADR     R0, aCrawBuffSizeP ; "CRAW BUFF SIZE  %p"
   //      ROM:FFE60BBC                 BL      sub_FFCE7000
   
   return 0xEC04F0;
}

Thanks for any help.

=============
My camera info is:
--------------------------
Canon PowerShot SX110 IS
P-ID:3192   PAL D

Firmware Ver GM1.00B
NoError
Jun 25 2008   15:08:34
---------------------------
Adj Ver.009.006

IS Firm Ver. 3.00
IS Param Ver. 3.00
---------------------------
Title: Re: SX110IS - howto start porting
Post by: ewavr on 26 / December / 2008, 15:42:22
long hook_raw_size()
{
 return 0xEC04F0;
}

14 bit RAW?  :o
Title: Re: SX110IS - howto start porting
Post by: reyalp on 26 / December / 2008, 20:20:06
Hi, I'm a newbie of CHDK with some knowledge of assembly (but not ARM assembly  :'( ).
I did the dump of the firmware of my SX110IS and I disassembled it with IDA, helped by some sigs and idc.
The problem is that I can't find in all the wiki a full and well structured tutorial on how to proceed with the porting of CHDK.

Can someone help me with a good link?
Nope. Assuming you've already found For Developers - CHDK Wiki (http://chdk.wikia.com/wiki/For_Developers) no better link exists. Nor is one likely to appear, because step by step tutorials aren't a substitute for understanding.

If you cannot figure out what you need to do based on examining the current sources and pages found under For Developers - CHDK Wiki (http://chdk.wikia.com/wiki/For_Developers) you need to study them further or give up. Basically, you have to make everything under loader and platform for your camera, as described in Adding support of a new camera (http://chdk.wikia.com/wiki/Adding_support_of_a_new_camera). You can refer to existing ports to verify that you've correctly identified the corresponding things in your port, and to understand what those files do in the first place.  There is no short cut, you have to actually understand how CHDK works to make a successful port. The best place to get this understanding is from the source. That's a lot of work, but only a small part of the effort needed to get your port running.

This thread: How does CHDK start running (http://chdk.setepontos.com/index.php/topic,1454.0.html) may help you get started.

If you are unfamiliar with ARM architecture and assembler, refer to the excellent documentation available freely from ARM. There's links to the most pertinent documents in Developer Technical Documents (http://chdk.wikia.com/wiki/Developer_Technical_Documents). Assuming you have sufficient general understanding of assembler and computer architecture, you can easily teach yourself everything you need to know about ARM from there.

If you have specific questions about particular aspects CHDK, there are people here who will gladly answer them.
Title: Re: SX110IS - howto start porting
Post by: PhyrePhoX on 28 / December / 2008, 07:42:00
you should also read the huge thread about the g9 porting (for example, there are more similar threads for different cameras)
Title: Re: SX110IS - howto start porting
Post by: nomi_68k on 02 / January / 2009, 08:56:13
14 bit RAW?  :o

The SX100IS digicam has:
long hook_raw_size()
{
   return 0x9DCCE0;
}

It's a 8Mpixels, so .... 10 bit RAW???   :blink:

I don't know...  :xmas
Title: Re: SX110IS - howto start porting
Post by: nomi_68k on 02 / January / 2009, 09:16:24
Nor is one likely to appear, because step by step tutorials aren't a substitute for understanding.
I hope to be able to explain my point without misunderstanding due to my bad english.
I know that you are right about the necessity to understand all the process. And I know that all GPL software are done by the efforts of volunteers with no obligation.
So I'm really grateful to all of you.
But.... hey boys.... this is the most hard way!  :)
In my perspective, a tutorial could be useful only to organize some little information as:
1) The list of functions that anyone must find into a disassembled firmware;
2) The list of hardware pointers (leds, keyboard,free RAM ecc..)

Anyway, why I can find only few IDA database (idb) of disassembled firmware? For example it will be useful for me to find the SX100IS firmware fully disassembled.

Thanks again and happy new year!  :xmas
Title: Re: SX110IS - howto start porting
Post by: ewavr on 02 / January / 2009, 09:38:42
It's a 8Mpixels, so .... 10 bit RAW???   :blink:

Yes, 10 bit RAW for all CHDK ported cameras.

Quote
Anyway, why I can find only few IDA database (idb) of disassembled firmware?

Do it yourself in 10-20 minutes from dump using IDA scripts and signatures for CHDK (Loading dump to IDA - CHDK Wiki (http://chdk.wikia.com/wiki/Loading_dump_to_IDA)).

Quote
For example it will be useful for me to find the SX100IS firmware fully disassembled.
Maybe not only SX100, but also A650, A720 (it seems that these CHDK ports are complete and bug-free).
Title: Re: SX110IS - howto start porting
Post by: nomi_68k on 02 / January / 2009, 10:16:43
Yes, 10 bit RAW for all CHDK ported cameras.

Sorry, I can't understand:
10 bits for every channel (R, G and B) for a total of 30 bits or a total of 10 bits?
In the second case is the sensor able to record 1024 colours only??   :'(

Thanks
Title: Re: SX110IS - howto start porting
Post by: fudgey on 02 / January / 2009, 11:09:39
10 bits for every channel (R, G and B) for a total of 30 bits or a total of 10 bits?
In the second case is the sensor able to record 1024 colours only??   :'(

10 bits for each channel, but we don't have RGB pixels; it's a Bayer matrix: http://en.wikipedia.org/wiki/Bayer_filter (http://en.wikipedia.org/wiki/Bayer_filter).

And the sensor is analog, there's just usually too much noise in point&shoot cameras to bother using more than 10 bits (considering more bits require more processing power and memory i.e. time and money) so Canon doesn't even though the A/D converter in some schematic snippet was actually a 12-bit chip.
Title: Re: SX110IS - howto start porting
Post by: reyalp on 02 / January / 2009, 22:13:15
In my perspective, a tutorial could be useful only to organize some little information as:
1) The list of functions that anyone must find into a disassembled firmware;
2) The list of hardware pointers (leds, keyboard,free RAM ecc..)
If you look through an existing ports platform/<camera>/sub/<firmware version>/*.S these things are pretty obvious. See also include/lowlevel.h and platform/generic/*, and be sure you understand Signature finder - CHDK Wiki (http://chdk.wikia.com/wiki/Signature_finder)
The list of addresses you want is right there, and unlike a tutorial, it's never out of date!

You need to understand these things anyway. If you don't have the time/skill/energy to understand this part of CHDK, you won't make a successful port.

Quote
Anyway, why I can find only few IDA database (idb) of disassembled firmware? For example it will be useful for me to find the SX100IS firmware fully disassembled.
For any camera with a dump available, load the bin, apply the vxworks or dryos FLIRT, run the idc scripts. I suggest doing this with all the reference firmwares, and whatever camera is most similar to your own. You can also work backwards from the sig_ref*.txt or stubs_entry.S/stubs_entry_2.s from any camera.
Title: Re: SX110IS - howto start porting
Post by: nomi_68k on 06 / January / 2009, 12:31:05
I'm starting to understand some things.  :)
So thanks very much for all you guys that are helping me.

With the "blink_g7" program (a little modified  ;) ) I can confirm the LED's address:

#define LED_AF      0xC02200C0 // AutoFocus
#define LED_BLUE  0xC02200C4 // printer button
#define LED_RED   0xC02200C8 // next to the play button, rather orange
#define LED_GRN   0xC02200CC // in the same position as above, but in green

I'have just modified the SX110IS section of the wiki with these informations.
Title: Re: SX110IS - howto start porting
Post by: fe50 on 06 / January / 2009, 12:45:20
@nomi_68k

Since the original DryOS CHDK.idc script does not run all sub scripts correctly, i use modified versions of the IDC scripts: ida-chdk-idc-dryos-singlerun.7z (http://drop.io/chdkdev/asset/ida-chdk-idc-dryos-singlerun-7z) instead. The main script CHDK.idc runs all other scripts automatically, manual definition of the ROM_START address is not required anymore (MinEA() used instead).
This way you you can easily run all needed scripts with a single click...
Title: Re: SX110IS - howto start porting
Post by: PhyrePhoX on 07 / January / 2009, 10:08:44
fe50 - this does not apply to vxworks i guess?
Title: Re: SX110IS - howto start porting
Post by: fe50 on 07 / January / 2009, 18:29:01
Title: Re: SX110IS - howto start porting
Post by: PhyrePhoX on 07 / January / 2009, 21:28:07
this would explain why i couldnt find some things sometimes when i had a dryos firmware loaded in ida. nice.
well, feel free to take a look at the vxworks idc as well ;) i still wonder why you refuse to code for chdk and just do the (also much needed) "dirty work" in the wiki - thanks a million!
yeah, i'm quite happy it snowed in berlin, though in a big city snow tends to get really ugly after a few days, and this is the case now :(
Title: Re: SX110IS - howto start porting
Post by: nomi_68k on 17 / January / 2009, 10:55:15
How can I find the correct value for RESTARTSTART?

I can follow the execution of the program (debugging with leds) along the loader....resetcode\main.c, but it can't reach the startup() into the platform\generic\main.c  :'(

Thanks
Title: Re: SX110IS - howto start porting
Post by: nomi_68k on 17 / January / 2009, 13:06:12
but it can't reach the startup() into the platform\generic\main.c

Sorry for my mistake.
Now I can follow the boot process until the boot() into platform\sx110is\sub\100b\boot.c.

However I still need to understand howto find the correct value for RESTARTSTART

Thanks
Title: Re: SX110IS - howto start porting
Post by: whoever on 17 / January / 2009, 13:55:08
However I still need to understand how to find the correct value for RESTARTSTART
See here http://chdk.setepontos.com/index.php/topic,2361.msg21829.html#msg21829 (http://chdk.setepontos.com/index.php/topic,2361.msg21829.html#msg21829) , if it helps
Title: Re: SX110IS - howto start porting
Post by: bcc139 on 20 / January / 2009, 22:35:37
Hi, I just got a camera and wish to help you on porting sx110 CHDK.

I'm quite new on IDA and assembly stuff. But I want to try.

Can you please create a project on http://www.assembla.com (http://www.assembla.com) for sx110 porting such that everybody can share the code for the development ?

Thanks.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 24 / January / 2009, 21:06:37
1. Thank you nomi_68k for your work!
2. I updated the Wiki and added the Porting features to it: http://chdk.wikia.com/wiki/SX110IS (http://chdk.wikia.com/wiki/SX110IS)
3. maybe this: http://chdk.setepontos.com/index.php/topic,2654.0.html (http://chdk.setepontos.com/index.php/topic,2654.0.html) or this: http://chdk.setepontos.com/index.php/topic,237.0.html (http://chdk.setepontos.com/index.php/topic,237.0.html) can help you too. I think they are nearly the same.
Title: Re: SX110IS - howto start porting
Post by: flj on 25 / January / 2009, 23:19:38
Hi, just got my sx110 and would like to help.
Not much experience in assembly but maybe there is something else to do.
Title: Re: SX110IS - howto start porting
Post by: fritzus on 08 / February / 2009, 05:43:31
Hi all!

is there any news about this porting?
As flj and bcc139 .. I just got my SX110 and would like to help.

:)

Title: Re: SX110IS - howto start porting
Post by: nomi_68k on 15 / February / 2009, 10:05:15
is there any news about this porting?
Sorry for my long absence. In the last weeks I was away due to my job. And probably I will be away for the next weeks too!  :(

However I'm still working on "boot.c". I rewrote half file at least using the original firmware of my SX110IS.
But now I'm having a problem because from this point the firmware of a SX110IS is fully different from those of A720 and SX100IS. :(

However I will find a way to post the results of my work and the disassembled firmware (only as a ASCII file and not like a IDA file).

Today I want to study why I can't follow (with debug) the execution of the program when arrives to the launch of the threads. ;)

However I renew my offer to transfer all my work to someone that have really a full knowledge to complete the porting. :)
See you soon. Bye.
Title: Re: SX110IS - howto start porting
Post by: nomi_68k on 15 / February / 2009, 12:32:54
ARGHHHHH  :'(
Now when I compile my "boot.c" I have these errors:

"Error: internal_relocation (type: OFFSET_IMM) not fixed up"

in the line where I have:

"LDR     R3, task_CaptSeqTask_my\n"  //new FFC503B0; old FFC4CB64

Why?  :o
Title: Re: SX110IS - howto start porting
Post by: reyalp on 15 / February / 2009, 17:51:38
should be LDR R3,=task_CaptSeqTask_my

Title: Re: SX110IS - howto start porting
Post by: Darthmalt on 20 / February / 2009, 09:53:48
Been following this since my 540 died and I replaced it with a sx110 back in october. Just registered to say thanks for your work nomi. Wish i knew enough to help with the porting.
Title: Re: SX110IS - howto start porting
Post by: the1who on 21 / February / 2009, 02:12:09
I'll have to say I've been following this since last Sunday when I purchased my new SX110IS as well. I was hoping I might be of help, but I don't have the training nor software background that you already have experience in to get that far. Just webpage is the extent of my programming such as PHP and a tid bit of java.

If I can be of help, I'd like to help for sure.

I am interested in remote control features, mainly for shutter control. Looking to take long exposures for some night shots and I know that my finger even if on timer is bad enough some instances. I was reading some features of the ability to use this firmware where it talks about remote control and enhanced features such as shutter control and motion detection.

Thanks for your work, it's appreciated and I hope this post is a token of my gratitude of your work.
Title: Re: SX110IS - howto start porting
Post by: popo_caris on 22 / February / 2009, 23:45:38
Title: Re: SX110IS - howto start porting
Post by: reyalp on 22 / February / 2009, 23:55:41
If you mean CHDK, you can't because it doesn't exist for sx110 yet. If you mean a canon firmware update, follow the instructions that came with it.
Title: Re: SX110IS - howto start porting
Post by: spike on 25 / February / 2009, 08:01:02
Hi to all working on the SX110IS porting, and good luck.   Unfortunately I am a newbie too, so of little help with the nitty-gritty of programming and too far off learning the lingo.   I too am anxious to know how to get RAW capture from my new toy (as it's all I use with my SLR) but it's looking like I wont find out until after the holiday I bought it for... never mind.

On another note, I signed up to give notice to 'the1who' and anyone else here anxious to go remote with shutter control -
I found a bit of freeware called 'cam4you'.  Currently version 2.00 build0.
Although it's not yet on their list, it does now support the SX110IS.  It gives a basic liveview and zoom, plus manual controls for both stills and video capture.  There is no guide as yet, but a swift look around pays off.  There is timestep programming and motion sensoring, so much to play with, still doing just that myself!  Link below:

http://alkenius.no-ip.org/Cam4you_remote/index.html (http://alkenius.no-ip.org/Cam4you_remote/index.html)
Title: Re: SX110IS - howto start porting
Post by: nomi_68k on 25 / February / 2009, 16:58:07
should be LDR R3,=task_CaptSeqTask_my
Shame on me!!  :D I was very tired.
To forgive me, I post all the functions that I found with a very high grade of confidence.
But I confirm you that there's the necessity to find someone much more experienced than me to do the porting.  :(
However I still try to work on this job.
Bye.

trunk\platform\sx110is\sub\100b\stubs_entry.S

// !!! THIS FILE IS GENERATED. DO NOT EDIT. !!!
#include "stubs_asm.h"

NSTUB(AllocateMemory, 0xFFE08340)
NSTUB(AllocateUncacheableMemory, 0xFFC17828)
NSTUB(Close, 0xFFC13348)
NSTUB(CreateTask, 0xFFC0B8C0)
NSTUB(DeleteFile_Fut, 0xFFC12BF4)
NSTUB(EnterToCompensationEVF, 0xFFC15318)  // "ExpComp On"
NSTUB(ExecuteEventProcedure, 0xFFC5B5B8)
NSTUB(ExitFromCompensationEVF, 0xFFC1535C)  // "ExpComp Off"
NSTUB(ExitTask, 0xFFC0BB50)
NSTUB(Fclose_Fut, 0xFFC12D70)
NSTUB(Feof_Fut, 0xFFC12F5C)
NSTUB(Fflush_Fut, 0xFFC12F98)
NSTUB(Fgets_Fut, 0xFFC12EC4)
NSTUB(Fopen_Fut, 0xFFC12D30)
NSTUB(Fread_Fut, 0xFFC12E1C)
NSTUB(FreeMemory, 0xFFE08338)
NSTUB(FreeUncacheableMemory, 0xFFC17868)
NSTUB(Fseek_Fut, 0xFFC12F10)
NSTUB(Fwrite_Fut, 0xFFC12E70)
NSTUB(GetBatteryTemperature, 0xFFC3885C)
NSTUB(GetCCDTemperature, 0xFFC387EC)
NSTUB(GetCurrentAvValue, 0xFFD0F3D4)
NSTUB(GetCurrentTargetDistance, 0xFFD0D8D4)
NSTUB(GetDrive_ClusterSize, 0xFFC44DCC)
NSTUB(GetDrive_FreeClusters, 0xFFC44E34)
NSTUB(GetDrive_TotalClusters,0xFFC44E00)
NSTUB(GetFocusLensSubjectDistance, 0xFFE047A4)
NSTUB(GetOpticalTemperature, 0xFFC388CC)
NSTUB(GetParameterData, 0xFFD38978)
NSTUB(GetPropertyCase, 0xFFC5F2A0)
NSTUB(GetSystemTime, 0xFFE08398)
NSTUB(GetZoomLensCurrentPoint, 0xFFD12370)
NSTUB(GetZoomLensCurrentPosition, 0xFFE02890)
NSTUB(IsStrobeChargeCompleted, 0xFFC92E08)
NSTUB(LocalTime, 0xFFC595BC)
NSTUB(LockMainPower, 0xFFC63DA0)
NSTUB(Lseek, 0xFFC13488)
NSTUB(MakeDirectory_Fut, 0xFFC12C68)
NSTUB(MoveFocusLensToDistance, 0xFFE5B264)
NSTUB(MoveZoomLensWithPoint, 0xFFE0507C)
NSTUB(NewTaskShell, 0xFFC5ED48)
NSTUB(Open, 0xFFC13320)
NSTUB(Read, 0xFFC0A138)
NSTUB(ReadFastDir, 0xFFDF35B8)
NSTUB(Remove, 0xFFC13390)
NSTUB(RenameFile_Fut, 0xFFC12BA0)
NSTUB(SetAutoShutdownTime, 0xFFC63E14)
NSTUB(SetFileTimeStamp, 0xFFC13624)
NSTUB(SetParameterData, 0xFFD388E8)
NSTUB(SetPropertyCase, 0xFFC5F198)
NSTUB(SleepTask, 0xFFC176AC)
NSTUB(TakeSemaphore, 0xFFC0B74C)
NSTUB(TurnOffBackLight, 0xFFC6F9FC)
NSTUB(TurnOnBackLight, 0xFFC6F9E4)
NSTUB(UIFS_WriteFirmInfoToFile, 0xFFD2D3A0)
NSTUB(UnlockMainPower, 0xFFC63CF4)
NSTUB(UpdateMBROnFlash, 0xFFC44C0C)
NSTUB(VbattGet, 0xFFC10314)
NSTUB(Write, 0xFFC133F4)
NSTUB(_log, 0xFFE90410)
NSTUB(_log10, 0xFFE8F354)
NSTUB(_pow, 0xFFE8F4C4)
NSTUB(_sqrt, 0xFFE91778)
NSTUB(close, 0xFFC09F50)
NSTUB(closedir, 0xFFDF3688)
NSTUB(closefastdir, 0xFFDF3688)
NSTUB(free, 0xFFC03A80)
NSTUB(kbd_p1_f, 0xFFC114F4)
NSTUB(kbd_p1_f_cont, 0xFFC11500)
NSTUB(kbd_p2_f, 0xFFC10D04)
NSTUB(kbd_read_keys, 0xFFC113F0)
NSTUB(kbd_read_keys_r2, 0xFFC35D7C)
NSTUB(lseek, 0xFFC13488)
NSTUB(malloc, 0xFFC039AC)
NSTUB(memcmp, 0xFFC0D8B4)
NSTUB(memcpy, 0xFFC74B70)
NSTUB(memset, 0xFFD8FF54)
NSTUB(mkdir, 0xFFC136EC)
NSTUB(mktime_ext, 0xFFC753DC)
NSTUB(open, 0xFFC09EA0)
NSTUB(opendir, 0xFFDF3524)
NSTUB(openfastdir, 0xFFDF3524)
NSTUB(qsort, 0xFFD9045C)
NSTUB(rand, 0xFFC0D9BC)
NSTUB(read, 0xFFC0A138)
NSTUB(readfastdir, 0xFFDF35B8)
NSTUB(rename, 0xFFC1341C)
NSTUB(srand, 0xFFC0D9B0)
NSTUB(stat, 0xFFC13554)
NSTUB(strcat, 0xFFC74984)
NSTUB(strchr, 0xFFC74A0C)
NSTUB(strcmp, 0xFFC0D84C)
NSTUB(strcpy, 0xFFC0D834)
NSTUB(strftime, 0xFFC74DE4)
NSTUB(strlen, 0xFFC0D890)
NSTUB(strncmp, 0xFFC749C0)
NSTUB(strncpy, 0xFFC1D254)
NSTUB(strrchr, 0xFFD8FF2C)
NSTUB(strtol, 0xFFC1D48C)
NSTUB(time, 0xFFC59470)
NSTUB(vsprintf, 0xFFC0D7F8)
NSTUB(write, 0xFFC0A198)
Title: Re: SX110IS - howto start porting
Post by: nomi_68k on 27 / February / 2009, 07:08:24
A question about the file "stubs_entry_2.S": I collected a list of functions from the platform "SX100IS", but I can't understand wich functions are really used by CHDK, and wich functions instead are there only for other (historical?) reasons. So for now I put the address of a nullsub for every function.
But can someone tell me for wich functions of the following list I must find the true address and wich functions I can delete without any problem?
Thanks very much.

trunk\platform\sx110is\sub\100b\stubs_entry_2.S
#include "stubs_asm.h"

// !! UNKNOWN FUNCIONS ADDRESS !!
// Not found, so pointer to nullsub for immediate return
// nullsub_1: 0xFFC00940

NHSTUB(ints_disable, 0xFFC00940)
NHSTUB(ints_enable, 0xFFC00940)
NHSTUB(kbd_pwr_on, 0xFFC00940)
NHSTUB(kbd_pwr_off, 0xFFC00940)
NHSTUB(platformsub_kbd_fetch_data, 0xFFC00940)
NHSTUB(taskcreate_jogDial, 0xFFC00940)
NHSTUB(SetZoomActuatorSpeedPercent, 0xFFC00940)
NHSTUB(strstr, 0xFFC00940)
NHSTUB(UnsetZoomForMovie, 0xFFC00940)
NHSTUB(PostLEDMessage, 0xFFC00940)
NHSTUB(TurnOnMic, 0xFFC00940)
NHSTUB(TurnOffMic, 0xFFC00940)
NHSTUB(ExpCtrlTool_StopContiAE, 0xFFC00940)
NHSTUB(ExpCtrlTool_StartContiAE, 0xFFC00940)
NHSTUB(MakeAFScan, 0xFFC00940)
NHSTUB(GiveSemaphore, 0xFFC00940)
NHSTUB(dumpMemoryToFile, 0xFFC00940)
NHSTUB(RefreshPhysicalScreen, 0xFFC00940)
NHSTUB(utime, 0xFFC00940)
NSTUB(memPartAlloc, 0xFFC00940)
NSTUB(memPartFindMax, 0xFFC00940)
NSTUB(taskCreateHookAdd, 0xFFC00940)
NSTUB(taskDeleteHookAdd, 0xFFC00940)
NSTUB(taskIdListGet, 0xFFC00940)
NSTUB(taskLock, 0xFFC00940)
NSTUB(taskUnlock, 0xFFC00940)
NSTUB(Mount_FileSystem, 0xFFC00940)
NSTUB(Unmount_FileSystem, 0xFFC00940)
NSTUB(rewinddir, 0xFFC00940)
NSTUB(CreatePhysicalVram, 0xFFC00940)
NSTUB(CreateTaskStrict, 0xFFC00940)
NSTUB(DisableDispatch, 0xFFC00940)
NSTUB(DisplayImagePhysicalScreen, 0xFFC00940)
NSTUB(EnableDispatch, 0xFFC00940)
NSTUB(GetFocusLensSubjectDistanceFromLens, 0xFFC00940)
NSTUB(MakeDirectory, 0xFFC00940)
NSTUB(PhySw_testgpio, 0xFFC00940)
NSTUB(ProtectFile, 0xFFC00940)
NSTUB(chdir, 0xFFC00940)
NSTUB(ioctl, 0xFFC00940)
NSTUB(iosDevAdd, 0xFFC00940)
NSTUB(iosDrvInstall, 0xFFC00940)
NSTUB(isalpha, 0xFFC00940)
NSTUB(isdigit, 0xFFC00940)
NSTUB(islower, 0xFFC00940)
NSTUB(isspace, 0xFFC00940)
NSTUB(isupper, 0xFFC00940)
NSTUB(localtime, 0xFFC00940)
NSTUB(readdir, 0xFFC00940)
NSTUB(strpbrk, 0xFFC00940)
NSTUB(taskCreateHookAdd, 0xFFC00940)
NSTUB(taskDeleteHookAdd, 0xFFC00940)
NSTUB(taskIdListGet, 0xFFC00940)
NSTUB(taskName, 0xFFC00940)
NSTUB(taskResume, 0xFFC00940)
NSTUB(taskSuspend, 0xFFC00940)
NHSTUB(PT_PlaySound, 0xFFC00940)
NHSTUB(DoAFLock, 0xFFC00940)
NHSTUB(UnlockAF, 0xFFC00940)
NHSTUB(WriteSDCard, 0xFFC00940)
Title: Re: SX110IS - howto start porting
Post by: reyalp on 27 / February / 2009, 15:03:41
You need:
1) every entry point which is not found correctly in stubs_entry.S (either not found at all, or found, but matching the wrong function)
2) A handful of functions that are not automatically found.
3) A few functions that must be defined in order to link, even though they don't actually exist (or have never been found) in dryos.

The exact set of functions you need depends on which features you enable in camera.h

For 2) and 3), I would just compile and add until it works. Doing that on the SD990, I ended up with
Code: [Select]
// not in sig_ref
NHSTUB(UnsetZoomForMovie, 0xFF9689EC) // string "ZoomCon_UnsetZoomForMovie"
NHSTUB(PT_PlaySound,0xFF863970) // search on PT_PlaySound
NHSTUB(PutInNdFilter,0xFFA46ED0) // string TurnOnNdFilter ? TODO!
NHSTUB(PutOutNdFilter,0xFFA46EF4) // string TurnOffNdFilter ? TODO!
NHSTUB(DoAFLock,0xFF863A80) // PT_DoAFLock
NHSTUB(UnlockAF,0xFF863A90) // PT_UnlockAF

// These don't exist/aren't found in dryos
NHSTUB(Mount_FileSystem,0xFF81093C) // NULLSUB
NHSTUB(Unmount_FileSystem,0xFF81093C) // NULLSUB
NHSTUB(rewinddir,0xFF81093C) // NULLSUB
NHSTUB(SetZoomActuatorSpeedPercent,0xFF81093C) // NULLSUB
As noted above, your mileage may vary depending on what features you have enabled.

Note that stubs_entry_2.s should contain NHSTUB not NSTUB.

It's a good idea to look at a few different cameras when you are trying to figure out what to do. Different people with varying levels of understanding have done different ports. You might want to refer to sd1100 100c for this one. Also beware that while many are commented like I have above, entry points have been added at the end of most of the stubs_entry_2.S files without regard to the comments ;)
Title: Re: SX110IS - howto start porting
Post by: hnsight on 15 / March / 2009, 15:20:06
Hey Nomi ... just so you know, some of us here are lurking, and rooting for you!

I have an SX110 and periodically check here on progress.  I would LOVE to see you succeed with a port, it would make this camera sooo much better! 

I appreciate your effort!  Keep at it!   
Title: Re: SX110IS - howto start porting
Post by: chdkj on 16 / March / 2009, 16:06:38
Hi Nomi,

I'm working on a port for the sx110 (1.00b) for a few weeks now - more or less. Anyway.. hope we will get it as soon as possible. I didn't spend all of my time for having fun with camera ports ;-)

I can confirm all of the entry points for the functions mentioned in stubs_entry.S above.

It seems to me that RefreshPhysicalScreen is located at 0xFFD8FC00 (not 100% safe)--> NHSTUB(RefreshPhysicalScreen, 0xFFD8FC00). I had analyzed functions at superior levels and followed the function calls and ended up with 0xFFD8FC00.

Couldn't find code for kbd_power_off an kbd_power_on so far and I think these functions are not implemented and should be pointed to nullsubs:
NHSTUB(kbd_pwr_off, 0xFFC00940)
NHSTUB(kbd_pwr_on, 0xFFC00940)

I didn't make any changes to stubs_entry.S and put all into stubs_entry_2.S

Kind regards.
Title: Re: SX110IS - howto start porting
Post by: reyalp on 16 / March / 2009, 22:51:37
kbd_pwr_* are missing from some other cams, so this is probably OK.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 18 / March / 2009, 15:48:54
..or even not ;-)
As far as I can see kbd_pwr_* is called by kbd_read_keys only (compared to a720 as an example). In sx110 kbd_read_keys executes two functions (and more) and each calls another function. And those other functions looking alike kbd_pwr_* in a720.
Frankly, it's the same as looking into a crystal ball...

NHSTUB(kbd_pwr_on, 0xFFC3642C)
NHSTUB(kbd_pwr_off, 0xFFC36444)
Title: Re: SX110IS - howto start porting
Post by: chdkj on 19 / March / 2009, 16:38:24
found some other functions needed by chdk compile process, partly questionable:
NHSTUB(DoAFLock, 0xFFC15048)
NHSTUB(ExpCtrlTool_StartContiAE, 0xFFC20894)
NHSTUB(ExpCtrlTool_StopContiAE, 0xFFC209D8)
NHSTUB(GiveSemaphore, 0xFFC0B81C)
NHSTUB(MakeAFScan, 0xFFD19824)   //differ from other cams
NHSTUB(PostLEDMessage, 0xFFC357C8 ) //questionable, might be wrong...
NHSTUB(PT_PlaySound, 0xffc4dcf0) //questionable, might be wrong...
NHSTUB(SetZoomActuatorSpeedPercent, 0xFFC00940) //nullsub, there are things like SetZoomActuatorSpeedPPS in fw
NHSTUB(TurnOffMic, 0xFFC36DD8)
NHSTUB(TurnOnMic, 0xFFC36DAC)
NHSTUB(UnlockAF, 0xFFC1509C)
NHSTUB(UnsetZoomForMovie, 0xFFD3E944)
NHSTUB(WriteSDCard, 0xFFD02B30)

Title: Re: SX110IS - howto start porting
Post by: chdkj on 19 / March / 2009, 16:50:58
... compile is running straight through but the cam don't like DISKBOOT.BIN. Cam feigns death. The SD card is write protected. A few changes to DISKBOOT.BIN by a simple editor lead to a "card is write protected" message. Seems that code from DISKBOOT.BIN is terribly wrong. Checked boot.c, lib.c, main.c and others and I will do this again.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 20 / March / 2009, 02:15:39
chdkj do you have akready spoken with nomi_68k ? Maybe he can give you the code and you can finish the work.

For all developers please keep this: http://chdk.wikia.com/wiki/SX110IS (http://chdk.wikia.com/wiki/SX110IS) actual.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 20 / March / 2009, 17:25:26
@Obihoernchen
I didn't talk with nomi_68k yet. Hope he reads the forum.

@all
I've checked my code again und discovered some faulty functions in boot.c. I've to rework them.

Actually I was wondering about JogDial_CW and JogDial_CCW in sub/lib.c. I've found the corresponding value in SX110 fw (0x2494). G9/SX100 don't use the respective value without increasing it of some other values in advance. Until now I couldn't figure out why.

Title: Re: SX110IS - howto start porting
Post by: ewavr on 20 / March / 2009, 17:35:17
Actually I was wondering about JogDial_CW and JogDial_CCW in sub/lib.c.

Forget about old SX100/G7/G9 code, look at modern SX10 code:

void JogDial_CW(void){
 _PostLogicalEventForNotPowerType(0x874, 2);  // RotateJogDialRight
}

void JogDial_CCW(void){
 _PostLogicalEventForNotPowerType(0x875, 2);  // RotateJogDialLeft
}


edit: 0x874 and 0x875 values may be camera model dependent, search them in firmware (in pair with RotateJogDialRight(Left)) strings.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 22 / March / 2009, 16:21:54
Thanks, Ewavr.

Checked sx110 fw and found 0x874 and 0x875 in similar contextes as in sx10. RotateJogDial* exists also in sx110. So I decided to use _PostLogicalEventForNotPowerType with those values in JogDial_C*.

Btw, your hint to newer SX10 code is absolutely interesting --> I'm going to rewrite at least sub/boot.c.

Regards.
Title: Re: SX110IS - howto start porting
Post by: Stavros on 22 / March / 2009, 18:14:18
Hello. I'm looking to buy a SX110 for use with CHDK but as I see here the port is not done yet... Would you happen to know if it can be/will be done soon, or whether I should look for another camera? Thanks...
Title: Re: SX110IS - howto start porting
Post by: nycjv321 on 23 / March / 2009, 20:57:27
Stavros... Look for another camera... (btw I enjoy my SX110 :) ) the port will be finished when it is finished....
Title: Re: SX110IS - howto start porting
Post by: the1who on 28 / March / 2009, 21:48:27
I wondered, is there a way with this Firmware to shoot like infrared?

Edit:  I found how to make an infrared filter so I do apologize for asking and I did what the video asked to do with checking sensitivity to IR by using a remote pointed at the camera. Check it out:
http://www.instructables.com/id/Take-Infrared-Pictures-With-Your-Digital-Camera/ (http://www.instructables.com/id/Take-Infrared-Pictures-With-Your-Digital-Camera/)

Interesting the camera in the video is a Canon too.  :D
Title: Re: SX110IS - howto start porting
Post by: chdkj on 29 / March / 2009, 17:14:05
Did a major rework of the whole code for sx110. It's now based on sx10-code and build725.
It tooks a lot of time, but that code is imho much better.

Cam still don't boot. I'm working on it...
Will publish my code soon.

Title: Re: SX110IS - howto start porting
Post by: tempUser on 29 / March / 2009, 17:55:17
Thanks again from all of us helpless onlookers for all of your ongoing work. Keep it up!
Title: Re: SX110IS - howto start porting
Post by: m_vitaly on 30 / March / 2009, 01:14:51
Hi, I've just bought sx110is and I would like to help porting it to my cam.
I have a good knowledge in programming.
Is there anything I can help you with ?
Title: Re: SX110IS - howto start porting
Post by: chdkj on 30 / March / 2009, 17:01:18
boot.c is running into an infinite loop: function loc_FFC001A4_my keeps in loop "BCC    loc_FFC001B0".
Does anyone from the more experienced developers have an idea?

I used the original firmware boot code (as sx10 does) in function boot() first but booting hungs in the loc_FFC0013C-part (look at function old_boot). So I decided to switch to older boot method as sx100 (for example) does: the canon_data_* and canon_bss_*-thing and do a jump straight into the init sequence (look at function boot() and loc_FFC001A4_my). And there you will get wild blinking..


@m_vitaly: yes, for sure. Porting is mainly done in terms of identifying function stubs and pointers in fw, adapting the source tree (mainly assembler code and pointers/addresses/registers/variables), defining camera properties and so on. Compiling is running through without errors and the camera accepts bootdisk.bin and it flashs the LEDs for debug. But thats all for now. The camera doesn't boot. If one have solved that, then we have to do a lot of testing and corrective work.

edit: deleted code sniplet
Title: Re: SX110IS - howto start porting
Post by: hnsight on 30 / March / 2009, 22:26:26
I'm like a crack addict, checking this thread daily!  :-D
Title: Re: SX110IS - howto start porting
Post by: chdkj on 01 / April / 2009, 15:13:41
Just an update: still working on porting sx110, no progress so far (but most work is done)
Problem: camera doesn't boot properly.

Something goes terribly wrong in the boot sequence. Still have no clue what it is.
I put some blink code (light a led) in between and that works. Means, boot() is starting up.

deleted: some wrong code

That's my stubs_min.S:

#include "stubs_asm.h"

DEF(physw_status, 0xFB38)   //found at ROM:FFC11100
DEF(physw_run, 0x1BD8 + 0xC)  //found at  ROM:FFC11064 and ROM:FFC11080
DEF(FlashParamsTable,0xFFEDD7C4)   //found at ROM:FFE14238
DEF(zoom_busy, 0x86B8+0x14)   //found at ROM:FFD121B4 and ROM:FFD1206C
DEF(focus_busy, 0x85B4+0x8)   //found at ROM:FFD0CD90 and ROM:FFD0CDA8
DEF(canon_menu_active, 0x93D0+0x4)   //found at ROM:FFD2CAA0 AND ROM:FFD2C87C , not 100% sure
DEF(canon_shoot_menu_active, 0x9B0C+0x1)   //found at ROM:FFD49AD4 and ROM:FFD498BC
DEF(recreview_hold, 0x9770+0xD0)   //found at ROM:FFD3AE34 and ROM:FFD3AA58
DEF(zoom_status, 0xC79C)   //found at ROM:FFE1575C 
DEF(movie_status, 0x5240+0x38)      //ROM:FFC4C120 and ROM:FFC4C788 (compare ROM:FF8634E8 in SX10!!!!)
DEF(enabled_refresh_physical_screen, 0xAA2C+0x30 )   //found at ROM:FFD8F750 and ROM:FFD8FBAC
DEF(playrec_mode, 0x5408+0x4)   //found at ROM:FFC545B4 and ROM:FFC542A4 (?????)

Maybe someone is able and willing to check those variables again from scratch on.

So far, so good.
Regards.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 01 / April / 2009, 16:20:59
I've attached all my files with code for sx110. Keep in mind that this is alpha code and the camera will not boot with it!. Feel free to test it, adapt it or make better code!
--> the zip-archive doesn't include PRIMARY.BIN!

Hope, that someone will participate and move it forward.
Have fun!

edit: deleted old code archive.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 02 / April / 2009, 16:21:28
What a mess!
First: All my branch instructions were wrong. All! Didn't realize that branch to something means branch to label (and not to hex address) --> fixed
Second: stubs_min.S was wrong --> fixed

All former problems are gone but result is still the same: camera doesn't boot. What is going on here?

Instruction "BL    sub_FFC02D3C\n" in boot.c -sub_FFC00F98_my()- is the last reached. I could take more and more time to chase the bug but I'm afraid that is useless --> someone has to check my code and all stuff around, please. I believe that I missed some point...

The whole code is attached (without PRIMARY.BIN which can be downloaded separately from http://chdk.wikia.com/wiki/SX110IS (http://chdk.wikia.com/wiki/SX110IS)).

Btw, is there anybody out there, who wants to participate at porting sx110?
Where is nomi_68k?

Regards.

edit: attachment deleted
Title: Re: SX110IS - howto start porting
Post by: hnsight on 02 / April / 2009, 18:37:58
I have an SX110 but am not worth much coding-wise.  If there is anything I can do though, please don't hesitate to hit me up. 
Title: Re: SX110IS - howto start porting
Post by: chdkj on 06 / April / 2009, 17:03:05
Hi folks, need some help finally.

Porting of sx110 stucks. I'm running out of ideas.
I think I have ported almost all camera dependent parts. But I can't test that it works because the camera doesn't boot. I'm struckling around for days/weeks now and can't identify the reason.

I'm appreciate for any help.

What I've done so far:
core/gui.c
core/kbd.c
include/camera.h
loader/<cam>/main.c
loader/<cam>/resetcode/main.c
platform/<cam>/kbd.c
platform/<cam>/lib.c
platform/<cam>/main.c
platform/<cam>/shooting.c
platform/<cam>/wrappers.c
platform/<cam>/sub/<fw>/boot.c
platform/<cam>/sub/<fw>/capt_seq.c
platform/<cam>/sub/<fw>/lib.c
platform/<cam>/sub/<fw>/makefile.inc
platform/<cam>/sub/<fw>/movie_rec.c
platform/<cam>/sub/<fw>/stubs_entry.S
platform/<cam>/sub/<fw>/stubs_entry_2.S
platform/<cam>/sub/<fw>/stubs_min.S

All files are checked and/or modified. I think I've understand the depencies of all those files, the boot process and how CHDK works.
Environment: Windows CHDK Shell 2.12, Trunk 725 (I had problems with setting up a working cross-compile-environment under Linux, so I decided to do the job under Windows)


What's wrong?
Boot process stops (presumably not really, it behaves as not as expected :-)).
The call trace is as following, observated by blinking LEDs.
--> startup () --> boot() --> loc_FFC001A4_my() --> sub_FFC00F98_my()

Let's concentrate to sub_FFC00F98_my: there are 2 interesting things..
1.) we have to change the preparation of a function call (""LDR    R1, =sub_FFC04D90_my\n")
2.) divert to another function nearly at the end ("BL    sub_FFC02D3C\n")

The latter statement is called but doesn't come back to sub_FFC00F98_my (I implemented those functions as inline asm in boot.c ).
As a remainder: sub_FFC02D3C contains 3 of those DryosPanic-calls.  sub_FFC02D3C jumps to sub_FFC01998 at the end. sub_FFC01998 jumps again to loc_FFC00528.
loc_FFC00528 does some useful things and the last statement of it is ""LDMFD   SP!, {R0-R12,LR,PC}^\n". In my understanding, loc_FFC00528 should return to sub_FFC00F98_my. But not at all: its return to somewhere and we are lost...

Memory Mapping? Stack Smashing? Dullness?

BTW, if I'm change the boot procedure to use the original loc_FFC001A4 instead of our loc_FFC001A4_my (that means leave CHDK at a very early stage and resume with Canon-code) so nothing will happen --> camera doesn't bot. But I can't exclude a fundamental misunderstandig of CHDK of mine.

So, what happens? As said before, I believe that something goes wrong in advance (possibly before startup()). That means either I did a fatal mistake (most likely) or SX110 is more tricky than expected.

@the more experienced developers: I know for sure that dealing with camera ports is a time consuming task and that it is not in your primary interest to go in with every camera on the market (there are even other things around us :-)). But, it is possible, that someone might check my code and take a look at the fw dump?

Are there any ideas?

Cheers.
 

Again, I've put all my code into an archive and attached it to this post (but you have to use a forum account to download the attachment)

edit: attachment deleted
Title: Re: SX110IS - howto start porting
Post by: chdkj on 07 / April / 2009, 14:52:01
A breakthrough at last!
SX110 boots further than before. Camera moves the lens out and reacts in some kind to keys pressed. But it doesn't show a logo/menu/screen. Zoom wheel doesn't work.
The reason for the problems before was a typo in boot.c. The wrong statement was syntactically right but leads to trouble.
I was starting to loose my hope for a successful port but now it looks much better than before. But I need assistance!

Here is the current status:
The lens will be moved out to its maximum zoom position. I think that is not so good...
As far as I understand CHDK offers two starting modes: playback and record mode. Playback mode will be reached by a short pressed power button, record mode by a longer pressed power button. Record mode will extend the lens. Camera doesn't show the boot logo in both modes. Actually, gui_redraw and others will be reached...

Some blinking LEDs appear after pressing keys -even shoot button-, no reaction to jogdial or zoom wheel.


There are some things left:
- files finished and checked but still some uncertainty exists:
   core/
      kbd.c   ZSTEP_TABLE_SIZE, nTxtbl
   platform/
      kbd.c   (KEY_MASKS ?)   --> http://chdk.setepontos.com/index.php/topic,2900.75.html (http://chdk.setepontos.com/index.php/topic,2900.75.html)
      shooting.c (dof_tbl ?)
   platform/sub/
      lib.c (hook_raw_image_addr ?, vid_get_viewport_live_fb ?)
- files finished but still need corrections
   include/
      camera.h (cam_CFAPattern, CAM_COLORMATRIX1, cam_CalibrationIlluminant1, CAM_ACTIVE_AREA_*)   --> Correct settings can be copied from DGN4PS2 settings
- firmware update method --> http://chdk.setepontos.com/index.php/topic,2995.0.html (http://chdk.setepontos.com/index.php/topic,2995.0.html)
- Testing, testing, testing

Everyone is invited to assist!

Again: my code is attached without PRIMARY.BIN and you have to be a forum member for download

Attention: be advised that this is experimental code. It might be damage your camera. If you could not accept this, do not use this code!

There is some debug code (blinking LEDs) in it, look for debug_my_blink or debug_my_blink2 or debug_led. Don't think that assembler routines will running as expected after we put some C-based debug code amongst.

EDIT: Attachment deleted (final version released on Autobuild already)
Title: Re: SX110IS - howto start porting
Post by: chdkj on 07 / April / 2009, 15:25:38
update: gui_draw_splash will be reached but the lcd keeps blank.

Cheers.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 07 / April / 2009, 16:49:16
Another update:
You can shoot pictures! The lcd still keeps blank, but the camera is able to shoot (JPG) and store pics to card. You have to press the playback button and then the shutter button. It's amazing...

There a still open questions about modemap and mode_get() in platform/<cam>/main.c. I think modemap could be as following (inspired by sx100 and sx10)

Code: [Select]
modemap[] = {
{ MODE_VIDEO_STD,          2597   }, // video standby, sx10
{ MODE_VIDEO_STD,          3622   }, // video in progress, sx10
    { MODE_VIDEO_COMPACT,      2599  },
    { MODE_SCN_AQUARIUM,       16407 },  //16408 in sx10
    { MODE_SCN_SNOW,           16403 },  //16404 in sx10
{ MODE_SCN_FOLIAGE,        16403  }, //sx10
{ MODE_SCN_SUNSET,         16402  }, //sx10
    { MODE_SCN_NIGHT,          16398 }, 
{ MODE_SCN_ISO_3200,       16413  }, //sx10
    { MODE_SCN_FIREWORK,       16405 },  //16406 in sx10
    { MODE_SCN_BEACH,          16404 },  //16405 in sx10
    { MODE_INDOOR,             32785 },
    { MODE_KIDS_PETS,          32784 },
    { MODE_NIGHT_SNAPSHOT,     32779 },
    { MODE_LANDSCAPE,          32780 },
    { MODE_PORTRAIT,           32781 },
{ MODE_AUTO,               32768  },
{ MODE_P,                  32772  },
{ MODE_TV,                 32771  },
{ MODE_AV,                 32770  },
{ MODE_M,                  32769  }
}

Where can we get a working modemap from?

Cheers.
Title: Re: SX110IS - howto start porting
Post by: pssd on 07 / April / 2009, 16:53:52
Great!

I am watchting this thread now for some time.
I think i cannot be of any help. I even tried to read some docs about arm assembling but it is hopeless. I don`t have any knowledge of coding/programming.
For me it would be easier to learn, how to fly.
So all I can do is thank You and hope that You won`t loose Your motivation.

Really great work!

Title: Re: SX110IS - howto start porting
Post by: ewavr on 07 / April / 2009, 17:06:21
Where can we get a working modemap from?

Using propertycase browser in debug menu (propcase #49).
Title: Re: SX110IS - howto start porting
Post by: chdkj on 08 / April / 2009, 15:28:01
A new child is born!

The name is SX110IS and it's a Canon.

SX110IS boots CHDK, shoots RAW and does a lot of funny and useful things like zebraing, DOF-calculating, drawing histograms and so on...  :D


I checked neither the integrity of all functions nor the results of them (like RAW).

Some buttons are mixed: JogDial up/down, Menu-button --> <ALT>, playback-button behaves a little bit unexpected
--> have to check some functions that deals with keyboard

To start CHDK:
- prepare your SD card and don't forget the write protection
- press "on/off" button long --> starts in record mode (short press: playback mode) --> I like this feature!
- press "menu" button short --> thats the <ALT> key, CHDK will "activated" (@developers: I beg your pardon)
- press "disp" button --> you will get the CHDK menu
- press "playback" button (the button with a right arrow) --> you enter playback mode
- press "playback" button again --> you enter record mode

If you would start the cam with a short pressed on/off than you will get the playback mode immediately but it's somehow complicated to enter the record mode after.

There are still issues left:
- Current platform-kbd.c is derived from sx100. I prefer to use sx10-code, but that was not so successful in terms of kbd.c. Now many things are getting clearer and we should try to switch back to sx10-code.
- We should implement the firmware update method for using CHDK on sx110 --> look at here: http://chdk.setepontos.com/index.php/topic,2995.0.html (http://chdk.setepontos.com/index.php/topic,2995.0.html)
- remove debug code if exists
- switch to current CHDK trunk

We need a list of items to check (e.g. scripting, remote control, RAW,...). I saw similar lists in some forum posts.
Most problematic functions left are written in C-code so don't hesitate to check and correct those. We should collect all changes and release a "collective update" from time to time until it reaches the final state.

Please, test as much as you can and check the code, if possible.

And I can not stress it enough: all those great things would not the possible without the altruistic and outstandig work of the CHDK developers! Thank you!!!

Wanna play? Use my code attached (trunk725.zip) and compile it for yourself (recommended method) or use the attached DISKBOOT.BIN (CHDK-sx110is-100b-0.9.7.zip). Use a cheap SD-card (use the 32 MB-Canon-SD-Card for instance, delivered with your cam -so in Germany at least-)!
I would call it Beta. It's more than Alpha but not RTM.

Again: this is experimental code! It might be damaged your camera an can produce headaches or even worser.

EDIT: Attachments deleted (final version released on Autobuild already)
Title: Re: SX110IS - howto start porting
Post by: chdkj on 08 / April / 2009, 15:29:34
Thanks ewavr! Now I got access to the CHDK-menu finally and therefore I can use the debug menu.

There are some other issues. I don't know how to get values for those properties:
- core/kbd.c:   ZSTEP_TABLE_SIZE, nTxtbl
- platform/<camera>/shooting.c: dof_tbl
- platform/<camera>/sub/lib.c: hook_raw_image_addr, vid_get_viewport_live_fb
- include/camera.h: cam_CFAPattern, CAM_COLORMATRIX1, cam_CalibrationIlluminant1, CAM_ACTIVE_AREA_* and a few other things
   COLORMATRIX --> I've read in forum that DGN4PS2 should be used for
- platform/<camera>/main.c: modemap    --> as ewavr said: Using propertycase browser in debug menu (propcase #49).
- platform/<camera>/kbd.c: keymap, keys_mask*
   keymap --> http://chdk.setepontos.com/index.php/topic,2900.75.html (http://chdk.setepontos.com/index.php/topic,2900.75.html) (basically, using debug osd for output of physw_status to get values for keys pressed and build a keymap) I did not found those values in fw dump, but I can not believe that they don't exist there.
   keys_mask* --> ???

Thanks a lot!
Cheers.
Title: Re: SX110IS - howto start porting
Post by: ewavr on 08 / April / 2009, 15:42:01
   keys_mask* --> ???

Code: [Select]
{ 1, KEY_PRINT    , 0x10000000 },
{ 1, KEY_ZOOM_IN  , 0x00000100 },
{ 1, KEY_ZOOM_OUT , 0x00000200 },
{ 1, KEY_RIGHT    , 0x00100000 },
{ 1, KEY_UP       , 0x00020000 },
{ 1, KEY_DOWN     , 0x00080000 },
{ 1, KEY_MENU     , 0x02000000 },
{ 1, KEY_DISPLAY  , 0x04000000 },
{ 1, KEY_SET      , 0x00010000 },
{ 1, KEY_ERASE    , 0x01000000 },
{ 1, KEY_LEFT     , 0x00040000 },
{ 1, KEY_FACE     , 0x08000000 },

Simply make arithmetical OR of this values for KEYS_MASK1

Code: [Select]
{ 0, KEY_SHOOT_FULL, 0x0000000C },
{ 0, KEY_SHOOT_HALF, 0x00000004 },

... and the same for KEYS_MASK0 (=0xC).

edit:
Quote
- press "menu" button short --> thats the <ALT> key, CHDK will "activated" (@developers: I beg your pardon)
- press "disp" button --> you will get the CHDK menu

Mmm. CHDK uses "print" key to activate <alt> mode, "menu" key for menu :).
Title: Re: SX110IS - howto start porting
Post by: chdkj on 08 / April / 2009, 15:48:49
Ewavr, thank you for the quick answer.
Title: Re: SX110IS - howto start porting
Post by: Inferno on 08 / April / 2009, 19:11:09
I'm no longer a programmer so I can't really do any debugging but can do beta testing.
1. CRW file can't be seen by DNG4PS-2. Usually this program can see even unknown CRW files and can convert them with bad result.
2. CHDK menu navigation (up/down) is reversed. When you press up the bar goes down.
Title: Re: SX110IS - howto start porting
Post by: TommyHot on 08 / April / 2009, 19:25:16
Keep up a good work. I just bought SX 110 IS yesterday and I'll try to run CHDK as soon as I get familiar with the camera.

Btw, will it be possible to use optical zoom in video mode?

Maybe we can get you some beers after you're done :)))
Title: Re: SX110IS - howto start porting
Post by: ahjon on 09 / April / 2009, 03:18:41
Hats off to chdkj, we each owes you a 6-pack.
14.7 MB (15,467,760 bytes) raw file from a 9 MP camera, is this right?

1. CRW file can't be seen by DNG4PS-2.

Same problems here. Also, can't open the raw file with PhotoLine.
Title: Re: SX110IS - howto start porting
Post by: Inferno on 09 / April / 2009, 06:38:39
I think this bin is only an alpha. Most major functions are not working. Video functions Raw functions and the rest are not working. Me personally only need RAW. I'm sure that 99% of Sx110 users will only need a hand full of functions.

6 pack from me as well.
Title: Re: SX110IS - howto start porting
Post by: mikado on 09 / April / 2009, 06:39:49
hello, i'm french and i bought sx110 since november and i would like to know if chdk sx110 is ported? i'm reading the forum and i found a method chdkj but i don't understand, thanks to help me and sorry for my poor english
Title: Re: SX110IS - howto start porting
Post by: TommyHot on 09 / April / 2009, 07:04:52
hello, i'm french and i bought sx110 since november and i would like to know if chdk sx110 is ported? i'm reading the forum and i found a method chdkj but i don't understand, thanks to help me and sorry for my poor english

Yes, you can say chdk is ported, but still needs heavy development though.
Title: Re: SX110IS - howto start porting
Post by: mikado on 09 / April / 2009, 11:59:00
ok thanks but where is the link and tuto for chdk sx110 ?
Title: Re: SX110IS - howto start porting
Post by: TommyHot on 09 / April / 2009, 12:01:23
It's couple of comments above :)

http://chdk.setepontos.com/index.php/topic,2838.msg31794.html#msg31794 (http://chdk.setepontos.com/index.php/topic,2838.msg31794.html#msg31794)

Title: Re: SX110IS - howto start porting
Post by: chdkj on 10 / April / 2009, 04:24:52
@all: thanks for the flowers... let's put the six packs together and have a party!

@inferno: Please, could you deliver more details about not working video so we can check and probably fix it?


Still need assistance. My time budget is limited and I can't check all functions and fix them if neccessary for my own.
I'm off for a few days now (Easter holidays) and I am busy till end of May!

Regards.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 10 / April / 2009, 04:47:06
Current status:
most annoying bug: RAW is definitely broken!


Code-related issues:
-- ------------------
- core/kbd.c:   ZSTEP_TABLE_SIZE, nTxtbl
- platform/<camera>/shooting.c: dof_tbl
- platform/<camera>/sub/lib.c: hook_raw_image_addr, vid_get_viewport_live_fb
- include/camera.h: cam_CFAPattern, CAM_COLORMATRIX1, cam_CalibrationIlluminant1, CAM_ACTIVE_AREA_* and a few other things
   COLORMATRIX --> I've read in forum that DGN4PS2 should be used for
- platform/<camera>/main.c: modemap    --> as ewavr said: Using propertycase browser in debug menu (propcase #49).
- platform/<camera>/kbd.c: keymap, keys_mask*
   keymap --> http://chdk.setepontos.com/index.php/topic,2900.75.html (http://chdk.setepontos.com/index.php/topic,2900.75.html) (basically, using debug osd for output of physw_status to get values for keys pressed and build a keymap) I did not found those values in fw dump, but I can not believe that they don't exist there.
- include/camera.h: properties need to be adjusted/corrected

- switch to new code base (trunk)
- implementation of firmware update method

Problems:
---------
- RAW
- LCD screen sometimes flickering (red snow)
- keyboard: mixed keys, wrong assignment --> might be interfere with a wrong keymap (and keys_mask* and alt_mode_key_mask)
- modemap
- zoom wheel doesn't work from time to time
- shutter button doesn't work from time to time
- scripts: badpixel.lua ends always with "Try again..", badpixel.bin will not generated (but bad_tmp.bin)

Solved:
-------
-


Others:
-------
- Multi-partitioning works, you can use your SDHC-cards.
- Video Zoom: Unfortunately real video zoom doesn't work. Only digital zoom is available but thats not that glorious. I think (but I don't know) CHDK is not able to bypass that restriction.
- Mixed keys: <face> seems to be <ALT> if you choose <print>  for <ALT> in OSD, <menu> becomes <ALT> if you choose <face> for <ALT> in OSD
   JogDial up/down is still swapped
- RAW: will be shot but is unusable --> maybe some wrong RAW-parameters. SX110 uses a new 9 MP-CCD and I couldn't get information about dimensions, active areas and so on.   I think that should be one of the most important things to fix. --> have a look at my camera.h and hook_raw_size (platform/<cam>/sub/<fw>/lib.c)
- battery indicator relies upon estimated values and might be wrong

Some toughts about RAW:
Sensor dimensions in camera.h are definitely wrong! Due to missing information about the real sensor size I made following assumptions (camera.h contains other values):

#define CAM_RAW_ROWPIX              3524   //? 
#define CAM_RAW_ROWS                2626   //? 
    #define CAM_JPEG_WIDTH  3456 //ok
    #define CAM_JPEG_HEIGHT 2592   //ok
    #define CAM_ACTIVE_AREA_X1 10 // ?
    #define CAM_ACTIVE_AREA_Y1 8 // ?
    #define CAM_ACTIVE_AREA_X2 3496 // ?
    #define CAM_ACTIVE_AREA_Y2 2622 //?

The only well known parameter is the JPEG-size. All others are derived from those values (4:3 aspect ratio, 1-2% bigger sensor size than JPEG-dimensions).

You have also to consider hook_raw_size.

   //      Found at ROM:FFE60B00
   //      ROM:FFE60BB4                 LDR     R1, =0xEC04F0
   //      ROM:FFE60BB8                 ADR     R0, aCrawBuffSizeP ; "CRAW BUFF SIZE  %p"
   //      ROM:FFE60BBC                 BL      sub_FFCE7000
   
  return 0xEC04F0;

Based on the assumption of a 10bit-sensor so 0xEC04F0 is to big. If 12bit and a 4:3 aspect ratio:

0xEC04F0 =15467760
15467760/12*8=10311840
10311840/0,75=13749120
sqrt(13749120)=3708
3708*0,75=2781

so real sensor size should be 3708x2781 ????


next point:
//#define DNG_EXT_FROM ".CR2" //??, commented out due to missing variables some_f_for_dng and second_ext_for_dng)
SX110 seems to handle RAW/DNG like SX10 and not like SX100.


Ok, thats all for now.

Have fun!

Title: Re: SX110IS - howto start porting
Post by: ewavr on 10 / April / 2009, 05:04:52
Based on the assumption of a 10bit-sensor so 0xEC04F0 is to big. If 12bit and a 4:3 aspect ratio:

0xEC04F0 =15467760
15467760/12*8=10311840
10311840/0,75=13749120
sqrt(13749120)=3708
3708*0,75=2781

so real sensor size should be 3708x2781 ????

3708x2781=10311948

Quote
  return 0xEC04F0;
The same size as for SX10. But SX10 is 10 MP camera, SX110 - 9 MP ???
Title: Re: SX110IS - howto start porting
Post by: TommyHot on 10 / April / 2009, 07:16:04
- Video Zoom: Unfortunately real video zoom doesn't work. Only digital zoom is available but thats not that glorious. I think (but I don't know) CHDK is not able to bypass that restriction.

Maybe I'm wrong, but I think CHDK was able to pass this restriction on SX 100. At least I've read it somewhere..
Title: Re: SX110IS - howto start porting
Post by: ewavr on 10 / April / 2009, 08:28:59
Maybe I'm wrong, but I think CHDK was able to pass this restriction on SX 100. At least I've read it somewhere..

Yes, optical zoom in video available for almost all cameras with CHDK.
Title: Re: SX110IS - howto start porting
Post by: popo_caris on 10 / April / 2009, 09:24:57
Perdon por pobre ingles, pero, como instalo el chdk y para que sirve el truk y como se instala???.
Estuve todo el dia tratando de instalarlo pero no pude.
chao
muchas gracias.
___________

Sorry for poor English, but as chdk install and to serve as Truk and installed?.
Spent all day trying to install but could not.
bye
thank you very much
Title: Re: SX110IS - howto start porting
Post by: Yarvieh on 10 / April / 2009, 21:10:04
- We should implement the firmware update method for using CHDK on sx110 --> look at here: http://chdk.setepontos.com/index.php/topic,2995.0.html (http://chdk.setepontos.com/index.php/topic,2995.0.html)

Looked into this, not much is needed. Set OPT_FI2 in the compiler options and insert the proper keys in fi2.inc .Since posting the keys has 'legal' issues i'll just tell you where to find them

IV sits at ROM:FFEF6938 and starts with 0xf7
KEY sits at ROM:FFFF1A08 and starts with 0x0b

(mods if I'm crossing a line by posting the first byte of both, please accept my apologies and remove all 16 offending bits of information)

After that just recompile, copy the resulting fi2 file to the sd-card and use the fw update function to start CHDK. *Yay* no more messing with that lock slider on the sd card :)

For the people unable to compile them selves I attached a copy of the resulting fi2 file, as with anything posted here use at own risk It works fine on my cam but if it eats your homework, kills your dog or steals your girlfriend I know nothing.

Great work chdkj!
Title: Re: SX110IS - howto start porting
Post by: nycjv321 on 11 / April / 2009, 00:16:52
ok I used Yarvieh's binary and it works here :D omg this is soooo cool
but I am confused
I didn't know what the "shortcut" button was to activate <alt> mode was...
so I figured out it was "face focus" button to show the current feature and "Disp" shows the main menu... (up goes down and down goes up in the menu which is weird for me... but doesn't matter) so I am in amazement!!! All you develops are awesome OMG!!!
It makes a raw files that are 14.7 MB (15,467,760 bytes) in size but I dont know any application that opens raw files created by sx110 is but that isn't important right now..... it is just so cool that it boots!!!
Title: Re: SX110IS - howto start porting
Post by: Yarvieh on 11 / April / 2009, 01:32:35
Been playing with the RAW feature all evening since i never used raw before so its kinda of a steep learning curve, since the math by chdkj and ewavr didn't come to a satisfying conclusion I wrote a quick app that just reads the file and displays the bayer matrix and have my eyes decide what looks ok :)

Its 3720 x 2772 12 bit data.

Updated camera.h with this information and enabled DNG support, (see here (http://chdk.setepontos.com/index.php/topic,2468.msg30870.html#msg30870) on how to use) however when i process the file its overly blue so I think there's still something wrong yet no clue what (I suspect the color matrix but not sure), ewavr any hints and tips on this?

Have attached updated binaries to this post.
Title: Re: SX110IS - howto start porting
Post by: nycjv321 on 11 / April / 2009, 02:33:09
gives error
"cannot load chdk/badpixel.bin
please run
chdk/scripts/test/badpixel.lua"

when trying to enable new DNG format
Title: Re: SX110IS - howto start porting
Post by: Yarvieh on 11 / April / 2009, 02:48:52
Quote
Code-related issues:
--------------------
- include/camera.h: cam_CFAPattern, CAM_COLORMATRIX1, cam_CalibrationIlluminant1, CAM_ACTIVE_AREA_* and a few other things

#define cam_CFAPattern 0x02010100 // Red  Green  Green  Blue

haven't touched with the others.

Quote
- platform/<camera>/main.c: modemap    --> as ewavr said: Using propertycase browser in debug menu (propcase #49).

Code: [Select]
static struct {
int hackmode;
int canonmode;
} modemap[] = {
  { MODE_VIDEO_STD,          2600  },  //Verified
  { MODE_VIDEO_COMPACT,      2602  },  //Verified
  { MODE_SCN_AQUARIUM,       16408 },  //Verified
  { MODE_SCN_SNOW,           16404 },  //Verified
  { MODE_SCN_FOLIAGE,        16403 },  //verified
  { MODE_SCN_SUNSET,         16402 },  //verified
  { MODE_SCN_NIGHT,          16398 },  //verified
  { MODE_SCN_ISO_3200,       16413 }, //verified
  { MODE_SCN_FIREWORK,       16406 },  //verified
  { MODE_SCN_BEACH,          16405 },  //verified
  { MODE_INDOOR,             32785 },  //verified
  { MODE_KIDS_PETS,          32784 }, //verified
  { MODE_NIGHT_SNAPSHOT,     32779 },  //verified
  { MODE_LANDSCAPE,          32780 }, //verified
  { MODE_PORTRAIT,           32781 },  //verified
  { MODE_AUTO,               32768 },  //verified
  { MODE_P,                  32772 },  //verified
  { MODE_TV,                 32771 },  //verified
  { MODE_AV,                 32770 },  //verified
  { MODE_M,                  32769 },  //verified
  { MODE_EASY,               33311 }   //verified
};

Quote
- include/camera.h: properties need to be adjusted/corrected

I added these to make raw support semi usefull

Code: [Select]
    #undef CAM_SENSOR_BITS_PER_PIXEL
    #define CAM_SENSOR_BITS_PER_PIXEL   12
    #undef CAM_WHITE_LEVEL
    #define CAM_WHITE_LEVEL             ((1<<CAM_SENSOR_BITS_PER_PIXEL)-1)
    #define DNG_SUPPORT                 1

CAM_RAW_ROWPIX and CAM_RAW_ROWS where oddly enough already set to the proper values.
Title: Re: SX110IS - howto start porting
Post by: Yarvieh on 11 / April / 2009, 02:55:42
gives error
"cannot load chdk/badpixel.bin
please run
chdk/scripts/test/badpixel.lua"

when trying to enable new DNG format

Well uhh it tells you whats wrong and what to do to fix it (as does the post I linked), not quite sure how to help you with that :)

If you don't have a copy of the script it mentions it grab a copy of a daily build for another camera and copy over the CHDK folder that contains all fonts and scripts and icons etc etc.
Title: Re: SX110IS - howto start porting
Post by: Yarvieh on 11 / April / 2009, 05:46:41
Since chdkj  had a reasonable status report I'll just update it with what i did today.
I attached a patch against svn revision 729 and the latest binaries.

Current status:

Code-related issues:
--------------------
- core/kbd.c:   ZSTEP_TABLE_SIZE, nTxtbl
- platform/<camera>/shooting.c: dof_tbl
- include/camera.h: CAM_COLORMATRIX1, cam_CalibrationIlluminant1, CAM_ACTIVE_AREA_* and a few other things
   COLORMATRIX --> I've read in forum that DGN4PS2 should be used for
- include/camera.h: properties need to be adjusted/corrected


Problems:
---------
- LCD screen sometimes flickering (red snow)
- zoom wheel doesn't work from time to time (haven't noticed this)
- shutter button doesn't work from time to time  (haven't noticed this)

Solved:
-------
- keyboard: mixed keys, wrong assignment, JogDial up/down is swapped
- modemap
- scripts: badpixel.lua success (or atleast on my cam)
- switch to new code base (trunk) (synced up to 729)
- implementation of firmware update method (see earlier post on where to obtain keys)

Kinda Solved:
-------------
- Raw all code is ok, the file generated is ok just nothing seems to be able to process it, if you use DNG it gets a blue haze other then that looks good maybe CAM_COLORMATRIX1 related? Wrote a quick app to verify the CRW files and they look OK as well. Its just up to 3rd party apps to support this format. If i have time tomorrow i'll email a patch to the dcraw guy.

Others:
-------
- battery indicator relies upon estimated values and might be wrong
 
Title: Re: SX110IS - howto start porting
Post by: fe50 on 11 / April / 2009, 06:49:40
chdk/scripts/test/badpixel.lua"
--> you'll find a small "enable DNG support" guidance here: http://chdk.setepontos.com/index.php/topic,2468.msg30870.html#msg30870 (http://chdk.setepontos.com/index.php/topic,2468.msg30870.html#msg30870)
Title: Re: SX110IS - howto start porting
Post by: axu89 on 11 / April / 2009, 07:00:49
Nice work everyone! Looks like after chdkj got the camera to boot up a lot of other people got interested :)
Mostly I need CHDK for bracketing and it seems to work with no problem, at least in the latest version by Yarvieh :D
My programming skills are pretty limited but I'll do some beta-testing ..

Keep up the good work guys! (oh, and yeah, six pack for every developer out there from me too)
Title: Re: SX110IS - howto start porting
Post by: ewavr on 11 / April / 2009, 07:08:30
- LCD screen sometimes flickering (red snow)

Corrupted zebra?
Title: Re: SX110IS - howto start porting
Post by: axu89 on 11 / April / 2009, 16:20:58
- LCD screen sometimes flickering (red snow)

Corrupted zebra?
I have just little experience with this, but yes, I would say corrupted zebra..
When Zebra is disabled theres no traces of snow anywhere.
When Zebra is enabled and shutter button is half pressed theres red snow everywhere (Blink mode), the pattern changes little bit so it really looks like snow. If Blink is changed to Zebra, the snow transforms into "red zebra-snow".

No matter what threshold settings I use, Zebra mode wont work like it should. Thou.. If I keep shutter button half pressed long time, theres some rare short flashes of the real zebra pattern on the over-exposed parts (like it should).
Title: Re: SX110IS - howto start porting
Post by: Yarvieh on 11 / April / 2009, 16:43:47
I left that item on the list cause it was on chdkj's original list I haven't seen any of the red noise he mentions though (but have to admit haven't been looking for it either) The zebra however is definitly corrupt I'm getting none of the 'it kinda works' like axu89 has. It looks more like pure random data overlayed on the image, probably getting data from a wrong memory location somewhere. Its not too high on my prio list but if anyone wants to have a go at it, go nuts :)

My Current (and probably only) objective is to have raw(almost)+bracketing(working great) working so I can use this cam on my gigapan unit anything else that gets fixed on the way is just a nice bonus. :)
Title: Re: SX110IS - howto start porting
Post by: magicmanevan on 11 / April / 2009, 22:52:32
The zip files that Yarvieh and chdkj posted, are those files able to be put onto the SD card from CardTricks?

Or are those files to other people to work on?

If they are files to be put onto the SD card, can someone tell me how to do so? I have tried using Card Tricks but when I turn on the camera, I cannot find the CHDK no matter how many diff. options I try.
Title: Re: SX110IS - howto start porting
Post by: nycjv321 on 11 / April / 2009, 23:55:18
no point in using this firmware if you can't even manage to load it....
you should check this out http://chdk.wikia.com/wiki/CHDK_for_Dummies (http://chdk.wikia.com/wiki/CHDK_for_Dummies)
Title: Re: SX110IS - howto start porting
Post by: magicmanevan on 12 / April / 2009, 00:05:25
I got it working, this is great! Thanks to all who helped to develop this!
Title: Re: SX110IS - howto start porting
Post by: xterm on 12 / April / 2009, 07:11:13
Great guys i was waiting for the porting. I want to use it with my gigapan unit for bracketing. Thanks
Title: Re: SX110IS - howto start porting
Post by: axu89 on 12 / April / 2009, 12:05:48
Someone with better knowledge could update the wiki-page? http://chdk.wikia.com/wiki/SX110IS (http://chdk.wikia.com/wiki/SX110IS)
Title: Re: SX110IS - howto start porting
Post by: mikado on 12 / April / 2009, 13:53:02
how install this chdk please? thanks
Title: Re: SX110IS - howto start porting
Post by: popo_caris on 12 / April / 2009, 14:02:23
Yes, How Install??? Pleaseeee!!!!

Thanks
Title: Re: SX110IS - howto start porting
Post by: darkabhi on 12 / April / 2009, 14:07:13
@mikado & popo_caris

1. download latest cardtricks from http://chdk.wikia.com/wiki/CardTricks (http://chdk.wikia.com/wiki/CardTricks)

2. download chdk from this link: http://chdk.setepontos.com/index.php?action=dlattach;topic=2838.0;attach=3172 (http://chdk.setepontos.com/index.php?action=dlattach;topic=2838.0;attach=3172)

3. follow these instructions: http://chdk.wikia.com/wiki/CHDK_for_Dummies (http://chdk.wikia.com/wiki/CHDK_for_Dummies)



 
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 12 / April / 2009, 14:17:45
hi guys!
is this chdk the final version or an alpha (or beta)?
is it possible to play divx videos with the camera or it needs a really hard firmware hack?
Title: Re: SX110IS - howto start porting
Post by: mikado on 12 / April / 2009, 16:30:39
it work for me but i would like to shoot in raw and what raw file prefix, raw file extension, raw subtract prefix and raw subtract extension???? many thanks
Title: Re: SX110IS - howto start porting
Post by: axu89 on 12 / April / 2009, 17:14:11
hi guys!
is this chdk the final version or an alpha (or beta)?
is it possible to play divx videos with the camera or it needs a really hard firmware hack?
it work for me but i would like to shoot in raw and what raw file prefix, raw file extension, raw subtract prefix and raw subtract extension???? many thanks

Guys please read previous posts in the thread.. You will discover that this CHDK isnt yet final, I dont know if it should be called alpha or beta, I would say its just alpha because theres so few things that work OK.

Raw-shooting IS NOT yet completely functional, you can shoot DNG's but the result will be somewhat blue and trying to take CRW's hasnt been successfull for me. Yarvieh is working on the RAW (I hope so :P).

Searching the forum will give you many answers ...
Title: Re: SX110IS - howto start porting
Post by: popo_caris on 12 / April / 2009, 17:15:51
XD ahora si que pude, me faltaba hacer el ultimo paso, jajajaa, muy bakan.... provandoo  mil graciass
Title: Re: SX110IS - howto start porting
Post by: Hyst on 12 / April / 2009, 19:27:46
Hi,

first of all: great work porting this thing..
i bought the sx110 yesterday and just found out today, that there is such a thing like: chdk.

so here is my 2 minute beta-testing "kind-off" report *g*

Since chdkj  had a reasonable status report I'll just update it with what i did today.
I attached a patch against svn revision 729 and the latest binaries.

Current status:

Solved:
-------
- keyboard: mixed keys, wrong assignment, JogDial up/down is swapped

i tried the "CHDK-sx110is-100b-0.9.7" but keys (ub/down) are still mixed.

- Optical Zoom is not availible while shooting a video
- The rear/2nd shutter sync does not work. The camera is still flashing at the beginning of the exposure and not at the end.

greetings
Title: Re: SX110IS - howto start porting
Post by: Yarvieh on 12 / April / 2009, 19:34:30
People I understand you're all excited but could we please limit this thread to development and bugs only? If you have trouble getting it to run or don't know how CHDK works please go to the appropiate place and ask for help there.

I haven't been able to get rid of the blue haze in the DNG's produced by CHDK, I patched DNG4PS-2 to read the CRW files produced by CHDK and those look ok. However DNG4PS-2 has been written with 10 bit RAW in mind getting it to deal with 12 bit images will take significant changes to the codebase. (my copy now deals with the SX110 but breaks all other camera's ) so it might still take a while for me to finish my patch and submit it back to the opensource project. Putting the new calibration matrix calculated by DNG4PS-2 into CHDK still doesn't get rid of the blue haze though no clue whats going on there.

I'll attach my copy of DNG4PS-2 but realize this breaks all compatibilty with all other camera's and will only work for the sx110is and it still tosses out 2 bits of information. Given the bad quality of this patch please do not redistribute anywhere. I'll do my best to get a more high quality patch to the DNG4PS-2 guys when i have more time on my hands. you might need the Visual C Runtime (http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en) before it will run on your system. Please don't ask for support on this quick hack.

I have submited a patch to the dcraw guy since that seems to be the base for alot of raw convertors, haven't heard back on that one though.
Title: Re: SX110IS - howto start porting
Post by: Yarvieh on 12 / April / 2009, 19:37:55
i tried the "CHDK-sx110is-100b-0.9.7" but keys (ub/down) are still mixed.
Keys definitly work fine on my cam, I might have accidentally attached an old copy can you try the one attached to this post?
Title: Re: SX110IS - howto start porting
Post by: Hyst on 12 / April / 2009, 20:04:11
Yes, with this one it is working.
nice done!

what i don't really like is this power-up feature.
short press on the on/off button -> play mode
long press on the on/off button -> record mode

is there a way to disable this?
because you can go to the play mode everytime you press the play-mode button (even when the camera is turned off).

best regards
Title: Re: SX110IS - howto start porting
Post by: Yarvieh on 12 / April / 2009, 20:27:34
Actually thought it was kinda of a neat feature no idea how it works though its all chdkj's magic that made it boot.

Personally I don't like running CHDK all the time so use the firmware update method to start it. (copy the fi2 file to sdcard, hit play, hit menu , bottom option)
Title: Re: SX110IS - howto start porting
Post by: marko_serb on 13 / April / 2009, 03:09:46
This is where the magic starts ;) Respect!!!
Title: Re: SX110IS - howto start porting
Post by: Hyst on 13 / April / 2009, 04:08:52
Hi again.

here is a nother "bug". If you have mapped the alt-key onto the print-key the auto-iso shift wont work. neither with a short nor with a long press of the button

Actually thought it was kinda of a neat feature no idea how it works though its all chdkj's magic that made it boot.

Personally I don't like running CHDK all the time so use the firmware update method to start it. (copy the fi2 file to sdcard, hit play, hit menu , bottom option)
i see. still... if you figure it out, or someone knows how to change it, let me know :)
Title: Re: SX110IS - howto start porting
Post by: magicmanevan on 13 / April / 2009, 20:32:21
Can someone PLEASE tell me how I can get the long exposures, up to the 64 seconds?

I have been playing with the override shutter speed and I change it but using it in Manual or TV mode, it does not get changed, even with the "Disable Overrides" set to off.

So can someone please tell me the steps to do a long exposure? Then, the instructions should be the same for doing a sort shutter, right?

Title: Re: SX110IS - howto start porting
Post by: axu89 on 13 / April / 2009, 21:20:26
Can someone PLEASE tell me how I can get the long exposures, up to the 64 seconds?

I have been playing with the override shutter speed and I change it but using it in Manual or TV mode, it does not get changed, even with the "Disable Overrides" set to off.

So can someone please tell me the steps to do a long exposure? Then, the instructions should be the same for doing a sort shutter, right?

The overrides should work no matter which mode is selected but after experimenting with the Tv-override I couldnt get it working neither.
Need to do some fixing on that too..
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 14 / April / 2009, 05:45:11
Someone with better knowledge could update the wiki-page? http://chdk.wikia.com/wiki/SX110IS (http://chdk.wikia.com/wiki/SX110IS)

I updated it a little bit...

I was on holiday and when I returned...

 :oWOW :o

Porting is nearly finished  :D :D :D

Thanks at all developer! I will test the "beta" and will report bugs.
Title: Re: SX110IS - howto start porting
Post by: fboesch on 14 / April / 2009, 07:38:12
Can someone PLEASE tell me how I can get the long exposures, up to the 64 seconds?

I have been playing with the override shutter speed and I change it but using it in Manual or TV mode, it does not get changed, even with the "Disable Overrides" set to off.

So can someone please tell me the steps to do a long exposure? Then, the instructions should be the same for doing a sort shutter, right?



Manual & TV Mode are good (P & Av show extreme exposure calculations)

Then you have to change

Shutterspeed enum type: from Ev Step to Factor
Set "Override shutter speed" to let's say 9
Set Value Factor to let's say 10

--> 9*10 = 90 sec Exposure!

:-)

--> Found in initial A580 Port Thread and subsequent "Long Exposure" Thread

Title: Re: SX110IS - howto start porting
Post by: Hyst on 14 / April / 2009, 15:35:17
Manual & TV Mode are good (P & Av show extreme exposure calculations)

Then you have to change

Shutterspeed enum type: from Ev Step to Factor
Set "Override shutter speed" to let's say 9
Set Value Factor to let's say 10

--> 9*10 = 90 sec Exposure!

:-)

--> Found in initial A580 Port Thread and subsequent "Long Exposure" Thread



it does not work for me...
i could not manage to override the exposure. the OSD shows me my overrided exposure time. but just when i press the shot-button it switches to the original one. (it does not matter if i am in P, Tv, Av or M mode)
Title: Re: SX110IS - howto start porting
Post by: axu89 on 14 / April / 2009, 17:20:43
it does not work for me...
i could not manage to override the exposure. the OSD shows me my overrided exposure time. but just when i press the shot-button it switches to the original one. (it does not matter if i am in P, Tv, Av or M mode)

None of the overrides work, TV, AV, ISO.. all show up in the OSD but when you press the button the TV-value shows original and the rest show the overrided value but none is affected by the overrides. Could it be similar problem?: http://chdk.setepontos.com/index.php/topic,2654.msg24845.html#msg24845 (http://chdk.setepontos.com/index.php/topic,2654.msg24845.html#msg24845)
Title: Re: SX110IS - howto start porting
Post by: Inferno on 15 / April / 2009, 06:42:08
Actually I can't make DNG4PS-2 that Yarvieh compiled to work. It says
F:\DCIM\100CANON\IMG_4114.CRW
Error: wrong_camera_type
When I go to options to specify the camera and go back to convert it doesn't say anything
Just writes
-----------
finish.
When I press "refresh" RAW file list dissipates. When I start program again everything starts again.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 15 / April / 2009, 07:16:00
I used the latest CHDK from Yarvieh and put the newest Verion of CHDK full in it.
So now you have all languages, sample scripts, alternative symbols and so on.
If you already have CHDK you only have to copy the CHDK folder over the existing one.

thx @ nomi_68k, chdkj, Yarvieh and all other helper!



 :o :o After over 500 Downloads !IMPREESIVE! SX110IS Port is at Autobuild Server now :o :o


Download CHDK  SX110IS 1.00B full: -- in Autobuild now --> http://mighty-hoernsche.de/ (http://mighty-hoernsche.de/)or look for the newest version in this thread
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 15 / April / 2009, 07:41:09
I have mentioned a very big bug if you use OSD-Codepage Win1252 (for german for example) instead of 1251 the camera hang on boot.
It wasnt the Codepage it is the Startup Sound. When I enable the Startup Sound in the CHDK menu the camera hang on boot. Maybe the CHDK dont know how to contact the Camera with Sound...
Title: Re: SX110IS - howto start porting
Post by: axu89 on 15 / April / 2009, 11:04:57
Actually I can't make DNG4PS-2 that Yarvieh compiled to work. It says
F:\DCIM\100CANON\IMG_4114.CRW
Error: wrong_camera_type
When I go to options to specify the camera and go back to convert it doesn't say anything
Just writes
-----------
finish.
When I press "refresh" RAW file list dissipates. When I start program again everything starts again.

It works for me. If you dont have the JPEG file with the RAW, you must select camera type from the menu (in the options). (the (CHDK) RAW file doesnt have EXIF data, JPEG file contains the EXIF data with the camera model info)

I used the latest CHDK from Yarvieh and put the newest Verion of CHDK full in it.
So now you have all languages, sample scripts, alternative symbols and so on.
If you already have CHDK you only have to copy the CHDK folder over the existing one.

With the "tv_uni_e.lua" script bundled in the full version I succeed to override the TV value..
It would be nice thou if I could change it directly from the CHDK menu. Running a script for that purpose isnt very practical  :(
Title: Re: SX110IS - howto start porting
Post by: Inferno on 15 / April / 2009, 16:14:53
axu89: Thanks it works when JPG is together with CRW but program doesn't work when there is no JPG. Selecting camera from the list doesn't work. Program loosing RAW list and doesn't work.
Title: Re: SX110IS - howto start porting
Post by: Yarvieh on 15 / April / 2009, 19:13:00
Like I said before what i posted is by no means a 'good' patch for dng4ps-2 its more that you guys have something to play with that actually (kinda) can handle the files since there's nothing else out there that does. I'm working with dave from dcraw on a patch for dcraw (Trying to get a proper color matrix for that at the moment) and on my own on a proper patch for dng4ps-2.
Title: Re: SX110IS - howto start porting
Post by: Inferno on 15 / April / 2009, 19:49:41
At present stage if you like to convert RAW from sx110 you need to make sure that JPG and RAW are in the same folder. Get this http://chdk.setepontos.com/index.php?action=dlattach;topic=2838.0;attach=3205 (http://chdk.setepontos.com/index.php?action=dlattach;topic=2838.0;attach=3205). Make sure you don't go to options and change anything. This will break the program. Gently select a folder with RAW+JPG then select destination and press convert. If you do this it converts RAW to DNG very well.
Title: Re: SX110IS - howto start porting
Post by: Brasaral on 16 / April / 2009, 06:41:17
To the battery values... The camera turns itself off at 2000mV and when recharged batteries are inserted, it shows 2700mV (NiMH GP ReCyko+). I'd set the upper value a little lower than 2700, maybe 2650 or 2600, so it would show 100% longer. Better than starting at 90% or so.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 16 / April / 2009, 07:47:59
To the battery values... The camera turns itself off at 2000mV and when recharged batteries are inserted, it shows 2700mV (NiMH GP ReCyko+). I'd set the upper value a little lower than 2700, maybe 2650 or 2600, so it would show 100% longer. Better than starting at 90% or so.

It isn't right... The Camera doesn't shutdown at 2000mV allways. Why I dont know, but other recharged batteries also have other shutdown mV. For me some cheap batteries shut down at 2200mV :(^^ But my good ones only at 2000mV
Title: Re: SX110IS - howto start porting
Post by: fboesch on 16 / April / 2009, 13:01:32
it does not work for me...
i could not manage to override the exposure. the OSD shows me my overrided exposure time. but just when i press the shot-button it switches to the original one. (it does not matter if i am in P, Tv, Av or M mode)

None of the overrides work, TV, AV, ISO.. all show up in the OSD but when you press the button the TV-value shows original and the rest show the overrided value but none is affected by the overrides. Could it be similar problem?: http://chdk.setepontos.com/index.php/topic,2654.msg24845.html#msg24845 (http://chdk.setepontos.com/index.php/topic,2654.msg24845.html#msg24845)

I do not have an SX110....(Me, I'm the SX1 IS porter)...but what you describe points out that

a) either not yet all "adresses" are properly ported in your "build" for the SX110 (<-- "ALL" Overrides do not work!)

b) or eventually you have a wrong "general" button: --> First entry on "Extra Photo Operations" needs to be set to DISABLED  (= do not "disable Overrides"!) :-) If it is set to "ON" it WILL disable the overrides..

---------------

Long Exposure:  Don't know who is the "porter" of your thread....actually check, that the "Long Exposure" Parameter is also defined on the SX110 Section in "camera.h" file!  Else - despite of "ported" code - long exposures are still not possible. (<-- made this experience myself) :-)

Hope this helps you, guys....

Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 16 / April / 2009, 15:34:38
b) or eventually you have a wrong "general" button: --> First entry on "Extra Photo Operations" needs to be set to DISABLED  (= do not "disable Overrides"!) :-) If it is set to "ON" it WILL disable the overrides..

I tryed it out and its set to disabled, but no override work :(
Title: Re: SX110IS - howto start porting
Post by: fboesch on 16 / April / 2009, 18:45:04
b) or eventually you have a wrong "general" button: --> First entry on "Extra Photo Operations" needs to be set to DISABLED  (= do not "disable Overrides"!) :-) If it is set to "ON" it WILL disable the overrides..

I tryed it out and its set to disabled, but no override work :(

Well: Then the SX110 Porting-Team has still a good way to go...(--> some adresses within file "capt_seq.c" are not ported yet correctly or it is a build, where the "override call" has been "remarked" --> (= not active in the file you are using))...
Title: Re: SX110IS - howto start porting
Post by: Inferno on 16 / April / 2009, 19:19:12
I got camera to crush. When temperature of optics is displayed everything fine. When ccd temperature displayed everything is fine but when battery temperature displayed or "all displayed" camera crushes.
Title: Re: SX110IS - howto start porting
Post by: axu89 on 16 / April / 2009, 19:36:49
I got camera to crush. When temperature of optics is displayed everything fine. When ccd temperature displayed everything is fine but when battery temperature displayed or "all displayed" camera crushes.

Confirmed.. same here.  :(
I didnt know these cameras have multiple temp sensors before trying CHDK :o Whats the use of them :/
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 16 / April / 2009, 20:32:46
I have collecteted all known bugs. So its easier for the developer... I also collected possible solutions and tryed to sort the bugs according to importance. I will update the post daily ;)


BUGS

See Wiki page:
http://chdk.wikia.com/wiki/SX110IS#Known_bugs (http://chdk.wikia.com/wiki/SX110IS#Known_bugs)

post or pm me all bugs, I will add them

Last Update: 23.04.09
Title: Re: SX110IS - howto start porting
Post by: apsus on 16 / April / 2009, 23:24:10
At present stage if you like to convert RAW from sx110 you need to make sure that JPG and RAW are in the same folder. Get this http://chdk.setepontos.com/index.php?action=dlattach;topic=2838.0;attach=3205 (http://chdk.setepontos.com/index.php?action=dlattach;topic=2838.0;attach=3205). Make sure you don't go to options and change anything. This will break the program. Gently select a folder with RAW+JPG then select destination and press convert. If you do this it converts RAW to DNG very well.

I still can't get DNG4PS2 to work. It is just unable to locate any of my CRW files. I tried putting them together with the JPGs (using CHDK menu settings) but nothing changed. Is there any filename requirement? What is the download for? I tried overwrite the official DNG4PS2 build with the downloaded EXE file but it fails to start, saying something like "configuration is wrong". Am I missing something here? Thanks!
Title: Re: SX110IS - howto start porting
Post by: Inferno on 17 / April / 2009, 00:29:44
At present stage if you like to convert RAW from sx110 you need to make sure that JPG and RAW are in the same folder. Get this http://chdk.setepontos.com/index.php?action=dlattach;topic=2838.0;attach=3205 (http://chdk.setepontos.com/index.php?action=dlattach;topic=2838.0;attach=3205). Make sure you don't go to options and change anything. This will break the program. Gently select a folder with RAW+JPG then select destination and press convert. If you do this it converts RAW to DNG very well.

I still can't get DNG4PS2 to work. It is just unable to locate any of my CRW files. I tried putting them together with the JPGs (using CHDK menu settings) but nothing changed. Is there any filename requirement? What is the download for? I tried overwrite the official DNG4PS2 build with the downloaded EXE file but it fails to start, saying something like "configuration is wrong". Am I missing something here? Thanks!

Uninstall the old DNG2PS. Make a directory in Program files. (If you have Vista then make directory outside Program files and enable run as Windows XP SP2.) Copy DNG2PS2.exe form the archive and run it. Make sure that files are IMG_0001.CRW together with IMG_0001.JPG and so on. It works. I've done it many times now.

PS You may need to remove registry DNG4PS2 entry @
HKEY_CURRENT_USER\Software\dng4ps2

step by step Start\Run\regedit\Edit\Find\DNG4PS2

Quote
Confirmed.. same here.  Sad
I didnt know these cameras have multiple temp sensors before trying CHDK Shocked Whats the use of them :/

I think camera reads the temperatures and adjusts its balances (color, shutter...etc) because CCD @ 40c should have different specs then CCD @ 20c. Or maybe they have a mini TEC thermistors to warm up or cool down elements (CCD and optics).
Title: Re: SX110IS - howto start porting
Post by: Inferno on 17 / April / 2009, 00:41:25
BUGs:
Video: No difference between Bitrate 1x 2x 3x @ 99% ( I owned 720IS, there should be a VERY BIG difference) Switching from Bitrate to Quality makes a difference but switching 1x 2x 3x @99% in this mode also makes no difference. Also there is no difference between Bitrate 3x @ 99% and standard 640x480 that Canon makes without chdk.
Title: Re: SX110IS - howto start porting
Post by: poormayank on 17 / April / 2009, 02:36:35
CHDK loaded very well on my SX110 IS. I ran the bad pixel script and turned the DNG option on. However, RAW files, when opened in Lightroom, have a strange, saturated pink cast. Have tried all options (camera settings + WB correction) but to no avail. Is DNG for SX110 IS still been developed?

Thanks for all your hard work on this build, I buy Canon mainly because of CHDK :-)
Title: Re: SX110IS - howto start porting
Post by: AndreaB65 on 17 / April / 2009, 03:29:48
Even if I have no experience in developping chdk yesterday I managed to apply the posted patch to trunk 729 and had a look to camera.h
I enabled the optical zoom in movie mode and recompiled. Now it appears in chdk menu but it does not work.
Also I noticed that TV ovveride was not enabled  in camera.h but enabling it chdk does not compile anymore for a missing external function.
I think that many addresses of the original firmware must be wrong, but I don't know if I'll be able to check them. Could anybody  with more experience try to dissassemble the firmware with IDA and check the addresses?
Thanks
Title: Re: SX110IS - howto start porting
Post by: Inferno on 17 / April / 2009, 06:14:08
CHDK loaded very well on my SX110 IS. I ran the bad pixel script and turned the DNG option on. However, RAW files, when opened in Lightroom, have a strange, saturated pink cast. Have tried all options (camera settings + WB correction) but to no avail. Is DNG for SX110 IS still been developed?

Thanks for all your hard work on this build, I buy Canon mainly because of CHDK :-)

Actually this is a known bug. If you look few pages back you will see this issue discussed. Only way around is RAW+JPG and the DNG4PS2 attached here.
Title: Re: SX110IS - howto start porting
Post by: lucmovel on 18 / April / 2009, 19:36:14
The bug (or feature?) that bugs me the most right now when using CHDK is that the camera no longer starts up in Record mode, it always starts in Playback mode and displays the latest shot. That really hampers my quick draw in the face of opportunity.
Title: Re: SX110IS - howto start porting
Post by: Yarvieh on 18 / April / 2009, 19:46:34
Hold the button longer or use the firmware upgrade method.
Title: Re: SX110IS - howto start porting
Post by: lucmovel on 18 / April / 2009, 20:08:20
Oh! Nice. Thank you.  :)

Should be the other way around, though.  :-[
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 19 / April / 2009, 08:28:28
hi!
a can't make the sd card bootable...
nothing happens when I choose this on the menu
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 19 / April / 2009, 09:27:58
hi!
a can't make the sd card bootable...
nothing happens when I choose this on the menu

Because this option isnt for DryOS Cams. Its an option for VxWorks Cams. Use CardTricks for this Job: http://chdk.wikia.com/wiki/Cardtricks (http://chdk.wikia.com/wiki/Cardtricks)
Title: Re: SX110IS - howto start porting
Post by: ewavr on 19 / April / 2009, 12:13:08
Because this option isnt for DryOS Cams. Its an option for VxWorks Cams.
Every day learn something new  :o
Title: Re: SX110IS - howto start porting
Post by: Inferno on 19 / April / 2009, 21:17:59
At present stage if you like to convert RAW from sx110 you need to make sure that JPG and RAW are in the same folder. Get this http://chdk.setepontos.com/index.php?action=dlattach;topic=2838.0;attach=3205 (http://chdk.setepontos.com/index.php?action=dlattach;topic=2838.0;attach=3205). Make sure you don't go to options and change anything. This will break the program. Gently select a folder with RAW+JPG then select destination and press convert. If you do this it converts RAW to DNG very well.

I still can't get DNG4PS2 to work. It is just unable to locate any of my CRW files. I tried putting them together with the JPGs (using CHDK menu settings) but nothing changed. Is there any filename requirement? What is the download for? I tried overwrite the official DNG4PS2 build with the downloaded EXE file but it fails to start, saying something like "configuration is wrong". Am I missing something here? Thanks!

Make sure that you install http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en (http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en)
Title: Re: SX110IS - howto start porting
Post by: apsus on 19 / April / 2009, 23:43:35
Make sure that you install http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en (http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en)

That solves the problem. Thanks! I should have read the OP more carefully...
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 20 / April / 2009, 09:50:05
DEAR DEVELOPER(S) PLEASE UPLOAD THE NEWEST QUELLCODE FOR THE NEWEST REVISION OF CHDK TO ADD THE PORT TO THE AUTOBUILD SERVER!

THX


done
Title: Re: SX110IS - howto start porting
Post by: Yarvieh on 20 / April / 2009, 09:59:01
Dude! really was the caps , larger font and red background really needed? Don't know anything about the autobuild server, I didn't change anything after the patch i posted so thats still the latest afaik. Feel free to do with it what you want (and that includes uploading it to that autobuild thingy).
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 20 / April / 2009, 10:13:43
"An "Autobuild" version is a version of CHDK that is still under development. As the developers compile new versions to test, their efforts are "automatically built" and made available on the web for beta testing."

--> http://mighty-hoernsche.de/ (http://mighty-hoernsche.de/)

I thought it would be easiert to download from one universal server, because nearly all cameras are at the autobuild server. Support and so one would be easier.


PS:  only used big font, that developers dont "overread" it. Because PhyrePhox said it would be much easier to have the quellcode for the newest (current) version of CHDK, because 729 is "old".
Title: Re: SX110IS - howto start porting
Post by: fahd123 on 20 / April / 2009, 11:32:09
Hi
i installed the chdk into my sx110.

but i cant find the time lapse feature. Can someone point me out where i cab use the time lapse feature?
I want to take time lapse of clouds moving...
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 20 / April / 2009, 11:36:38
Hi
i installed the chdk into my sx110.

but i cant find the time lapse feature. Can someone point me out where i cab use the time lapse feature?
I want to take time lapse of clouds moving...


It isnt a feature it is a script.
Here are some Scripts:
http://chdk.wikia.com/wiki/UBASIC/Scripts:_HDR_time_lapse (http://chdk.wikia.com/wiki/UBASIC/Scripts:_HDR_time_lapse)
http://chdk.wikia.com/wiki/UBASIC/Scripts:Time_Lapse_Photography (http://chdk.wikia.com/wiki/UBASIC/Scripts:Time_Lapse_Photography)
http://chdk.wikia.com/wiki/UBASIC/Scripts:_Time_Lapse_Video_Interval_Time_mod (http://chdk.wikia.com/wiki/UBASIC/Scripts:_Time_Lapse_Video_Interval_Time_mod)
http://chdk.wikia.com/wiki/UBASIC/Scripts:_Time_lapse_script_variable_shutter_speed (http://chdk.wikia.com/wiki/UBASIC/Scripts:_Time_lapse_script_variable_shutter_speed)
Title: Re: SX110IS - howto start porting
Post by: fahd123 on 20 / April / 2009, 11:51:55
Wow that was fast!
Thanks a lot.
will those links will be sufficient for me? i am a noob, first timer with chdk.
I used cardtricks to install the chdk in my card. do i have to place the scripts in the script folder?
is that all i have to do?

thanks!
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 20 / April / 2009, 11:57:07
Yes and then you have to run the scripts under CHDK
Title: Re: SX110IS - howto start porting
Post by: chdkj on 20 / April / 2009, 14:16:03
Hi folks,

back from vacation and glad to see the development process. Looks that we will get it soon...

Special thanks to Yarvieh and Obihoernchen for your efforts! Thanks to ewavr for your hints and all other for your time and patience to test the software and given hints.

Cheers!
Title: Re: SX110IS - howto start porting
Post by: chdkj on 20 / April / 2009, 14:45:04
after some warm words :) to the real world:
- Problems are described in Obihoernchens list http://chdk.setepontos.com/index.php/topic,2838.msg32346.html#msg32346 (http://chdk.setepontos.com/index.php/topic,2838.msg32346.html#msg32346) and in Yarviehs list
http://chdk.setepontos.com/index.php/topic,2838.msg31951.html#msg31951 (http://chdk.setepontos.com/index.php/topic,2838.msg31951.html#msg31951)

Does it make sense to put one list "Problems" (or whatever) on the main wiki page for sx110 (http://chdk.wikia.com/wiki/SX110IS (http://chdk.wikia.com/wiki/SX110IS))?

- RAW is under development by Yarvieh ? Do you need assistance?

Regarding the math to calculate real sensor size: you have discovered 3720x2772x12. Divided by 8 bit = 15467760 =0xEC04F0. That's exactly that we can find in firmware dump.

- @Obihoernchen: Thats really a good idea to put the sourcecode on the autobuild server. But I couldn't find it there. What did I miss?

I'm going the test the latest version of CHDK for sx110 now.



Title: Re: SX110IS - howto start porting
Post by: chdkj on 20 / April / 2009, 14:47:50
Regarding the Battery Power...

Would it be useful the distinguish between accumulators (edit: rechargeable batteries) and batteries (edit: disposable batteries)?

Regards.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 20 / April / 2009, 15:19:09
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 20 / April / 2009, 15:33:11
Regarding the Battery Power...

Would it be useful the distinguish between accumulators and batteries?

Regards.

Dont think so? I only use accus ;) For me it work fine
Title: Re: SX110IS - howto start porting
Post by: chdkj on 20 / April / 2009, 15:43:27
He Obihoernchen, that's really cooperative work :-). Thank you.

Does anybody work on a diff file for v944+? If not than I will do this in the next couple of days.

Took a first look at the latest version of CHDK for sx110. I know that most people are waiting for a working RAW implementation but for me it was more important to get a more stable software version. Yarvieh has eliminated some bugs, that's great!





Title: Re: SX110IS - howto start porting
Post by: chdkj on 20 / April / 2009, 15:59:14
Regarding the Battery Power...

Would it be useful the distinguish between accumulators (edit: rechargeable batteries) and batteries (edit: disposable batteries)?

Regards.
Hmmm, I thought that this could be in a more general interest. Ok, anybody could change upper/lower battery values in OSD. But this is a nice feature of a (let us say so) very technical nature. It might be more user friendly to preload some values or to change the calculation depending on the type of battery used. Just an idea...
... and definitely not that important for now...
Title: Re: SX110IS - howto start porting
Post by: Yarvieh on 20 / April / 2009, 19:53:18
- RAW is under development by Yarvieh ? Do you need assistance?
RAW Support is fine codewise you had no bugs in it. The problem is CAM_COLORMATRIX1 is off so the DNG files the cam exports are not quite in match with reality. I have been working with dave of dcraw to get sx110 support in there and actually with his instructions shot a macbeth colorchart. I have been unable though to get a decent color profile out of dng4ps-2. If anyone else wants to take a shot at it pictures available here (http://updates.lcdstudio.com/dave/).

I Attached the diff against the latest svn rev 744. besides a little bit of messing with the color matrix no other changes.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 21 / April / 2009, 10:00:21
- RAW is under development by Yarvieh ? Do you need assistance?
RAW Support is fine codewise you had no bugs in it. The problem is CAM_COLORMATRIX1 is off so the DNG files the cam exports are not quite in match with reality. I have been working with dave of dcraw to get sx110 support in there and actually with his instructions shot a macbeth colorchart. I have been unable though to get a decent color profile out of dng4ps-2. If anyone else wants to take a shot at it pictures available here (http://updates.lcdstudio.com/dave/).

I Attached the diff against the latest svn rev 744. besides a little bit of messing with the color matrix no other changes.

nice :)
I called PhyrePhox and he will add the SX110IS to the autobuild Server soon.
Title: Re: SX110IS - howto start porting
Post by: PhyrePhoX on 21 / April / 2009, 14:59:58
done. attached is the final diff, in case anyone wanna take a look.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 21 / April / 2009, 15:03:19
Obihoernchen, how do we put changes in source code to the autobuild?
Title: Re: SX110IS - howto start porting
Post by: PhyrePhoX on 21 / April / 2009, 15:16:13
basically you just have to put a diff in the forum and wait for a dev to check it in.
reyalp had a better and longer explanation of the process some days ago, but the board search is borked right now.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 21 / April / 2009, 15:42:27
done. attached is the final diff, in case anyone wanna take a look.
Thank you!
Using r749 now...

basically you just have to put a diff in the forum and wait for a dev to check it in.
reyalp had a better and longer explanation of the process some days ago, but the board search is borked right now.

Took a look at assembla.com and the team list there. Believe to understand the process (even without the explanation by reyalp).
So I/we will put a diff file from time to time to the forum.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 21 / April / 2009, 15:55:51
done. attached is the final diff, in case anyone wanna take a look.
thanks :)
Title: Re: SX110IS - howto start porting
Post by: chdkj on 21 / April / 2009, 16:09:25
Fixed capt_seq.c. Really forgot to call shooting_expo_param_override()   :o. Shame on me!
Shooting overrides should work now but didn't test this exhaustive.
capt_seq.c (for devs) and diskboot.bin (for others -- it's in the zip) are attached.

Suggest that we release a comprehensive update to the autobuild server after major changes only.

Cheers.

EDIT: Attachments deleted (final version released on Autobuild already)
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 21 / April / 2009, 16:15:14
Fixed capt_seq.c. Really forgot to call shooting_expo_param_override()   :o. Shame on me!
Shooting overrides should work now but didn't test this exhaustive.
capt_seq.c (for devs) and diskboot.bin (for others -- it's in the zip) are attached.

Suggest that we release a comprehensive update to the autobuild server after major changes only.

Cheers.
:)
I will test it tomorrow

updated the wiki... http://chdk.wikia.com/wiki/SX110IS (http://chdk.wikia.com/wiki/SX110IS)

PS: Up to now there are over 500 download of CHDK for SX110IS ! Impressive !
Title: Re: SX110IS - howto start porting
Post by: rpelle on 21 / April / 2009, 18:02:08
PS: Up to now there are over 500 download of CHDK for SX110IS ! Impressive !

that's simple: you are doing a great work: i've buied Canon SX110is waiting for CHDK! And now you are!
Thank's from Italy!
:-))
Title: Re: SX110IS - howto start porting
Post by: Inferno on 21 / April / 2009, 19:35:22
Fixed capt_seq.c. Really forgot to call shooting_expo_param_override()   :o. Shame on me!
Shooting overrides should work now but didn't test this exhaustive.
capt_seq.c (for devs) and diskboot.bin (for others -- it's in the zip) are attached.

Suggest that we release a comprehensive update to the autobuild server after major changes only.

Cheers.

Rear Curtain flash sync = works!
Shutter Override = works!
Aperture Override = works!
ISO override = works!

Great work chdkj!
Title: Re: SX110IS - howto start porting
Post by: hnsight on 21 / April / 2009, 21:56:00
Quick note - setting OSD all sensors display to 'on' crashes the camera.
Title: Re: SX110IS - howto start porting
Post by: jng on 22 / April / 2009, 00:20:54
I have been monitoring the development of CHDK for SX110 and am happy that beta code is now available for testing. When I pressed FUNC SET + DISP, I see on my SX110, Firmware Ver. 1.0.0.0 which is not listed as 1.00b for beta in the CHDK Wiki page. Why? How do I get version b so that it is compatible with the beta code?
Title: Re: SX110IS - howto start porting
Post by: killer22 on 22 / April / 2009, 00:32:17
I have been monitoring the development of CHDK for SX110 and am happy that beta code is now available for testing. When I pressed FUNC SET + DISP, I see on my SX110, Firmware Ver. 1.0.0.0 which is not listed as 1.00b for beta in the CHDK Wiki page. Why? How do I get version b so that it is compatible with the beta code?


Download the latest cardtrick @ http://chdk.wikia.com/wiki/CardTricks (http://chdk.wikia.com/wiki/CardTricks)
and follow the instructions @ http://chdk.wikia.com/wiki/CHDK_for_Dummies (http://chdk.wikia.com/wiki/CHDK_for_Dummies)
you can load the CHDK from cardtrick, very easy (if u r using windows).

All the work very much appreciated by us non-programmers guys. Thanks and LOT.
someone can compile a tutorial for all the functions (so many to access) and will be bulkier than the one with camera..LOL..
great work...
:D
Title: Re: SX110IS - howto start porting
Post by: jng on 22 / April / 2009, 00:42:20
So I don't have to worry about this 1.00b stuff. I read about CardTricks already. But the Wiki page said you need to make sure your camera has the right firmware before selecting the right CHDK. I am confused.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 22 / April / 2009, 01:37:03
Quick note - setting OSD all sensors display to 'on' crashes the camera.
I'm going to check this in the next couple of days.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 22 / April / 2009, 01:42:56
I have been monitoring the development of CHDK for SX110 and am happy that beta code is now available for testing. When I pressed FUNC SET + DISP, I see on my SX110, Firmware Ver. 1.0.0.0 which is not listed as 1.00b for beta in the CHDK Wiki page. Why? How do I get version b so that it is compatible with the beta code?

So I don't have to worry about this 1.00b stuff. I read about CardTricks already. But the Wiki page said you need to make sure your camera has the right firmware before selecting the right CHDK. I am confused.

Please take a look at http://chdk.wikia.com/wiki/CHDK_for_Dummies (http://chdk.wikia.com/wiki/CHDK_for_Dummies), chapter "How to determine the firmware version of a Canon P&S camera". Basically you have to prepare a SD card with a "ver.req" file.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 22 / April / 2009, 01:54:10
....someone can compile a tutorial for all the functions (so many to access) and will be bulkier than the one with camera..LOL..

Indeed, it is... There are some preliminary versions around. Take a look here: http://chdk.wikia.com/wiki/CHDK_firmware_usage (http://chdk.wikia.com/wiki/CHDK_firmware_usage). The german forum has a really good one (http://chdk.wikia.com/wiki/German/CHDK-Handbuch (http://chdk.wikia.com/wiki/German/CHDK-Handbuch)).
Title: Re: SX110IS - howto start porting
Post by: basayev on 22 / April / 2009, 05:06:28
Best wishes for all efforters who develope this CHDK....

I am waiting for zooming function in video mode... Thanks.



Title: Re: SX110IS - howto start porting
Post by: fiestaware on 22 / April / 2009, 08:00:15
Am I mistaken, or does the "DNG format" option (under the RAW menu) not work just yet? I'm on a Mac, and getting software to read these CRW files directly is a b1tch.


Thanks to the developers for all the hard work!
Title: Re: SX110IS - howto start porting
Post by: whim on 22 / April / 2009, 08:53:49
Quote
getting software to read these CRW files

try activating 'DNG Extension', that should help software identify it as DNG ...

note: just a guess, i use neither Mac nor SX110

wim
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 22 / April / 2009, 09:51:24
I have been monitoring the development of CHDK for SX110 and am happy that beta code is now available for testing. When I pressed FUNC SET + DISP, I see on my SX110, Firmware Ver. 1.0.0.0 which is not listed as 1.00b for beta in the CHDK Wiki page. Why? How do I get version b so that it is compatible with the beta code?


You have to use ver.req

Quote from Wiki:
In PLAY mode (without ver.req) press FUNCSET and DISP simultaneously:

Firmware Ver. 1.0.0.0

[ OK ]

;)


Fixed capt_seq.c. Really forgot to call shooting_expo_param_override()   :o. Shame on me!
Shooting overrides should work now but didn't test this exhaustive.
capt_seq.c (for devs) and diskboot.bin (for others -- it's in the zip) are attached.

Suggest that we release a comprehensive update to the autobuild server after major changes only.

Cheers.

Rear Curtain flash sync = works!
Shutter Override = works!
Aperture Override = works!
ISO override = works!

Great work chdkj!

updated bugs@wiki

yeah it works :)

nice work!!!

Quick note - setting OSD all sensors display to 'on' crashes the camera.

Already mentiont: http://chdk.wikia.com/wiki/SX110IS#Known_bugs (http://chdk.wikia.com/wiki/SX110IS#Known_bugs)
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 22 / April / 2009, 09:53:25
sry^^
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 22 / April / 2009, 09:54:19
sry  :-[
Title: Re: SX110IS - howto start porting
Post by: Hyst on 22 / April / 2009, 10:16:54
Rear Curtain flash sync = works!
Shutter Override = works!
Aperture Override = works!
ISO override = works!

Great work chdkj!


for real??
somehow it does not work for me... i downloaded the "sx110is-100b-0.9.8-749-full.zip" from the autobildserver... and replaced the files on my SD-Card with these.
and it still does not work..

greetings
Title: Re: SX110IS - howto start porting
Post by: axu89 on 22 / April / 2009, 10:54:49
Rear Curtain flash sync = works!
Shutter Override = works!
Aperture Override = works!
ISO override = works!

Great work chdkj!


for real??
somehow it does not work for me... i downloaded the "sx110is-100b-0.9.8-749-full.zip" from the autobildserver... and replaced the files on my SD-Card with these.
and it still does not work..

greetings

Yep, all overrides work! Nice. I used the latest build attached to chdkj's post.
Please note that autobuild isn't as up-to-date as the very latest posts in this forum. It only updates if it is updated  :)
Title: Re: SX110IS - howto start porting
Post by: fiestaware on 22 / April / 2009, 11:10:07
Quote
getting software to read these CRW files

try activating 'DNG Extension', that should help software identify it as DNG ...


Yeah - I gave that a shot first thing. No dice w/ every program I could find.

Thanks anyway though! I only hope that the "DNG format" option is on someone's shortlist.
Title: Re: SX110IS - howto start porting
Post by: fahd123 on 22 / April / 2009, 12:08:12
the one posted by chdkj is not full, it only contains diskboot.bin.

I downloaded the 9.8 full version posted on the autobuild server, and i am unable to use the overrides.
Title: Re: SX110IS - howto start porting
Post by: fahd123 on 22 / April / 2009, 12:23:21
=update=
I copied the diskboot.bin file posted by chdkj in my sd card. And now my overrides are working.

thanks to all the developers

I just hope sx110 will have optical zoom in videos soon.
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 22 / April / 2009, 12:27:00
fahd123:
overwrite diskboot.bin
Title: Re: SX110IS - howto start porting
Post by: Hyst on 22 / April / 2009, 13:16:20
for some reason it only works with an auto-boot
if i use the firmware update method, the overrides do not work

anyhow: nice work
Title: Re: SX110IS - howto start porting
Post by: chdkj on 22 / April / 2009, 14:43:00
Quote
getting software to read these CRW files

try activating 'DNG Extension', that should help software identify it as DNG ...


Yeah - I gave that a shot first thing. No dice w/ every program I could find.

Thanks anyway though! I only hope that the "DNG format" option is on someone's shortlist.
Yes, it is.
Yarvieh works really hard to get a proper color matrix for RAW develop process.

Title: Re: SX110IS - howto start porting
Post by: chdkj on 22 / April / 2009, 14:59:01
for some reason it only works with an auto-boot
if i use the firmware update method, the overrides do not work

anyhow: nice work
Maybe, I did something wrong, but overrides do work even with fw update method. It's the same binary...
Title: Re: SX110IS - howto start porting
Post by: chdkj on 22 / April / 2009, 15:04:54
Camera crashes if "Battery Temperature" should be displayed in OSD.

Activating "show battery temperature" or "show all" in OSD and switch to
record mode brings the camera to stop (think so).

OSD --> get_battery_temp() --> _GetBatteryTemperature()
GetBatteryTemperature is correctly declared in stubs_entry.S and the
corresponding function in fw dump seems to be "normal" (like in SX10 or
SX110).

If I change get_battery_temp() to avoid _GetBatteryTemperature() and to
return immediately with a constant (return 123) then 123 will be displayed
and everything is fine.

I don't think that Battery Temperature Support is broken in SX110. But who knows.
No clue...
Title: Re: SX110IS - howto start porting
Post by: chdkj on 22 / April / 2009, 15:29:26
@obihoernchen, regarding to the list of problems and the last version of CHDK for sx110:
- I think problems no. 8+9 are solved. I didn't encounter problems with zoom wheel or shutter button anymore.
- No. 5 (rear curtain flash sync) seems to be solvedhttp://chdk.setepontos.com/index.php/topic,2838.msg32655.html#msg32655 (http://chdk.setepontos.com/index.php/topic,2838.msg32655.html#msg32655)
- No. 6 (print-key=<ALT> and auto-iso-shift) seems to be solved. Auto-ISO-shift works for me. Hyst has originally post this error (http://chdk.setepontos.com/index.php/topic,2838.msg32067.html#msg32067 (http://chdk.setepontos.com/index.php/topic,2838.msg32067.html#msg32067).


Title: Re: SX110IS - howto start porting
Post by: chdkj on 22 / April / 2009, 15:37:28
Strange.
Did exchange address of GetBatteryTemperature with the address of GetCCDTemperature and camera keeps alive. That's not really unexpected. Seems that GetBatteryTemperature is broken.

Title: Re: SX110IS - howto start porting
Post by: Hyst on 22 / April / 2009, 15:53:44
Maybe, I did something wrong, but overrides do work even with fw update method. It's the same binary...

might be  :)
but maybe I am doing something wrong.

as far as i understood: the FW-Update method goes like this:
everything is copied to the card (diskboot + fi2)
UNlock your card. (when you power up the camera it won't load CHDK.)
in play mode: menu -> last option (firmware update).
now chdk is loaded and overrides do not work :(

greetings


EDIT: if i LOCK the card, CHDK is loaded automaticly, and the overrides work.
Title: Re: SX110IS - howto start porting
Post by: Yarvieh on 22 / April / 2009, 19:41:12
Both the diskboot and the fi2 contain the same chdk code one is used with the locked mode the other by the firmware upgrade. chdkj posted a new diskboot but not a new fi2 hence the new and fixed code will run with the locked method but when you use the firmware upgrade the old and unfixed version will be loaded.
Title: Re: SX110IS - howto start porting
Post by: lucmovel on 22 / April / 2009, 19:53:20
Just out of curiosity, would some explain to me why anyone would prefer the more involved "firmware upgrade" method instead of booting straight into CHDK? I really can't see the point.
Title: Re: SX110IS - howto start porting
Post by: Yarvieh on 22 / April / 2009, 20:02:58
Especially when developing the locked mode is *really* annoying unless you modify the card reader on the pc.  Another good reason for using the firmware method is that you do no want to run chdk all the time.
Title: Re: SX110IS - howto start porting
Post by: Inferno on 22 / April / 2009, 20:47:15
diskboot.bin has a new CHDK and FI2 is an old bin without override support thats why it doesn't work.
Title: Re: SX110IS - howto start porting
Post by: fiestaware on 22 / April / 2009, 22:15:16
Quote
getting software to read these CRW files

try activating 'DNG Extension', that should help software identify it as DNG ...


Yeah - I gave that a shot first thing. No dice w/ every program I could find.

Thanks anyway though! I only hope that the "DNG format" option is on someone's shortlist.
Yes, it is.
Yarvieh works really hard to get a proper color matrix for RAW develop process.




Ah, I didn't realize that was part of the same process. Thanks.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 23 / April / 2009, 01:07:27
@obihoernchen, regarding to the list of problems and the last version of CHDK for sx110:
- I think problems no. 8+9 are solved. I didn't encounter problems with zoom wheel or shutter button anymore.
- No. 5 (rear curtain flash sync) seems to be solvedhttp://chdk.setepontos.com/index.php/topic,2838.msg32655.html#msg32655 (http://chdk.setepontos.com/index.php/topic,2838.msg32655.html#msg32655)
- No. 6 (print-key=<ALT> and auto-iso-shift) seems to be solved. Auto-ISO-shift works for me. Hyst has originally post this error (http://chdk.setepontos.com/index.php/topic,2838.msg32067.html#msg32067 (http://chdk.setepontos.com/index.php/topic,2838.msg32067.html#msg32067).

mentiont this already ;) updated Wiki
Title: Re: SX110IS - howto start porting
Post by: chdkj on 23 / April / 2009, 01:39:02
Here is a new version of CHDK for SX110. Fw upgrade should work  ;)

To avoid trouble with "Display Battery Temperature" I have changed the code to show the temperature of CCD instead (
GetBatteryTemperature in stubs_entry_2.S points to GetCCDTemperature).

Code: [Select]
NHSTUB(GetBatteryTemperature, 0xffc387ec) //found at 0xffc3885c but camera crashs if used, so point to GetCCDTemperature

That's not that fine but it's the simplest method to avoid the trouble.
So keep in mind: if you choose "Display Battery Temperature" so you will get the CCD temperature!

Cheers.
EDIT: Attachment deleted (final version released on Autobuild already)
Title: Re: SX110IS - howto start porting
Post by: Hyst on 23 / April / 2009, 03:29:45
perfect, it works.. thank you


Just out of curiosity, would some explain to me why anyone would prefer the more involved "firmware upgrade" method instead of booting straight into CHDK? I really can't see the point.

Yarvieh already explained it, but i would like to add, that i really don't like the powerup method (Long-Press: Rec-Mode, Short-Press: Play-Mode). If I want to just quickly shoot a picture is not so quick anymore as it used to be. So I prefere to have the option for a normal quick powerup, but if i want to use any of the chdk features I am not in a rush, so i don't bother to use the FW-update method.

greetings


EDIT:
The Auto-ISO-Shift is still not working for me. But because it seems to work for chdkj, can anyone else try it?
Title: Re: SX110IS - howto start porting
Post by: GnF on 23 / April / 2009, 06:43:28
I would like to say a big thanks and /kudos to everyone involved to this project. Special thanks to nomi_68k for starting all the process.

My question regards the latest build. Will i find it at CHDK-SVN Autobuild Download http://mighty-hoernsche.de/? (http://mighty-hoernsche.de/?)

Or should i look in this threat? As i have understand there are 2 builds from 2 diffrent persons?

Thanks in advance and keep up. I only wish i knew how to help
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 23 / April / 2009, 08:55:51
I would like to say a big thanks and /kudos to everyone involved to this project. Special thanks to nomi_68k for starting all the process.

My question regards the latest build. Will i find it at CHDK-SVN Autobuild Download http://mighty-hoernsche.de/? (http://mighty-hoernsche.de/?)

Or should i look in this threat? As i have understand there are 2 builds from 2 diffrent persons?

Thanks in advance and keep up. I only wish i knew how to help

wrong, there arn't 2 builds. 2 persons devekopt CHDK for SX110IS. But the builds are the same only older/newer.

To have the newest Version do the following things:

1. go to http://mighty-hoernsche.de/ (http://mighty-hoernsche.de/) and download CHDK for SX110IS (full or small)
2. look in this Thread for the latest Version and download
3. Copy all Files from Step 1. on you SD Card and overwrite the files with the newest from Step 2.
Title: Re: SX110IS - howto start porting
Post by: killer22 on 23 / April / 2009, 13:43:09
I enter ALT mode and the camera starts taking snaps..I have loaded the badpixel script to create the .bin file...but it wont even let me enter the menu...its starts taking continuous snaps... and it reads..'DONT PANIC. THIS MAY TAKE A FEW SECONDS'  :o

should I reload the CHDK or...where am I going wrong... :-[
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 23 / April / 2009, 13:52:05
I enter ALT mode and the camera starts taking snaps..I have loaded the badpixel script to create the .bin file...but it wont even let me enter the menu...its starts taking continuous snaps... and it reads..'DONT PANIC. THIS MAY TAKE A FEW SECONDS'  :o

should I reload the CHDK or...where am I going wrong... :-[

strange...
simply reload chdk an all should work

updated wiki: added porting changelog http://chdk.wikia.com/wiki/SX110IS#Porting_changelog (http://chdk.wikia.com/wiki/SX110IS#Porting_changelog)
Title: Re: SX110IS - howto start porting
Post by: GnF on 23 / April / 2009, 16:07:22
I am not sure if this is a bug or not.......

I am not using rechargeable battery's but one use. However they seem to finish very very quickly. I managed to take around 60 pictures without flash before battery's run out.

Or i should change something in chdk menu?

On the other hand for some strange reason AutoIso seems to work fine something that never happened with out chdk (camera seemed to prefer 200 iso even at good lightning conditions.)

oh my i cant wait for final version even if it seems you are so close to it.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 23 / April / 2009, 16:24:37
@GnF
It's a little bit confusing, actually.
As obihernchen already said: There is one (1) offical build hosted on mighty-hoernsche. Thats the
primary release.
Due to the development stage of this particular project there a more or
less changes in code. Those changes should be transferred to the official
build but this requires the intervention of one of the CHDK main
developers. I think we should not overstress those guys and suggest an
update only after major changes. That's my personal opinion, of course. I
decided for me to release new versions of CHDK for SX110 as file
attachments of my posts in this forum.  Of course, that means a lot of
"active reading" to those who want to test a new version. If someone has a
better idea...

For now there is only one active development build as far as I can see.
Yarvieh released a modified version some days ago. I took his modifications
and have them put in my code. So my releases containing his modifications.
Other changes are not known to me. And I will publish my code from time to
time....

Everyone is invited to participate. But someone has to collect all changes
and then release a new official build to the autobuild server.


There is a discrepancy between the primary list of problems and the
official build. The official build is more buggy than the list describes.

Any suggestions?

I think that we should release a new version to autobuild in the next days.
Title: Re: SX110IS - howto start porting
Post by: PhyrePhoX on 23 / April / 2009, 16:28:48
as long as nothing breaks existing code in the other cameras, we can check in your patches. no problem.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 23 / April / 2009, 16:30:22
@Hyst
Could you explain what is not working, please? Auto-ISO-Shift works as
expected for me: ISO value changes automatically depending on available
light and so on... Am I wrong?

@obihoernchen
http://chdk.wikia.com/wiki/SX110IS#Porting_changelog (http://chdk.wikia.com/wiki/SX110IS#Porting_changelog) --> Cool! Thank you.

@GnF
I am not sure if this is a bug or not.......

I am not using rechargeable battery's but one use. However they seem to finish very very quickly. I managed to take around 60 pictures without flash before battery's run out.

Or i should change something in chdk menu?
Does the cam shut down with your empty batteries or does the camera only show a "dry" battery icon?
Title: Re: SX110IS - howto start porting
Post by: chdkj on 23 / April / 2009, 16:31:00
as long as nothing breaks existing code in the other cameras, we can check in your patches. no problem.
Thank you indeed!
Title: Re: SX110IS - howto start porting
Post by: GnF on 23 / April / 2009, 16:32:01
all i can do is beta test and my only knowledge is on electricity unfortunately. I can modify my camera to real time measure battery's if that count and report back with info about the state of measures with and without CHDK.

If i can be in any other help please ask me to. I will be more than happy to do it.
Title: Re: SX110IS - howto start porting
Post by: GnF on 23 / April / 2009, 16:33:59
Quote from: chdkj @GnF
[quote author=GnF link=topic=2838.msg32794#msg32794 date=1240517242
I am not sure if this is a bug or not.......

I am not using rechargeable battery's but one use. However they seem to finish very very quickly. I managed to take around 60 pictures without flash before battery's run out.

Or i should change something in chdk menu?
Does the cam shut down with your empty batteries or does the camera only show a "dry" battery icon?
[/quote]

The camera shut down completely with the change battery's info on screen after that.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 23 / April / 2009, 16:46:04
...
decided for me to release new versions of CHDK for SX110 as file
attachments of my posts in this forum.  Of course, that means a lot of
"active reading" to those who want to test a new version. If someone has a
better idea...

For now there is only one active development build as far as I can see.
Yarvieh released a modified version some days ago. I took his modifications
and have them put in my code. So my releases containing his modifications.
Other changes are not known to me. And I will publish my code from time to
time....

Everyone is invited to participate. But someone has to collect all changes
and then release a new official build to the autobuild server.

I could make a website for pre betas. I have enough free webspace^^
Title: Re: SX110IS - howto start porting
Post by: chdkj on 23 / April / 2009, 16:50:06
From step to step...
A new version of CHDK for SX110!

Optical zoom in video record mode works now.
Please test video bitrate settings.

movie_record_task() in movie_rec.c must call  unlock_optical_zoom()
explicitly because SX110 doesn't support this feature officially (as SX10
does). Therefore no call to unlock_optical_zoom() was necessary in
SX10-code (which I've used as template).
BTW, all camera dependent code related to movie record looks very different
to SX10 so movie_rec.c needs some other modifications. I've changed also the code that deals with video bitrate and quality settings (http://chdk.wikia.com/wiki/SX110IS#Known_bugs (http://chdk.wikia.com/wiki/SX110IS#Known_bugs)). But not tested yet...

That's one of the main problems in this port. SX110 is somehow in beetwen
SX100 and SX10. Some functions have to port like this and other like
that...

Attached is an archive with a new Binary and an other archive with my code (for developers, based on r749).
If video bitrate settings works than I will ask phyrephox to commit a new release to the autobuild server.


Any ideas for "GetBatteryTemperature"?

EDIT: Attachments deleted (final version released on Autobuild already)
Title: Re: SX110IS - howto start porting
Post by: chdkj on 23 / April / 2009, 16:55:13
all i can do is beta test and my only knowledge is on electricity unfortunately. I can modify my camera to real time measure battery's if that count and report back with info about the state of measures with and without CHDK.

If i can be in any other help please ask me to. I will be more than happy to do it.
The camera shut down completely with the change battery's info on screen after that.
What are you thinking: do we have a problem with the battery indicator?
Title: Re: SX110IS - howto start porting
Post by: chdkj on 23 / April / 2009, 16:58:23
I could make a website for pre betas. I have enough free webspace^^
:-)
I think this is not neccessary yet. As long as we can keep the overview...
Title: Re: SX110IS - howto start porting
Post by: GnF on 23 / April / 2009, 17:08:14
all i can do is beta test and my only knowledge is on electricity unfortunately. I can modify my camera to real time measure battery's if that count and report back with info about the state of measures with and without CHDK.

If i can be in any other help please ask me to. I will be more than happy to do it.
The camera shut down completely with the change battery's info on screen after that.
What are you thinking: do we have a problem with the battery indicator?

I cannot speak without testing and have to sleep right now. I will do it tomorrow.

It does not seem as a problem with battery indicator (battery read data) since unloading CHDK keeps showing empty battery.

Somehow loading CHDK doubled the power this camera needs? Is this an option? Maybe more things works and thats why this happens?

I will modify my camera tomorrow and test with 4 sets of battery's. 2 sets of rechargeable and 2 sets on one use battery's.
I will test every set with and without CHDK and i will report any findings.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 23 / April / 2009, 17:08:32
From step to step...
A new version of CHDK for SX110!

Optical zoom in video record mode works now.
Please test video bitrate settings.

movie_record_task() in movie_rec.c must call  unlock_optical_zoom()
explicitly because SX110 doesn't support this feature officially (as SX10
does). Therefore no call to unlock_optical_zoom() was necessary in
SX10-code (which I've used as template).
BTW, all camera dependent code related to movie record looks very different
to SX10 so movie_rec.c needs some other modifications. I've changed also the code that deals with video bitrate and quality settings (http://chdk.wikia.com/wiki/SX110IS#Known_bugs (http://chdk.wikia.com/wiki/SX110IS#Known_bugs)). But not tested yet...

That's one of the main problems in this port. SX110 is somehow in beetwen
SX100 and SX10. Some functions have to port like this and other like
that...

Attached is an archive with a new Binary and an other archive with my code (for developers, based on r749).
If video bitrate settings works than I will ask phyrephox to commit a new release to the autobuild server.


Any ideas for "GetBatteryTemperature"?


all tested...
all works very fine :) also video bitrate settings! SD full  after a few Seconds :lol
nice work!

updated wiki http://chdk.wikia.com/wiki/SX110IS#Known_bugs (http://chdk.wikia.com/wiki/SX110IS#Known_bugs)
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 23 / April / 2009, 17:09:49
all i can do is beta test and my only knowledge is on electricity unfortunately. I can modify my camera to real time measure battery's if that count and report back with info about the state of measures with and without CHDK.

If i can be in any other help please ask me to. I will be more than happy to do it.
The camera shut down completely with the change battery's info on screen after that.
What are you thinking: do we have a problem with the battery indicator?

I cannot speak without testing and have to sleep right now. I will do it tomorrow.

It does not seem as a problem with battery indicator (battery read data) since unloading CHDK keeps showing empty battery.

Somehow loading CHDK doubled the power this camera needs? Is this an option? Maybe more things works and thats why this happens?

I will modify my camera tomorrow and test with 4 sets of battery's. 2 sets of rechargeable and 2 sets on one use battery's.
I will test every set with and without CHDK and i will report any findings.

read this ;) http://chdk.wikia.com/wiki/FAQ#Q._Does_the_CHDK_program_consume_additional_battery_power.3F (http://chdk.wikia.com/wiki/FAQ#Q._Does_the_CHDK_program_consume_additional_battery_power.3F)
Title: Re: SX110IS - howto start porting
Post by: GnF on 23 / April / 2009, 17:23:12
all i can do is beta test and my only knowledge is on electricity unfortunately. I can modify my camera to real time measure battery's if that count and report back with info about the state of measures with and without CHDK.

If i can be in any other help please ask me to. I will be more than happy to do it.
The camera shut down completely with the change battery's info on screen after that.
What are you thinking: do we have a problem with the battery indicator?

I cannot speak without testing and have to sleep right now. I will do it tomorrow.

It does not seem as a problem with battery indicator (battery read data) since unloading CHDK keeps showing empty battery.

Somehow loading CHDK doubled the power this camera needs? Is this an option? Maybe more things works and thats why this happens?

I will modify my camera tomorrow and test with 4 sets of battery's. 2 sets of rechargeable and 2 sets on one use battery's.
I will test every set with and without CHDK and i will report any findings.

read this ;) http://chdk.wikia.com/wiki/FAQ#Q._Does_the_CHDK_program_consume_additional_battery_power.3F (http://chdk.wikia.com/wiki/FAQ#Q._Does_the_CHDK_program_consume_additional_battery_power.3F)

Might be that :P
I might have been playing a loooooooot with it except just taking pictures. Maybe i lost the sence of time while i was doing that.
Pretty much this really might be the answer. Still since i have all the professional equipment to mesure things like that (thats a part of my job) i will do it.

I will test with just taking pictures and nothing more.

Thanks for the info mate.

by the way what is the normal way for me to unload a script and having none loaded? I haven't found such an option yet.
Title: Re: SX110IS - howto start porting
Post by: fahd123 on 23 / April / 2009, 17:32:32
Hi
I installed the updated version.
Now i am able to use the Zoom in video.But i am experiencing focusing problem at 8x+ is it normal?
Like when i zoom above ~8x the screen is blurred and struggles to focus with no result. Although below 8x it is able to focus(not perfect, but acceptable). But At 10x its not Focusing! atleast for me.. any idea why is happening?
The object is my 29 inch television, about 15 meters away.

===edit===
I tested again, the cam is able to focus the nearer(1 meter distance) objects at 10x in VIDEO, but cam is not able to focus when the object is far( 10-15 meters) at 10x.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 23 / April / 2009, 17:39:54
Hi
I installed the updated version.
Now i am able to use the Zoom in video.But i am experiencing focusing problem at 8x+ is it normal?
Like when i zoom above ~8x the screen is blurred and struggles to focus with no result. Although below 8x it is able to focus(not perfect, but acceptable). But At 10x its not Focusing! atleast for me.. any idea why is happening?
The object is my 29 inch television, about 15 meters away.

I have the same problem but I dont know wheather it is, because the camera isnt build to focus at video or because a bug <-- (dont think so), but i think its 1.
Title: Re: SX110IS - howto start porting
Post by: fahd123 on 23 / April / 2009, 17:46:58
http://www.youtube.com/watch?v=V1BA0ZpzQ9c# (http://www.youtube.com/watch?v=V1BA0ZpzQ9c#)
This is a video of Sx100 using chdk, zoom applied and it does do auto focus.
I think our SX110 might do auto focus aswell.

Sorry if youtube links are not allowed here.
Title: Re: SX110IS - howto start porting
Post by: lucmovel on 23 / April / 2009, 18:11:01
I just tested the new release. Optical zoom now works in video mode, but I do lose focus after 70% or so.

Also, I changed the recording mode from Bitrate to Quality and the camera kind of crashed when I tried to record video. The screen turned off immediately and the controls would not respond, except the power button, it does turn the camera off. I could turn back on again, no need to remove batteries. Nothing was recorded. I tried three times, same result every time.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 23 / April / 2009, 18:16:45
I just tested the new release. Optical zoom now works in video mode, but I do lose focus after 70% or so.

Also, I changed the recording mode from Bitrate to Quality and the camera kind of crashed when I tried to record video. The screen turned off immediately and the controls would not respond, except the power button, it does turn the camera off. I could turn back on again, no need to remove batteries. Nothing was recorded. I tried three times, same result every time.
lol for me it works fine
Title: Re: SX110IS - howto start porting
Post by: bencahill on 23 / April / 2009, 22:04:14
Hey, I've been watching this thread recently...Great work!!  For some reason, the latest version(s) don't work and the older version(s) did work.  I get 'Update File Error!' when trying to load chdk (Menu, Up to the bottom, Set to select, then the error.).  Any ideas?  Thanks a bunch!!
Title: Re: SX110IS - howto start porting
Post by: Yarvieh on 23 / April / 2009, 22:14:18
Just checked the last copy chdkj posted here (http://chdk.setepontos.com/index.php/topic,2838.msg32804.html#msg32804) and can't reproduce the issue.
Title: Re: SX110IS - howto start porting
Post by: Inferno on 24 / April / 2009, 00:20:13
I just tested the new release. Optical zoom now works in video mode, but I do lose focus after 70% or so.

Also, I changed the recording mode from Bitrate to Quality and the camera kind of crashed when I tried to record video. The screen turned off immediately and the controls would not respond, except the power button, it does turn the camera off. I could turn back on again, no need to remove batteries. Nothing was recorded. I tried three times, same result every time.

In Quality mode I think camera can't record to SD fast enough. Thats why I think it crushes. If you lower the quality to 98% camera will not crush! Also if video gets busy @ 98% it will crush as well.720is chdk had some kind protection against that. If your SD isn't fast enough for recording it just stops the recording. If you're right on the edge then warning sing flashes on the screen. Also with 720is I found out the difference between different SD card speeds. Generic cards will stop at around 50%. Better cards will go up to 84%. Excellent cards can go to 98% I have one SanDisk 1GB that can do 99%.

When you zoom 100% without recording, camera can focus no problem. But when you recording and zooming >70% then there is a problem. I think it's a bug.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 24 / April / 2009, 01:22:27
In Quality mode I think camera can't record to SD fast enough. Thats why I think it crushes. If you lower the quality to 98% camera will not crush! Also if video gets busy @ 98% it will crush as well.720is chdk had some kind protection against that. If your SD isn't fast enough for recording it just stops the recording. If you're right on the edge then warning sing flashes on the screen. Also with 720is I found out the difference between different SD card speeds. Generic cards will stop at around 50%. Better cards will go up to 84%. Excellent cards can go to 98% I have one SanDisk 1GB that can do 99%.

Good hint. Will check this.

When you fully zoom without recording, camera can zoom no problem. But when you recording and zooming then there is a problem. I think it's a bug.

Did you mean the "Focus Lost" problem at zoom > 70% ?

I will check the code again.
Title: Re: SX110IS - howto start porting
Post by: Inferno on 24 / April / 2009, 01:26:05
Brr... I'm drunk or what?!!? Yes I did mean can't focus >70% But when you're not recording, you have no problem focusing @ 100% zoom.
Title: Re: SX110IS - howto start porting
Post by: lucmovel on 24 / April / 2009, 01:44:30
I still couldn't record at 98%, but it *seems* to have recorded at 97%. Large files are recorded (20 secs. = 105 Mb), but I can't playback them entirely on my Linux box. Mplayer just playbacks two or three seconds and closes. Sometimes it will play a few more seconds, but never all the way through. They playback correctly on the camera.
Title: Re: SX110IS - howto start porting
Post by: Hyst on 24 / April / 2009, 05:12:24
@Hyst
Could you explain what is not working, please? Auto-ISO-Shift works as
expected for me: ISO value changes automatically depending on available
light and so on... Am I wrong?

sure.. i'll explain.
Auto-ISO-Shift ist not the normal Auto-ISO. Auto-Iso-Shift works like this:

Rec-Mode -> menu -> activate auto-iso-shift.
go to P- TV- AV- or M-Mode -> change iso (for example) to 80 (should be a low number).
Go somewhere, where the light is not so bright (some kind of "darkish" area).
half-press the shot-button. Now the Print-Button should be blue. press the print-Button.
Now you should see how the ISO and the exposure-time changed to recommended (AUTO) settings.


greetings
Title: Re: SX110IS - howto start porting
Post by: Inferno on 24 / April / 2009, 07:14:04
I still couldn't record at 98%, but it *seems* to have recorded at 97%. Large files are recorded (20 secs. = 105 Mb), but I can't playback them entirely on my Linux box. Mplayer just playbacks two or three seconds and closes. Sometimes it will play a few more seconds, but never all the way through. They playback correctly on the camera.

SD Card speed.  I have the same problem playing right from the card. You need to copy file on a hard drive and play it from there. (My videos,played  from sd card, don't crush a player but they can get jerky and sometimes loose audio). It's all about card speed.
Title: Re: SX110IS - howto start porting
Post by: lucmovel on 24 / April / 2009, 10:10:10
No, you got that backwards. I can play it fine on the camera, I can't play it on the PC. EDIT: I mean, I copy the file to the HD before playing it on the PC.
Title: Re: SX110IS - howto start porting
Post by: bencahill on 24 / April / 2009, 10:27:55
Just checked the last copy chdkj posted here (http://chdk.setepontos.com/index.php/topic,2838.msg32804.html#msg32804) and can't reproduce the issue.

Okay, that one works, I was using the one from the Autobuild server.  Thanks.
Title: Re: SX110IS - howto start porting
Post by: nycjv321 on 24 / April / 2009, 12:46:38
ok possible bug
I have 2 partitions
/dev/sda1 'fat16, 1536megabytes
/dev/sda2 'fat32, around 6000megabytes

chdk boots and automatically switches to the second partition when I go into menu to switch it to first, it doesn't is this default behavior???
also optical zoom doesn't work (after recording starts) with latest build right? and doesn't work regardless without chdk (zooming works before recording atleast right?

thank again for hard work :D
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 24 / April / 2009, 13:46:22
ok possible bug
I have 2 partitions
/dev/sda1 'fat16, 1536megabytes
/dev/sda2 'fat32, around 6000megabytes

chdk boots and automatically switches to the second partition when I go into menu to switch it to first, it doesn't is this default behavior???
also optical zoom doesn't work (after recording starts) with latest build right? and doesn't work regardless without chdk (zooming works before recording atleast right?

thank again for hard work :D

Did you use this Version? http://chdk.setepontos.com/index.php/topic,2838.msg32804.html#msg32804 (http://chdk.setepontos.com/index.php/topic,2838.msg32804.html#msg32804)
Title: Re: SX110IS - howto start porting
Post by: chdkj on 24 / April / 2009, 14:34:13
I still couldn't record at 98%, but it *seems* to have recorded at 97%. Large files are recorded (20 secs. = 105 Mb), but I can't playback them entirely on my Linux box. Mplayer just playbacks two or three seconds and closes. Sometimes it will play a few more seconds, but never all the way through. They playback correctly on the camera.
No, you got that backwards. I can play it fine on the camera, I can't play it on the PC. EDIT: I mean, I copy the file to the HD before playing it on the PC.
I can watch entirely such recorded files (>300 MB) with mplayer and
kaffeine on my linux box. Something wrong with your config (codecs..)?
Title: Re: SX110IS - howto start porting
Post by: chdkj on 24 / April / 2009, 14:39:09
I just tested the new release. Optical zoom now works in video mode, but I do lose focus after 70% or so.

Also, I changed the recording mode from Bitrate to Quality and the camera kind of crashed when I tried to record video. The screen turned off immediately and the controls would not respond, except the power button, it does turn the camera off. I could turn back on again, no need to remove batteries. Nothing was recorded. I tried three times, same result every time.

In Quality mode I think camera can't record to SD fast enough. Thats why I think it crushes. If you lower the quality to 98% camera will not crush! Also if video gets busy @ 98% it will crush as well.720is chdk had some kind protection against that. If your SD isn't fast enough for recording it just stops the recording. If you're right on the edge then warning sing flashes on the screen. Also with 720is I found out the difference between different SD card speeds. Generic cards will stop at around 50%. Better cards will go up to 84%. Excellent cards can go to 98% I have one SanDisk 1GB that can do 99%.

When you zoom 100% without recording, camera can focus no problem. But when you recording and zooming >70% then there is a problem. I think it's a bug.
I'm using a SanDisk SDHC 4GB Ultra II --> recorded movies with Quality @99%.
"dd" wrote  to this card with 18.0 MB/s.
I'm pretty sure is a matter of card performance (like Inferno said).
Title: Re: SX110IS - howto start porting
Post by: chdkj on 24 / April / 2009, 14:41:08

sure.. i'll explain.
Auto-ISO-Shift ist not the normal Auto-ISO. Auto-Iso-Shift works like this:

Rec-Mode -> menu -> activate auto-iso-shift.
go to P- TV- AV- or M-Mode -> change iso (for example) to 80 (should be a low number).
Go somewhere, where the light is not so bright (some kind of "darkish" area).
half-press the shot-button. Now the Print-Button should be blue. press the print-Button.
Now you should see how the ISO and the exposure-time changed to recommended (AUTO) settings.


greetings

Aaahh, I see. Now I understand. Was not aware of this feature. Going to check this.. Thanks for your explanation.
Title: Re: SX110IS - howto start porting
Post by: nycjv321 on 24 / April / 2009, 14:43:56
no... lol ok tried it and optical zoom works now (Yes!!!!) but autofocus doesn't seem to work automatically (I have "Video Quality Control? enabled), bitrate settings work though I have to mess with quality settings  
Title: Re: SX110IS - howto start porting
Post by: nycjv321 on 24 / April / 2009, 14:45:42
seems to crash when I choose high quality mode, 75% works though (im fine with that)
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 24 / April / 2009, 15:33:59
Lol I have a ******* card only about 6mb/write and I can Record @99% without Problems ;)

updated wiki
Title: Re: SX110IS - howto start porting
Post by: chdkj on 24 / April / 2009, 16:09:25
Lol I have a ******* card only about 6mb/write and I can Record @99% without Problems ;)
;-)))
Title: Re: SX110IS - howto start porting
Post by: chdkj on 24 / April / 2009, 16:53:38
next step...

Auto Focus Scan during movie records works now. You have to (use the new
binary attached ...) configure an option "AF key" in OSD\video parameters.
This AF key triggers a AF scan while recording. It works for me. Because an
automatic AF scan is not available for SX110 you have to trigger it
manually. --> start your recording --> if cams has lost the focus then press
your AF key (I prefer <SET>) --> AF will readjust while movie is still
recording.

Solution: enable CAM_AF_SCAN_DURING_VIDEO_RECORD in camera.h and find
the address for some_flag_for_af_scan (stubs_min.S) in fw dump at
ROM:FFD19814.

New version of CHDK for SX110 attached!

and: dedicated to obihoernchen :-): Startup Sound works. Don't expect to much.
Solution: corrected wrong entry point of PT_PlaySound in stubs_entry_2.S "NHSTUB(PT_PlaySound, 0xFFC4D9AC)"

Cheers!

EDIT: Attachment deleted (final version released on Autobuild already)
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 24 / April / 2009, 17:06:52
next step...

Auto Focus Scan during movie records works now. You have to (use the new
binary attached ...) configure an option "AF key" in OSD\video parameters.
This AF key triggers a AF scan while recording. It works for me. Because an
automatic AF scan is not available for SX110 you have to trigger it
manually. --> start your recording --> if cams has lost the focus then press
your AF key (I prefer <SET>) --> AF will readjust while movie is still
recording.

Solution: enable CAM_AF_SCAN_DURING_VIDEO_RECORD in camera.h and find
the address for some_flag_for_af_scan (stubs_min.S) in fw dump at
ROM:FFD19814.

Nice Solution :)

and: dedicated to obihoernchen :-): Startup Sound works. Don't expect to much.
Solution: corrected wrong entry point of PT_PlaySound in stubs_entry_2.S "NHSTUB(PT_PlaySound, 0xFFC4D9AC)"

xD^^ Thanks


updated wiki
Title: Re: SX110IS - howto start porting
Post by: fahd123 on 24 / April / 2009, 17:49:33
Thanks a lot chdkj
autofocus is now working :)

by the way.. instead of SET button.. can i use the Zoom button straightway?

like when i press zoom, it will zoom and auto focus both at the same time?
can zoom button be added in AF key[    ]?

Thanks a lot!
Title: Re: SX110IS - howto start porting
Post by: GnF on 24 / April / 2009, 23:47:09
I would like to report what was already known about battery's. Somehow the problem i had with fast wearing battery's was because of old and poor battery's that made me believe that chdk was using a lot more power.
Measuring with professional equipment only thing i can see is almost the same power usage with and without chdk (might be slight more as already reported with chdk but the difference is so small that i cannot really measure it or report that i really saw it).

Using Sanyo 2700mA had the same exact results with and without chdk
Using 3 different pairs of alkaline battery's had the exact same results with and without chdk
using 2 pairs of non alkaline battery's had the exact same results with and without chdk

conclusion leads to that the camera with chdk does use the same battery power that the camera without it uses.

I am really sorry for saying the opposite.

next step...

Auto Focus Scan during movie records works now. You have to (use the new
binary attached ...) configure an option "AF key" in OSD\video parameters.
This AF key triggers a AF scan while recording. It works for me. Because an
automatic AF scan is not available for SX110 you have to trigger it
manually. --> start your recording --> if cams has lost the focus then press
your AF key (I prefer <SET>) --> AF will readjust while movie is still
recording.

Solution: enable CAM_AF_SCAN_DURING_VIDEO_RECORD in camera.h and find
the address for some_flag_for_af_scan (stubs_min.S) in fw dump at
ROM:FFD19814.

New version of CHDK for SX110 attached!

and: dedicated to obihoernchen :-): Startup Sound works. Don't expect to much.
Solution: corrected wrong entry point of PT_PlaySound in stubs_entry_2.S "NHSTUB(PT_PlaySound, 0xFFC4D9AC)"

Cheers!


Would it be possible for someone to explain how to fix that? I seem not able to find --> configure an option "AF key" in OSD\video parameters. There is no such an option in Video parameters or i am looking in the wrong section of chdk (maybe i should alter a file in notepad?).
Maybe the build included 3 posts above by chdkj is newer than the latest CHDK Download autobuild?


Thanks in advance


Forget it i just found out that 3 posts above is different that CHDK Download page. Does work nicely.
Title: Re: SX110IS - howto start porting
Post by: Hyst on 25 / April / 2009, 06:23:52
next step...

Auto Focus Scan during movie records works now. You have to (use the new
binary attached ...) configure an option "AF key" in OSD\video parameters.
This AF key triggers a AF scan while recording. It works for me. Because an
automatic AF scan is not available for SX110 you have to trigger it
manually. --> start your recording --> if cams has lost the focus then press
your AF key (I prefer <SET>) --> AF will readjust while movie is still
recording.

Solution: enable CAM_AF_SCAN_DURING_VIDEO_RECORD in camera.h and find
the address for some_flag_for_af_scan (stubs_min.S) in fw dump at
ROM:FFD19814.

New version of CHDK for SX110 attached!

and: dedicated to obihoernchen :-): Startup Sound works. Don't expect to much.
Solution: corrected wrong entry point of PT_PlaySound in stubs_entry_2.S "NHSTUB(PT_PlaySound, 0xFFC4D9AC)"

Cheers!


Works fine for me. Nice Work! Maybe you're able to add the following feature:
While shooting a video, you press a button wich toggles the AF-assist-beam (or AF-Light -- the red LED in front) on and off. So that you can shoot videos in dark areas (with at least a little bit light)

greetings
Title: Re: SX110IS - howto start porting
Post by: Inferno on 25 / April / 2009, 06:26:46
next step...

Auto Focus Scan during movie records works now. You have to (use the new
binary attached ...) configure an option "AF key" in OSD\video parameters.
This AF key triggers a AF scan while recording. It works for me. Because an
automatic AF scan is not available for SX110 you have to trigger it
manually. --> start your recording --> if cams has lost the focus then press
your AF key (I prefer <SET>) --> AF will readjust while movie is still
recording.

Solution: enable CAM_AF_SCAN_DURING_VIDEO_RECORD in camera.h and find
the address for some_flag_for_af_scan (stubs_min.S) in fw dump at
ROM:FFD19814.

New version of CHDK for SX110 attached!

and: dedicated to obihoernchen :-): Startup Sound works. Don't expect to much.
Solution: corrected wrong entry point of PT_PlaySound in stubs_entry_2.S "NHSTUB(PT_PlaySound, 0xFFC4D9AC)"

Cheers!


I think "mute while focusing" option is very necessary. There are loud audio clicks when focusing. Possibly because red focusing light is used. Because there is 2 clicks when it goes on and when it goes off.
Title: Re: SX110IS - howto start porting
Post by: lucmovel on 25 / April / 2009, 07:08:31
Several comments:

1) chdkj, the video zoom problem is definitely solved, I set the AF key in Main menu -> Video parameters, it works fine. Very good work! Thanks for sharing all this.

2) I don't think I am having a card performance problem. How come I can record the videos and playback them on the camera? Then I transfer them to the PC and can't play them anymore. A PC performance problem seems more likely. I ran new tests at 90% and now I can play the videos, but not every time. Sometimes, the playback gets jerky, it stutters or freezes for a second then it playbacks in fast motion for 2 or 3 seconds. My PC is an old 2200 Sempron, it must be it. The bitrate is so high my PC can't take it.

3) I don't see the point of applying mute while focusing. Between the camera's noise and interruptions of the audio, what's the difference? Which is worse? Audio is ruined anyway.

4) Has anyone managed to make any of the motion detection scripts work on the SX110IS?
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 25 / April / 2009, 10:07:56
maybe a new bug:
If I turn on the camera (holding on/off about 2 secs), the lens goes out, but sometimes the cam turns itself off (black screen, and nothing more), and the lens stays out. If I try to turn on-off again, the lens don't goes correctly back, just half way. It is just with the latest version.


Title: Re: SX110IS - howto start porting
Post by: exodus.mc on 25 / April / 2009, 10:58:29
hej...

I want to do this update and I see : "UPDATE FILE ERROR!!!"


 ??  :o
Title: Re: SX110IS - howto start porting
Post by: rampager on 25 / April / 2009, 11:36:19
The last update didn't work, the camera just shows a message that the card is locked.
I've installed back the previous version, and it works normally.
Title: Re: SX110IS - howto start porting
Post by: bencahill on 25 / April / 2009, 11:50:24
I want to do this update and I see : "UPDATE FILE ERROR!!!"
Are you using the file attached to the post (latest) or the one from the autobuild server? - The autobuild one doesn't work, the attached one(s) does.
Title: Re: SX110IS - howto start porting
Post by: ewavr on 25 / April / 2009, 14:48:16
Are you using the file attached to the post (latest) or the one from the autobuild server? - The autobuild one doesn't work, the attached one(s) does.

If version from autobuild server has a lot of errors, could it be removed (until it becomes stable)?

Title: Re: SX110IS - howto start porting
Post by: Yarvieh on 25 / April / 2009, 15:03:01
Best guess is that the autobuild server is using the wrong keys for encrypting the image.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 25 / April / 2009, 15:08:37
Best guess is that the autobuild server is using the wrong keys for encrypting the image.
I also think so, because the Autobuild Server Version was stable. But after some updates the Autobuild Server Version isn`t stable anymore
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 25 / April / 2009, 15:10:17
maybe a new bug:
If I turn on the camera (holding on/off about 2 secs), the lens goes out, but sometimes the cam turns itself off (black screen, and nothing more), and the lens stays out. If I try to turn on-off again, the lens don't goes correctly back, just half way. It is just with the latest version.

which Version Autobuild or latest?
For me this bug was only happen with the "old" (Autobuild) Version when you enable startup sound. But the newest Version fixed this.
Title: Re: SX110IS - howto start porting
Post by: PhyrePhoX on 25 / April / 2009, 15:35:52
the sx110 is not using d3enc, but a whole different key. thats why autobuild fi2 doesnt work.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 25 / April / 2009, 16:43:19
Thanks a lot chdkj
autofocus is now working :)

by the way.. instead of SET button.. can i use the Zoom button straightway?

like when i press zoom, it will zoom and auto focus both at the same time?
can zoom button be added in AF key[    ]?

Thanks a lot!

Hmmm, it looks to me that this should be possible. AF keys are hardcoded in gui.c. That means, this is not camera specific code, it is rather CHDK-core code. And therefore I'm not willing to change this code in some SX110-binaries (because we are leaving camera dependent code here).

@Main Developers
What are you thinking about?

Cheers!
Title: Re: SX110IS - howto start porting
Post by: chdkj on 25 / April / 2009, 16:48:26
Works fine for me. Nice Work! Maybe you're able to add the following feature:
While shooting a video, you press a button wich toggles the AF-assist-beam (or AF-Light -- the red LED in front) on and off. So that you can shoot videos in dark areas (with at least a little bit light)

greetings
That's the same as http://chdk.setepontos.com/index.php/topic,2838.msg32903.html#msg32903 (http://chdk.setepontos.com/index.php/topic,2838.msg32903.html#msg32903).
@Main Developers
What are you thinking about?

Cheers.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 25 / April / 2009, 16:55:15
maybe a new bug:
If I turn on the camera (holding on/off about 2 secs), the lens goes out, but sometimes the cam turns itself off (black screen, and nothing more), and the lens stays out. If I try to turn on-off again, the lens don't goes correctly back, just half way. It is just with the latest version.
sounds foolish: are you really using the latest version? Battery state? I'm not sure that we are talking about a new bug.
Do you have more information about this?

Regards.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 25 / April / 2009, 17:11:28
Are you using the file attached to the post (latest) or the one from the autobuild server? - The autobuild one doesn't work, the attached one(s) does.

If version from autobuild server has a lot of errors, could it be removed (until it becomes stable)?

Best guess is that the autobuild server is using the wrong keys for encrypting the image.
I also think so, because the Autobuild Server Version was stable. But after some updates the Autobuild Server Version isn`t stable anymore
the sx110 is not using d3enc, but a whole different key. thats why autobuild fi2 doesnt work.

Puuuh...  it was not in my intent to release a new diff before fixing all bugs, but this is more a matter of personal view. You are right.

May I ask you to check in the attached diff (patch file)? It's based on r751.
Changelog
- fixed shooting overrides in capt_seq.c
- fixed optical zoom for record mode in movie_rec.c
- fixed AF scan during movie recording in movie_rec.c
- fixed PT_PlaySound in stubs_entry_2.S
- corrections for SX110 in camera.h
- minor changes in camera specific code (mainly clean up debug stuff and so on)

@PhyrePhoX: do we need a new category like d3enc_v2 or am I wrong?
EDIT: Attachment deleted (final version released on Autobuild already)
Title: Re: SX110IS - howto start porting
Post by: bencahill on 25 / April / 2009, 17:28:32
Works fine for me. Nice Work! Maybe you're able to add the following feature:
While shooting a video, you press a button wich toggles the AF-assist-beam (or AF-Light -- the red LED in front) on and off. So that you can shoot videos in dark areas (with at least a little bit light)

greetings
That's the same as http://chdk.setepontos.com/index.php/topic,2838.msg32903.html#msg32903 (http://chdk.setepontos.com/index.php/topic,2838.msg32903.html#msg32903).

No it isn't, look again at the two posts, one is asking for auto-focusing automatically when zooming, one is asking for an option to turn the AF-assist light on (semi-)permanently for shooting in the dark/low light.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 25 / April / 2009, 17:47:30

No it isn't, look again at the two posts, one is asking for auto-focusing automatically when zooming, one is asking for an option to turn the AF-assist light on (semi-)permanently for shooting in the dark/low light.
Ok, I've to have express myself more precisely. Sorry for that.
AF assist light and AF rescanning while recording is not the same. What I meant is the need for change of CHDK-core code if one wants to use AF-assist light for shooting/recording (as same as for semi-automatically AF scan triggered by zoom lever - btw. a really nice idea...).
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 25 / April / 2009, 19:11:38
Thanks a lot chdkj
autofocus is now working :)

by the way.. instead of SET button.. can i use the Zoom button straightway?

like when i press zoom, it will zoom and auto focus both at the same time?
can zoom button be added in AF key[    ]?

Thanks a lot!

Hmmm, it looks to me that this should be possible. AF keys are hardcoded in gui.c. That means, this is not camera specific code, it is rather CHDK-core code. And therefore I'm not willing to change this code in some SX110-binaries (because we are leaving camera dependent code here).

@Main Developers
What are you thinking about?

Cheers!


would be nice :)
Title: Re: SX110IS - howto start porting
Post by: reyalp on 25 / April / 2009, 22:32:54
@Main Developers
What are you thinking about?

would be nice :)
I'm thinking about beer. Would be nice. What are you thinking about ? ;)

semi-automatic AF after zoom sounds OK, if you can find a reasonable way to do it. Add it to the bug tracker and submit a patch.

Turning on the AF lamp might be nice, but I'd be slightly concerned that LED is being over driven and is only designed to be on for short periods. It's also not really bright enough to help very much, at least not on any powershot I've used.

Quote
@PhyrePhoX: do we need a new category like d3enc_v2 or am I wrong?
It uses the D4 values.

edit:
I've merged chdkj's patch, set the (hopefully) correct FI2 options, the blacklevel and done a couple other minor cleanups. SVN rev 755.
Title: Re: SX110IS - howto start porting
Post by: PhyrePhoX on 26 / April / 2009, 00:38:25
the af lamp is bright enough to be of use in total darkness. this request exists for a long time, you CAN do it via script, but imo it doesnt work on all cams (set_led?). it would be a nice addition. i dont know about reyalps concerns though, as i am a total noob regarding electronics.
Title: Re: SX110IS - howto start porting
Post by: ewavr on 26 / April / 2009, 03:53:24
semi-automatic AF after zoom sounds OK, if you can find a reasonable way to do it. Add it to the bug tracker and submit a patch.

BTW, I have such patch for old (Allbest?) CHDK version. If anyone interested, I will upload it tomorrow.
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 26 / April / 2009, 06:12:54
maybe a new bug:
If I turn on the camera (holding on/off about 2 secs), the lens goes out, but sometimes the cam turns itself off (black screen, and nothing more), and the lens stays out. If I try to turn on-off again, the lens don't goes correctly back, just half way. It is just with the latest version.

which Version Autobuild or latest?
For me this bug was only happen with the "old" (Autobuild) Version when you enable startup sound. But the newest Version fixed this.

autobuild: sx110is-100b-0.9.8-749-full.zip 2009-04-22
and
chdkj's CHDK-sx110is-100b-0.9.8.zip 2009-04-25

All sounds and startup image are always disabled.

Now I've installed sx110is-100b-0.9.8-755-full.zip. It seems ok.
Thanks to all developers from Hungary!
Title: Re: SX110IS - howto start porting
Post by: axu89 on 26 / April / 2009, 07:28:32
Several comments:

...

4) Has anyone managed to make any of the motion detection scripts work on the SX110IS?

Nope  ???  I tried everything I found from wiki but couldn't get them to work properly.. The "Multipurpose Motion Detection" runs but seems to detect motion everywhere, no matter how I try to calibrate it.  :(

---

Nice work with the fixes chdkj, I visit this forum daily and every time I can download a version that has something new working  :D
Title: Re: SX110IS - howto start porting
Post by: fe50 on 26 / April / 2009, 07:37:55
@axu89
Try fudgey's Fast MD (http://chdk.setepontos.com/index.php/topic,471.msg21328.html#msg21328) script...
Title: Re: SX110IS - howto start porting
Post by: GnF on 26 / April / 2009, 07:46:15
something is out of mesuring with chdk iso.

If i override iso and tell them to go at 15 they go at 25 when taking pictures.

At 40 they are 64
at 100 they are 160
at 200 its 320
at 300 its 500
at 500 its 800
at 600 its 1000
at 700 its still 1000
at 800 its 1250


It does not go above 800


Same things happens if i tweak autoiso . (they do go above 800)
Title: Re: SX110IS - howto start porting
Post by: reyalp on 26 / April / 2009, 07:56:09
GnF that looks like the difference between canons "Market ISO" and "real ISO"
Title: Re: SX110IS - howto start porting
Post by: Hyst on 26 / April / 2009, 08:28:43
4) Has anyone managed to make any of the motion detection scripts work on the SX110IS?

Nope  ???  I tried everything I found from wiki but couldn't get them to work properly.. The "Multipurpose Motion Detection" runs but seems to detect motion everywhere, no matter how I try to calibrate it.  :(

same here...

@axu89
Try fudgey's Fast MD (http://chdk.setepontos.com/index.php/topic,471.msg21328.html#msg21328) script...

just tried.. same problem

Greetings
Title: Re: SX110IS - howto start porting
Post by: GnF on 26 / April / 2009, 08:31:20
GnF that looks like the difference between canons "Market ISO" and "real ISO"

Damn that is so true. Why does canon reports completly different iso?
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 26 / April / 2009, 10:29:24
GnF that looks like the difference between canons "Market ISO" and "real ISO"

Damn that is so true. Why does canon reports completly different iso?
Because Canon havnt high end firmware like CHDK^^ Also because it isnt a Camera for Professional use, so canon think its enough to show the "wrong" value
Title: Re: SX110IS - howto start porting
Post by: mikado on 26 / April / 2009, 11:37:35
hello, why optical zoom does not work on video with last chdk? thanks
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 26 / April / 2009, 11:44:13
hello, why optical zoom does not work on video with last chdk? thanks
omfg... ::)
http://chdk.setepontos.com/index.php/topic,2838.msg32899.html#msg32899 (http://chdk.setepontos.com/index.php/topic,2838.msg32899.html#msg32899)
Read = win ::)
Title: Re: SX110IS - howto start porting
Post by: PhyrePhoX on 26 / April / 2009, 12:00:14
semi-automatic AF after zoom sounds OK, if you can find a reasonable way to do it. Add it to the bug tracker and submit a patch.

BTW, I have such patch for old (Allbest?) CHDK version. If anyone interested, I will upload it tomorrow.

well, who wouldnt want such a patch? probably in a new thread though, so it doesnt get lost :)
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 26 / April / 2009, 13:22:54
I've the on/off problem again with sx110is-100b-0.9.8-755-full.zip too.
I hold the on/off button, the lens comes out, but the camera turn itself off with lens out...
Sometimes it seems all right. I try to find where it comes from.

The first beta versions didn't do that.

Live histogram in "always" mode shows only "noise", but with half pressed shutter and in "shoot" mode it's ok.
I know zebra is not supported yet, but it turns itself on sometimes.

I'm using the first beta's cfg file. Shall I delete it and setup everything again??
Title: Re: SX110IS - howto start porting
Post by: chdkj on 26 / April / 2009, 16:20:11
I'm thinking about beer. Would be nice. What are you thinking about ? ;)
;-) Yep. Where?
Quote
semi-automatic AF after zoom sounds OK, if you can find a reasonable way to do it. Add it to the bug tracker and submit a patch.
Hmmm, have to think about...

Quote
Turning on the AF lamp might be nice, but I'd be slightly concerned that LED is being over driven and is only designed to be on for short periods. It's also not really bright enough to help very much, at least not on any powershot I've used.
I'm afraid you are right.
Quote
@PhyrePhoX: do we need a new category like d3enc_v2 or am I wrong?
It uses the D4 values.

edit:
I've merged chdkj's patch, set the (hopefully) correct FI2 options, the blacklevel and done a couple other minor cleanups. SVN rev 755.
[/quote]

Thank you indeed!!!

Are your sure that core/gui.c in SVN 755 is clean? First line looks strange.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 26 / April / 2009, 16:26:11
semi-automatic AF after zoom sounds OK, if you can find a reasonable way to do it. Add it to the bug tracker and submit a patch.

BTW, I have such patch for old (Allbest?) CHDK version. If anyone interested, I will upload it tomorrow.

well, who wouldnt want such a patch? probably in a new thread though, so it doesnt get lost :)
I would welcome that!
Title: Re: SX110IS - howto start porting
Post by: chdkj on 26 / April / 2009, 16:30:34
I've the on/off problem again with sx110is-100b-0.9.8-755-full.zip too.
I hold the on/off button, the lens comes out, but the camera turn itself off with lens out...
Sometimes it seems all right. I try to find where it comes from.

The first beta versions didn't do that.

Live histogram in "always" mode shows only "noise", but with half pressed shutter and in "shoot" mode it's ok.
I know zebra is not supported yet, but it turns itself on sometimes.

I'm using the first beta's cfg file. Shall I delete it and setup everything again??
Strange. I dont have any clue... Please try to narrow it down. Did you check your camera firmware version? Is your SD card free of errors (filesystem check or physical write test)?
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 26 / April / 2009, 17:11:57
I've the on/off problem again with sx110is-100b-0.9.8-755-full.zip too.
I hold the on/off button, the lens comes out, but the camera turn itself off with lens out...
Sometimes it seems all right. I try to find where it comes from.

The first beta versions didn't do that.

Live histogram in "always" mode shows only "noise", but with half pressed shutter and in "shoot" mode it's ok.
I know zebra is not supported yet, but it turns itself on sometimes.

I'm using the first beta's cfg file. Shall I delete it and setup everything again??
Strange. I dont have any clue... Please try to narrow it down. Did you check your camera firmware version? Is your SD card free of errors (filesystem check or physical write test)?
really strange i dont have problems like that after the soundfix.
Title: Re: SX110IS - howto start porting
Post by: reyalp on 26 / April / 2009, 17:34:21
Are your sure that core/gui.c in SVN 755 is clean? First line looks strange.
I'm not sure what you mean ? gui.c didn't change in 755

The first line of the file looks normal to me gvim, windows
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 26 / April / 2009, 17:40:31
i've moved the old chdk config and started to reconfig - maybe it was
since then no error
Title: Re: SX110IS - howto start porting
Post by: chdkj on 27 / April / 2009, 01:27:09
The first line of the file looks normal to me gvim, windows
Code is correct , sorry. Mixed something up on my own installation with diffs.
Regards.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 27 / April / 2009, 09:32:07
Autobuild is working again...

updated wiki

Title: Re: SX110IS - howto start porting
Post by: axu89 on 27 / April / 2009, 10:04:51
4) Has anyone managed to make any of the motion detection scripts work on the SX110IS?

Nope  ???  I tried everything I found from wiki but couldn't get them to work properly.. The "Multipurpose Motion Detection" runs but seems to detect motion everywhere, no matter how I try to calibrate it.  :(

same here...

@axu89
Try fudgey's Fast MD (http://chdk.setepontos.com/index.php/topic,471.msg21328.html#msg21328) script...

just tried.. same problem

Greetings

I tried it too, works like the Multipurpose MD. If I turn threshold up to >100 it wont trigger by itself nor with motion. I also tried tuning the other parameters like with the other scripts but no, it wont work like it should. :(
Title: Re: SX110IS - howto start porting
Post by: chdkj on 27 / April / 2009, 14:52:36
I tried it too, works like the Multipurpose MD. If I turn threshold up to >100 it wont trigger by itself nor with motion. I also tried tuning the other parameters like with the other scripts but no, it wont work like it should. :(
Didn't play with scripts so far but did you try do mask some cells? There are hints about at the sx1-thread (http://chdk.setepontos.com/index.php/topic,3410.msg33072.html#msg33072 (http://chdk.setepontos.com/index.php/topic,3410.msg33072.html#msg33072)).
Title: Re: SX110IS - howto start porting
Post by: axu89 on 27 / April / 2009, 15:32:11
I tried it too, works like the Multipurpose MD. If I turn threshold up to >100 it wont trigger by itself nor with motion. I also tried tuning the other parameters like with the other scripts but no, it wont work like it should. :(
Didn't play with scripts so far but did you try do mask some cells? There are hints about at the sx1-thread (http://chdk.setepontos.com/index.php/topic,3410.msg33072.html#msg33072 (http://chdk.setepontos.com/index.php/topic,3410.msg33072.html#msg33072)).

I tried. But if you try running the script, you will notice that masking the border cells is useless since motion is detected everywhere "randomly". Its strange..?  ??? Maybe Im doing something terribly wrong? :o
Title: Re: SX110IS - howto start porting
Post by: chdkj on 27 / April / 2009, 15:46:13
Just an update:
Still some issues left (http://chdk.wikia.com/wiki/SX110IS#Known bugs (http://chdk.wikia.com/wiki/SX110IS#Known bugs).
- Scripts (at least Motion Detection Scripts) are not working as expected --> ?.
- Zebra draws dots over whole LCD screen (and from time to time even the expected zebra patterns -blink 2 or 3 times-) already with low sensitivity for both over and under exposured areas (the more sensitivity the more dots will be drawn) --> No clue.
- GetBatteryTemperature crashes the cam: hmm, what do to? Do we have really an originally broken function here?
- Auto-ISO-Shift doesn't work (http://chdk.setepontos.com/index.php/topic,2838.msg32856.html#msg32856 (http://chdk.setepontos.com/index.php/topic,2838.msg32856.html#msg32856)) -->I'm really unsure about this. It seems to me that Auto-ISO-Shift works as expected: ISO selecting by camera will controlled by user settings.
- ColorMatrix (for RAW/DNG) is still unsolved.

I've checked all camera dependent code and now I'm running out of ideas.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 27 / April / 2009, 15:51:09
I tried. But if you try running the script, you will notice that masking the border cells is useless since motion is detected everywhere "randomly". Its strange..?  ??? Maybe Im doing something terribly wrong? :o
Ok, thanks for testing. Don't think that you are doing something wrong regarding MD-scripts ;-). Can't exclude that some other things are broken in SX110-port and you are trapping in a subsequent error.
Title: Re: SX110IS - howto start porting
Post by: PhyrePhoX on 27 / April / 2009, 16:09:41
perhaps ewavr or fudgey can take a look at the getbattery stuff in the dumps. if they cant find the function, nobody can ;)
Title: Re: SX110IS - howto start porting
Post by: Hyst on 27 / April / 2009, 16:13:53
- Auto-ISO-Shift doesn't work (http://chdk.setepontos.com/index.php/topic,2838.msg32856.html#msg32856 (http://chdk.setepontos.com/index.php/topic,2838.msg32856.html#msg32856)) -->I'm really unsure about this. It seems to me that Auto-ISO-Shift works as expected: ISO selecting by camera will controlled by user settings.

hmm... why are you unsure about this...
here is what i do (an example):

(auto-iso-shift must be enabled in the canon-options and alt-key must be the print-button)

I am sitting in a dark room. Boot the cam WITHOUT CHDK. P-Mode. Iso is manually set to 80.
I am holding the shutter half-pressed. it shows:
   ISO 80 ; exposure 1/5
The print button glows blue. I press it. Now the settings changed to recommended auto-settings
   ISO 320^ ; exposure 1/20

now i boot the cam WITH CHDK. (same room. same settings)
I am holding the shutter half-pressed. it shows:
   ISO 80 ; exposure 1/5
The print button glows blue. I press it. and nothing changes. neither with a short press nor a long press.

what are you doing (or rather why does it work as expected with your cam)?

greetings
Title: Re: SX110IS - howto start porting
Post by: ewavr on 27 / April / 2009, 16:42:29
here is what i do (an example):

(auto-iso-shift must be enabled in the canon-options and alt-key must be the print-button)

I am sitting in a dark room. Boot the cam WITHOUT CHDK. P-Mode. Iso is manually set to 80.
I am holding the shutter half-pressed. it shows:
   ISO 80 ; exposure 1/5
The print button glows blue. I press it. Now the settings changed to recommended auto-settings
   ISO 320^ ; exposure 1/20

now i boot the cam WITH CHDK. (same room. same settings)
I am holding the shutter half-pressed. it shows:
   ISO 80 ; exposure 1/5
The print button glows blue. I press it. and nothing changes. neither with a short press nor a long press.

what are you doing (or rather why does it work as expected with your cam)?

This is well-known bug for cameras with autoISO shift function.
At present  there is only one medicine - change <alt> key to other key (if CHDK for SX110 can do this).
Title: Re: SX110IS - howto start porting
Post by: axu89 on 27 / April / 2009, 16:55:16
This is well-known bug for cameras with autoISO shift function.
At present  there is only one medicine - change <alt> key to other key (if CHDK for SX110 can do this).

Yeah.. I use the face button, its mostly useless for me. If I want the face focusing, its the first selection in SX110's menu after all.
Title: Re: SX110IS - howto start porting
Post by: lucmovel on 27 / April / 2009, 21:11:03
I use the face button, too. It's in a much more convenient position and my print button is too hard to press.
Title: Re: SX110IS - howto start porting
Post by: xiaoxiao0738 on 28 / April / 2009, 01:42:39
After using the CHDK camera sx110, camera generated file suffix called CRW how to open it!
I would like to ask, to how to open?
Title: Re: SX110IS - howto start porting
Post by: xiaoxiao0738 on 28 / April / 2009, 01:49:06
After using the CHDK camera sx110, camera called CRW suffix generated document, with dng4ps2 and FastStone Image Viewer can not open the browser!
I would like to ask, to how to open?
Title: Re: SX110IS - howto start porting
Post by: chdkj on 28 / April / 2009, 01:49:42
@Hyst, it is not in my intent to annoy you  ;). As said before, I'm not aware of all functions. Thought that we were talking about Custom ISO Shift all the the time --> Custom ISO Shift works with SX110 (and I like this feature...).
Auto ISO Shift is a built-in function of SX110 to change exposure related settings to new settings suggested by cam itself --> after you pressed the lightning blue print button (with Auto ISO Shift enabled in Canon menu). And up to now: with loaded CHDK nothing will happen after the print button press --> that did you mean.

EWAVR had a nice short explanation and a workaround http://chdk.setepontos.com/index.php/topic,2838.msg33121.html#msg33121 (http://chdk.setepontos.com/index.php/topic,2838.msg33121.html#msg33121). It works.

Greetings!
Title: Re: SX110IS - howto start porting
Post by: chdkj on 28 / April / 2009, 02:02:23
perhaps ewavr or fudgey can take a look at the getbattery stuff in the dumps. if they cant find the function, nobody can ;)
Oh Oh...
GetBatteryTemperature is implemented in SX110 as SX10 or SX100 does. Looks very similar (not to say identical). CHDK calls it simply via _GetBatteryTemperature and linked address in stubs_min.S.
Should working out of the box...

Not working MD scripts and corrupted Zebra is more annoying. Could it be that both are somehow related to each other? Wrong memcpy, wrong/unexpected buffer content?

@EWAVR or fudgey: may I ask you to have a look at this problem, please?


Greetings.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 28 / April / 2009, 02:04:07
This is well-known bug for cameras with autoISO shift function.
At present  there is only one medicine - change <alt> key to other key (if CHDK for SX110 can do this).
Thank you. Short and painless...
Change <ALT>-key works on SX110 and then Auto-ISO-Shift will work.
Title: Re: SX110IS - howto start porting
Post by: reyalp on 28 / April / 2009, 02:57:17
Not working MD scripts and corrupted Zebra is more annoying. Could it be that both are somehow related to each other? Wrong memcpy, wrong/unexpected buffer content?
Wrong live view buffer, most likely. You can write the live view buffer to a file and examine it on PC. You can also watch the address and see if it looks reasonable.

If live view is wrong, histogram will also be wrong. If the camera has built in histogram, you can compare (there will be some difference, but it should be roughly the same shape)
Title: Re: SX110IS - howto start porting
Post by: reyalp on 28 / April / 2009, 03:00:18
After using the CHDK camera sx110, camera called CRW suffix generated document, with dng4ps2 and FastStone Image Viewer can not open the browser!
I would like to ask, to how to open?
Currently few programs understand CHDK raw from 12 bit cameras like the sx110. If you look back in this thread, you may find something. You can also try dng instead.
Title: Re: SX110IS - howto start porting
Post by: Hyst on 28 / April / 2009, 03:42:27
@Hyst, it is not in my intent to annoy you  ;).

don't worry...  8)

This is well-known bug for cameras with autoISO shift function.
At present  there is only one medicine - change <alt> key to other key (if CHDK for SX110 can do this).

good to know, thank you!


---
I don't know if it is a bug or, if i'm doing something wrong, but: what is it about the "flashlight" function (in misc. options). I enable it, but nothing happens.


greetings
Title: Re: SX110IS - howto start porting
Post by: ewavr on 28 / April / 2009, 04:10:41
I don't know if it is a bug or, if i'm doing something wrong, but: what is it about the "flashlight" function (in misc. options). I enable it, but nothing happens.

This is a bug - "flashlight" function is only for cameras with rotating/swivel display.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 28 / April / 2009, 09:17:50
http://chdk.wikia.com/wiki/SX110IS#Known_bugs (http://chdk.wikia.com/wiki/SX110IS#Known_bugs) updated...

Is there a way to check the Histogram without build in function. Maybe with PC?
Title: Re: SX110IS - howto start porting
Post by: axu89 on 28 / April / 2009, 11:58:09
Have you guys actually tried histogram in "Always" mode? It shows the exact same pattern most of the time (no matter where you point the camera) with random flicks of the "real" histogram. Its like the zebra-mode, random flicks of the real pattern. I believe these things are somehow connected. Ok, Im just guessing here, but maybe the MD keeps shooting because it sees this same "unstable" picture as the histogram when its in the always mode and shoot button isnt pressed. Forgive me if im totally wrong, I really dont know.

Thou.. when you press shoot button to half (having histogram always or shoot), the histogram starts working properly but zebra wont.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 28 / April / 2009, 16:15:53
Wrong live view buffer, most likely. You can write the live view buffer to a file and examine it on PC. You can also watch the address and see if it looks reasonable.

If live view is wrong, histogram will also be wrong. If the camera has built in histogram, you can compare (there will be some difference, but it should be roughly the same shape)

Thank you, Reyalp. Will check this in the next couple of days.

I've marked vid_get_viewport_live_fb() as "questionable" in a early stage of porting already but lost it of my focus. Will have a closer look on it...
Regards.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 28 / April / 2009, 16:20:14
I don't know if it is a bug or, if i'm doing something wrong, but: what is it about the "flashlight" function (in misc. options). I enable it, but nothing happens.

This is a bug - "flashlight" function is only for cameras with rotating/swivel display.
Wrong settings in camera.h for SX110. (#define CAM_SWIVEL_SCREEN           1). Must be removed because SX110 doesn't have a swivel screen.
Suggest to wait with a new autobuild version until major changes (Zebra? MD? Histo?).

Cheers.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 28 / April / 2009, 16:39:32
http://chdk.wikia.com/wiki/SX110IS#Known_bugs (http://chdk.wikia.com/wiki/SX110IS#Known_bugs) updated...
Hi Obihoerchen,

I think that Auto-ISO-Shift is solved (general Bug if <ALT> = Print, workaround: change <ALT>-key to <Face>). If Hyst agrees than would you change "bug" to "hint/tricky/obscure..", please?

@All
I believe that corrupted zebra, dubious histogramms and overhasty motion detection scripts have the same cause (as reyalp stated in http://chdk.setepontos.com/index.php/topic,2838.msg33147.html#msg33147 (http://chdk.setepontos.com/index.php/topic,2838.msg33147.html#msg33147)). I'm going to check this but it will need some time. Everyone is invited to assist!

Cheers!



Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 28 / April / 2009, 16:56:55
http://chdk.wikia.com/wiki/SX110IS#Known_bugs (http://chdk.wikia.com/wiki/SX110IS#Known_bugs) updated...
Hi Obihoerchen,

I think that Auto-ISO-Shift is solved (general Bug if <ALT> = Print, workaround: change <ALT>-key to <Face>). If Hyst agrees than would you change "bug" to "hint/tricky/obscure..", please?

Added a new category called hints ;)
Now we have seperate hints and bugs...

http://chdk.wikia.com/wiki/SX110IS#Hints (http://chdk.wikia.com/wiki/SX110IS#Hints)
Title: Re: SX110IS - howto start porting
Post by: Hyst on 28 / April / 2009, 17:09:08
I think that Auto-ISO-Shift is solved (general Bug if <ALT> = Print, workaround: change <ALT>-key to <Face>). If Hyst agrees than would you change "bug" to "hint/tricky/obscure..", please?

sure i agree. i thought it was an unknown bug... but ewavr told us it is an well known bug with all Auto-ISO-Shift cameras...

greetings
Title: Re: SX110IS - howto start porting
Post by: chdkj on 30 / April / 2009, 15:20:02
Got it.  :D
Zebra, Histogram and MD-scripts are working now.

New version of CHDK for SX110 attached (you have to be a forum member for downloading).

It was actually the broken LiveImage buffer (see also http://chdk.setepontos.com/index.php/topic,2838.msg31903.html#msg31903 (http://chdk.setepontos.com/index.php/topic,2838.msg31903.html#msg31903))... Thanks to reyalp for that hint.
Found right addresses in firmware for variables used in function vid_get_viewport_live_fb in sub/lib.c.

void *vid_get_viewport_live_fb()
{

    void **fb=(void **)0x21a0; //ROM:FFC285D0 dword_FFC285D0  DCD 0x21A0, look also at ROM:FFC27FF0
    unsigned char buff = *((unsigned char*)0x2014); //ROM:FFC285C8 dword_FFC285C8  DCD 0x2014    , look also at ROM:FFC27FA0
    if (buff == 0) buff = 2;  else buff--;
    return fb[buff];

}


Camera stops (blank LCD, lens moved out, green led on) after some time if a script is running and (tested with badpixel.lua or MD-script and shooting
mode=test) but camera responds in some way to keyboard. I don't know how to assess that.
I believe that this have nothing to do with sx110-specific port of CHDK but can't exclude it.

My original bug list (http://chdk.setepontos.com/index.php/topic,2838.msg31903.html#msg31903 (http://chdk.setepontos.com/index.php/topic,2838.msg31903.html#msg31903)) has melted down to this:
Code-related issues:
--------------------

- core/kbd.c:   ZSTEP_TABLE_SIZE, nTxtbl --> still unverified
- platform/<camera>/shooting.c: dof_tbl --> still unverified
- platform/<camera>/sub/lib.c: hook_raw_image_addr --> still questionable, but seems to work
- include/camera.h: CAM_COLORMATRIX1, CAM_ACTIVE_AREA_* --> must be adapted to SX110

Problems:
---------
- GetBatteryTemperature --> still linked to GetCCDTemperature to avoid camera crash

Solved:
-------
- all others...

I'm glad...

P.S. DNG is useable at least but colors are not how they should be...
P.P.S. Use DNG instead of RAW (--> you can find a lot of discussion about it in forum)

Title: Re: SX110IS - howto start porting
Post by: chdkj on 30 / April / 2009, 15:31:17
@PhyrePhoX: May I ask you to update autobuild with attached diff?

Fixed with it:
- Swivel screen disabled in camera.h for sx110
- fixed vid_get_viewport_live_fb in lib.c (Zebra, Histogramm, Motion
Detection works now.)

Regards!
EDIT: Attachment deleted (final version released on Autobuild already)
Title: Re: SX110IS - howto start porting
Post by: axu89 on 30 / April / 2009, 16:10:48
Awesome work chdkj!
MD and histogram work very well :)

Now just RAW working and I got everything I currently want for my SX110.

I just built a remote for my camera. I dont have currently accurate adjustable power source, but 3V isnt enought, CR123 charged to 3,7V works.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 30 / April / 2009, 16:37:35
Which type of remote did you build (wired/wireless)? I'm interested in this kind of thing...
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 30 / April / 2009, 16:38:26
OMFG
NIIIIIIIIIIIIIIIIIIIIICCCCCCCCCCCCCCEEEEEEE

awesome :)

updated wiki!
Title: Re: SX110IS - howto start porting
Post by: chdkj on 30 / April / 2009, 16:56:22
Yep.

Will check issues left some day...
If we had a working COLORMATRIX than we would close to first stable version of CHDK for SX110.

- ZSTEP_TABLE_SIZE, nTxtbl, dof_tbl: no idea how to get those values (but didn't think deeper about yet)
- GetBatteryTemperature: no clue. Believe this will remain a mystery until the end..


Please test as much as you can.
Title: Re: SX110IS - howto start porting
Post by: fiestaware on 30 / April / 2009, 17:49:48
Quote
P.S. DNG is useable at least but colors are not how they should be...
P.P.S. Use DNG instead of RAW (--> you can find a lot of discussion about it in forum)



I'm not having any luck with DNG. Can't even 'select' it in the menu. Maybe I'm missing something obvious?
Title: Re: SX110IS - howto start porting
Post by: reyalp on 01 / May / 2009, 03:25:18
@PhyrePhoX: May I ask you to update autobuild with attached diff?

Fixed with it:
- Swivel screen disabled in camera.h for sx110
- fixed vid_get_viewport_live_fb in lib.c (Zebra, Histogramm, Motion
Detection works now.)

Regards!
Applied, svn 757
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 01 / May / 2009, 07:28:16
@PhyrePhoX: May I ask you to update autobuild with attached diff?

Fixed with it:
- Swivel screen disabled in camera.h for sx110
- fixed vid_get_viewport_live_fb in lib.c (Zebra, Histogramm, Motion
Detection works now.)

Regards!
Applied, svn 757
fast :)

only 2 bugs :) But only one real bug (RAW/DNG), because Battery Temperature isn't very important ;)
Title: Re: SX110IS - howto start porting
Post by: GnF on 01 / May / 2009, 07:31:24
 :o Really great  :)
Title: Re: SX110IS - howto start porting
Post by: axu89 on 01 / May / 2009, 09:33:32
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 01 / May / 2009, 09:57:49
Title: Re: SX110IS - howto start porting
Post by: GnF on 01 / May / 2009, 10:15:55
Anyone know a way for me to hide chdk osd while i preview the already taken photos? I seem not able to find a way to hide 3 things till now.

Battery and battery data (% or voltage)
Time
Temperature (either one of the 3 or all of them).

I think i was able to hide them till 754
Title: Re: SX110IS - howto start porting
Post by: axu89 on 01 / May / 2009, 10:54:28
nice construction ^^

edited the article dont know wheather this is right? min. 3,6V / Wake-up: No ?
I'll try to figure out the other values like TV and so on

Hmm.. I believe the min. is 3,4V like many other cameras but I dont have proper means to test it accurately. 3,6-3,7 work but its not the minimum.
Put it this way: 3,6V OK / Wake-up: No

Thanks! :)

Anyone know a way for me to hide chdk osd while i preview the already taken photos? I seem not able to find a way to hide 3 things till now.

Battery and battery data (% or voltage)
Time
Temperature (either one of the 3 or all of them).

I think i was able to hide them till 754

Main Menu -> OSD parameters -> Hide OSD: In Play
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 01 / May / 2009, 11:37:21
nice construction ^^

edited the article dont know wheather this is right? min. 3,6V / Wake-up: No ?
I'll try to figure out the other values like TV and so on

Hmm.. I believe the min. is 3,4V like many other cameras but I dont have proper means to test it accurately. 3,6-3,7 work but its not the minimum.
Put it this way: 3,6V OK / Wake-up: No

done
Title: Re: SX110IS - howto start porting
Post by: GnF on 01 / May / 2009, 12:23:26
nice construction ^^

edited the article dont know wheather this is right? min. 3,6V / Wake-up: No ?
I'll try to figure out the other values like TV and so on

Hmm.. I believe the min. is 3,4V like many other cameras but I dont have proper means to test it accurately. 3,6-3,7 work but its not the minimum.
Put it this way: 3,6V OK / Wake-up: No

Thanks! :)

Anyone know a way for me to hide chdk osd while i preview the already taken photos? I seem not able to find a way to hide 3 things till now.

Battery and battery data (% or voltage)
Time
Temperature (either one of the 3 or all of them).

I think i was able to hide them till 754

Main Menu -> OSD parameters -> Hide OSD: In Play

Nice now i dont see battery info.
Still Time and temperature are still there
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 01 / May / 2009, 13:44:15
Wow what a nice cam!
I tested Motion Detection a little bit here is the result :)

Between 80 and 90ms! Without any optimization!
(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fwww.abload.de%2Fthumb%2F80mssrz1.jpg&hash=4091a2165db703d67bfab8fe3034e665) (http://www.abload.de/image.php?img=80mssrz1.jpg)
Title: Re: SX110IS - howto start porting
Post by: axu89 on 01 / May / 2009, 14:09:47
Wow what a nice cam!
I tested Motion Detection a little bit here is the result :)

Between 80 and 90ms! Without any optimization!
(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fwww.abload.de%2Fthumb%2F80mssrz1.jpg&hash=4091a2165db703d67bfab8fe3034e665) (http://www.abload.de/image.php?img=80mssrz1.jpg)


Hmm.. nice :O I got "only" 100ms :/ Ill try again with some tweaking
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 01 / May / 2009, 14:25:33
I will test it with MD Test 3 too
but later...
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 01 / May / 2009, 17:34:09
tested MD a little bit more and tweaked some settings...

Result: 60ms  :o
(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fwww.abload.de%2Fthumb%2F50h7gc.jpg&hash=2c84d29c86c9c740e95a30f89bf12d05) (http://www.abload.de/image.php?img=50h7gc.jpg)
(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fwww.abload.de%2Fthumb%2F50146hm.jpg&hash=110b62ff12aa0f74d83f4b3611977935) (http://www.abload.de/image.php?img=50146hm.jpg)

(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fwww.abload.de%2Fthumb%2F502q4t0.jpg&hash=6fa90b9e3fd0d09e2d18fab8c102930f) (http://www.abload.de/image.php?img=502q4t0.jpg)
<-- 50ms? I looks strange

PS: http://chdk.wikia.com/wiki/CameraFeatures (http://chdk.wikia.com/wiki/CameraFeatures) added ISO and MD Speed
Title: Re: SX110IS - howto start porting
Post by: lucmovel on 01 / May / 2009, 22:16:51
My experience with MD isn't going so well. Which script are you folks using, and what parameters?
Title: Re: SX110IS - howto start porting
Post by: axu89 on 02 / May / 2009, 07:38:25
My experience with MD isn't going so well. Which script are you folks using, and what parameters?

I use http://chdk.setepontos.com/index.php/topic,471.msg21328.html#msg21328 (http://chdk.setepontos.com/index.php/topic,471.msg21328.html#msg21328)
Default script parameters work, and you can turn trigger delay to 0. The script has nice read me -file, read it :)
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 02 / May / 2009, 12:05:47
My experience with MD isn't going so well. Which script are you folks using, and what parameters?

I use http://chdk.setepontos.com/index.php/topic,471.msg21328.html#msg21328 (http://chdk.setepontos.com/index.php/topic,471.msg21328.html#msg21328)
Default script parameters work, and you can turn trigger delay to 0. The script has nice read me -file, read it :)

I also use this Script, because its the BEST and FASTEST!
You can find it also in Hints at the wiki http://chdk.wikia.com/wiki/SX110IS (http://chdk.wikia.com/wiki/SX110IS)
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 03 / May / 2009, 14:11:01
Here are some practical test with MD on SX110IS:

ISO and Focus isn't right everytime^^

(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fwww.abload.de%2Fthumb%2Fimg_1579mryw.jpg&hash=8e472af34361f72ff3680ccc79c9bebe) (http://www.abload.de/image.php?img=img_1579mryw.jpg) (https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fwww.abload.de%2Fthumb%2Fimg_1582jpnm.jpg&hash=a3213149f0c0a783ec1420285785749e) (http://www.abload.de/image.php?img=img_1582jpnm.jpg) (https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fwww.abload.de%2Fthumb%2Fimg_1583bt4t.jpg&hash=459e23386c3f40b6dedf83394d89349f) (http://www.abload.de/image.php?img=img_1583bt4t.jpg) (https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fwww.abload.de%2Fthumb%2Fimg_1587eojf.jpg&hash=011029280e5acc1bec0acf782f8c13e7) (http://www.abload.de/image.php?img=img_1587eojf.jpg)
(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fwww.abload.de%2Fthumb%2Fimg_1464nvaq.jpg&hash=6ec9df199959e839070b7bab88d2ebe0) (http://www.abload.de/image.php?img=img_1464nvaq.jpg)
Title: Re: SX110IS - howto start porting
Post by: chdkj on 03 / May / 2009, 14:17:33
@axu89
Wow! Cool. Camera Control via a heli rc... :-)

@Obihoernchen
Don't kill the rabbitt! Did you throw a potato?
Title: Re: SX110IS - howto start porting
Post by: PhyrePhoX on 03 / May / 2009, 14:32:01
Here are some practical test with MD on SX110IS:



don't know if you noticed already, but i spotted a big fat badpixel in some of your images.







:D
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 03 / May / 2009, 14:45:56
@axu89
Wow! Cool. Camera Control via a heli rc... :-)

@Obihoernchen
Don't kill the rabbitt! Did you throw a potato?

xDDDD No it was a stone^^, but i dont throw very far so the guinea pig (not rabbit) doesn't get hurt^^

@PhyrePhoX I know but i cant fix it ARGH :(






neighbours....  ;)
Title: Re: SX110IS - howto start porting
Post by: Inferno on 03 / May / 2009, 21:22:11
I'm still puzzled by DNG issue. When you do RAW to DNG with DNG4PS-2 everything is good but when camera does DNG it makes that strange blue haze. I don't think it's the problem with color matrix because as you can see from the picture I attached it's perfect. Little bit yellowish by default but still good. I think it's more related to badpix script itself or the way chdk converts.
(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2F666kb.com%2Fi%2Fb8mjl07hgck48sy4i.jpg&hash=5ed859e9dfc773e813f83e51bc25e344)
Title: Re: SX110IS - howto start porting
Post by: reyalp on 04 / May / 2009, 01:17:04
The badpixel script would not cause a haze. All it does is make a list of pixel the canon firmware set to below black level. CHDK takes this list an interpolates over those pixels.

The only conversion CHDK does to the actual data is reversing the byte order (as required by the DNG spec for 10 and 12 bit data). You'd see more than a haze if this was going wrong ;)
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 04 / May / 2009, 14:15:23
one question:

@chdkj

do we have the advanced version with all 3 buffers? http://chdk.setepontos.com/index.php/topic,471.msg33535.html#msg33535 (http://chdk.setepontos.com/index.php/topic,471.msg33535.html#msg33535)
Title: Re: SX110IS - howto start porting
Post by: fe50 on 04 / May / 2009, 14:36:34
do we have the advanced version with all 3 buffers? http://chdk.setepontos.com/index.php/topic,471.msg33535.html#msg33535 (http://chdk.setepontos.com/index.php/topic,471.msg33535.html#msg33535)
CHDK source code says yes... have a look to /platform/sx110is/sub/100b/lib.c (e.g.  online (http://tools.assembla.com/chdk/browser/trunk/platform/sx110is/sub/100b/lib.c)):
Code: [Select]
void *vid_get_viewport_live_fb()
  { void **fb=(void **)0x21a0; //ROM:FFC285D0 dword_FFC285D0  DCD 0x21A0, look also at ROM:FFC27FF0
     unsigned char buff = *((unsigned char*)0x2014); //ROM:FFC285C8 dword_FFC285C8  DCD 0x2014    , look also at ROM:FFC27FA0
      if (buff == 0) buff = 2;  else buff--;
      return fb[buff];  }
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 04 / May / 2009, 14:56:13
do we have the advanced version with all 3 buffers? http://chdk.setepontos.com/index.php/topic,471.msg33535.html#msg33535 (http://chdk.setepontos.com/index.php/topic,471.msg33535.html#msg33535)
CHDK source code says yes... have a look to /platform/sx110is/sub/100b/lib.c (e.g.  online (http://tools.assembla.com/chdk/browser/trunk/platform/sx110is/sub/100b/lib.c)):
Code: [Select]
void *vid_get_viewport_live_fb()
  { void **fb=(void **)0x21a0; //ROM:FFC285D0 dword_FFC285D0  DCD 0x21A0, look also at ROM:FFC27FF0
     unsigned char buff = *((unsigned char*)0x2014); //ROM:FFC285C8 dword_FFC285C8  DCD 0x2014    , look also at ROM:FFC27FA0
      if (buff == 0) buff = 2;  else buff--;
      return fb[buff];  }

thx
I only dont have the knowledge :(
I also thinked so, because MD is very fast ;)
Great work chdkj!
Title: Re: SX110IS - howto start porting
Post by: chdkj on 04 / May / 2009, 16:00:59
What should I say? Some pathetic like: "A man has to do what a man has to do..." ;-)))

It's actually not my work. There are some people around, willing to make things running and to share their knowledge and results with others. Thats is all the work of those people. What I did, is to made a port based on those excellence. Porting a new camera is more the work of a book keeper (no insult and even not my job and I do not erode the work of other porters) than the work of a developer. This might be sound curious especially to non-developers but it's true. And: one will need some knowledge of a developer to make a successful port.

To be short:  I wouldn't miss the chance, to say Thank You to those people, who made that possible.

A reason more to attend the coming 26C3 and have a beer together...

Cheers!
Title: Re: SX110IS - howto start porting
Post by: chermucsnis on 07 / May / 2009, 08:02:31
Hello!

I'm trying to use DNG2PS to convert RAW to DNG, but the resulting picture has a different RGB histogram aspect comparing to the camera's JPEG... In fact, the resulting DNG is yellowish comparing to the JPEG. (I've selected the correct SX110IS color profile in DNG2PS, and left WhiteBalance in Auto)

Is this related to this Color Matrix problem you are talking about, or it's related to DNG2PS settings?

Thank's in advance.
Title: Re: SX110IS - howto start porting
Post by: chermucsnis on 07 / May / 2009, 23:39:59
In the link below there is a multi target picture taken with SX110. Maybe it can help to improve the color matrix.

http://www.imaging-resource.com/PRODS/SX110IS/FULLRES/SX110IShMULTIW.HTM (http://www.imaging-resource.com/PRODS/SX110IS/FULLRES/SX110IShMULTIW.HTM)
Title: Re: SX110IS - howto start porting
Post by: Inferno on 08 / May / 2009, 06:45:40
I compared yellowish haze of CRW with bluish haze of DNG. It's the same amout of haze. Maybe they are both related somehow.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 08 / May / 2009, 14:29:14
In the link below there is a multi target picture taken with SX110. Maybe it can help to improve the color matrix.

http://www.imaging-resource.com/PRODS/SX110IS/FULLRES/SX110IShMULTIW.HTM (http://www.imaging-resource.com/PRODS/SX110IS/FULLRES/SX110IShMULTIW.HTM)

Maybe we should do that:
http://chdk.setepontos.com/index.php/topic,390.0.html (http://chdk.setepontos.com/index.php/topic,390.0.html)
http://chdk.wikia.com/wiki/DNG4PS-2/Calibration (http://chdk.wikia.com/wiki/DNG4PS-2/Calibration)

chermucsnis it is possible for you to take a photo with these settings?
Title: Re: SX110IS - howto start porting
Post by: axu89 on 08 / May / 2009, 15:00:01
In the link below there is a multi target picture taken with SX110. Maybe it can help to improve the color matrix.

http://www.imaging-resource.com/PRODS/SX110IS/FULLRES/SX110IShMULTIW.HTM (http://www.imaging-resource.com/PRODS/SX110IS/FULLRES/SX110IShMULTIW.HTM)

Maybe we should do that:
http://chdk.setepontos.com/index.php/topic,390.0.html (http://chdk.setepontos.com/index.php/topic,390.0.html)
http://chdk.wikia.com/wiki/DNG4PS-2/Calibration (http://chdk.wikia.com/wiki/DNG4PS-2/Calibration)

chermucsnis it is possible for you to take a photo with these settings?

Ive tried but I couldnt get good results :/ Yarvieh was working on the matrix bus hasnt posted in 2 weeks :(
Title: Re: SX110IS - howto start porting
Post by: chdkj on 08 / May / 2009, 15:48:42
Yarvieh told me some days ago, that he followed both links and got no satisfying results. But I can't speak for him, of course :-).

I don't have enough spare time these days and can not work on CHDK for sx110. Will be back at end of month (but I will check the forum from time to time).

@obihoernchen: sx110-wiki-page looks good!!!


Just an idea: What's about the other 12-bit cameras? Do they possess a proper color profile? How do they got it?

Regards!
Title: Re: SX110IS - howto start porting
Post by: chermucsnis on 08 / May / 2009, 15:51:18
In the link below there is a multi target picture taken with SX110. Maybe it can help to improve the color matrix.

http://www.imaging-resource.com/PRODS/SX110IS/FULLRES/SX110IShMULTIW.HTM (http://www.imaging-resource.com/PRODS/SX110IS/FULLRES/SX110IShMULTIW.HTM)

Maybe we should do that:
http://chdk.setepontos.com/index.php/topic,390.0.html (http://chdk.setepontos.com/index.php/topic,390.0.html)
http://chdk.wikia.com/wiki/DNG4PS-2/Calibration (http://chdk.wikia.com/wiki/DNG4PS-2/Calibration)

chermucsnis it is possible for you to take a photo with these settings?

I'm afraid not, I have no ColorCheck target to take a photo of. I just saw this picture in a website reviewing the SX110, and thouth it could help, but now I see that the color calibration requires also the RAW file as well, not only the JPEG, and that the camera must be with specific settings.
Title: Re: SX110IS - howto start porting
Post by: chermucsnis on 08 / May / 2009, 15:56:38
Reading closely the post with the link to the DNG4PS adapted for SX110, the author tells that this preliminary build "tosses 2 bit of information" (because the original DNG4PS works only with 10 bits, I suppose).

What would be the impact of losing these 2 bits? Could it be related to these color issues?
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 08 / May / 2009, 18:15:07
@obihoernchen: sx110-wiki-page looks good!!!


Just an idea: What's about the other 12-bit cameras? Do they possess a proper color profile? How do they got it?

Regards!

thx :)

dont know I will ask a developer!
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 08 / May / 2009, 21:16:48
done

I asked fe50 and he tells me the following:
(I will try to translate it in english)

This is everytime a problem of 12bit cameras, because DNG4PS-2 cant go on with 12 bit until now. For the SX10 they converted the 12bit raw into 10bit and then they used the normal method. (ewavr done so)

The newer port use the matrix of sx10.

We should look here:
http://chdk.setepontos.com/index.php/topic,390.msg30620.html#msg30620 (http://chdk.setepontos.com/index.php/topic,390.msg30620.html#msg30620)
Title: Re: SX110IS - howto start porting
Post by: chdkj on 09 / May / 2009, 04:43:28
Thank you Obihoernchen.
I had play with color matrix of sx10 in sx110 but without success (colors are not how they supposed to be).
But I didn't spend much effort on it.

Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 10 / May / 2009, 07:08:18
Maybe I should open a Topic in Raw section and ask for help?
Title: Re: SX110IS - howto start porting
Post by: axu89 on 10 / May / 2009, 07:59:07
The calibration is just hopeless.. no matter what tricks I try the results are total ****. Something is totally wrong..
Title: Re: SX110IS - howto start porting
Post by: chdkj on 10 / May / 2009, 15:45:22
As far as I have understand only hook_raw_image_addr and hook_raw_size have to be adapted for new camera to get RAW working (seen from a porters point of view). Indeed I've marked hook_raw_image_addr as "unsure" but I checked the code again and got same results --> I'm pretty sure that hook_raw_image_addr is correct. And I don't think that hook_raw_image_addr has something to do with that color haze. So codewise everything should  be fine.  :blink: ????

No idea.
Title: Re: SX110IS - howto start porting
Post by: reyalp on 10 / May / 2009, 16:09:14
If you didn't have the correct address, you'd get garbage or a partial image, not an image with the wrong colors.

Incorrect CAM_BLACK_LEVEL in the sd990 had an effect somewhat like what was described here. See  http://chdk.setepontos.com/index.php/topic,2972.30.html (http://chdk.setepontos.com/index.php/topic,2972.30.html)
Title: Re: SX110IS - howto start porting
Post by: axu89 on 11 / May / 2009, 05:02:53
If you didn't have the correct address, you'd get garbage or a partial image, not an image with the wrong colors.

Incorrect CAM_BLACK_LEVEL in the sd990 had an effect somewhat like what was described here. See  http://chdk.setepontos.com/index.php/topic,2972.30.html (http://chdk.setepontos.com/index.php/topic,2972.30.html)

Not that I would understand a thing about this.. but I tried setting CAM_BLACK_LEVEL to 128 and calibration results are way better than before (with quick test picture of my laptop LCD (full of reflections). Error used to be something like 80% and now its just 17%.. Now if someone would just fine tune it and take a proper calibration picture :)
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 11 / May / 2009, 11:11:29
If you didn't have the correct address, you'd get garbage or a partial image, not an image with the wrong colors.

Incorrect CAM_BLACK_LEVEL in the sd990 had an effect somewhat like what was described here. See  http://chdk.setepontos.com/index.php/topic,2972.30.html (http://chdk.setepontos.com/index.php/topic,2972.30.html)

Not that I would understand a thing about this.. but I tried setting CAM_BLACK_LEVEL to 128 and calibration results are way better than before (with quick test picture of my laptop LCD (full of reflections). Error used to be something like 80% and now its just 17%.. Now if someone would just fine tune it and take a proper calibration picture :)

I would do it if you could tell me:
1. how to change CAM_BLACK_LEVEL
and 2. how to compare the 2 pictures and measure the difference?
Title: Re: SX110IS - howto start porting
Post by: axu89 on 11 / May / 2009, 14:19:20
If you didn't have the correct address, you'd get garbage or a partial image, not an image with the wrong colors.

Incorrect CAM_BLACK_LEVEL in the sd990 had an effect somewhat like what was described here. See  http://chdk.setepontos.com/index.php/topic,2972.30.html (http://chdk.setepontos.com/index.php/topic,2972.30.html)

Not that I would understand a thing about this.. but I tried setting CAM_BLACK_LEVEL to 128 and calibration results are way better than before (with quick test picture of my laptop LCD (full of reflections). Error used to be something like 80% and now its just 17%.. Now if someone would just fine tune it and take a proper calibration picture :)

I would do it if you could tell me:
1. how to change CAM_BLACK_LEVEL
and 2. how to compare the 2 pictures and measure the difference?

1. CAM_BLACK_LEVEL is in the trunk/include/camera.h (but is 128 really the right value?)

2. I used instructions from links you had posted in the previous page. http://chdk.wikia.com/wiki/DNG4PS-2/Calibration (http://chdk.wikia.com/wiki/DNG4PS-2/Calibration) and http://chdk.setepontos.com/index.php/topic,390.0.html (http://chdk.setepontos.com/index.php/topic,390.0.html)

I dont have the time today to get more into it, but I took quick photo of the pallete (damn i hate the glossy LCD screen..) results were not so good but the program was able to calculate the matrix from it.
I used the modified DNG4PS-2 posted by yarvieh in this thread, its buggy like hell but worked for my experiment Options->CamOpts, there you'll find the calibration. (have to try to open the file with wrong camera type, then switch to SX110 and try again, otherwise it wont open....)
Last step is to apply the color matrix into the camera.h.


Results are not perfect, but much at least the blue haze is gone. When I open the DNG with Picasa theres black borders on the right and top, photoshop doesnt show them, its like the picture would "shift" few pixels.. but I wont get down to it now.
I attached resized photos (DNG converted to JPG with photoshop)
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 11 / May / 2009, 16:02:27
nice result up to now :)

I will try it too. Tomorrow or...
Title: Re: SX110IS - howto start porting
Post by: chdkj on 11 / May / 2009, 16:05:15
@reyalp and @axu89: great!

@obihoernchen: look for "SX110" in include/camera.h and change CAM_BLACK_LEVEL (as axu89 already said) to whatever. Compile it: if you use Windows than you should consider 'CHDK Shell' from user whim for compiling chdk. It is a completely worry-free package...  http://chdk.wikia.com/wiki/CHDK-Shell (http://chdk.wikia.com/wiki/CHDK-Shell)). Please keep in mind that firmware update method requires the appropriate FI2.inc file in /platform and you have to check in the FI2-option in CHDK Shell.
Have fun!
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 11 / May / 2009, 16:47:40
Yeah i think i can do it ;) I dont need the FI2 Feature i never use it :P

only one question in camera.h there is nearly 10 times #define CAM_BLACK_LEVEL and one value is 31 all other are 127. Which I have to change?

PS: Which values would be good? Should I also try 129, 130, ... ? Or is there only 127 and 128?
Title: Re: SX110IS - howto start porting
Post by: axu89 on 11 / May / 2009, 23:44:57
Yeah i think i can do it ;) I dont need the FI2 Feature i never use it :P

only one question in camera.h there is nearly 10 times #define CAM_BLACK_LEVEL and one value is 31 all other are 127. Which I have to change?

PS: Which values would be good? Should I also try 129, 130, ... ? Or is there only 127 and 128?

Its a list of all camera models, SX110 is at the bottom of the file and not all cameras have it defined. I dont know what would be the effect if it would be undefined for SX110..
I will experiment more today if I have the time (propably not :( )
reyalp pointed out a good thread. Theres some discussion about the black level value:

If you didn't have the correct address, you'd get garbage or a partial image, not an image with the wrong colors.

Incorrect CAM_BLACK_LEVEL in the sd990 had an effect somewhat like what was described here. See  http://chdk.setepontos.com/index.php/topic,2972.30.html (http://chdk.setepontos.com/index.php/topic,2972.30.html)
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 12 / May / 2009, 11:12:46
Yeah i think i can do it ;) I dont need the FI2 Feature i never use it :P

only one question in camera.h there is nearly 10 times #define CAM_BLACK_LEVEL and one value is 31 all other are 127. Which I have to change?

PS: Which values would be good? Should I also try 129, 130, ... ? Or is there only 127 and 128?

Its a list of all camera models, SX110 is at the bottom of the file and not all cameras have it defined. I dont know what would be the effect if it would be undefined for SX110..
I will experiment more today if I have the time (propably not :( )
reyalp pointed out a good thread. Theres some discussion about the black level value:

If you didn't have the correct address, you'd get garbage or a partial image, not an image with the wrong colors.

Incorrect CAM_BLACK_LEVEL in the sd990 had an effect somewhat like what was described here. See  http://chdk.setepontos.com/index.php/topic,2972.30.html (http://chdk.setepontos.com/index.php/topic,2972.30.html)

i'm so stupid -.-
Title: Re: SX110IS - howto start porting
Post by: chdkj on 12 / May / 2009, 16:13:11
Just an update:

Checked last change log and bug list for sx110 (http://chdk.setepontos.com/index.php/topic,2838.msg33314.html#msg33314 (http://chdk.setepontos.com/index.php/topic,2838.msg33314.html#msg33314)) and current autobuild code base:

Solved or accepted at least ;-)
====================
- core/kbd.c:   ZSTEP_TABLE_SIZE, nTxtbl --> using same values as sx100 does; optics are nearly the same (or identical); always in code base
- platform/<camera>/shooting.c: dof_tbl --> it's just unused in code... So I will remove it from code base some day if nobody rejects this
- platform/<camera>/sub/lib.c: hook_raw_image_addr --> checked again and again... RAW-images are possible at all. Someone has to decide ... I'm pretty sure, current code base is correct, so this issue is solved.

open issues/problems:
===============
- include/camera.h: CAM_COLORMATRIX1, CAM_ACTIVE_AREA_* --> must be adapted to SX110
- GetBatteryTemperature --> still linked to GetCCDTemperature, otherwise (that means using the real function) it will provoke a camera crash

BTW: I've tracked some other porting threads and some of them seems to be decease after a successful port (like SX100). But CHDK is evolving and those cameras miss new features or enhancements requiring camera specific code (have a look at http://chdk.setepontos.com/index.php/topic,2838.msg33558.html#msg33558 (http://chdk.setepontos.com/index.php/topic,2838.msg33558.html#msg33558) as an example). Hope, SX110 will overcome the next decade ;-))))


Greetings.
Title: Re: SX110IS - howto start porting
Post by: axu89 on 13 / May / 2009, 12:33:48
Im giving up with the colormatrix :( Not really possible to get 100% good result with my equipment. Best I can do is what I already posted. Is there anyone with good color check table or something...? Where is Yarvieh
Title: Re: SX110IS - howto start porting
Post by: Yarvieh on 14 / May / 2009, 21:38:08
I did a few more tries with the color chart and gave up on it the dng's just never look right, I returned to hacking other stuff like my gigapan.
Title: Re: SX110IS - howto start porting
Post by: hmk205 on 17 / May / 2009, 10:22:13
Hi, every body.
I'm planing to buy a sx110 soon in part thanks to CHDK development.
About the RAW problem, as the SX110 has a 12 bit image and the DNG has 10, is it not normal to  have some differences between the jpeg photo and the one made frow the DNG. I mean there must be  lost data in the conversion from 12 to 10 bit.
I don't have great knowlegde in informatic nor in photography but it 's just an idea that come to my mind. I dont know if it can help.
Thank you all for the great job you're doing here.
Title: Re: SX110IS - howto start porting
Post by: Yarvieh on 17 / May / 2009, 11:36:02
You`re wrong in several points here, jpg's use 8 bit per channel not 10, the dng file format supports 12 bit data just fine and we are keeping all 12 bits no data is being converted. The problem is not that there is 'some' difference the dng looks like someone put a heavy blue filter on. Thanks for thinking along with us but though.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 17 / May / 2009, 16:11:57
He Yarvieh,

glad to hear from you. I would swear like a trooper about that color haze if I would not be so well-mannered...  ;-)))

Regards!
Title: Re: SX110IS - howto start porting
Post by: nerdboy4200 on 17 / May / 2009, 17:44:32
Hi all,

I've had a SX110IS for a while (since December) and have been watching this forum since it started up. I have noticed that those who were finding the color matrix were using a program which reads only 10-bit color raw files.

You might be interested to know that Dave Coffin has finally added in SX110IS support into his dcraw program (http://www.cybercom.net/~dcoffin/dcraw/ (http://www.cybercom.net/~dcoffin/dcraw/)) program. Since his program fully supports 12-bit images, it may be better than the other since it can output 16-bit images AND can read 12-bit raw files.

Just my 2 cents..
Title: Re: SX110IS - howto start porting
Post by: hnsight on 17 / May / 2009, 19:06:55
Barring any freakish coincidences, I am having a battery-related issue when using CHDK.  It seems as though battery life has decreased dramatically since I loaded it (by well over 50%).  Has anyone else experienced this issue?
Title: Re: SX110IS - howto start porting
Post by: hnsight on 17 / May / 2009, 19:12:37
I'm retarded.  A quick search provided all sorts of enlightenment.
Title: Re: SX110IS - howto start porting
Post by: reyalp on 17 / May / 2009, 19:17:30
I've updated CAM_BLACK_LEVEL to 128 in the trunk.
Title: Re: SX110IS - howto start porting
Post by: axu89 on 18 / May / 2009, 00:34:15
You`re wrong in several points here, jpg's use 8 bit per channel not 10, the dng file format supports 12 bit data just fine and we are keeping all 12 bits no data is being converted. The problem is not that there is 'some' difference the dng looks like someone put a heavy blue filter on. Thanks for thinking along with us but though.

We got rid of the blue haze with cam_black_level 128 :)
Still my calibration has little too highly saturated reds (see last page with couple of pictures)...

Im off for 2 weeks now 8)
Title: Re: SX110IS - howto start porting
Post by: sweetcow on 18 / May / 2009, 00:59:48
Hi,  I'm concerned about CHDK for SX110 for long time. I've learned that color matrix  is the obstruction to converting raw files of SX110 by browse this bbs.

I have a idea but I donot know it works or not. we can disassemblers or decompilers the firmwares  and  find out how it deal with raw files, or find out the functions or code segments which deal with raw files.

I'm not a programmer and also have no experience about crack. I donot know this idea is feasible or not.

Title: Re: SX110IS - howto start porting
Post by: chdkj on 18 / May / 2009, 10:02:46
I have a idea but I donot know it works or not. we can disassemblers or decompilers the firmwares  and  find out how it deal with raw files, or find out the functions or code segments which deal with raw files.

There are some discussions in forum about this topic. I tried to draw that secret from firmware but gave up at some point. It's not only about finding the color matrix you have to translate it also from some sort of Canon presentation to "real world" numbers.

I'm also encountering the battery drain-out problem, even without CHDK. Batteries are fully loaded and my camera stops very very quickly (after a few shots) and complains "change batteries...".

Ok, I'm off until the end of the week...

Regards!

Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 18 / May / 2009, 10:44:26
Lol i tried a little bit more with RAW and I got a 100 same picture with DNG4PS-2.exe from Yariveh!
And it doesnt matter wheather I use Blacklevel 127 or 128 o0

Here are the Pictures:
(All compressed with IrfanView @ JPEG @ 1024x768 @ 90%)
From left to right: Blacklevel 127 JPEG | Blacklevel 127 RAW | Blacklevel 128 JPEG | Blacklevel 128 RAW | Blacklevel 128 JPEG_2 | Blacklevel 128 RAW_2

(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fwww.abload.de%2Fthumb%2Fimg_1672_127origo59q.jpg&hash=82383b3b05d3987dce877c7955631edd) (http://www.abload.de/image.php?img=img_1672_127origo59q.jpg) (https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fwww.abload.de%2Fthumb%2Fcrw_1672_127l2nd.jpg&hash=19e8328605f76e0d68196ddf86bb057d) (http://www.abload.de/image.php?img=crw_1672_127l2nd.jpg) (https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fwww.abload.de%2Fthumb%2Fimg_1673orig30vg.jpg&hash=4826935fccf429eaa38e4d61bb2c7f37) (http://www.abload.de/image.php?img=img_1673orig30vg.jpg) (https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fwww.abload.de%2Fthumb%2Fcrw_1673_128g43v.jpg&hash=95406701d4d32c8b980d2efb125b4cf3) (http://www.abload.de/image.php?img=crw_1673_128g43v.jpg) (https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fwww.abload.de%2Fthumb%2Fimg_1674origz16e.jpg&hash=18accc7a6ff278ac1076426f22caf0c7) (http://www.abload.de/image.php?img=img_1674origz16e.jpg) (https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fwww.abload.de%2Fthumb%2Fcrw_1674u6qi.jpg&hash=0d6a7723431c877a53922a78df7a52c1) (http://www.abload.de/image.php?img=crw_1674u6qi.jpg)
What that  :o :o :o Why they match 100% ???  :o :o :o NO HAZE OR SOMETHING ELSE  :D :D

Here I uploaded the original files: http://rapidshare.com/files/234417159/128_2.rar (http://rapidshare.com/files/234417159/128_2.rar)

I also tried dcraw but the results are really bad with 127 and 128!
Title: Re: SX110IS - howto start porting
Post by: IlGranTrebeobia on 18 / May / 2009, 13:33:29
Hi
I usually use FastStone Image Viewer, it works somehow :D
Here your files:
jpg 1600x1200
dng->jpg 1600x1206
(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fimg211.imageshack.us%2Fimg211%2F7738%2Fimg16741600x1200.th.jpg&hash=b6410feb2f524fc622da650fc063d628) (http://img211.imageshack.us/my.php?image=img16741600x1200.jpg)(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fimg141.imageshack.us%2Fimg141%2F9735%2Fcrw16741600x1202.th.jpg&hash=f2865d248dc44977d72f9e62fbec470f) (http://img141.imageshack.us/my.php?image=crw16741600x1202.jpg)

Title: Re: SX110IS - howto start porting
Post by: Frida on 20 / May / 2009, 08:12:24
I have perhaps some stupid questions about camera black level.
Does this apply to all models using the chdk?
Is it for using the conversion to DNG in camera or does the DNG4PS2 program work with this change?
I use the DNG4PS2 because converting to dng in camera took to much time but I'm not always pleased with how the DNG-files comes out.
I have a PS S5IS firmware 1.01B
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 23 / May / 2009, 11:30:46
I've the power on problem again. Sometimes in play mode too - using on/off or play button too.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 23 / May / 2009, 17:33:15
Does this apply to all models using the chdk?
No, it doesn't. Black level is set to 31 per default. But each camera might use an other value for it. S5is uses 31. Have a look at camera.h....
Is it for using the conversion to DNG in camera or does the DNG4PS2 program work with this change?
As far as I've understood Black Level is used as a threshold in RAW pictures and also will be written as descriptive value in DNG-file. It's definitly not a clear answer to your question but I don't know how DNG4PS works.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 23 / May / 2009, 17:36:17
I've the power on problem again. Sometimes in play mode too - using on/off or play button too.
Remember it but I'm to lazy to search for...Could you describe it in more details, please?
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 24 / May / 2009, 13:07:31
when I try to turn on the camera sometimes it doesn't do...
pressing/holding "play" or "on/off" button too

the blue and the green led blinks but sometimes the camera turns off
in rec mode the objective comes out - camera off
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 24 / May / 2009, 13:25:07
I never had this bug after the startsound fix...
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 24 / May / 2009, 14:01:50
I've tried
- to turn off Canon menu - Power saving - Auto turn off
- to turn on Canon welcome screen
- to turn on CHDK welcome screen
all sounds were always disabled

next:
- I'll try to format SD card again (A-Data SDHC 4 Gb, Class 6)
- or try to turn ON chdk welcome sounds :]

I see black screen too but the screen turns off when I release the button (play, or on/off). (I can hold for minutes.)
Title: Re: SX110IS - howto start porting
Post by: chdkj on 24 / May / 2009, 14:16:56
Strange.
Are you using the latest CHDK version from autobuild?

Blue led means CHDK is starting up.
What happens if you are using regular Canon startup? Did you encounter similar problems?

First of all, I'm using firmware update method as default startup method. Camera will be started in normal Canon mode and I can decide if I'm using Canon or CHDK mode. I have some trouble with battery power but not generally with startup.


Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 24 / May / 2009, 14:25:14
I use SD Card protection mode and it is always starting...
Title: Re: SX110IS - howto start porting
Post by: chdkj on 24 / May / 2009, 14:43:49
Yes, it's definitly independent from startup method. But I would give a hint to zodiac757 how to narrow down the problem. I think, fw update method could help, because Canon mode startup and CHDK startup will execute one after one. If the camera "dies" already in Canon mode, so it might be a hardware problem (and I think it is one but only if zodic757 uses the latest CHDK version).
Title: Re: SX110IS - howto start porting
Post by: chdkj on 24 / May / 2009, 14:53:18
The exasperating topic again:
Did some shoots in DNG and all are yellowish (yellow and blue). I've used the latest Autobuild version (with black level 128). Adobe Lightroom shows also two main peaks in histogram for yellow and blue.

BTW, bought a small tripod before. It's a so called Gorilla Pad and meant to be used as a travel tripod. And it works! That's a really cool toy!
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 24 / May / 2009, 15:57:02
The exasperating topic again:
Did some shoots in DNG and all are yellowish (yellow and blue). I've used the latest Autobuild version (with black level 128). Adobe Lightroom shows also two main peaks in histogram for yellow and blue.

BTW, bought a small tripod before. It's a so called Gorilla Pad and meant to be used as a travel tripod. And it works! That's a really cool toy!

But look at my pictures the are perfect with DNGps2 http://chdk.setepontos.com/index.php/topic,2838.msg34217.html#msg34217 (http://chdk.setepontos.com/index.php/topic,2838.msg34217.html#msg34217)
Title: Re: SX110IS - howto start porting
Post by: chdkj on 24 / May / 2009, 16:57:13
But look at my pictures the are perfect with DNGps2 http://chdk.setepontos.com/index.php/topic,2838.msg34217.html#msg34217 (http://chdk.setepontos.com/index.php/topic,2838.msg34217.html#msg34217)
Noticed that. If I'm open your dng in Adobe Lightroom and your jpg in IrfanView then the jpg will be shown as expected and the dng is blueish oversaturated (and violet). Compare the white wall right beside the window (underneath the red street lamp) or the black BMW. The DNG shows a slightly blue/lila wall and a lila BMW (the owner of the car will not be amused, I'm afraid). Do I have some problems with my software???

Regards!
Title: Re: SX110IS - howto start porting
Post by: IlGranTrebeobia on 24 / May / 2009, 18:29:36

But look at my pictures the are perfect with DNGps2 http://chdk.setepontos.com/index.php/topic,2838.msg34217.html#msg34217 (http://chdk.setepontos.com/index.php/topic,2838.msg34217.html#msg34217)

Because (perhaps ??) those all comes out from jpgs.
IrfanView, in this case, seems to work on the jpg attached to the dng, not on the raw.

The true raw image is also bigger than the jpg (3662x2760 vs 3456x2592) and displays a larger scene (see here http://chdk.setepontos.com/index.php/topic,2838.msg34223.html#msg34223 (http://chdk.setepontos.com/index.php/topic,2838.msg34223.html#msg34223) )

As you say, your images are identical, and this is impossible...
... I think :blink:
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 25 / May / 2009, 04:52:39
I've formatted again the sd card with cardtricks 1.44 and copied the leatest autobuild (2009-05-01). Now it looks okay. The date of previous chdk was 2009-04-30. Without Chdk there wasn't any problems. I've had this error with an older version of chdk too. After fixing it (format-reinstall) no errors for weeks. I've no idea what it was.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 25 / May / 2009, 10:01:54

But look at my pictures the are perfect with DNGps2 http://chdk.setepontos.com/index.php/topic,2838.msg34217.html#msg34217 (http://chdk.setepontos.com/index.php/topic,2838.msg34217.html#msg34217)

Because (perhaps ??) those all comes out from jpgs.
IrfanView, in this case, seems to work on the jpg attached to the dng, not on the raw.

The true raw image is also bigger than the jpg (3662x2760 vs 3456x2592) and displays a larger scene (see here http://chdk.setepontos.com/index.php/topic,2838.msg34223.html#msg34223 (http://chdk.setepontos.com/index.php/topic,2838.msg34223.html#msg34223) )

As you say, your images are identical, and this is impossible...
... I think :blink:

you are right ******* IrfanView^^
I opened the RAW in a special folder without the Jpeg in Photoshop and had the blue haze
Title: Re: SX110IS - howto start porting
Post by: Dragon on 25 / May / 2009, 11:09:04
Great job to all CHDK developers and to all porters from the Dragon's Lair :D :P :lol
Please keep going this way ! ;)

yep ! dragons use canon cameras 'cause we can "load" CHDK on them O__o'   :blink:

I think it's "hardcoded" or it would be very difficult... btw is it possibile to "disable" compact video mode ? 
( 160*120@15fps max 180 seconds )
It would be nice because it's very easy, as you know, to "roll" unintentionally to this from standard vga@30fps  ::)

Thank you all again ! :)

canon powershot sx110IS+CHDK =  8)
Title: Re: SX110IS - howto start porting
Post by: chdkj on 25 / May / 2009, 15:33:53
Thanks, Dragon.

It might be possible to disable compact video mode (or to be more precisely: to replace compact video mode with standard video mode) if you would change according code parts (kbd.c for instance) and build your own specific CHDK-version. You have to adapt generic code parts of CHDK for a very specific function (that reduces general functionality) therefore it would be unlikely that those changes will be flow back in main code (trunk).

If you have questions regarding "Make your own CHDK", don't hesitate to ask for.

BTW: Do you load CHDK from a laser disc? :-)))

Regards!
Title: Re: SX110IS - howto start porting
Post by: chdkj on 25 / May / 2009, 15:47:49
Regarding Color Matrix:
Did anyone read/tried this: http://chdk.setepontos.com/index.php/topic,2032.msg18788.html#msg18788 (http://chdk.setepontos.com/index.php/topic,2032.msg18788.html#msg18788) ?
????

Edit:
got this hint from http://chdk.setepontos.com/index.php/topic,2841.msg28220.html#msg28220 (http://chdk.setepontos.com/index.php/topic,2841.msg28220.html#msg28220), followed by some interesting posts.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 25 / May / 2009, 16:41:58
WOW just look at this :):):)
http://chdk.setepontos.com/index.php/topic,390.msg34386.html#msg34386 (http://chdk.setepontos.com/index.php/topic,390.msg34386.html#msg34386)
dngsetmatrix: http://www.megashare.com/243293 (http://www.megashare.com/243293)
Title: Re: SX110IS - howto start porting
Post by: chdkj on 26 / May / 2009, 12:26:12
Hi Obihoernchen,

that looks good! Did you try it?
Title: Re: SX110IS - howto start porting
Post by: chermucsnis on 29 / May / 2009, 08:26:51
I followed the instructions in

http://chdk.setepontos.com/index.php/topic,390.msg34528.html#msg34528 (http://chdk.setepontos.com/index.php/topic,390.msg34528.html#msg34528)

and it did the trick!

Additionaly, I had to use the White Balance Tool in Adobe Phothoshop and select a white area in the photo, and the final result was very good, very similar to the jpeg.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 29 / May / 2009, 15:11:28
Sounds good. Will try this!

Regards!
Title: Re: SX110IS - howto start porting
Post by: chdkj on 02 / June / 2009, 01:36:15
Just in case you missed that discussion: http://chdk.setepontos.com/index.php/topic,390.msg34700.html#msg34700 (http://chdk.setepontos.com/index.php/topic,390.msg34700.html#msg34700). VIT40 is on a good way to make a working color matrix.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 02 / June / 2009, 15:57:52
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 02 / June / 2009, 17:57:52
I think the SX110IS doesn't have the sensor^^ and it doest matter, because it isn't very important! Its ok...
Thanks again for the nice work!
Title: GetBatteryTemperature for SX110: closed with no success or still an issue?
Post by: Meise on 02 / June / 2009, 18:12:59
I think the GetBatteryTemperature-problem is not a problem for SX110IS.

Battery packs (i.e. in Laptop computers) sometimes have temperature sensors that control the temperature of the battery pack during the charging process. If the pack is too hot - the charging current will be reduced.
As the SX110IS has 2 AA type batteries (no battery pack) there may be no use of the GetBatteryTemperature value. It seems to be also problematic to me to measure the temperature of the 2 AA batteries in the battery case because the thermal coupling of the batteries to a sensor that may be placed in the camera housing is difficult.

I think the GetBatteryTemperature value is just a feature for cameras with battery packs and charging circuits.
Title: Re: SX110IS - howto start porting
Post by: reyalp on 02 / June / 2009, 18:14:00
FWIW, the canon firmware in some cameras always returns the same value for different sensors. Based on their code, I assume this is done when there aren't distinct physical sensors. Doing the same in CHDK seems reasonable to me.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 03 / June / 2009, 05:41:16
canon had to save money ;)
Title: Re: SX110IS - howto start porting
Post by: chdkj on 03 / June / 2009, 15:00:54
Thank you for responses.
I think I will do a shortcut. Implementing GetBatteryTemperature as specific CHDK-function for SX110 in lib.c (and remove it from stubs_entry) with hard coded return code 99 decimal (it's 90 originally but 99 looks more "artificially" when displayed in Celsius).

int _GetBatteryTemperature()
{
//original firmware function _GetBatteryTemperature will crash the camera if called
//because of this it is disabled in stubs_entry and reproduced here with a constant return code of 99
      return 99;
}

Everyone agrees?
Title: Re: SX110IS - howto start porting
Post by: lucmovel on 04 / June / 2009, 02:18:18
I think I will do a shortcut. Implementing GetBatteryTemperature (...) with hard coded return code 99 decimal (...)
Everyone agrees?

I don't. Does it have to be an integer? 99 is likely to fool some of the people who never read this thread. Especially considering that 99 is not hot in Fahrenheit. Someone is likely to think that "99" is the actual temperature.

I suggest "NA" if no longer and clearer message than that will fit.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 04 / June / 2009, 15:24:00
Title: Re: SX110IS - howto start porting
Post by: lucmovel on 04 / June / 2009, 15:57:59
Better idea: just yank it out of the port. It doesn't work anyway. Why keep it?

"00" is better than "99". No one is going to think that the battery is frozen.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 04 / June / 2009, 17:12:26
Better idea: just yank it out of the port. It doesn't work anyway. Why keep it?

"00" is better than "99". No one is going to think that the battery is frozen.
Yes i would say thats better, because 00 says sth. like doesnt work^^

I will add it to the wiki later (when its ready)
Title: Re: SX110IS - howto start porting
Post by: reyalp on 04 / June / 2009, 17:37:41
Better idea: just yank it out of the port. It doesn't work anyway. Why keep it?
Scripts and ui code expect the function to exist. Putting hacks in the main code for this one camera to do something different would be stupid.
Quote
"00" is better than "99". No one is going to think that the battery is frozen.
0 could be a real value. 99, if it were real, would mean your camera was destroyed. Note that the value is in C, it will be converted to 210 (also obviously bogus) appropriately if the user chooses to display in F.

Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 05 / June / 2009, 00:59:54
Title: Re: SX110IS - howto start porting
Post by: IlGranTrebeobia on 05 / June / 2009, 06:42:46
"-99" is possible?  :D
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 05 / June / 2009, 11:19:46
is it possible to show ccd + optical temp only?
(by "all" we can see the false sensor value too)
Title: Re: SX110IS - howto start porting
Post by: fe50 on 06 / June / 2009, 07:35:50
Title: Re: SX110IS - howto start porting
Post by: jng on 06 / June / 2009, 10:53:36
Could the team summarize the current issues that are still not working right?

1. Saving Raw image (using correct colour matrix)?
2. Auto focus, ability to zoom in video mode?
3. Video file saving in 100% quality using SD card?
4. Battery temp (just use a fixed value '99')?
5. What is the proper utility to open SX110 Raw file?
6. Where and when to get latest autobuild for baseline test?

Thank you for the excellent work being done here.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 06 / June / 2009, 11:35:11
Title: Re: SX110IS - howto start porting
Post by: chdkj on 06 / June / 2009, 14:06:43
Title: Re: SX110IS - howto start porting
Post by: chdkj on 06 / June / 2009, 14:08:14
is it possible to show ccd + optical temp only?
(by "all" we can see the false sensor value too)

No, it isn't. Otherwise it would require changes in camera independent code parts of CHDK.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 06 / June / 2009, 14:15:34
Title: Re: SX110IS - howto start porting
Post by: Jespar on 08 / June / 2009, 00:41:21
Sorry for my inferior knowledge about CHDK - but will it ever be possible to achieve a good-looking DNG format on the SX110IS (i.e. with no flaws as present)? I would love that, as the canon format is quite annoying to work with.

EDIT: So, what I mean is a DNG format written directly when the photo is taken, that would be good enough to be used right away when transfered to my computer.

My post might sound a bit demanding and negative, but I really dig the work that the CHDK crew and people in here have put into the software. It's simply amazing, thanks.

If I had any of the skills needed, I would definately engage into the subject myself. :-)

Title: Re: SX110IS - howto start porting
Post by: reyalp on 08 / June / 2009, 01:31:18
Sorry for my inferior knowledge about CHDK - but will it ever be possible to achieve a good-looking DNG format on the SX110IS (i.e. with no flaws as present)? I would love that, as the canon format is quite annoying to work with.
It might be more helpful if you could explain in what way the current output is not acceptable, and also what tools/workflow are giving these unacceptable results. From what I understand, the color calibration in the latest autobuilds should be pretty good.

Note that in general, the reason to use raw formats (including DNG) is for the flexibility it gives you working with the image after the fact. If you want decent looking images straight from the camera, just shoot jpeg at max quality.

Also note that the SX110 doesn't shoot any "canon format". The .CRW files produced by CHDK are not in canon format. In fact, they are just a dump of the sensor framebuffer, which is hardly a format at all. This is the same data as included in the DNG, but without metadata to tell tools how to interpret it.
Title: Re: SX110IS - howto start porting
Post by: Jespar on 08 / June / 2009, 03:26:08
Sorry, I was quite unfocused when I wrote that post.

I am aware what RAW-files are capable of, and the need for them to be "developed" to give a good result. I wasn't aware that the DNG-support on SX110IS had evolved to become betterlooking by standard... I thought I needed a new badpixel.bin/script, but couldn't find that anywhere. Maybe you can point me in some direction?

I am using the old (badpixel.bin) I found, in conjunction with the newest autobuild for SX110IS. Probably not the best possible solution?

Thanks for clearing up the thing about the CRW format in your last paragraph. I can see that the DNG file includes the metadata, which is a pretty useful thing.
Title: Re: SX110IS - howto start porting
Post by: reyalp on 08 / June / 2009, 03:42:54
As long as you created the badpixel.bin with your camera, it shouldn't need updating. The script can be found in CHDK/SCRIPTS/TEST in the full install zip. It has not changed since it was originally checked in.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 08 / June / 2009, 04:20:08
@Jespar

VIT40 tried to get a better color calibration as those built in into latest version. Look at here http://chdk.setepontos.com/index.php/topic,390.msg34687.html#msg34687 (http://chdk.setepontos.com/index.php/topic,390.msg34687.html#msg34687) and the posts before. As far as I have understand he will publish a new color matrix. I don't know when this will happen.
Title: Re: SX110IS - howto start porting
Post by: Jespar on 08 / June / 2009, 06:07:57
Thanks a lot for your answers, and once again the time you put into this community. :-)
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 08 / June / 2009, 13:24:46
is it possible to show ccd + optical temp only?
(by "all" we can see the false sensor value too)

No, it isn't. Otherwise it would require changes in camera independent code parts of CHDK.

Improving CHDK with "ccd + optical", "optical + battery", "ccd + battery" functions can be useful for the other cameras too. I think SX110 is not the only one camera that doesn't support all the 3 sensors.

What does the other cams write with 2 sensors in "all" mode? (Maybe in an another topic we can find.)

In jpeg with 9mp it's 36-360mm EFL. But in raw and nearly 10 mp? 34-340? Any tips? Or can we measure it? I will calibrate it with a Sony DSLR.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 08 / June / 2009, 15:50:46
Improving CHDK with "ccd + optical", "optical + battery", "ccd + battery" functions can be useful for the other cameras too. I think SX110 is not the only one camera that doesn't support all the 3 sensors.
...nevertheless we have to avoid camera crashs due to erroneous  functions called by CHDK. GetBatteryTemperature is broken.
What does the other cams write with 2 sensors in "all" mode? (Maybe in an another topic we can find.)
Other cameras (could) have the same problem. But SX110 is the only one that crashs (as far as I know). The whole discussion is based on that...
GetBatteryTemperature returns with any camera dependent value even with no sensors in place. But not SX110.
In jpeg with 9mp it's 36-360mm EFL. But in raw and nearly 10 mp? 34-340? Any tips? Or can we measure it? I will calibrate it with a Sony DSLR.
You are right. Image dimensions influences focal length. I think it should be calculable.
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 08 / June / 2009, 18:23:27
10xA=9x6
A=(9x6)/10
A=5,4

then we must multiply with 6 to get EFL (like 6.0-60.0mm -> 36-360mm)
5,4x6=32,4

32,4-324mm without cropping the outer black frame

BUT:
9mp is 3456x2592=8,957952
10mp (cropped) is 3684x2772=10,212048

so the right value is 31,579-316mm

Main Menu / OSD / Misc values / Adapter Lens scale 94 for RAW, 108 for JPEG

or not? I'm tired

maybe a script could to shot the 10mpixel photo direct to jpeg for faster use
or keybind to fast switch raw<->jpeg
Title: Re: SX110IS - howto start porting
Post by: nerdboy4200 on 08 / June / 2009, 23:41:00
Hi,

Somebody might also want to post the color matrix corrections, such as below:

Code: [Select]
dcraw -v -r 1.6254 1 2.1871 1  CRW_1356.DNG

So that those who use dcraw, or any other program, and not the Windows programs can also do the raw conversion.
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 13 / June / 2009, 09:37:30
"on/off error" again, now most is play mode (95%)
Title: Re: SX110IS - howto start porting
Post by: chdkj on 13 / June / 2009, 14:23:44
@zodiac757

Hardware failure?
It seems that you are the only one with this problem (at least no one mentioned it after the bug-fix).
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 13 / June / 2009, 20:15:17
Maybe the "on/off error" solved (again:)
I've deleted the empty folders in "\dcim", and their .ctg files, in "\dcim\canonmsc".
No errors after it.
That could be the reason that there wasn't any problems for a few weeks after formatting the card.

I've made a mistake by calculating EFL, so the right values are about 33-330mm. I'm gonna crazy.
So Main Menu / OSD / Misc values / Adapter Lens scale is 100 for RAW, 108 for JPEG.
It was wondering why need to modify Lens scale to 108 and why 33mm is the default. Now we know it.
Title: Re: SX110IS - howto start porting
Post by: DAVE008 on 14 / June / 2009, 12:51:05
A note on the ALT button ISO shift bug:

If I set the ALT button to FACE from PRINT, this seems to disable the ALT button in CHDK when I turn the camera off and back on. This makes it so I can't excess the CHDK menu anymore.

My solution is to have a 1GB card for doing special photography with CHDK and a 2GB card for when I need ISOSHIFT which is a lot since I do a lot of shooting in the woods etc.

The display features and power-on into Playmode are still present though.
Title: Re: SX110IS - howto start porting
Post by: flohack on 14 / June / 2009, 12:53:06
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 14 / June / 2009, 16:30:41
Hi flohack,
raw is exactly the data that the CCD gets from the light - without cropping ("wide mode"), without noise filtering, color modifications, and compression. I think its not a bug.
Title: Re: SX110IS - howto start porting
Post by: flohack on 14 / June / 2009, 23:23:21
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 15 / June / 2009, 05:29:02
I don't know the answers. I'm only thinking about scripting but I hadn't started yet.

My first idea was to make 10mp jpeg's with 33mm EFL instead of 9mp with 36mm.
I used basic language last on C64. :]
Title: Re: SX110IS - howto start porting
Post by: chdkj on 15 / June / 2009, 14:24:55
Maybe the "on/off error" solved (again:)
I've deleted the empty folders in "\dcim", and their .ctg files, in "\dcim\canonmsc".
No errors after it.
That could be the reason that there wasn't any problems for a few weeks after formatting the card.
Hmmm.. I don't know. DCIM is a standard folder by Canon and has nothing to do with CHDK. But apparently it helps..
I've made a mistake .... I'm gonna crazy.
;)
I've made a mistake by calculating EFL, so the right values are about 33-330mm. I'm gonna crazy.
So Main Menu / OSD / Misc values / Adapter Lens scale is 100 for RAW, 108 for JPEG.
It was wondering why need to modify Lens scale to 108 and why 33mm is the default. Now we know it.
Zodiac757, may I ask you to have a look in platform\sx110is\main.c ?
There is one interesting thing (at row 78):
- static const int fl_tbl[] = {6000, 6700, 7300, 8200, 9100, 10300, 11500, 12800, 14400, 16100, 18100, 20100, 22400, 25200, 28100, 31500, 34900, 38900, 42500, 46600, 51100, 55900, 60000};
It's the focal length table.

Is there anything that we should change?
Title: Re: SX110IS - howto start porting
Post by: chdkj on 15 / June / 2009, 14:32:10
A note on the ALT button ISO shift bug:

If I set the ALT button to FACE from PRINT, this seems to disable the ALT button in CHDK when I turn the camera off and back on. This makes it so I can't excess the CHDK menu anymore.
I did notice it also from time to time. Pressed ALT-button (FACE) twice and CHDK menu appears. Sometime I had to to press FACE a third time because Canon Face Mode instead CHDK menu appeared. Could be a timing problem ...
Title: Re: SX110IS - howto start porting
Post by: chdkj on 15 / June / 2009, 15:04:58
Title: Re: SX110IS - howto start porting
Post by: chdkj on 15 / June / 2009, 15:08:27
I don't know the answers. I'm only thinking about scripting but I hadn't started yet.

My first idea was to make 10mp jpeg's with 33mm EFL instead of 9mp with 36mm.
I used basic language last on C64. :]
JPG will be written by the camera itself. I don't believe that one can extend the original 9MP to 10MP even if the sensor might be a larger one than 9MP.

Greetings!
Title: Re: SX110IS - howto start porting
Post by: DAVE008 on 15 / June / 2009, 15:27:50
A note on the ALT button ISO shift bug:

If I set the ALT button to FACE from PRINT, this seems to disable the ALT button in CHDK when I turn the camera off and back on. This makes it so I can't excess the CHDK menu anymore.
I did notice it also from time to time. Pressed ALT-button (FACE) twice and CHDK menu appears. Sometime I had to to press FACE a third time because Canon Face Mode instead CHDK menu appeared. Could be a timing problem ...

I gave it another try and to no avail. Cant for the life of me get the CHDK menu to appear. Display of battery left, time, and card capacity is good enough for now.
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 15 / June / 2009, 15:58:25
I don't know the answers. I'm only thinking about scripting but I hadn't started yet.

My first idea was to make 10mp jpeg's with 33mm EFL instead of 9mp with 36mm.
I used basic language last on C64. :]
JPG will be written by the camera itself. I don't believe that one can extend the original 9MP to 10MP even if the sensor might be a larger one than 9MP.

Greetings!

I'll read after the ubasic commands. I don't know the opportunities.
The sensor is 10mp but sx110 uses 9 only. If we could change the sensor for a greater, EFL won't grow.
The only way is to use the whole sensor - without taking raw. Maybe a script can't do that.
Title: Re: SX110IS - howto start porting
Post by: reyalp on 15 / June / 2009, 18:01:42
The sensor is 10mp but sx110 uses 9 only.
What do you mean ? Are you talking about the difference between jpeg size and raw size ?

FWIW, it looks to me like CAM_ACTIVE_AREA* are not correct for SX110, since there's usually some black border around the active area. If you are looking at DNG, it might have been modified by the badpixel stuff so you don't see this as zero value pixels. The difference between active area and jpeg size is usually quite a bit less than the difference between sensor size and jpeg size.
Quote
If we could change the sensor for a greater, EFL won't grow.
The only way is to use the whole sensor - without taking raw. Maybe a script can't do that.
Definitely not with script, or without a lot of asm hacking.
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 16 / June / 2009, 08:24:26
reyalp:
9mp jpeg is 3456x2592=8,957952 mp
10mp raw (after cropping the black border) is 3684x2772=10,212048 mp
it has larger field of view compared to jpeg, ~33mm EFL instead of the default 36mm

but my assembly knowledge is very-very poor
Title: Re: SX110IS - howto start porting
Post by: chdkj on 16 / June / 2009, 14:52:32
Title: Re: SX110IS - howto start porting
Post by: chdkj on 16 / June / 2009, 14:57:22
I gave it another try and to no avail. Cant for the life of me get the CHDK menu to appear. Display of battery left, time, and card capacity is good enough for now.
I'm sorry. Can't help you right now because my SX110 is in service.
Does it make a difference if you start the cam in playback or record mode?
Title: Re: SX110IS - howto start porting
Post by: reyalp on 16 / June / 2009, 17:40:03
Title: Re: SX110IS - howto start porting
Post by: DAVE008 on 16 / June / 2009, 21:31:48

[/quote]
I'm sorry. Can't help you right now because my SX110 is in service.
Does it make a difference if you start the cam in playback or record mode?
[/quote]

Hope nothing is too bad with your camera, why does it need service?

Anyway its all the same. ALT button in playmode brings up the Add to Print Menu and ALT Button in regular mode does nothing. It is supposed to show the blue ALT CHKD confirmation in the lower left I believe.
Title: Re: SX110IS - howto start porting
Post by: fe50 on 17 / June / 2009, 01:30:58
Anyway its all the same. ALT button in playmode brings up the Add to Print Menu and ALT Button in regular mode does nothing. It is supposed to show the blue ALT CHKD confirmation in the lower left I believe.

Did you assign a camera function to the Print/Shortcut key in the Canon menu ("Set PRINT button") ?
Title: Re: SX110IS - howto start porting
Post by: DAVE008 on 17 / June / 2009, 07:17:17
Anyway its all the same. ALT button in playmode brings up the Add to Print Menu and ALT Button in regular mode does nothing. It is supposed to show the blue ALT CHKD confirmation in the lower left I believe.

Did you assign a camera function to the Print/Shortcut key in the Canon menu ("Set PRINT button") ?

Here is my original post. Did I miss something

"A note on the ALT button ISO shift bug:

If I set the ALT button to FACE from PRINT , this seems to disable the ALT button in CHDK when I turn the camera off and back on. This makes it so I can't excess the CHDK menu anymore."

The only options available in the Stock Cannon Menu to set the ALT Button are:

Not Asssigned
WB
Custom WB
Red Eye Corr
Digital Tele Converter
Display Overlay
Display Off

There is no option to set to face in Cannon's stock menu ("Set PRINT button"). There is no option to change to Face unless you use the CHDK menu. If I am wrong please provide idiot-proof steps.
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 19 / June / 2009, 07:58:59
I don't like using zebra because It clears the built in grid lines by pressing the shot button halfway. So I've turned it off. My problem is the zebra automatically turns itself on again and again after a few days. Is it a bug??

No "on/off bug" after my solution :]
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 19 / June / 2009, 11:57:47
I don't like using zebra because It clears the built in grid lines by pressing the shot button halfway. So I've turned it off. My problem is the zebra automatically turns itself on again and again after a few days. Is it a bug??

No "on/off bug" after my solution :]

lol your camera or whatever is strange I doesn't have any problems. All time Zebra off
Title: Re: SX110IS - howto start porting
Post by: chdkj on 19 / June / 2009, 14:00:22
But we always give the length as 32. get_parameter_data gives us a string terminated by null and padded with 0xff
Than it seems to be an application problem.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 19 / June / 2009, 14:11:52
Hope nothing is too bad with your camera, why does it need service?
Batteries drained out too fast. Fresh battery, 2 pics later --> "change the battery"...
Hard to imagine that this is the "CHDK drives my battery into insanity"-phenomenon some people describe.
Anyway its all the same. ALT button in playmode brings up the Add to Print Menu and ALT Button in regular mode does nothing. It is supposed to show the blue ALT CHKD confirmation in the lower left I believe.
No clue. FACE=ALT works (worked) definitely for me.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 19 / June / 2009, 14:13:07
I don't like using zebra because It clears the built in grid lines by pressing the shot button halfway. So I've turned it off. My problem is the zebra automatically turns itself on again and again after a few days. Is it a bug??

No "on/off bug" after my solution :]

lol your camera or whatever is strange I doesn't have any problems. All time Zebra off
Same here. Works as expected.
Title: Re: SX110IS - howto start porting
Post by: DAVE008 on 19 / June / 2009, 18:45:09
I see whats going on with my issue. Ive been pressing the ALT button for the menu but once you change ALT from Print to Face you have to now press the FACE selector button thats next to the Exposure button to get the menu. I've been pressing the ALT button top left assuming that button was now FACE and you could still use it.

Issue solved

Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 20 / June / 2009, 10:21:37
I don't like using zebra because It clears the built in grid lines by pressing the shot button halfway. So I've turned it off. My problem is the zebra automatically turns itself on again and again after a few days. Is it a bug??

No "on/off bug" after my solution :]

lol your camera or whatever is strange I doesn't have any problems. All time Zebra off

Maybe it depends on personal settings that causes the bug. Cameras must be the same all over the world. (My Sony mp3 player has different firmware in the US and Europe.)

Yesterday I've turned off the zebra today it is turned on. So turned it off. It is about the 30th affair.
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 21 / June / 2009, 07:52:06
Yesterday I had a lot of "zebra auto turn on". I used Manual mode, Autofocus locked to Manual focus (by halfway pressed shutter + MF), Flash, Continuous shooting, Raw. I've turned off and on the camera and zebra was on again. Raw files was saved to 100canon, so there was errors with Canonmsc\M0100.ctg -> on/off errors. I cleared it, and set Raw to the same folder with Jpg. I'm gonna crazy.

Modify:
"zebra auto turn on" solved:
If I set transparent colors for zebra (for example 0x06 and 0x02) and I turn off zebra mode. The bug comes when I use AF (shutter halfway pressed) now I press MF to lock focus = zebra turns on. I tried to set zebra colors to 0x00 and 0x00 - this way Canon's grid doesn't disappears but zebra is turned on again. Very interesting.

AF Frame: Center
AF Frame Size: Small
AF-Point Zoom: Off
AF Mode: Single
MF-Point zoom: On
Safety MF: Off
AF-assist beam: On
Title: Re: SX110IS - howto start porting
Post by: chdkj on 21 / June / 2009, 13:44:17
Indeed, it's strange.
Is somebody able to reproduce this behaviour?
edit:don't possess a SX110 currently
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 22 / June / 2009, 06:15:21
I tried to format an another card and copy the latest chdk but it's same.
Title: Re: SX110IS - howto start porting
Post by: magicmanevan on 25 / June / 2009, 22:30:50
Anyone know why when I use raw the color is always off? Here is an example image, I shot it with the DNG option enabled.

(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fi39.tinypic.com%2F25fnccp.jpg&hash=043c8b3524c1b620a78cb95ca9e29047)

Thanks!
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 26 / June / 2009, 02:52:27
Anyone know why when I use raw the color is always off? Here is an example image, I shot it with the DNG option enabled.

(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fi39.tinypic.com%2F25fnccp.jpg&hash=043c8b3524c1b620a78cb95ca9e29047)

Thanks!
just read the Thread and this http://chdk.wikia.com/wiki/SX110IS (http://chdk.wikia.com/wiki/SX110IS) ...

Raw isnt final you have to use other porograms to improve the colors!
Title: Re: SX110IS - howto start porting
Post by: nycjv321 on 28 / June / 2009, 10:12:44
hey guys I haven't been on the forums much but just wanted to say that everyone involved on this project did great things and I deeply appreciate everyone's work on chdk and more specifically SX110's chdk, really changed my experience as a cannon powershot user. But someone stole my SX110 a couple of weeks ago   :'( :( :-X :-[ :'( and im now and will be without a camera for several months................. which is REALLY going to be a pain in the arse.... im looking to upgrade to the SX1.. but there don't seem to be alot of positive reviews for it and It might just be my skills as a photographer but some of the photos I have take with the SX110 look comparable to examples from the SX110...   but idk yet atm I am using my lg incite's camera lol.... well thanks once again guys for this great experience!
Title: Re: SX110IS - howto start porting
Post by: Darthmalt on 05 / July / 2009, 17:54:12
I took a couple raw dng format pics of fireworks last night and dropped them straight into photoshop without going through DNG4PS2 and it read and displayed the images just fine.
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 08 / July / 2009, 05:08:17
I had on/off bug again but only in trying to turn the camera but only with play button. It came after shooting a lot of pics in continuous mode only in jpeg. I could turn the cam on only with on/off button but after erasing about 40-50 pics it works fine. Without chdk there wasn't any problems.
Also shooting raw to dng can do it but most in rec mode. It seems there aren't errors when I save the .dng files to the directory "101canon" and when the filename doesn't start with "IMG".
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 12 / July / 2009, 14:52:33
Title: Re: SX110IS - howto start porting
Post by: chdkj on 20 / July / 2009, 15:55:35
Title: Re: SX110IS - howto start porting
Post by: CptanPanic on 20 / July / 2009, 17:10:53
Just wanted to say thanks for everyone involved.  I got CHDK loaded up on my SX110 this weekend and it is very cool.  Only issue I had was the DNG's came out off color, but is this the colormatrix you says is coming?
Thanks,
CP
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 21 / July / 2009, 03:07:00
hi chdkj,
nice to see you again

"//Alt mode & Manual mode 
 #define SHORTCUT_SET_INFINITY        KEY_UP
 #define SHORTCUT_SET_HYPERFOCAL      KEY_DOWN"

auto hyperfocal shortcut??? oh, my god! "legendary!"
very-very useful

I've one week (and 3 workday :[ ) for holiday, so I'll open my third beer for this day - now!
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 21 / July / 2009, 09:29:27
I think "half press shoot + left" must be unbinded because it's used for AF lock.
But with SX100 it's for "disable overrides". It's unwanted switchig too but with an another function - not zebra.

Sorry for repeating but english is not my mother language and I'm not sure I'm always understandable.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 21 / July / 2009, 16:37:32
...Only issue I had was the DNG's came out off color, but is this the colormatrix you says is coming?
Yes, it is.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 21 / July / 2009, 16:55:04
I've one week (and 3 workday :[ ) for holiday, so I'll open my third beer for this day - now!
Prost!
But with SX100 it's for "disable overrides". It's unwanted switchig too but with an another function - not zebra.
This is exactly that I meant. I will check it.
Title: Re: SX110IS - howto start porting
Post by: ewavr on 21 / July / 2009, 17:15:12
...Only issue I had was the DNG's came out off color, but is this the colormatrix you says is coming?
Yes, it is.

Hmm, color matrix for SX110 from dcraw is too bad?
{ 14134, -5576, -1527, -1991, 10719, 1273, -1158, 1929, 3581 }
CHDK currently uses this matrix:
{ 14134, -5576, -1527, -6591, 10719, 1273, -1158, 2929, 3581 }

Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 21 / July / 2009, 18:49:14
@obihoernchen: could you record the shortcuts in wikia, please?

done
Title: Re: SX110IS - howto start porting
Post by: flohack on 22 / July / 2009, 08:15:50
Dear all,

got an issue with the bracketing functionality with RAW enabled. For whatever reasons, the first shot is taken, dark screen, saving, review, the second shot is taken, but then the cam just turns off. I am using the selftimer variant to take 3 shots with Tv bracketing.

anybody to reproduce that?

kind regards Florian
Title: Re: SX110IS - howto start porting
Post by: chdkj on 22 / July / 2009, 15:09:15
...
Hmm, color matrix for SX110 from dcraw is too bad?
Unfortunately, yes, it is.
User VIT40 has done a lot of investigations and he got a better color profile. He told me some days ago that an even better profile (and color matrix) is on the way.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 22 / July / 2009, 15:18:18
got an issue with the bracketing functionality with RAW enabled. For whatever reasons, the first shot is taken, dark screen, saving, review, the second shot is taken, but then the cam just turns off. I am using the selftimer variant to take 3 shots with Tv bracketing.

anybody to reproduce that?
No, I can't.
Did a few tests with tv bracketing and raw, 3 shots, 1/3 ev +/-. Everything works as expected (means: without problems). Could you describe your configuration in more detail, please?
Title: Re: SX110IS - howto start porting
Post by: fe50 on 23 / July / 2009, 02:28:09
Maybe "Add raw-suffix" in the "Bracketing in continuous mode" is enabled ?
DryOS based cams could have problems with long filenames...Mantis #279 (http://chdk.kernreaktor.org/mantis/view.php?id=279) and forum link (http://chdk.setepontos.com/index.php/topic,2468.msg36226.html#msg36226), also  Mantis #86 (http://chdk.kernreaktor.org/mantis/view.php?id=86).
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 23 / July / 2009, 13:54:44
I've on/off bug again-again. Now it came after shooting raw to "\dcim\100canon" (not the same directory with jpegs). The card was cleared a few weeks ago, so the new pics (jpegs) are now only in the dir named "132canon". There wasn't problems until I shot just jpeg (just only one time when it was after massive continuous shooting). The problem comes from the desription files in "\dcim\canonmsc" because after erasing "\dcim\100canon" with the raw file everything is ok. Maybe a Chdk function that checks these directories and/or files by starting camera. This bug comes most in play mode.

I had an another type of on/off error most by trying to start the cam in rec mode. I had this with empty or missing directories witch had desription files in "\dcim\canonmsc" - because the pictures was moved to my PC manually via a card reader.

I've a 4Gb AData Class6 SDHC card.
I've tried to turn on the camera many times without CHDK and had no errors this way. So It isn't a hardware problem.

Had anybody met this bug??? Only me???
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 23 / July / 2009, 16:17:55
I've on/off bug again-again. Now it came after shooting raw to "\dcim\100canon" (not the same directory with jpegs). The card was cleared a few weeks ago, so the new pics (jpegs) are now only in the dir named "132canon". There wasn't problems until I shot just jpeg (just only one time when it was after massive continuous shooting). The problem comes from the desription files in "\dcim\canonmsc" because after erasing "\dcim\100canon" with the raw file everything is ok. Maybe a Chdk function that checks these directories and/or files by starting camera. This bug comes most in play mode.

I had an another type of on/off error most by trying to start the cam in rec mode. I had this with empty or missing directories witch had desription files in "\dcim\canonmsc" - because the pictures was moved to my PC manually via a card reader.

I've a 4Gb AData Class6 SDHC card.
I've tried to turn on the camera many times without CHDK and had no errors this way. So It isn't a hardware problem.

Had anybody met this bug??? Only me???

only you
Title: Re: SX110IS - howto start porting
Post by: chdkj on 23 / July / 2009, 17:22:44
Maybe "Add raw-suffix" in the "Bracketing in continuous mode" is enabled ?
DryOS based cams could have problems with long filenames...Mantis #279 (http://chdk.kernreaktor.org/mantis/view.php?id=279) and forum link (http://chdk.setepontos.com/index.php/topic,2468.msg36226.html#msg36226), also  Mantis #86 (http://chdk.kernreaktor.org/mantis/view.php?id=86).
I did only a few test but option "raw suffix" in "Bracketing in continuous mode" was enabled and everything works as expected.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 23 / July / 2009, 17:25:50
Sorry, Zodiac757, but it really seems that you are the only one who encountered that problem.
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 23 / July / 2009, 17:37:23
And when I choose the option to make raws to the same folder as jpegs, after a few shot Chdk creates a new directory in "\dcim". Like by month change (I use auto create a new folder every month's start).
Is it normally? Maybe my settings does the problems. I try to diasable the auto create directory functionin Canon's menu. Who uses this? I use it since I have my Sx110.
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 24 / July / 2009, 07:54:16
Maybe the auto create folder did it? No errors since yesterday but I've tried everything to get the bug.
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 11 / August / 2009, 07:47:04
Now I use a smaller card (1 Gb instead of 4 Gb) because above ~200 pictures sometimes I can't turn on the camera.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 16 / August / 2009, 15:23:34
Hi Zodiac757,

that sounds really strange. I believe there is something wrong with your camera.
Regards!
Title: Re: SX110IS - howto start porting
Post by: flash2004 on 17 / August / 2009, 14:42:50
Are there any updates on future releases for SX110 ?? Is anybody working on it ?
(The last release was on 17th May )
Title: Re: SX110IS - howto start porting
Post by: chdkj on 19 / August / 2009, 15:22:30
Are there any updates on future releases for SX110 ?? Is anybody working on it ?
(The last release was on 17th May )
Short answers: No. No.
Long version: CHDK for SX110IS is nearly finished. I'm waiting for a better color matrix to release the final version. The final version will be roughly the same as the version from May 2009. Clearing up some code and modifying some functions and a better color matrix will be built in. There will be no other enhancements! The specific port of SX110 is done since May.
CHDK will be improved in the future and CHDK for SX110 will do so automatically more or less --> but you have to use CHDK from autobuild.
We don't have a working color matrix for RAW/DNG. I'm not capable to produce one.

Greetings.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 19 / August / 2009, 16:33:59
Are there any updates on future releases for SX110 ?? Is anybody working on it ?
(The last release was on 17th May )
Short answers: No. No.
Long version: CHDK for SX110IS is nearly finished. I'm waiting for a better color matrix to release the final version. The final version will be roughly the same as the version from May 2009. Clearing up some code and modifying some functions and a better color matrix will be built in. There will be no other enhancements! The specific port of SX110 is done since May.
CHDK will be improved in the future and CHDK for SX110 will do so automatically more or less --> but you have to use CHDK from autobuild.
We don't have a working color matrix for RAW/DNG. I'm not capable to produce one.

Greetings.

I asked vit40 about the Colormatrix today... lets hope ;)
Title: Re: SX110IS - howto start porting
Post by: reyalp on 22 / August / 2009, 21:24:01
Regarding http://chdk.setepontos.com/index.php/topic,2838.msg37061.html#msg37061 (http://chdk.setepontos.com/index.php/topic,2838.msg37061.html#msg37061)

I can change to SX100 style controls in the trunk, but not having the camera I cannot confirm this is correct. If someone with the camera wants to test and post a patch, that would be helpful.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 23 / August / 2009, 07:22:09
Yeah good news from vit40!

Look here: http://chdk.setepontos.com/index.php/topic,3930.msg37299.html#msg37299 (http://chdk.setepontos.com/index.php/topic,3930.msg37299.html#msg37299)
Title: Re: SX110IS - howto start porting
Post by: chdkj on 26 / August / 2009, 15:00:44
Lost my motivation, somehow... Other things got more attention... Sorry for late answer.

Regarding http://chdk.setepontos.com/index.php/topic,2838.msg37061.html#msg37061 (http://chdk.setepontos.com/index.php/topic,2838.msg37061.html#msg37061)

I can change to SX100 style controls in the trunk, but not having the camera I cannot confirm this is correct. If someone with the camera wants to test and post a patch, that would be helpful.
Thank you. I will submit a patch later.

Yeah good news from vit40!

Look here: http://chdk.setepontos.com/index.php/topic,3930.msg37299.html#msg37299 (http://chdk.setepontos.com/index.php/topic,3930.msg37299.html#msg37299)
WTF! I was talking with VIT40 some time ago and now I've missed the hit. Even without any tests: Thank you, vit40!
I will check it next week during one week off...


Title: Re: SX110IS - howto start porting
Post by: rpelle on 02 / September / 2009, 18:13:13
Lost my motivation, somehow... Other things got more attention... Sorry for late answer.

we are everybody here thinking on your success.
We hope that something can give you some more motivation in this project!
Title: Re: SX110IS - howto start porting
Post by: mikeeve on 06 / September / 2009, 15:25:35
Lost my motivation, somehow... Other things got more attention... Sorry for late answer.

My wife and I just purchased SX110s. I'm really looking forward to trying CHDK on mine.  Sounds like it has all the features I'd like to try already, but would be nice to incorporate these latest additions.
Title: Re: SX110IS - howto start porting
Post by: vdm on 23 / October / 2009, 02:33:34
Dear CHDK people,
first of all, thank you very much for this beatiful piece of software.
I installed it on my SX110, very glad of that, but I'm absolutely unable to do Av bracketing. I was not sure whether to post here or in some beginner area for help, but I decided here because I tried to follow accurately instructions, without result: in contiunous shoot mode I just obtain always the same image. I also tried some script, but no success. Tv bracketing is ok. Apologies in case I'm missing something, or not read with sufficient care the forum  :) .
Title: Re: SX110IS - howto start porting
Post by: RaduP on 23 / October / 2009, 02:43:16
Does your camera have an iris? It could be that it only has a ND filter, and no real aperture control.
Title: Re: SX110IS - howto start porting
Post by: whim on 23 / October / 2009, 04:46:32
camera.h says it has an iris diaphragm, and no ND filter, so no, that can't be the problem

hth,

wim
Title: Re: SX110IS - howto start porting
Post by: chdkj on 25 / October / 2009, 15:10:58
...but I'm absolutely unable to do Av bracketing...
Did a quick check: Av bracketing works as good as Tv bracketing does. Please be aware that CHDK will not avoid physical restrictions of the camera. So if you start for instance with an Av of 2,8 (or 4,3 with full tele) and want to lower it by 1 Ev so nothing will happen. You have reached the lower limit already.
Greetings!

Title: Re: SX110IS - howto start porting
Post by: chdkj on 25 / October / 2009, 15:18:21
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 25 / October / 2009, 15:53:13
hi chdkj,

half press + left key is for AF lock by default (by Canon)
so it isn't a good idea to bind an another function to it (now: disable overrides, before: toggle zebra)
Title: Re: SX110IS - howto start porting
Post by: chdkj on 25 / October / 2009, 16:23:00
Hi zodiac757,

AF lock still works. In P, Tv, Av, M-Mode you can lock AF with half pressed shoot button + left key if no ALT-mode is choosen. ALT mode + half press shoot button + left key toggles overrides.

Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 25 / October / 2009, 16:29:57
thanks for it!
I can't download the new version yet to try it
Title: Re: SX110IS - howto start porting
Post by: chdkj on 25 / October / 2009, 16:39:33
It's not published yet.

Use attached version instead, it's the same final version.


EDIT: attachment deleted, use autobuild server instead
Title: Re: SX110IS - howto start porting
Post by: reyalp on 25 / October / 2009, 17:21:01

@Admins: May I ask to check in the diff? It's based on 813 and checked against current 821.

Thanks for that. I've committed it, svn 822.

One note. You had GetBatteryTemperature commented out in stubs_entry.S. This will not work, because it's an autogenerated file. However, you don't need to do it, because symbols in stubs_entry.S are weak. The new version you put in lib.c will overwrite it, just like NHSTUB in stubs_entry.S.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 26 / October / 2009, 15:31:49
@reyalp: Thank you. And regarding your note: yes... you are right.  ;-)
Regards!
Title: Re: SX110IS - howto start porting
Post by: chdkj on 26 / October / 2009, 15:38:37
Final version is available at http://mighty-hoernsche.de (http://mighty-hoernsche.de) now.
Title: Re: SX110IS - howto start porting
Post by: Obihoernchen on 26 / October / 2009, 21:39:15
Awesome!!!  :o
I doesn't realized that^^

Big thanks too chdkj and all other developers/helper...

Title: Re: SX110IS - howto start porting
Post by: vdm on 27 / October / 2009, 04:57:07

Did a quick check: Av bracketing works as good as Tv bracketing does. Please be aware that CHDK will not avoid physical restrictions of the camera. So if you start for instance with an Av of 2,8 (or 4,3 with full tele) and want to lower it by 1 Ev so nothing will happen. You have reached the lower limit already.
Greetings!

I did not consider that, thanks; however, starting from a central aperture, it seems like I'm obtaining always the same image, although F recorded is effectively changing (other thing to do: install last version! I'm at sx110is-100b-0.9.8-800-full). I'll do some more test as soon as possible.
Title: Re: SX110IS - howto start porting
Post by: zodiac757 on 28 / October / 2009, 14:00:36
it works fine - thanks for the developers!

now I plan to buy an EOS 450
Title: Re: SX110IS - howto start porting
Post by: birefringence on 01 / November / 2009, 16:28:39
Thank you  :)
Title: Re: SX110IS - howto start porting
Post by: chdkj on 04 / November / 2009, 14:12:13
Removed all attachments in previous posts of mine. There is no need for them anymore. Please do the same for keeping forum clean (and lean).

Greetings!
Title: Re: SX110IS - howto start porting
Post by: danielv on 05 / November / 2009, 10:01:05
hi, longtime lurker, new poster.

don't know if this is a bug or a feature (or an end-user error), and if it is limited to the sx110is chdk or not, but here goes:

using the most recent autobuild (0.9.8-828 nov 5 2009), there's no Curves item in the main menu. i'd like to use auto-dr if that feature is available for the sx110is, but can't enable it, because the menu isn't there at all!



any help welcome.
Title: Re: SX110IS - howto start porting
Post by: whim on 05 / November / 2009, 14:32:22
Hi danielv, welcome to the forum (as a poster  :D)

i just checked the camera properties for SX110, and it has a 12 bit sensor.
the curve code, unfortunately, only supports the (older) 10 bit sensors ATM ...

so, all the 'newer' cams don't have the corresponding menu entries.

HTH,

wim 

Title: Re: SX110IS - howto start porting
Post by: chdkj on 05 / November / 2009, 14:56:50
He he he,

didn't noticed that. Even worser: I didn't know it. Tonal curves, cool! I mean, I didn't miss it so far, but it's cool. Anyway: it's not possible yet.

Cheers
Title: Re: SX110IS - howto start porting
Post by: danielv on 22 / November / 2009, 23:40:47
is a port of the curves to 12-bit under development at the moment? any word on current status, ETA? can i help? :-)
Title: Re: SX110IS - howto start porting
Post by: jng on 28 / November / 2009, 12:50:42
Title: Re: SX110IS - howto start porting
Post by: chdkj on 29 / November / 2009, 12:24:21
Question: How to set custom camera profiles in Lightroom?

Put them into the camera profiles folder of Adobe Camera Raw (application data folder for "All Users"; for instance C:\Documents and Settings\All Users\AppData\Adobe\CameraRaw\CameraProfiles\Camera\Canon PowerShot SX110IS). Paths might be different at your setup.

Cheers.
Title: Re: SX110IS - howto start porting
Post by: danielv on 12 / December / 2009, 21:45:40
any word on development of curves for 12-bit sensors?
Title: Re: SX110IS - howto start porting
Post by: chdkj on 13 / December / 2009, 13:00:44
I don't track that. It's not a camera specific issue. You should search for in forum.
Title: Re: SX110IS - howto start porting
Post by: ntstatic on 25 / January / 2010, 09:38:55
Thank you !!! chdkj and everyone on the chdk development - even other builds - currently using sx110 used s5is s3is s2is .
Title: Re: SX110IS - howto start porting
Post by: hotvedt on 21 / April / 2010, 19:59:59
Hello, I just got an sx110is and have a question/request:

(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fimg63.imageshack.us%2Fimg63%2F3641%2Fcrw0037.jpg&hash=1883ac3c1cecc5800cb11ab8cb843be5) (http://img63.imageshack.us/i/crw0037.jpg/)

When i use dcraw on the dng's produced by the camera, i get a quite much bigger image than from acr on the same file, or
from the jpeg.
Would it be possible to change the dng-code so acr doesn't crop this much?  I think a little more than 1 megapixel is being cropped away.
Or is it a good reason for cropping this much?
Title: Re: SX110IS - howto start porting
Post by: whoever on 22 / April / 2010, 03:59:10
Try Thomas Knoll's utility DNG Recover Edges (http://www.luminous-landscape.com/contents/DNG-Recover-Edges.shtml). It is supposed to reset DefaultCropOrigin and DefaultCropSize tags in the DNG header to match the whole active area of the sensor.
Title: Re: SX110IS - howto start porting
Post by: hotvedt on 22 / April / 2010, 08:08:45
Thank you! It seems to work perfectly.  :D

(https://chdk.setepontos.com/proxy.php?request=http%3A%2F%2Fimg534.imageshack.us%2Fimg534%2F2237%2F16007874.jpg&hash=9c1039bab53ad7d5dcb9c1919f925ee7) (http://img534.imageshack.us/i/16007874.jpg/)

Also works on dng's from A540 and 350D, but not so much to gain there, as in the SX110IS.
Title: Re: SX110IS - howto start porting
Post by: chdkj on 22 / April / 2010, 16:41:27
Interesting...

Why does ACR cuts pixels off and DCRAW does not? Is there any need to change/fix some code in CHDK for SX110 regarding this issue?
Title: Re: SX110IS - howto start porting
Post by: reyalp on 22 / April / 2010, 23:31:40
Interesting...

Why does ACR cuts pixels off and DCRAW does not? Is there any need to change/fix some code in CHDK for SX110 regarding this issue?

CHDK sets the DNG active area to the the full active area, and the DefaultCrop area to the size (but possibly not precisely the same location) of the camera jpeg

ACR must be using the default crop area, while others use the entire active area.

The DNG spec (1.3.0) says this about default crop
Quote
Raw images often store extra pixels around the edges of the final image. These extra pixels help prevent interpolation artifacts near the edges of the final image.
DefaultCropSize specifies the size of the final image area, in raw image coordinates (i.e., before the DefaultScale has been applied).
SX110
Code: [Select]
    #define CAM_ACTIVE_AREA_X1 8
    #define CAM_ACTIVE_AREA_Y1 14
    #define CAM_ACTIVE_AREA_X2 3688
    #define CAM_ACTIVE_AREA_Y2 2772
...
    #define CAM_RAW_ROWPIX              3720 
    #define CAM_RAW_ROWS                2772 
...
    #define CAM_JPEG_WIDTH  3456
    #define CAM_JPEG_HEIGHT 2592
...
#define CAM_DEFAULT_CROP_ORIGIN_W ((CAM_ACTIVE_AREA_X2-CAM_ACTIVE_AREA_X1-CAM_JPEG_WIDTH )/2)
#define CAM_DEFAULT_CROP_ORIGIN_H ((CAM_ACTIVE_AREA_Y2-CAM_ACTIVE_AREA_Y1-CAM_JPEG_HEIGHT)/2)

Title: Re: SX110IS - howto start porting
Post by: chdkj on 25 / April / 2010, 15:33:07
Thanks for explanation.
No need for code changes regarding this, IMHO.
Title: Re: SX110IS - howto start porting
Post by: mngc on 30 / December / 2012, 16:55:45
Hi,

I have SX110 fw 1.00b camera with chdk 1.1.0-2423. I have a zebra problem. In record mode, zebra displayed, but wrong. The blinking region not on the over exposured region and distorsed. The over eposured region (original is circle) now ellipsoid.

With this camera with playback mode zebra not working or not accesible, if i half press the shutter button used, the camera exit from playback mode. Print  or face key no succes (try swap alt key mode too), and other key not display the zebra too.

I have another camera a590 fw101b with chdk 1.1.0-2423 record mode and playback without zoom zebra working ok. In playback mode if i use zoom keys, the zebra work ok too. Very useful to detect small over exposured regions.
Title: Re: SX110IS - howto start porting
Post by: reyalp on 30 / December / 2012, 17:16:20
I have SX110 fw 1.00b camera with chdk 1.1.0-2423. I have a zebra problem. In record mode, zebra displayed, but wrong. The blinking region not on the over exposured region and distorsed. The over eposured region (original is circle) now ellipsoid.
Can you post a picture?

From what I remember, this camera has an odd framebuffer layout, the viewport (the buffer that has the image of what the camera is seeing) is apparently 216 pixels tall in rec mode, while the bitmap (which contains the UI, including zebra) is 240 pixels. The canon firmware stretches the viewport display to fill the screen (I assume), but the zebra code doesn't really have the capability to do this. If this is correct, would probably require a major rewrite of the zebra to fix. I expect edge overlay would also be bit broken.

If this camera can shoot in different aspect ratios, this may affect zebra, but I think this camera is too old to have this problem. If you are using digital zoom, zebra is likely to be wrong. This is a known issue.

Quote
With this camera with playback mode zebra not working or not accesible, if i half press the shutter button used, the camera exit from playback mode. Print  or face key no succes (try swap alt key mode too), and other key not display the zebra too.
Yes, this is a limitation on cameras where pressing shutter switches to record mode. This is something that should be fixed. I guess we could show zebra if you half press in alt mode, like we do for histogram?
Title: Re: SX110IS - howto start porting
Post by: mngc on 30 / December / 2012, 18:25:48
Of course, i can send the test image. Where can i send test images?

This camera has a wide picture mode, i use for previous test with the normal aspect ratio. Now i try wide mode, record zebra not ok, distorsed too. Digital zoom always disabled.

In playback mode i see the histogram when i use set and half press shutter button and not switch to record mode. Only zebra not working.
Title: Re: SX110IS - howto start porting
Post by: reyalp on 30 / December / 2012, 18:33:52
Of course, i can send the test image. Where can i send test images?
You can attach it to a post here. If you started your post in the "quick reply" box at the bottom, you can just press preview to get full options.

Quote
In playback mode i see the histogram when i use set and half press shutter button and not switch to record mode. Only zebra not working.
I'm not sure what you mean by set and half press? I think the problem of not being able to show zebra in playback applies to all cameras that switch to record mode when you half press.
Title: Re: SX110IS - howto start porting
Post by: mngc on 30 / December / 2012, 20:20:01
I'm not sure what you mean by set and half press?

 I think the problem of not being able to show zebra in playback applies to all cameras that switch to record mode when you half press.

Sorry, i mean't alt mode, not set. I agree with you that this problem possibly applies to all cameras that switch to record mode when you half press.
Title: Re: SX110IS - howto start porting
Post by: reyalp on 30 / December / 2012, 20:39:53
That doesn't look like what I'd expect from the viewport/bitmap mismatch I mentioned earlier...

Hmm, it looks like I made a really silly mistake a while back when I was implementing the PTP live view stuff. Try the attached build.

There will probably still be a small mismatch due to the other issue.
Title: Re: SX110IS - howto start porting
Post by: mngc on 31 / December / 2012, 14:25:49
Great news, record mode zebra seems work, will need to try in daylight too.

No change in playback mode.

Happy New Year!
Title: Re: SX110IS - howto start porting
Post by: reyalp on 31 / December / 2012, 14:51:45
Great news, record mode zebra seems work, will need to try in daylight too.
Thanks for confirming, I've checked  this in for chdk 1.1 and 1.2, will appear in the next auto builds.
Quote
No change in playback mode.
Yes, I haven't done anything about that problem yet, it's unrelated to the other issue.
Title: Re: SX110IS - howto start porting
Post by: mngc on 02 / January / 2013, 09:15:46
Thanks, now i test the 1.1.0-2447 autobuild. Record mode zebra fully ok, tested with daylight.
Title: Re: SX110IS - howto start porting
Post by: mngc on 12 / January / 2013, 10:43:37
Possibly add support extra long exposure mode for sx110is fw 1.0b camera? I tested the maximum 64sec exposure, working ok, with or without dark frame subraction. I need longer time exposure. There is more in the sensor.
Title: Re: SX110IS - howto start porting
Post by: reyalp on 12 / January / 2013, 18:07:32
Possibly add support extra long exposure mode for sx110is fw 1.0b camera? I tested the maximum 64sec exposure, working ok, with or without dark frame subraction. I need longer time exposure. There is more in the sensor.
Someone would need to implement exp_drv_task for this port. In the meantime, you might try stacking multiple 64 sec (or less) exposures.
Title: Re: SX110IS - howto start porting
Post by: nafraf on 15 / January / 2013, 12:12:02
Someone would need to implement exp_drv_task for this port. In the meantime, you might try stacking multiple 64 sec (or less) exposures.
Just reporting... I implemented the exp_drv_task, I sent the file to mngc for testing.
Title: Re: SX110IS - howto start porting
Post by: mngc on 17 / January / 2013, 12:12:16
Good news! Nafraf test build working. The current max. succesfully exposure time is 10min 33 sec. I working on a better test and i will come back the result. I confused with some problems.
Title: Re: SX110IS - howto start porting
Post by: reyalp on 17 / January / 2013, 17:12:58
Good news! Nafraf test build working. The current max. succesfully exposure time is 10min 33 sec. I working on a better test and i will come back the result. I confused with some problems.
While it would certainly be interesting to know when / how it fails, there isn't specific length of time that "should" work. We bypass the cameras built in limits, and you get whatever you get after that. IIRC a590 was also reported to return black images at some time before the 2048 second maximum.

edit:
Oh, maybe that was you http://chdk.setepontos.com/index.php?topic=3461.msg39265#msg39265 (http://chdk.setepontos.com/index.php?topic=3461.msg39265#msg39265) but I think others have also reported this
Title: Re: SX110IS - howto start porting
Post by: mngc on 20 / January / 2013, 13:32:50
Hi,

Yes, i was the one reporting on a590 extra long exposure mode working time test. ;-)
Now i am searching in chdk forums and whole internet. I found lots of interesting things.
I found links with and without problems extra long exposure mode.

500 sec ok, over bad (black image), camera sx10 or sx20 or sx30, I do not know
http://www.flickr.com/groups/chdk-sx10/discuss/72157623265098649/ (http://www.flickr.com/groups/chdk-sx10/discuss/72157623265098649/)

very old (solved) 65sec ok, 66 sec wrong, interesting old bug from expert users (SX10)
(short exposured black image over 65sec)
http://chdk.setepontos.com/index.php?topic=3461.msg31815#msg31815 (http://chdk.setepontos.com/index.php?topic=3461.msg31815#msg31815)

not long exposure comment, capture timeout? error (raw recording):
http://chdk.setepontos.com/index.php?topic=1998.msg18492#msg18492 (http://chdk.setepontos.com/index.php?topic=1998.msg18492#msg18492)

1200 sec ok on a550
http://chdk.setepontos.com/index.php?topic=3461.msg31950#msg31950 (http://chdk.setepontos.com/index.php?topic=3461.msg31950#msg31950)

2040 sec ok on a560
http://chdk.setepontos.com/index.php?topic=3461.msg35302#msg35302 (http://chdk.setepontos.com/index.php?topic=3461.msg35302#msg35302)

600 sec ok on a570
http://chdk.setepontos.com/index.php?topic=3461.msg35062#msg35062 (http://chdk.setepontos.com/index.php?topic=3461.msg35062#msg35062)

645 sec ok on a570
http://chdk.setepontos.com/index.php?topic=3461.msg39157#msg39157 (http://chdk.setepontos.com/index.php?topic=3461.msg39157#msg39157)

1200 sec ok on s5is
http://chdk.setepontos.com/index.php?topic=3461.msg32915#msg32915 (http://chdk.setepontos.com/index.php?topic=3461.msg32915#msg32915)
Title: Re: SX110IS - howto start porting
Post by: mngc on 20 / January / 2013, 13:48:00
Hi,

I found lots of intersting thing with dark frame modes. Currently we have a great working set_raw_nr function. I always use this function for my extra long exposured images. I shot all normal images without dark frame substraction. For short daylight exposure, dark frame not requied, for long exposure one dark frame useful. For extra long exposure mode, lots of dark frame required. Currently no mode for record only dark frames. My method on a590is is simple hardware mod, i use tube ring and fake filter (opaque). On sx110 this method not working. No tube ring for this camera. For example, paper black box not good enough, the internal light too bright (camera LED, for example).

I found this topic on record dark frames, control with mechanical shutter from lua script. I don't know how to adopt for my camera. If i understand properly, this script switch a shooted double image to one normal and one dark frame pictures separate. This is almost what i am looking for but the idea would be shot many normal image, and after shoot many dark frames. This is a common method on astro photography. The night is sort, time is expensive. ;) The dark frames record at dawn. The CCD sensor temperature is important, different normal and dark frame CCD temperature not good. This is one thing why it's not good to use very old dark frames.

the original idea, and sample lua code:
http://chdk.setepontos.com/index.php?topic=5822.0 (http://chdk.setepontos.com/index.php?topic=5822.0)

very interesting topic, a540 camera record a normal and dark frame separate
http://chdk.setepontos.com/index.php?topic=1998.msg18450#msg18450 (http://chdk.setepontos.com/index.php?topic=1998.msg18450#msg18450)

I attached my lua script to automatize the process, of course without dark frame mod. This is an example, lots of things not developed yet. For example, focus set to infinity, CCD temperature logging, etc...

I don't know chdk work in detail, I learn with every new problem. And I've got lots of help from expert developers and users.
Title: Re: SX110IS - howto start porting
Post by: mngc on 20 / January / 2013, 14:04:15
Hi,

Good internet page for users who are not familiar with long exposure.
Various common, not only Cannon releated CCD problems with long exposure, with lots of sample images:
http://darkerview.com/CCDProblems/CCDProblems.php (http://darkerview.com/CCDProblems/CCDProblems.php)

I know bigger CCD cameras for example Canon EOS series are better, and special CCD-s with cooled real 16bit A/D much better. But I would like to make the best out of the CHDK cameras.
Title: Re: SX110IS - howto start porting
Post by: waterwingz on 20 / January / 2013, 14:57:58
I found lots of intersting thing with dark frame modes. Currently we have a great working set_raw_nr function. I always use this function for my extra long exposured images. I shot all normal images without dark frame substraction. For short daylight exposure, dark frame not requied, for long exposure one dark frame useful. For extra long exposure mode, lots of dark frame required. Currently no mode for record only dark frames. My method on a590is is simple hardware mod, i use tube ring and fake filter (opaque). On sx110 this method not working. No tube ring for this camera. For example, paper black box not good enough, the internal light too bright (camera LED, for example).

This more recent script might interest you as well :  http://chdk.setepontos.com/index.php?topic=8833.msg92195#msg92195 (http://chdk.setepontos.com/index.php?topic=8833.msg92195#msg92195)

Title: Re: SX110IS - howto start porting
Post by: reyalp on 20 / January / 2013, 16:19:25
I found this topic on record dark frames, control with mechanical shutter from lua script. I don't know how to adopt for my camera.
This should work in any build with "native calls" enabled. The function required to register the Mecha event procs may vary on some cameras. If the return value of call_event_proc is -1, then the function probably isn't registered. If this happens, someone here can probably find the correct function for you.

Depending on camera and settings, you may need to open the shutter after taking the dark frame.

In CHDK 1.2, you don't need a special build to use native, you just have to turn the "Enable Lua native calls" option on in the misc menu.
Quote
If i understand properly, this script switch a shooted double image to one normal and one dark frame pictures separate.
You can just close the shutter and take one shot to make a dark frame.

Quote
The CCD sensor temperature is important, different normal and dark frame CCD temperature not good. This is one thing why it's not good to use very old dark frames.
You could take a series of dark frames and log the CCD temperature. Then log the CCD temp when you shoot, and match them up.

The script attached here may be useful http://chdk.setepontos.com/index.php?topic=9229.0 (http://chdk.setepontos.com/index.php?topic=9229.0)
Quote
very interesting topic, a540 camera record a normal and dark frame separate
http://chdk.setepontos.com/index.php?topic=1998.msg18450#msg18450 (http://chdk.setepontos.com/index.php?topic=1998.msg18450#msg18450)
That code saved the raw before and after the canon dark frame. That doesn't give you the actual dark frame (most likely Digic does the subtraction when it reads out the dark frame, and so it's never stored in ARM accessible memory), but the difference between the two would show you what has been subtracted out. However, this method requires new hooks in the ASM code for every camera. Using the mecha eventprocs to close the shutter is a much more efficient way to get dark frames.
Title: Re: SX110IS - howto start porting
Post by: mngc on 21 / January / 2013, 13:37:31

This more recent script might interest you as well :  http://chdk.setepontos.com/index.php?topic=8833.msg92195#msg92195 (http://chdk.setepontos.com/index.php?topic=8833.msg92195#msg92195)


Hi,

Thanks the script link. This is extreme useful with nafraf test build! :) Very good for meteors without any modifications. Meteor shower photography also interesting. Your script working ok with nafraf test build, now i have separete dark frames.
Title: Re: SX110IS - howto start porting
Post by: mngc on 21 / January / 2013, 14:05:00

This should work in any build with "native calls" enabled. The function required to register the Mecha event procs may vary on some cameras. If the return value of call_event_proc is -1, then the function probably isn't registered. If this happens, someone here can probably find the correct function for you.

Depending on camera and settings, you may need to open the shutter after taking the dark frame.

In CHDK 1.2, you don't need a special build to use native, you just have to turn the "Enable Lua native calls" option on in the misc menu.

Thanks the detailed comment. Now understand, how it works. Waterwingz lua script working on my sx110 camera with nafraf test build. Now i copy mechanical shutter functions to my script and working too. :) I try with my a590 camera, working too. :) 

Quote
You could take a series of dark frames and log the CCD temperature. Then log the CCD temp when you shoot, and match them up.

The script attached here may be useful http://chdk.setepontos.com/index.php?topic=9229.0 (http://chdk.setepontos.com/index.php?topic=9229.0)

Yes, this is very useful. Currently working on it. I have function to log some parameters, but your code more better. Common problem with my old code , when battery empty, log file losed. Opened/closed for each line i think better and append too.
Title: Re: SX110IS - howto start porting
Post by: waterwingz on 08 / February / 2014, 12:42:16
If you are the owner of a SX110is we need your help improving the manual focus / subject distance override capability of CHDK.

Please read the instructions posted here < Link to Testing Instructions (http://chdk.setepontos.com/index.php?topic=11078.msg108859#msg108859) > and test your camera.

TIA.
Title: Re: SX110IS - howto start porting
Post by: mngc on 24 / February / 2014, 15:06:49
I have SX110, i will test it and come back. Thanks the good news.


If you are the owner of a SX110is we need your help improving the manual focus / subject distance override capability of CHDK.

Please read the instructions posted here < Link to Testing Instructions (http://chdk.setepontos.com/index.php?topic=11078.msg108859#msg108859) > and test your camera.

TIA.
Title: Re: SX110IS - howto start porting
Post by: mngc on 25 / February / 2014, 16:08:27
Test result uploaded to another thread:

Hi,

Script test log file for SX110is, no crash.
Title: Re: SX110IS - howto start porting
Post by: mngc on 11 / June / 2014, 16:45:01
I use chdk 1.3.0 3462 with this camera.

- If i powered on the camera with long press power button, everything is ok. Camera in record mode, and switch to picture review mode ok.

-  When powered on short press power buttton camera and chdk booted ok in picture review mode, but if i press the picture review/record mode switch, camera crash, and turned off.

-  When powered on short press power buttton camera and chdk booted ok in picture review mode. If i press the shutter button camera switch to record mode, without error.

This is not a new bug, long time exist, old 1.2.0 chdk same with this camera.

Any help welcome.
Title: Re: SX110IS - howto start porting
Post by: srsa_4c on 11 / June / 2014, 17:53:51
- If i powered on the camera with long press power button, everything is ok. Camera in record mode, and switch to picture review mode ok.

-  When powered on short press power buttton camera and chdk booted ok in picture review mode, but if i press the picture review/record mode switch, camera crash, and turned off.

-  When powered on short press power buttton camera and chdk booted ok in picture review mode. If i press the shutter button camera switch to record mode, without error.
This is not a bug. When CHDK starts, it doesn't know which button it was started with, and defaults to start in playback mode. If you hold down the power button for longer, CHDK gets a chance to notice that the power button is down and starts the camera in record mode.
If - for whatever reason - the camera starts in playback mode, a push on the playback button (you called it "picture review/record mode switch") will switch it off. Once record mode is active, the button will change between playback and record mode. If you switch to playback mode from record mode and wait until the lens retracts, the button will again change its function, and switch the cam off when you press it.
Title: Re: SX110IS - howto start porting
Post by: waterwingz on 11 / June / 2014, 18:35:54
When powered on short press power buttton camera and chdk booted ok in picture review mode, but if i press the picture review/record mode switch, camera crash, and turned off.
This is not a bug.
Simple demo. Start your camera with an SD card not containing CHDK by pressing the "Playback/Review" button.  Then press that button again.  Observe that it turns the camera switches off on the second press, just like in your example.
Title: Re: SX110IS - howto start porting
Post by: mngc on 12 / June / 2014, 12:23:46
Thanks for fast replies. Now i test without CHDK. Playback button on the camera and off the camera as describied. Ok, not a bug, but feature. Only difference in power button without chdk, always go to record mode (short or long press) when powered on the camera.

Chdk default settings switchable to sort power button => record mode?
Title: Re: SX110IS - howto start porting
Post by: mngc on 12 / June / 2014, 12:35:04
Another button related questions, my Canon a590is with chdk has a great function in playback mode. Zoomable zebra mode when half press shutter button (live histogram set to "shoot" and zebra enabled).

This funtcion cannot acces in my SX110is, when i half press shutter button, camera switch to record mode. Playback zebra mode configurable to another button, for example "face button" in future?
Title: Re: SX110IS - howto start porting
Post by: waterwingz on 12 / June / 2014, 12:51:33
Chdk default settings switchable to sort power button => record mode?
No.   This has been discussed many times. 

The problem is that at start-up, CHDK does not know if it was started via the playback button or the power button.  (Unless you hold the power button down as described above).  If CHDK were to always power up in shooting mode, the lens will extend every time, which could result in mechanical damage if you were pressing the playback button and not expecting it.
Title: Re: SX110IS - howto start porting
Post by: mngc on 16 / June / 2014, 12:19:57

The problem is that at start-up, CHDK does not know if it was started via the playback button or the power button.  (Unless you hold the power button down as described above).  If CHDK were to always power up in shooting mode, the lens will extend every time, which could result in mechanical damage if you were pressing the playback button and not expecting it.


Thanks for the detailed answer, mechanical damage not good. Default option good for me.
Title: Re: SX110IS - howto start porting
Post by: mngc on 01 / July / 2014, 15:14:58
My test script for astro photography, thanks to all helpers. Designed for long exposure shots. Useful for deep sky protography.