My requirement is that the host machine(Windows) and the gadget(running
linux ) will talk to each other with simple txt data and also be able to
send and receive files. I have told you that i am using DM6446. We are
designing the gadget. Its purpose is to take commands from the host and
do some operations(Not of your use). So for that what apis i need to
use. Can you guys give me some basic idea.
David Brownell wrote:
On Wednesday 31 December 2008, Phil Quiney wrote:
When you build the USB stack as a 'gadget' stack, you are then able to
install a couple of useful drivers (only one at a time though):
Since 2.6.27 or so, the gadget stack has supported composite drivers.
So for example you can have a gadget supporting both CDC Ethernet
and CDC ACM at the same time. (Not too much more than that on a
DaVinci though, because of hardware limitations.)
From memory, I never got the 'gadget' mode stuff to work on the DM6446
EVM as I seem to remember some 'rewiring' was required and we were not
prepared to modify the hardware.
No rewiring; just take the jumper out. But you'd need to
use some kind of gender bending cable to connect to the host.
It does work on the DM355 EVM but it is
not OTG, that is the USB driver has to be built either as a host or a
gadget stack. OTG mode (auto switching between the two modes) did not
work with the 2.6.10 kernel, although the hardware is allegedly OTG capable.
OTG is bit more than just that switching. In any case,
given the patches I posted this morning (updates of stuff
I posted a couple weeks ago), DM355 EVM supports that role
switching.
- Dave
http://www.mindtree.com/email/disclaimer.html
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source