[android-developers] Re: Ethernet / IP over USB connection?

2009-09-27 Thread hyc

I recently figured out how to do this using the adb tool. I had to
write a small patch for it to work easily, which you can find here:

http://forum.xda-developers.com/showpost.php?p=4537323postcount=14

Once you have the ppp link working between the phone and the PC you
can set either device to act as a gateway for the other. In your case
you would want the PC to be a gateway for the phone. When I'm
traveling I typically want the phone to be a gateway for my PC, so
that I can use the phone's internet connection.

On Sep 8, 12:52 pm, JavaNut i...@chiralsoftware.net wrote:
 I have a somewhat unusual question: We have a need to use an Android
 device in situations where there may be no wireless, no WiFi, no
 Bluetooth, and no Ethernet.  The only way we will have of connecting
 to the outside world will be by plugging aUSBcable from the Android
 to a network-connected PC.  I realize this sounds strange, but this is
 the problem we need to solve.

 Has anyone done this?  I've seen references to Ethernet overUSB,
 which seems like it would work with a Linux kernel module on the PC,
 but we need to use a Windows PC host.  I've searched quite a bit on
 Google and haven't come up with solutions.  If anyone has some ideas
 on this, I would very much appreciate it.

 Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Ethernet / IP over USB connection?

2009-09-15 Thread AV

What kind of access do you have to the PC? Will you be able to install
something on the PC? What kind of internet connectivity do you need
and what applications need the connectivity? Are these applications
that you have built or do you want the entire platform to continue
working as if it was normally connected to the network?

On Sep 8, 3:52 pm, JavaNut i...@chiralsoftware.net wrote:
 I have a somewhat unusual question: We have a need to use an Android
 device in situations where there may be no wireless, no WiFi, no
 Bluetooth, and no Ethernet.  The only way we will have of connecting
 to the outside world will be by plugging a USB cable from the Android
 to a network-connected PC.  I realize this sounds strange, but this is
 the problem we need to solve.

 Has anyone done this?  I've seen references to Ethernet over USB,
 which seems like it would work with a Linux kernel module on the PC,
 but we need to use a Windows PC host.  I've searched quite a bit on
 Google and haven't come up with solutions.  If anyone has some ideas
 on this, I would very much appreciate it.

 Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Ethernet / IP over USB connection?

2009-09-14 Thread Roger C.

hi there,

I have seen a similar question in this forum.

Follow the instructions, it's described on koolu's forum:
http://forum.koolu.org/viewtopic.php?f=10t=89

If you dont have access i just copy paste the instructions below.

Yes, you can use the USB to browse the web...

You need to do three things to enable the internet.


1. First make sure that network forwarding is working on the computer
that the phone is connected to.

2. Add the default route to the phone:

Code: Select all
route add default gw 192.168.0.200 dev usb0


3. Add the dns for proper name resolution

Code: Select all
setprop net.dns1 192.168.0.200



You should be able to ping the computer the phone is connected to:

Code: Select all
ping 192.168.0.200


You should also be able to ping IP addresses outside of that subnet if
the route has been set up properly.

The route can be verified by:

Code: Select all
cat /proc/net/route

---


regards

-roger


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Ethernet / IP over USB connection?

2009-09-09 Thread Chris Stratton

Usb ethernet dongles will not work at all, the current android phones
are usb devices themselves, and do not (yet) support connection to usb
devices, only to usb hosts.

The usb through to pc idea is workable to an extent, but it will
likely only be custom applications on the phone that are able to use
it, as the stock system images don't as far as I know support adding
additional network interfaces - you'd be limited to doing something
like ppp or http proxy over an adb port forward, unless you are are
allowed to change the system image to add kernel modules and
associated configuration.

On Sep 8, 9:43 pm, JavaNut i...@chiralsoftware.net wrote:
 Thanks Roman.  Sounds non-trivial.  I'm going to see if we can
 convince the customer to go with a plain old USB Ethernet adapter,
 which seems like it would be a lot easier to work with.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Ethernet / IP over USB connection?

2009-09-08 Thread Roman ( T-Mobile USA)

You have to solve the USB ip connectivity on your Windows system as
well as on Android.

On Windows I could think of the following options

- get a USB IP support based on Linux. You can run VMWare player or
another free Virtual machine on top of Windows. Normally USB
connections will be detected correctly on the VM. That's at least my
experience when I use VMWare and Parallels on the MAC.

- use Cygwin o Windows


On Android

- you have to port over an open source USB IP library to Android. When
you google around you will find many open source projects. The porting
might be not trivial because you have to make sure that adb is still
supported correctly.


--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Sep 8, 12:52 pm, JavaNut i...@chiralsoftware.net wrote:
 I have a somewhat unusual question: We have a need to use an Android
 device in situations where there may be no wireless, no WiFi, no
 Bluetooth, and no Ethernet.  The only way we will have of connecting
 to the outside world will be by plugging a USB cable from the Android
 to a network-connected PC.  I realize this sounds strange, but this is
 the problem we need to solve.

 Has anyone done this?  I've seen references to Ethernet over USB,
 which seems like it would work with a Linux kernel module on the PC,
 but we need to use a Windows PC host.  I've searched quite a bit on
 Google and haven't come up with solutions.  If anyone has some ideas
 on this, I would very much appreciate it.

 Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Ethernet / IP over USB connection?

2009-09-08 Thread David Wilson

Hey JavaNut,

In addition to existing replies, it should be possible to enable USB
device serial support in the kernel configuration, enabling the device
to appear as a serial port to the computer. You could then run pppd on
the Android side, and dial-up networking on the Windows side over the
new serial port. That's the theory, anyway.


David

2009/9/8 JavaNut i...@chiralsoftware.net:

 I have a somewhat unusual question: We have a need to use an Android
 device in situations where there may be no wireless, no WiFi, no
 Bluetooth, and no Ethernet.  The only way we will have of connecting
 to the outside world will be by plugging a USB cable from the Android
 to a network-connected PC.  I realize this sounds strange, but this is
 the problem we need to solve.

 Has anyone done this?  I've seen references to Ethernet over USB,
 which seems like it would work with a Linux kernel module on the PC,
 but we need to use a Windows PC host.  I've searched quite a bit on
 Google and haven't come up with solutions.  If anyone has some ideas
 on this, I would very much appreciate it.

 Thanks

 




-- 
Reality is that which, when you stop believing in it, doesn't go away.
  — Philip K. Dick

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Ethernet / IP over USB connection?

2009-09-08 Thread JavaNut

Thanks Roman.  Sounds non-trivial.  I'm going to see if we can
convince the customer to go with a plain old USB Ethernet adapter,
which seems like it would be a lot easier to work with.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---