default、mms、supl、dun、hipri接入点类型的区别
来源:互联网 发布:java相关书籍下载 编辑:程序博客网 时间:2024/06/05 19:32
default、mms、supl、dun、hipri接入点类型的区别
设置APN上网时,大家可能经常遇到这个问题:
为什么有时要填写default有时要填写supl,而彩信又偏偏要mms?
这个问题留到最后,让我们看看每个接入点类型的含义:
英文原文来自于Google Android Developers
原文连接:http://developer.android.com/reference/android/net/ConnectivityManager.html
我尽量用通俗易懂的语言来解释每个类型的含义,若您是开发者,请尽量阅读英文原文。
1、default
默认网络连接,当激活时所有数据传输都使用该连接,不能与其他网络连接同时使用
123456
/** * The Default Mobile data connection. When active, all data traffic * will use this connection by default. Should not coexist with other * default connections. */ public static final int TYPE_MOBILE = 0;
适用场合:绝大部分正常上网时可以使用
2、mms
彩信专用连接,此连接与default类似,用于与载体的多媒体信息服务器对话的应用程序,此连接能与default连接同时使用
1234567
/** * An MMS-specific Mobile data connection. This connection may be the * same as TYPE_MOBILE but it may be different. This is used * by applications needing to talk to the carrier's Multimedia Messaging * Service servers. It may coexist with default data connections. */ public static final int TYPE_MOBILE_MMS = 2;
适用场合:使用彩信服务时,必须有mms类型的接入点,不必选中,应用程序会自动使用此接入点
3、supl
是Secure User Plane Location“安全用户面定位”的简写,此连接与default类似,用于帮助定位设备与载体的安全用户面定位服务器对话的应用程序,此连接能与default连接同时使用
123456789
/** * A SUPL-specific Mobile data connection. This connection may be the * same as {@link #TYPEMOBILE} but it may be different. This is used * by applications needing to talk to the carrier's Secure User Plane * Location servers for help locating the device. It may coexist with * default data connections. * {@hide} */ public static final int TYPE_MOBILE_SUPL = 3;
适用场合:需要自动切换wap与net接入点的、需要把手机当临时AP的
对SUPL技术感兴趣的朋友,不妨看下以下文章
SUPL技术(一)http://blog.sina.com.cn/s/blog_537f4a11010008tw.html
SUPL技术(二)http://blog.sina.com.cn/s/blog_537f4a11010008uf.html
SUPL技术(三)http://blog.sina.com.cn/s/blog_537f4a11010008ws.html
SUPL技术(四)http://blog.sina.com.cn/s/blog_537f4a11010008yf.html
4、dun
Dial Up Networking拨号网络的简称,此连接与default连接类似,用于执行一个拨号网络网桥,使载体能知道拨号网络流量的应用程序,此连接能与default连接同时使用
12345678
/** * A DUN-specific Mobile data connection. This connection may be the * same as {@link #TYPEMOBILE} but it may be different. This is used * by applicaitons performing a Dial Up Networking bridge so that * the carrier is aware of DUN traffic. It may coexist with default data * connections. */ public static final int TYPE_MOBILE_DUN = 4;
适用场合:需要使用运营商无线热点的,CMCC、ChinaNet等
5、hipri
高优先级网络,与default类似,但路由设置不同。
只有当进程访问移动DNS服务器,并明确要求使用requestRouteToHost(int, int)才会使用此连接
(这个我也不太懂,翻译的应该很有问题….)
123456789
/** * A High Priority Mobile data connection. This connection is typically * the same as {@link #TYPEMOBILE} but the routing setup is different. * Only requesting processes will have access to the Mobile DNS servers * and only IP's explicitly requested via {@link #requestRouteToHost} * will route over this interface. *{@hide} */ public static final int TYPE_MOBILE_HIPRI = 5;
适用场合:我也不知道……
好了,最后教给大家一个一劳永逸的APN设置大法:2个接入点搞定一切
以下内容分运营商的地方我会标注出来,默认以中国联通3G为例
1、NET接入点
接入点名称任意
APN:3gnet(移动2g:cmnet 联通2g:uninet)
接入点类型:default,supl,dun
其他都为空
2、WAP接入点
APN:3gwap(移动2g:cmwap 联通2g:uniwap)
代理:10.0.0.172
端口:80
mmsc:http://mmsc.myuni.com.cn(此项不区分2G3G,移动:http://mmsc.monternet.com)
彩信代理:10.0.0.172
彩信端口:80
APN类型:default,mms
好了,搞定~
现在我想文章开头处的问题就不需要再解答了吧?
- default、mms、supl、dun、hipri接入点类型的区别
- default、mms、supl、dun、hipri接入点类型的区别
- default、mms、supl、dun、hipri接入点类型的区别
- default、mms、supl、dun、hipri接入点类型的区别
- default、mms、supl、dun、hipri接入点类型的区别
- default、mms、supl、dun、hipri接入点类型的区别
- APN(default、mms、supl、dun、hipri接入点类型的区别)
- APN(default、mms、supl、dun、hipri接入点类型的区别)
- android判断接入点类型
- WAP和NET接入点的区别和应用
- supl方面的网址
- cmwap和cmnet接入点区别
- 接入点 CMNET和CMWAP 区别
- json-default和struts-default的区别
- 别人写的SUPL系列
- mysql default 类型的使用
- c#引用类型与值类型的区别大盘点
- 接入点
- string && wstring
- 人民日报资深驻印记者任彦讲述真实的印度
- G.711编码事例程序
- C程序中对时间的处理——time库函数详解
- Struts2的Internationalization
- default、mms、supl、dun、hipri接入点类型的区别
- Java路径问题最终解决方案
- 粒子滤波器之巴式距离测试直方图相似度
- jbpm4.4+mysql流程实例不能删除,报告a foreign key constraint fails
- asp.net 正则表达式
- DEDECMS限制标题长度后鼠标移到标题显示完整的title
- habernate 注解 说明
- sqlplus常用命令
- 第三周任务4:用类计算长方体的表面积和体积