Ixus Wireless - SD430 Porting thread - page 3 - General Help and Assistance on using CHDK stable releases - CHDK Forum  

Ixus Wireless - SD430 Porting thread

  • 131 Replies
  • 24686 Views
*

Offline srsa_4c

  • ******
  • 4262
Re: Ixus Wireless - SD430 Porting thread
« Reply #20 on: 06 / October / 2013, 17:56:03 »
Advertisements
Obviously since I can't operate the mode switch or boot up in Shoot or Video mode, I cant test much more.
Try identifying those buttons and switches.
Locate this section in core/gui_osd.c
Code: [Select]
        /*
        // debug keymap, KEYS_MASKx, SD_READONLY_FLAG, USB_MASK
        extern long physw_status[3];
        sprintf(osd_buf, "PS1: %#8x", physw_status[0]);
        draw_txt_string(28, 10, osd_buf, conf.osd_color);

        sprintf(osd_buf, "PS2: %#8x", physw_status[1]);
        draw_txt_string(28, 11, osd_buf, conf.osd_color);

        sprintf(osd_buf, "PS3: %#8x", physw_status[2]);
        draw_txt_string(28, 12, osd_buf, conf.osd_color);
        */
Uncomment it, replace
physw_status[0] with *(long*)0xc0220200
physw_status[1] with *(long*)0xc0220204
physw_status[2] with *(long*)0xc0220208
Recompile, and see which bits change when pressing buttons or moving the mode switch.

*

Offline nafraf

  • *****
  • 1308
Re: Ixus Wireless - SD430 Porting thread
« Reply #21 on: 06 / October / 2013, 18:53:56 »
physw_status was 0x0 in stubs_min.S. I expect that now its value is right.

*

Offline ahull

  • *****
  • 634
Re: Ixus Wireless - SD430 Porting thread
« Reply #22 on: 07 / October / 2013, 06:59:51 »
Completely off topic, but the front of that Ixus 50 reminded me of the "Diamond Ixus's" that hit the headlines a few years back.

http://collectiblend.com/Cameras/Canon/Digital-Ixus-65-%27Diamond-Edition%27.html

Time for some sparklies and superglue maybe?


*

Offline ahull

  • *****
  • 634
Re: Ixus Wireless - SD430 Porting thread
« Reply #23 on: 07 / October / 2013, 07:46:36 »
Some improvements to the Ixus Wireless port using the latest code.

1) The mode switch now operates, I can switch to Shoot, Video and Play.
2) The Power button operates.

Some issues..

1) The <ALT> key no longer operates as expected, instead it behaves like a display blanking button.
2) After a number of key presses, we seem to hit an exception and the camera shuts down.

The OSD stuff still works (battery voltage, temp etc).


*

Offline nafraf

  • *****
  • 1308
Re: Ixus Wireless - SD430 Porting thread
« Reply #24 on: 07 / October / 2013, 08:07:35 »
keymap has not been checked, you can use srsa_4c suggestion to detect the keys.

*

Offline ahull

  • *****
  • 634
Re: Ixus Wireless - SD430 Porting thread
« Reply #25 on: 07 / October / 2013, 08:16:40 »
Will do. Just need to charge the battery first.

*

Offline ahull

  • *****
  • 634
Re: Ixus Wireless - SD430 Porting thread
« Reply #26 on: 07 / October / 2013, 09:02:05 »
I edited the debug keymap section as shown below, but I don't see the results on the screen.

Code: [Select]
      /**/
        // debug keymap, KEYS_MASKx, SD_READONLY_FLAG, USB_MASK
        extern long physw_status[3];
        sprintf(osd_buf, "PS1: %#8x", *(long*)0xc0220200);
        draw_txt_string(28, 10, osd_buf, conf.osd_color);

        sprintf(osd_buf, "PS2: %#8x", *(long*)0xc0220204);
        draw_txt_string(28, 11, osd_buf, conf.osd_color);

        sprintf(osd_buf, "PS3: %#8x", *(long*)0xc0220208);
        draw_txt_string(28, 12, osd_buf, conf.osd_color);
        /**/

... anything else we need to get working first?


*

Offline nafraf

  • *****
  • 1308
Re: Ixus Wireless - SD430 Porting thread
« Reply #27 on: 07 / October / 2013, 09:15:10 »
Check if debug code is inside this conditional:
Code: [Select]
if (conf.debug_misc_vals_show) {
....
}
To enable it,  CHDK menu -> Miscellaneous stuff -> Debug Parameters -> Show Misc. Values [ * ]


*

Offline ahull

  • *****
  • 634
Re: Ixus Wireless - SD430 Porting thread
« Reply #28 on: 07 / October / 2013, 16:47:34 »
...
Some issues..

1) The <ALT> key no longer operates as expected, instead it behaves like a display blanking button.
...

This means I can't access the menus any more.

A couple of things occur to me at this point...

A) The <ALT> key was working, so perhaps we just need it set the way it was before.

B) This particular camera is one of the few that assigns a function to the <PRINT> key ( the usual CHDK <ALT> key for this style of  Ixus) in playback mode. It uses the key to set up the Wireless. When pressed in playback mode, you are taken to the Wireless <Connect/Disconnect> menu, so we may need to assign an alternative key.
« Last Edit: 07 / October / 2013, 16:57:58 by ahull »

*

Offline ahull

  • *****
  • 634
Re: Ixus Wireless - SD430 Porting thread
« Reply #29 on: 07 / October / 2013, 19:19:27 »
Check if debug code is inside this conditional:
Code: [Select]
if (conf.debug_misc_vals_show) {
....
}
To enable it,  CHDK menu -> Miscellaneous stuff -> Debug Parameters -> Show Misc. Values [ * ]

In light of the fact that the <ALT> key doesn't currently work, is this setting saved on the SD card, if so can I set it outwith CHDK by editing *something*?

 

Related Topics