LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-01-2011, 12:38 AM   #1
Ganesh Hegde
LQ Newbie
 
Registered: May 2011
Posts: 4

Rep: Reputation: Disabled
'eth1' instead of 'usb0'


I am working on USB Connectivity between android 2.1 Host and Windows Mobiles 6.1 device...When I connect the windows mobile device to android host through USB (in RNDIS Mode), It is appearing as 'eth1' interface instead of 'usb0' interface.
Why 'eth1' instead of 'usb0' ?
Does behaviour of 'eth1' is same as 'usb0'?

Please provide me some help...
Thanks in advance

Regards,
Ganesh
 
Old 06-01-2011, 02:59 PM   #2
jefro
LQ Guru
 
Registered: Mar 2008
Posts: 13,171

Rep: Reputation: 1667Reputation: 1667Reputation: 1667Reputation: 1667Reputation: 1667Reputation: 1667Reputation: 1667Reputation: 1667Reputation: 1667Reputation: 1667Reputation: 1667
It is using tcp/ip to access.

It should have an ip address in ifconfig to see also.
 
Old 06-06-2011, 01:38 AM   #3
Ganesh Hegde
LQ Newbie
 
Registered: May 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks very much for your support.

Sorry...I didn't give much info on what i have to do...

Case 1: I connected my Samsung Galaxy I7500 phone (android phone) to my Host (android) through USB Cable. It was in ECM Mode.It is detecting as 'usb0' device.

Case 2: I connected Windows Mobile to my Host(android) through USB Cable.It was in RNDIS Mode.It is detecting as 'eth1' device.

Being both phones connected through USB Cable, Why windows phone is detecting as 'eth1' device.

As u have said, It is recognising as network device. But 'usb0' is also network device. So why the difference comes?

[ECM and RNDIS are one and the same.]

Please help me...

Regards,
Ganesh
 
Old 06-06-2011, 03:43 PM   #4
jefro
LQ Guru
 
Registered: Mar 2008
Posts: 13,171

Rep: Reputation: 1667Reputation: 1667Reputation: 1667Reputation: 1667Reputation: 1667Reputation: 1667Reputation: 1667Reputation: 1667Reputation: 1667Reputation: 1667Reputation: 1667
I guess the person who wrote the application/device driver decided it.

dunno exactly about the android. Is it really able to act as a networked device or are you simply seeing it as a usb storage?
 
Old 06-06-2011, 06:36 PM   #5
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,113

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
yeah, sounds like it is acting as a network interface
post the output of 'ifconfig', i'll bet you eth1 has an ip address of some sort
example:
Code:
user@user-desktop:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1a:4d:64:e4:68  
          inet addr:10.0.0.38  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::21a:4dff:fe64:e468/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:99317 errors:0 dropped:0 overruns:0 frame:0
          TX packets:91446 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:92071288 (92.0 MB)  TX bytes:17306331 (17.3 MB)
          Interrupt:40 Base address:0xe000 

ham0      Link encap:Ethernet  HWaddr b6:74:4b:af:17:68  
          inet addr:5.153.229.26  Bcast:5.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1200  Metric:1
          RX packets:2975 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2656 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:2379642 (2.3 MB)  TX bytes:213342 (213.3 KB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:345 errors:0 dropped:0 overruns:0 frame:0
          TX packets:345 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:251972 (251.9 KB)  TX bytes:251972 (251.9 KB)
 
Old 06-06-2011, 11:08 PM   #6
Ganesh Hegde
LQ Newbie
 
Registered: May 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Re: 'eth1' instead of 'usb0'

Jefro and frieza,Thanks for Your Technical Support...

frieza, As you have told, I have posted the result of "ifconfig" when my windows mobiles phone is connected to android host.

Network Interface is appearing as 'eth1' instead of 'usb0'...But when my Samsung Galaxy (Android) phone is connected, Network Interface is 'usb0' only...

eth0 Link encap:Ethernet HWaddr 00:21:85:00:be:9c
inet addr:10.214.133.82 Bcast:10.214.135.255 Mask:255.255.252.0
inet6 addr: fe80::221:85ff:fe00:be9c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5748162 errors:0 dropped:0 overruns:0 frame:0
TX packets:17543 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:862718577 (862.7 MB) TX bytes:3851800 (3.8 MB)
Interrupt:18

eth1 Link encap:Ethernet HWaddr 80:00:60:0f:e8:00
inet addr:169.254.2.2 Bcast:169.254.2.255 Mask:255.255.255.0
inet6 addr: fe80::8200:60ff:fe0f:e800/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14 errors:7 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1264 (1.2 KB) TX bytes:5477 (5.4 KB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:240 (240.0 B) TX bytes:240 (240.0 B)


Jefro, When USB is connected in RNDIS Mode,It is not appearing as USB Mass Storage...It is getting an address 169.254.2.2,as i shown above...
 
Old 06-06-2011, 11:52 PM   #7
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,113

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
Quote:
Originally Posted by Ganesh Hegde View Post

eth1 Link encap:Ethernet HWaddr 80:00:60:0f:e8:00
inet addr:169.254.2.2 Bcast:169.254.2.255 Mask:255.255.255.0
inet6 addr: fe80::8200:60ff:fe0f:e800/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14 errors:7 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1264 (1.2 KB) TX bytes:5477 (5.4 KB)
yep, this one is your phone, which is probably acting as an internet access point if your other modem wasn't attached when you booted your computer.

you should look also at the 'lsusb' output
which should look something like
Code:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
and do a search on the ID of your phone to find out the capabilities
(the ID is the number that looks like 1d6b:0002)
it might not be able to switch into other then a network card mode, and particularly not without proprietary software to do so, but i would at least look into it.
 
Old 06-07-2011, 12:07 AM   #8
Ganesh Hegde
LQ Newbie
 
Registered: May 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Re:'eth1' instead of 'usb0'

frieza, Thanks a lot...

So, You mean to say, I cannot change the interface from 'eth1' to 'usb0'...All these things are proprietary of microsoft corporation...And It is using network card drivers instead of USB Drivers...

Correct or not?

Please reply...
Thanks in advance...


Regards,
Ganesh
 
Old 06-07-2011, 01:01 PM   #9
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,113

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
you are half right, it isn't proprietary of microsoft per-se, but rather proprietary of the company that built the machine, however if you look hard enough you *might* find a hack that lets you do it, or if you are lucky the company may have written linux drivers for the device, the situation isn't hopeless yet, but yes it is loading as a network card, at least that is wnat it appears. Like i said, run lsusb and do a search for the usb id of the devic, you might find a bit more technical documents on how to get it to work in linux.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to communicate with usb0 secretlydead Linux - Mobile 2 05-07-2009 09:32 AM
Is it possible to use eth1 and usb0 at the same time? Mate23 Linux - Laptop and Netbook 3 10-08-2007 02:17 PM
usb0 no more accessible weeb0_tikris Linux - Networking 1 09-08-2006 07:39 AM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 12:12 PM


All times are GMT -5. The time now is 11:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration