On Thu, May 10, 2012 at 9:23 AM, Devin <dwwke...@gmail.com> wrote:

>
>
> On Thursday, May 10, 2012 11:08:20 AM UTC-4, Robert Greenwalt wrote:
>>
>> Could you use wifi?  They will both be given addresses via dhcp and will
>> be able to see each other.  Finding the other guy is a problem, but you're
>> going to have that in any situation.
>
> Finding the other guy or finding you, whatever works :)  He's the only
> other person I've found searching around that's had the same problem.
>

You might be able to use a service discovery protocol like bonjour for this.


>
>
> I think usb tether uses unroutable addresses and considers the two links
>> as separate networks.  wifi treats them as on the same network.
>>
> That's fine I plan on putting each phone on a different subnet and routing
> between them (for now at least).  I'd like to have pairs of addresses like
> this
>
> PC                Phone
> 192.168.1.1, 192.168.1.2
> 192.168.2.1, 192.168.2.2
> 192.168.3.1, 192.168.3.2
> 192.168.4.1, 192.168.4.2
> 192.168.5.1, 192.168.5.2
> etc
>
> In a tethering situation the phone is the dhcp server and the PC contacts
us for an ip address.  The addresses used are hardcoded in the tethering
code and you won't be able to change it without rebuilding and flashing
devices.  It could be moved into a user visible setting but the extra
complexity in settings and the percentage of users who would like it just
didn't lead us down that path.


> Each phone has a usb0 interface, the PC has interfaces usb0, usb1, usb2,
> usb3, usb4, etc.  I plan on making a network of many ( >10, < 100) phones,
> eventually I'll have more than PC too.
>
> Most users also appreciate the convenience of wireless when using phones
>> also..  don't tie them down!
>>
>
> Not me!  :) I specifically want to make a usb network of devices.
>

lol..  to each their own..


>
> One more question: it seems that Android phones really like 192.168.42.129
> as their address when they're put in tethering mode.  I grepped the entire
> FS on my phone for this string and it seems that this address is hard coded
> and can't be changed without rebuilding some part of Android, is this
> right?  I believe I found the address in a dex file somewhere under /cache.
>  I'm really sure how those dex files are created (run time, build time,
> something else??)
>
> As I said above these addresses are baked into java code and can't really
be altered without making a new image.  I don't know about the problem you
might face trying to patch the dex files.


> R
>>
>> On Wed, May 9, 2012 at 7:57 AM, Devin wrote:
>>
>>> John-Marc,
>>>
>>> I'm trying to do the same thing and I'm running into the same problem,
>>> any updates?
>>>
>>> Thanks,
>>> Devin
>>>
>>> On Thursday, February 2, 2012 1:45:04 PM UTC-5, John-Marc Desmarais
>>> wrote:
>>>>
>>>> Hi,
>>>>
>>>> Does anyone know of a method to tether two phones via USB so that one
>>>> phone can communicate with the other using an intermediate PC?
>>>>
>>>> Or, a method to change the default gateway given when tethering on one
>>>> of the phones from 192.168.42.129 to something else.
>>>>
>>>> It seems that if I connect two android phones to the PC both are given
>>>> the same gateway address, it is possible to send/receive data from one
>>>> phone to the other? is there an address on the other side of the
>>>> gateway address that can be used? Can I configure the address on one
>>>> of the phones so that the gateway addresses are unique?
>>>>
>>>> Thanks,
>>>> John-Marc Desmarais
>>>>
>>>>
>>>
> On Thursday, May 10, 2012 11:08:20 AM UTC-4, Robert Greenwalt wrote:
>
>> Could you use wifi?  They will both be given addresses via dhcp and will
>> be able to see each other.  Finding the other guy is a problem, but you're
>> going to have that in any situation.
>>
>> I think usb tether uses unroutable addresses and considers the two links
>> as separate networks.  wifi treats them as on the same network.
>>
>> Most users also appreciate the convenience of wireless when using phones
>> also..  don't tie them down!
>>
>> R
>>
>> On Wed, May 9, 2012 at 7:57 AM, Devin  wrote:
>>
>> John-Marc,
>>>
>>> I'm trying to do the same thing and I'm running into the same problem,
>>> any updates?
>>>
>>> Thanks,
>>> Devin
>>>
>>> On Thursday, February 2, 2012 1:45:04 PM UTC-5, John-Marc Desmarais
>>> wrote:
>>>>
>>>> Hi,
>>>>
>>>> Does anyone know of a method to tether two phones via USB so that one
>>>> phone can communicate with the other using an intermediate PC?
>>>>
>>>> Or, a method to change the default gateway given when tethering on one
>>>> of the phones from 192.168.42.129 to something else.
>>>>
>>>> It seems that if I connect two android phones to the PC both are given
>>>> the same gateway address, it is possible to send/receive data from one
>>>> phone to the other? is there an address on the other side of the
>>>> gateway address that can be used? Can I configure the address on one
>>>> of the phones so that the gateway addresses are unique?
>>>>
>>>> Thanks,
>>>> John-Marc Desmarais
>>>>
>>>>  --
>>>
>>
>>  --
> 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
>

-- 
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

Reply via email to