Android 上网本上使用3G上网卡的可行性
2010-09-02 17:05
162 查看
今天我们就来探讨下使用电信3G上网卡的可能性:
1)首先,插上3G卡后,系统
必须能够正确识别出ttyUSB
0设备,这是数据通信端口
2)3G拨号
程序主要是调用pppd和chat程序,并执行相关脚本,为何适应电信3G设备,必须修改相关脚本
3)pppd程序使用的脚本为etc/ppp/hui文件
,以下为具体内容
# usbserial device, some options:
/dev/ttyUSB0
460800
#idle 7200
nolock
crtscts
modem
noauth
# dns, routing
usepeerdns
##replacedefaultroute
defaultroute
noipdefault
# avoid compression:
noccp
nobsdcomp
novj
# Makes pppd "dial again" when the connection is lost.
persist
# usually doesnt matter for GPRS/UMTS connections:
user "web"
password ""
maxfail 0
# connect script
connect "/etc/ppp/peers/hui-chat.sh"
# t-mobile specific?
ipcp-restart 8
ipcp-max-configure 50
ipcp-accept-local
ipcp-accept-remote
debug
#logfile '/var/log/pppd-debug'
4)chat使用的脚本为/etc/ppp/peers/e220-dial,网上有同志修改了此文件,使其他联通3G上网卡也可以上网
内容如下:
ABORT BUSY
ABORT 'NO CARRIER'
ABORT ERROR
REPORT CONNECT
TIMEOUT 10
SAY "Calling ONE/n"
TIMEOUT 60
"" "ATD*99***1#"
CONNECT /c
具体的操作步骤为修改以上两个文件,使其适应电信3G上网设备即可。
1)首先,插上3G卡后,系统
必须能够正确识别出ttyUSB
0设备,这是数据通信端口
2)3G拨号
程序主要是调用pppd和chat程序,并执行相关脚本,为何适应电信3G设备,必须修改相关脚本
3)pppd程序使用的脚本为etc/ppp/hui文件
,以下为具体内容
# usbserial device, some options:
/dev/ttyUSB0
460800
#idle 7200
nolock
crtscts
modem
noauth
# dns, routing
usepeerdns
##replacedefaultroute
defaultroute
noipdefault
# avoid compression:
noccp
nobsdcomp
novj
# Makes pppd "dial again" when the connection is lost.
persist
# usually doesnt matter for GPRS/UMTS connections:
user "web"
password ""
maxfail 0
# connect script
connect "/etc/ppp/peers/hui-chat.sh"
# t-mobile specific?
ipcp-restart 8
ipcp-max-configure 50
ipcp-accept-local
ipcp-accept-remote
debug
#logfile '/var/log/pppd-debug'
4)chat使用的脚本为/etc/ppp/peers/e220-dial,网上有同志修改了此文件,使其他联通3G上网卡也可以上网
内容如下:
ABORT BUSY
ABORT 'NO CARRIER'
ABORT ERROR
REPORT CONNECT
TIMEOUT 10
SAY "Calling ONE/n"
TIMEOUT 60
"" "ATD*99***1#"
CONNECT /c
具体的操作步骤为修改以上两个文件,使其适应电信3G上网设备即可。
相关文章推荐
- Android studio cMake 使用详解
- <android>协调布局的使用
- 关于android中widget的PendingIntent的使用
- 使用Java自动化方法模拟Android手机点击、触屏事件
- Android详细的对话框AlertDialog.Builder使用方法 对话框风格的activity
- Android使用java的Math.Random获取随机色值
- 【Android】ExpandableListView的ContextMenu使用
- android jni 使用方法
- android-Application的使用-随心
- android异步处理Handler+Thread使用进阶(三)
- Android控件-GridView使用学习
- 关于android中自定义contentprovider的使用
- Android中使用反射通过资源名字找到资源ID的方法
- Android代码优化——使用Android lint工具
- Android 在Eclipse中使用Ant Build构建项目时出现的"crunch"
- android使用notifyDataSetChanged()方法更新数据失效,adapter的数据更新了,但是ListView的内容没有更新;
- android自定义吐司的使用
- 【Android】Android对话框的使用
- android 关于使用retrofit2.0的一些问题
- Android 使用SVG动画