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

SD550 USB Remote Problem

  • 48 Replies
  • 6497 Views
SD550 USB Remote Problem
« on: 26 / December / 2012, 20:38:07 »
Advertisements
I've wired up a USB remote. I've validate the following

1. the pins are assigned to the correct +/-
2. I have a voltage of about 4.8
3. an LED validates there is connectivity when I hit the switch.
4. I've enabled the remote

But no go when I hit the switch. The camera does not take a shot. Is it possible the port of CHDK for this model does not read the correct memory location for USB voltage?

I haven't been brave enough to try this with my G12 yet :)

Re: SD550 USB Remote Problem
« Reply #1 on: 26 / December / 2012, 20:47:22 »
What happens if you connect and then remove a USB cable to your computer  instead of using your switch ?

Re: SD550 USB Remote Problem
« Reply #2 on: 26 / December / 2012, 20:51:30 »
I think i know what you mean. Check the voltage when the regular USB cable is hooked to my comptuer?

I wrote a little script that will use get_usb_power to check the voltage and print it out 5 times a second. I'm not seeing anything in the misc values or in the script for my switch. I'll give what you suggested a try and see what it says about the voltage.

Re: SD550 USB Remote Problem
« Reply #3 on: 26 / December / 2012, 20:58:22 »
I just ran a test connecting the USB to my laptop. Both the script and the misc values showed constant 0 voltage conneting and removing the USB cable. 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.


Re: SD550 USB Remote Problem
« Reply #4 on: 26 / December / 2012, 21:12:48 »
Here's the script I used for those who are watching:

@title USB Voltage Check

a = 0

while 1

   print a, ": ", get_usb_power

   sleep 200

   a = a + 1
   
wend

return

*

Offline srsa_4c

  • ******
  • 4285
Re: SD550 USB Remote Problem
« Reply #5 on: 26 / December / 2012, 21:23:54 »
Locate "memory browser" in the menu, start it, navigate to address 0xc0220204, and see whether the displayed hexa value changes when you apply and remove the USB voltage. If it does, write down the values you see (which digit is it, what is the two hexa digit). If nothing changes, try 0xc0220200 and 0xc0220208.
« Last Edit: 26 / December / 2012, 21:49:10 by srsa_4c »

*

Offline philmoz

  • *****
  • 3179
    • Photos
Re: SD550 USB Remote Problem
« Reply #6 on: 26 / December / 2012, 21:36:46 »
Locate "memory browser" in the menu, start it, navigate to address 0xc0220204, and see whether the displayed hexa value changes when you apply and remove the USB voltage. If it does, write down the values you see (which digit is it, what is the two hexa digit). If nothing changes, try 0xc0220200 and 0xc0220208.

The memory browser will only show RAM and ROM addresses. Anything else including the IO space is ignored.

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)

Re: SD550 USB Remote Problem
« Reply #7 on: 26 / December / 2012, 21:42:14 »
All three of the addresses said they were invalid.

P.S. Philmoz you are a genius for making the G12 port. I praise that piece of software every time I enable TTL in manual mode on my G12. You da man!


*

Offline srsa_4c

  • ******
  • 4285
Re: SD550 USB Remote Problem
« Reply #8 on: 26 / December / 2012, 21:43:12 »
The memory browser will only show RAM and ROM addresses. Anything else including the IO space is ignored.

Phil.
Oops. I forgot that. I just wanted to make sure that USB_MASK and USB_IDX is correct. But according to
Quote
With the remote disabled my laptop was recognizing the camera. with the remote enabled it was not.
it should be. In this case get_usb_bit() in the port's kbd.c should look like this
Code: [Select]
int get_usb_bit()
{
    register long usb_physw;
    usb_physw = *(long*)0xc0220204; //can be read directly
    return(( usb_physw & USB_MASK)==USB_MASK);
}

@MrSim17
What is you camera's firmware version?
« Last Edit: 26 / December / 2012, 21:48:27 by srsa_4c »

Re: SD550 USB Remote Problem
« Reply #9 on: 26 / December / 2012, 21:53:39 »
Firmware Version: 1.00G

I just did a test on my Canon G12 (got a little braver). I was able to see the voltage change when attaching to my laptop. After I removed the LED from my switch setup I was also able to trigger the remote with the setup I have made. So the switch I made should be reasonably validated.

 

Related Topics