Prabhu,
If not already answered you could refer to "Gadget FS" API's for your
purpose.
Regards
swami
> -----Original Message-----
> From: davinci-linux-open-source-
> [email protected] [mailto:davinci-linux-open-
> [email protected]] On Behalf Of Prabhu
> Kalyan Rout
> Sent: Thursday, January 01, 2009 9:30 PM
> To: David Brownell
> Cc: [email protected]
> Subject: Re: DM6446 as USB slave device
>
> 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
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source