启用simultaneouly WiFi和3G接口上的Andr​​oid [英] Enable simultaneouly wifi and 3G interface on Android

查看:296
本文介绍了启用simultaneouly WiFi和3G接口上的Andr​​oid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能同时拥有3G和Wifi连接和运行。我想发送在通过两个接口同时

Is it possible to have both 3G and Wifi connections up and running. I want to transmit at the same time through both interfaces.

不过我注意到,当WiFi是向上,3G正在下降。实际上似乎路由表被更新上/接口的关闭。

However I've noticed that when Wifi is up, 3G is going down. Actually it seems that the routing table is updated on on/off of the interfaces.

1)/无线路由表UMTS上

1) Route table UMTS on / Wifi on

a.b.c.1 dev rmnet0
a.b.c.0/24 dev rmnet0  src a.b.c.2
default via a.b.c.1 dev rmnet0

2)/ UMTS路由表的无线上

2) Route table Wifi on / UMTS on

192.168.1.0/24 dev eth0  src 192.168.1.147
default via 192.168.1.1 dev eth0

3)带有WiFi上我已经运行:

3) With wifi on I have run:

# ip link set rmnet0 up
# ip route
192.168.1.0/24 dev eth0  src 192.168.1.147
a.b.c.0/24 dev rmnet0  src a.b.c.2
default via 192.168.1.1 dev eth0

当我看到,我想,我已经成功地把两个设备正常运行。然而,这不是这种情况。当我ping一个公共互联网地址(ABC3),如果1),2)一切顺利。如果3)我没有得到任何答复。

When I saw that I thought that I have managed to put both device up and running. However this is not the case. When I ping a public internet address (a.b.c.3), in case 1) and 2) everything goes well. In case 3) I get no answer.

如果在地球上的Andr​​oid设置,只有一台设备可以同时可用?我怎样才能让这两个接口是可用的,,就像一个普通的Linux操作系统中。

Where on earth does Android sets that only one device can be available at a time? How can I make both interfaces to be up and available, like on an ordinary linux box.

在此先感谢。

PS:我已经试过了解决方案[1],使数据连接wifi的时候打开,没办法

P.S.: I have tried the solution in [1] to enable the data connection when wifi is on, and no way.

[1] 如何启用在Android 2.3数据连接

[2] 如何阻止Android的电话 - 使用> ITelephony得到telephonyService.enableDataConnectivity();但我得到一个例外。

[2] How to block calls in android --> using ITelephony to get the telephonyService.enableDataConnectivity(); but I get an exception.

推荐答案

这不会是可能的......除非你将要竭尽全力,使其工作。你基本上是找你的设备成为一个路由器。

This is not going to be possible... unless you are will to go to great lengths to make it work. You are essentially asking for you device to become a router.

要做到这一点,你需要找到一个程序(抱歉不记得此刻的任何名称),这将做到这一点在一个普通的Linux发行版。然后重新编译以适合Android操作系统,并安装到是原生系统。

To do this you will need to find a program (sorry can't remember any names at the moment) that will accomplish this on a normal linux distro. Then recompile it to fit the Android OS and install is into the native system.

这解释可能使一些更有意义给你。如果你去你的亚行外壳和运行netcfg中(或ifconfig长篇大论这一点),你将看到的设备网络选项。您可以运行一个ifconfig命令来设置设备或改变其状态 - 但你不能有多个设备将数据路由到从手机,同时我也不会想到

This explanation may make a little more sense to you. If you go to your ADB shell and run netcfg (or ifconfig to verbose this) you will see the devices networking options. You can run an ifconfig command to set the device or change its state - but you cannot have multiple devices route data to and from the phone at the same time I wouldn't think.

这将是我最好的猜测......

This would be my best guess...

这篇关于启用simultaneouly WiFi和3G接口上的Andr​​oid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆