USB core hacking status - Feature Requests - CHDK Forum

USB core hacking status

  • 3 Replies
  • 2448 Views
USB core hacking status
« on: 16 / January / 2009, 04:53:52 »
Advertisements
Hi, what is hacking status of internal USB controller in Canon cameras? Have you found already some registers which are related to USB somehow?

Any idea how to enable/disable USB so that internal pullup will be connected/desconnected to D+ line?

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: USB core hacking status
« Reply #1 on: 16 / January / 2009, 05:48:40 »
Any idea how to enable/disable USB so that internal pullup will be connected/desconnected to D+ line?
Maybe this can help, but this is tested only for digic2.
http://chdk.setepontos.com/index.php/topic,547.msg9944.html#msg9944

Re: USB core hacking status
« Reply #2 on: 16 / January / 2009, 10:06:32 »
Thanks, this is what I'm looking for.

In USB slave controllers there are ofter register to sample D+ and D- line. Maybe in Canon too? Anyway, it is interesting to know is there any registers which changes its value after you change value in bit 2 in port 0xC0721000. Then bidirectional communication could be set easily.

Is it possible to add some command to scripting so that this bit could be controllable through script? I'm newbie in CHDK so learning process takes time before I could do my own build.

« Last Edit: 16 / January / 2009, 10:52:36 by ledelectronics »

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: USB core hacking status
« Reply #3 on: 16 / January / 2009, 12:49:34 »
Is it possible to add some command to scripting so that this bit could be controllable through script? I'm newbie in CHDK so learning process takes time before I could do my own build.

See peek and poke commands in CHDK Lua: http://chdk.wikia.com/wiki/LUA/LUA_Reference.

I.e. I think you can probaby do this from Lua without modifying CHDK at all; read with peek, do your bit operations and write with poke (and hope the register didn't change meanwhile...)?


 

Related Topics