SD550 USB Remote Problem - page 2 - General Help and Assistance on using CHDK stable releases - CHDK Forum

SD550 USB Remote Problem

  • 48 Replies
  • 14222 Views
Re: SD550 USB Remote Problem
« Reply #10 on: 26 / December / 2012, 21:57:00 »
Advertisements
I also just ran a test again to make sure it was in fact not being recognized on my laptop with the remote enabled. When I toggled the remote the laptop toggled recognizing my camera. Double checked on that.

Re: SD550 USB Remote Problem
« Reply #11 on: 26 / December / 2012, 21:59:20 »
Code: [Select]
I ran the test with remote enabled and disabled. With the remote disabled my laptop was recognizing the camera. with the remote enabled it was not. That seems to make sense but no indication on voltage changes.
I'm travelling right now so won't have access to my dev machine until Friday.  However, the fact that your camera behaves differently when connected to your laptop depending on the remote enable/disabled status suggests that

Code: [Select]
#define USB_MASK 0x40
#define USB_IDX 1

in kbd.c for the ixus750_sd550 are probably correct.

However, there appear to be some probably unrelated funky hard coded key masks in my_kbd_read_keys() for that camera.  Will take some digging.
« Last Edit: 26 / December / 2012, 22:04:48 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline srsa_4c

  • ******
  • 4451
Re: SD550 USB Remote Problem
« Reply #12 on: 26 / December / 2012, 22:04:21 »
Test version, CHDK 1.1.
(edit: useless attachment removed)
« Last Edit: 01 / January / 2013, 10:53:31 by srsa_4c »

Re: SD550 USB Remote Problem
« Reply #13 on: 26 / December / 2012, 22:06:57 »
Test version, CHDK 1.1.
@srsa_4c : Does this mean that you are assuming _kbd_read_keys_r2 is incorrectly found for that camera ?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline srsa_4c

  • ******
  • 4451
Re: SD550 USB Remote Problem
« Reply #14 on: 26 / December / 2012, 22:11:29 »
Test version, CHDK 1.1.
@srsa_4c : Does this mean that you are assuming _kbd_read_keys_r2 is incorrectly found for that camera ?
No, I'm saying that the USB bit can be read directly. No idea about that routine.

Re: SD550 USB Remote Problem
« Reply #15 on: 26 / December / 2012, 22:15:48 »
Trying the alternate version now.

Re: SD550 USB Remote Problem
« Reply #16 on: 26 / December / 2012, 22:16:15 »
No, I'm saying that the USB bit can be read directly. No idea about that routine.
Okay.  I was really tempted to take the use of that routine out when I was doing the USB remote 2 code.  As you noticed,  it seems simple to access the required registers directly.  But give the size of all the other changes I chose to disturb as little of the original code as possible.  Regardless, if your patch works then that routine for that camera must not be working as expected.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline srsa_4c

  • ******
  • 4451
Re: SD550 USB Remote Problem
« Reply #17 on: 26 / December / 2012, 22:21:24 »
Okay.  I was really tempted to take the use of that routine out when I was doing the USB remote 2 code.  As you noticed,  it seems simple to access the required registers directly.  But give the size of all the other changes I chose to disturb as little of the original code as possible.  Regardless, if your patch works then that routine for that camera must not be working as expected.
I'm not suggesting that you've done anything wrong. I have based this patch on the behaviour of my Ixus65, and I might be wrong, if the hw design is different on this cam.

Re: SD550 USB Remote Problem
« Reply #18 on: 26 / December / 2012, 22:25:01 »
I just ran a test with the version posted here (which I think was the same version and build # I was using). I did not get a change in values from either my laptop or my switch.

*

Offline srsa_4c

  • ******
  • 4451
Re: SD550 USB Remote Problem
« Reply #19 on: 26 / December / 2012, 22:41:39 »
I just ran a test with the version posted here (which I think was the same version and build # I was using). I did not get a change in values from either my laptop or my switch.
Run this (too) simple Lua script:
Code: (lua) [Select]
function printf(...)
print(string.format(...))
end
while true do
    r1 = peek(0xc0220204)
    printf("0x%x",r1)
    sleep(200)
end
and see whether the displayed hex number changes when you connect/disconnect USB.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal