Why does usb remote work in SDM but not regular CHDK? - page 2 - General Help and Assistance on using CHDK stable releases - CHDK Forum

Why does usb remote work in SDM but not regular CHDK?

  • 17 Replies
  • 13759 Views
*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Why does usb remote work in SDM but not regular CHDK?
« Reply #10 on: 23 / March / 2011, 01:01:30 »
Advertisements
Thanks MSL for the links to the kbd.c files, I'll look at both and see if I can spot any differences. Not going to lie though from just glancing at the code quickly I may be in over my head ;)
everyone for all of the information I really appreciate it. If I find anything wrt the two kbd.c files I'll post back.

USB_MASK value is different between CHDK & CHDK-DE / SDM.

CHDK has                 #define USB_MASK (0x40000)
CHDK-DE& SDM has #define USB_MASK (0x80000)

If it works in CHDK-DE & SDM then this is the most likely culprit.

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

Re: Why does usb remote work in SDM but not regular CHDK?
« Reply #11 on: 23 / March / 2011, 01:15:12 »
Good catch Phil, that would make sense (even to me lol), how would one go about getting this corrected in the non DE version of CHDK?

Also, how were you able to confirm the USB mask value for SDM? I found the kbd.c for the SD630 in the CHDK files but not sure where to find the equivalent in the SDM build for that model.

Thanks again!

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Why does usb remote work in SDM but not regular CHDK?
« Reply #12 on: 23 / March / 2011, 01:28:53 »
Good catch Phil, that would make sense (even to me lol), how would one go about getting this corrected in the non DE version of CHDK?

Also, how were you able to confirm the USB mask value for SDM? I found the kbd.c for the SD630 in the CHDK files but not sure where to find the equivalent in the SDM build for that model.

Thanks again!

I thought the problem was with the SD780is not the SD630? The difference I found was in the SD780is code.

To get this in to CHDK a request needs to be added to this topic http://chdk.setepontos.com/index.php?topic=650.150 including a patch file. One of the core developers will then pick this up and add it to the main code. I'll add a request and patch file shortly.

The SDM code can be downloaded from the SDM web site. It is layed out the same as CHDK; but the camera directory names only include the 'ixus' name for cameras where there are different names in different regions. The SD630 is also known as the Ixus65. In CHDK the camera directory is called ixus65_sd630 (under platform), in SDM it's just called ixus65.

Phil.

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

Re: Why does usb remote work in SDM but not regular CHDK?
« Reply #13 on: 23 / March / 2011, 01:45:02 »
Sorry for the confusion Phil, when I first posted this thread I had two different cameras with USB remote functionality issues. On the SD630 my USB remote worked in the SDM version but not the standard CHDK. On the SD780IS the USB remote worked on the DE version but not the default version.

Thanks for adding the patch request on my behalf!

As for the source, after reading your post I started digging through the forums and was just reading the lengthy thread about SDM and the source code with everyone attaching Microfunguy for GPL violations etc. Hopefully all that stuff is in the past now, I'm all for adhering to GPL etc but some of that thread was just getting nasty ;)

I've just downloaded the SDM source and have been looking through it. It appears in the SDM kbd.c file for the SD630 it again uses 0x800000 for usb_mask whereas in the kbd.c file for CHDK usb_mask isn't even present. Is it possible that the code just wasn't finished or was minimal for basic functionality?

I've actually gotta head out now so I'll look deeper tomorrow. Thanks again everyone.


Re: Why does usb remote work in SDM but not regular CHDK?
« Reply #14 on: 23 / March / 2011, 05:39:04 »
in the kbd.c file for CHDK usb_mask isn't even present.

Not only that, there is no code for USB remote at all.


David

Re: Why does usb remote work in SDM but not regular CHDK?
« Reply #15 on: 24 / March / 2011, 23:23:14 »
Touche! ;)

If that's the case then its probably beyond my scripting capabilities to fix. Its not the biggest deal since it work in SDM. I'm actually starting to like SDM more and more anyway as I play around with it it. Definitely like the larger print, I'm not that old but the larger print is handy ;)

Thanks again everyone.

Re: Why does usb remote work in SDM but not regular CHDK?
« Reply #16 on: 25 / March / 2011, 09:16:16 »
Definitely like the larger print

Make sure sdm.rbf is in your fonts folder to ensure that for the menus.


Re: Why does usb remote work in SDM but not regular CHDK?
« Reply #17 on: 20 / December / 2011, 16:00:22 »
Not only that, there is no code for USB remote at all.
David
Doing a little cleanup here as I work through old post about the history of USB remote.   In this case, I believe that  the SD630 actually does have USB remote code - its in the kbd.c code in platform/generic (as with many of the other old cameras).



Ported :   A1200    SD940   G10    Powershot N    G16


 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal