On Thursday 01 January 2009, Prabhu Kalyan Rout wrote: > 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.
So it's up to you to design the protocol, then ... If I were doing that I'd probably use CDC-ACM, since I'll go to some length to avoid an MS-Windows driver. Note that until the recent gadget stack updates, the TTY glue in the gadget stack was rather problematic: you couldn't do normal stuff like open a serial gadget /dev file until the host was hooked up. The current code acts normally: you can have a program open up /dev/ttyGS0 and wait for the host to connect. That works out nicely for stuff like "getty" of course. That would mean using purely userspace calls, just as with any other application using /dev/tty* serial interfaces. - Dave _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
