Is Usbnet driver (host) available for android2.2?

597 views
Skip to first unread message

Hu Haiqing

unread,
Aug 19, 2010, 9:30:06 PM8/19/10
to Android Linux Kernel Development
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.

Tung Dang

unread,
Aug 21, 2010, 8:00:10 AM8/21/10
to android...@googlegroups.com
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,


Chris Stratton

unread,
Aug 21, 2010, 3:31:47 PM8/21/10
to Android Linux Kernel Development
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 <haiqin...@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-kerne...@googlegroups.com<android-kernel%2Bunsu...@googlegroups.com>
> > website: http://groups.google.com/group/android-kernel

Hu Haiqing

unread,
Aug 22, 2010, 9:54:07 PM8/22/10
to Android Linux Kernel Development
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,
>

Chris Stratton

unread,
Aug 23, 2010, 10:25:02 AM8/23/10
to Android Linux Kernel Development
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.
> > > > unsubscribe: android-kerne...@googlegroups.com<android-kernel%2Bunsubscribe@go oglegroups.com>
> > > > website:http://groups.google.com/group/android-kernel

Justin

unread,
Oct 24, 2012, 9:58:39 AM10/24/12
to android...@googlegroups.com
> android-kernel+unsubscribe <at> googlegroups.com<android-kernel%
2Bunsubscribe <at> go oglegroups.com>
> > > > > website:http://groups.google.com/group/android-kernel
>

I know this is a couple years old, but I'm wondering if someone could point me
in the right direction. I don't think my kernel has usbnet support already on
the phone. How would I go about compiling and loading a new kernel that does
have usbnet as Chris mentioned? It's a Galaxy Nexus running Android 4.0.4 and
kernel 3.0.8.

Thanks,

Justin


Reply all
Reply to author
Forward
0 new messages