PowerShot SX210 IS - Porting Thread - page 25 - General Discussion and Assistance - CHDK Forum supplierdeeply

PowerShot SX210 IS - Porting Thread

  • 589 Replies
  • 300876 Views
*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #240 on: 15 / September / 2010, 05:22:17 »
Advertisements
Find SetFileTimeStamp  ,
remeber to have  CAM_DRYOS_2_3_R39

NHSTUB(SetFileTimeStamp, 0xFF836EEC)  //ASM1989 09.15.10 in g11 100j was FF835C3C filename instead of filehandle

Now first raw date saved correctly !!!
« Last Edit: 15 / September / 2010, 05:27:21 by asm1989 »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #241 on: 15 / September / 2010, 05:49:33 »
New Modelist?

I find 4 SCN modes not listed in modelist.h

Code: [Select]
//  { MODE_SCN_MINIATURE_EFFECT,         16940  },   //New in sx210 ???
//  { MODE_SCN_FISH_EYE,         16939  },    //New in sx210 ???
//  { MODE_SCN_LOW_LIGHT,         16417 },    //New in sx210 ???
//  { MODE_SCN_SMART_SHUTTER,         33321 },    //New in sx210 ???

maybe there are equal to others??

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #242 on: 15 / September / 2010, 06:10:56 »
other stubs

Looks like this but not really sure

Code: [Select]
NHSTUB(GetCurrentAvValue, 0xFF9665D4)// Not sure but looks like

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #243 on: 15 / September / 2010, 14:29:46 »
Save RAW in JPG directory

with this in raw.c it worked  ( from the sx120 port)

Code: [Select]
#if defined (CAMERA_sx210is)
if (conf.raw_in_dir) {
int month;
struct tm *ttm;
unsigned long t;
t = time(NULL);
ttm = localtime(&t);
month = ttm->tm_mon + 1;
sprintf(dir, "A/DCIM/%03d___%02d", get_target_dir_num(), month);
}
else
sprintf(dir, "A/DCIM/%03dRAW", get_target_dir_num());
#else
 sprintf(dir, RAW_TARGET_DIRECTORY, (conf.raw_in_dir)?get_target_dir_num():100);
        #endif


but I need the right PARAM_FILE_COUNTER , since the one I use only has file number info

since the one I find in prarm  02, is 22 files behind the real new number wierd????

anyway I need to change these too

Code: [Select]
long get_target_dir_num() {
long n;

n = get_file_next_counter();
//n = (n>>18)&0x3FF;
n+=22;
n=n/1000;
n+=101;
return n;
}

« Last Edit: 15 / September / 2010, 14:52:37 by asm1989 »


*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #244 on: 16 / September / 2010, 04:23:58 »
Fixed Raw opening in other programs

I replaced the CAM_ACTIVE_AREA numbers with correct ones, and now the crw file opens in many other program if saved as DNG.

So almost all the raw stuff seems to be working.

Here are the latest sources and bins, more feedback and testing is needed. http://es.drop.io/sx210is_platformv01
->sx210isCHDKbeta005.zip
->Sourcesx210isASM1989-v.09.zip

I'm stuck with the overrides, checking if the propsets are right and so on,
 harpoma If you can help with this will be welcome
« Last Edit: 16 / September / 2010, 04:58:12 by asm1989 »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #245 on: 16 / September / 2010, 05:59:54 »
ISO and Overrides

Ok, keep diging into this,

And yes this cam uses propset 3

And  PROPCASE_SV_MARKET ->  248 , -> changes acording to the ISO of the cammera OK

On half shutter press, and with a override set I get:
PROPCASE_SHOOTING  -> 208  -> Changes to 1 on half press   OK

BUT:
PROPCASE_SV   -> 249,    ->  show the value expected with the override disabled WRONG
PROPCASE_DELTA_SV   -> 79  ->  No change, and is expected to change with the override enabled. WRONG


shooting_expo_param_override is reached in shooting.c
and  in shooting.c
The program reaches oK on halfpress    shooting_set_sv96(short sv96, short is_now){ .....
and even the number of sv96 is the right one expected with the override set)
and reaches ok this line:   _SetPropertyCase(PROPCASE_SV, &sv96, sizeof(sv96));

Where is the problem?
maybe something is wrong in captseq file?

Any clue, HELP!! :'(
« Last Edit: 16 / September / 2010, 06:35:42 by asm1989 »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #246 on: 17 / September / 2010, 11:58:20 »
OVERRIDE WORKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :xmas

I found the BUG,

I had the same address for get and set  PropertyCase :haha

Good ones are:
NHSTUB(GetPropertyCase, 0xff891070)
NHSTUB(SetPropertyCase, 0xff890f40)

also found the USB Mask

#define USB_MASK (0x80000)

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #247 on: 17 / September / 2010, 12:00:57 »
ALSO  PROUD TO HAVE A Release Candidate version!!! ,
with almost no knowledge of chdk and arm, It's a good sucess :D
Also I think it is  the first DRYOS version 2.3, release #0043 Port yet!

So here it is  http://es.drop.io/chdk_sx210_rc  

For the helping developers -> Sourcesx210isASM1989-RCv1.0.zip

For the risky testers -> CHDK-sx210is-ASM1989-RCv1.0.zip

BUT I SEE ALMOST NO TESTERS HERE >:( ,  Is this a one man war against the machine?

Without proper testing and bug listing we can't have all the functionaly !

Anyway I want to thank for getting here:
-The people involved in getting the firmware dumped
-Pixeldoc for his many helps in the joint sd4000 - sx210 port
-Harpoma for his work on the hooks and keyboard
-And all the people from other cam ports and the huge info they post on the forum
« Last Edit: 17 / September / 2010, 12:10:43 by asm1989 »


Re: PowerShot SX210 IS - Porting Thread
« Reply #248 on: 17 / September / 2010, 12:11:02 »
It's on my list.. I have to find a 2gig SD card because for some reason I can't seem to get it to work with an 8gig card even if all the documentation on the site claims it should be working.  Hopefully I'll get it loaded this weekend and start playing with it (the problem is I can't seem to get to the alt menu on the SX210 in general which is annoying me).

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #249 on: 17 / September / 2010, 12:21:53 »
mouring  I have only tested so far, the manual load of CHDK, with any card 2g,8g,32g....
http://chdk.wikia.com/wiki/FAQ#Q._How_do_I_manually_load_CHDK_so_I_can_use_it.3F

 

Related Topics