For the first question look at how wifi is handled as an example. The second depends on your usb peripheral. If you get a usb extension cable and cut the power lead then plug it into a desktop pc through that, you will find out.
On Aug 22, 9:54 pm, Hu Haiqing <haiqinghu...@gmail.com> wrote: > Hi,Chris > Thanks a lot,could you please give me more detail abou the two things. > > 1) What's will be needed in sub-android linuxlevel userspace to set > it up? > > 2) For the usb bus power, you mean that the usb device it's self (not > the phone) may need another power source? > I have a Radio device which is supplied the power via battery. > does it need another power source? > > Best Regards. > > Hu haiqing > > On 8月22日, 上午3时31分, Chris Stratton <cs07...@gmail.com> wrote: > > > > > While the usb net and usb host drivers are likely available in kernel > > source, its worth pointing out that they aren't shipped in most > > phones, so a new kernel (probably not just module) will need to be > > compiled. Something will likely also be needed in sub-android linux- > > level userspace to set it up. > > > Also most current phones don't supply usb bus power, so custom cabling > > and another power source may be needed. > > > Tung Dang wrote: > > > Hi, > > > > Yes, USB net (host) driver is availailble for android, actually it is in > > > linux kernel before. > > > On host side, you config kernel to support USB net (in Network > > > configuration > > > menu) > > > On device side, you config kernel to support USB gadget CDC ethernet > > > (RNDIS) > > > (in USB driver configuration menu) > > > configure ip by : ifconfig usb0 <ip_address> > > > > Cheer, > > > > On Fri, Aug 20, 2010 at 9:30 AM, Hu Haiqing <haiqinghu...@gmail.com> > > > wrote: > > > > > Hi, Dear All: > > > > > I would like to insert a device to android phone through usb > > > > interface . and hope the phone can access the device through tcp/ip > > > > protocol. is it avaialble to me > > > > > The device is standard usb CDC device, in Ubuntu, I can see the ip > > > > address use ifconfig command when I insert the device into the > > > > computer. > > > > > Best Regards. > > > > > -- > > > > unsubscribe: > > > > android-kernel+unsubscr...@googlegroups.com<android-kernel%2bunsubscr...@go > > > > oglegroups.com> > > > > website:http://groups.google.com/group/android-kernel -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel