当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : [讨论]成功用PCMCIA GC85 GPRS拨号,但不完善
帖子发表于 : 2008-02-20 19:06 

注册: 2008-02-02 8:20
帖子: 12
送出感谢: 0 次
接收感谢: 0 次
方法很简单:
建立一个拨号文件
代码:
sudo gedit /etc/ppp/peers/gc85

把下面代码输入进去
引用:
/dev/ttyS2 # TTYS*自己看机器硬件配置
230400

defaultroute # use this interface for the default route
usepeerdns # use their DNS
nodetach # keep pppd in the foreground
crtscts # hardware flow control
lock # lock the serial port
noauth # don't expect authentication from the modem
local # don't use CD or DTR
debug # blah blah blah to STDERR

persist # keep re-connecting when dropped

# this section's not necessary at all, but here it is anyway.
#remotename ' '
user ' '
password ' '
show-password

lcp-echo-interval 0 # don't bother with echo requests, since
# t-mobile doesn't effing bother sending them back!
lcp-echo-failure 0
lcp-restart 1 # one-second resend

connect '/usr/sbin/chat -v -f /etc/ppp/chat-gc85'
disconnect '/usr/sbin/chat -v -f /etc/ppp/chat-gc85-disconnect'


然后
代码:
sudo gedit /etc/ppp/chat-gc85

代码如下
引用:
SAY 'trying to connect...\n'
SAY '\n'

ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED

SAY 'Initializing modem\n'

"" AT+cfun=1
OK AT+cfun=1
OK AT+cgreg=1
OK AT

#"" AT+CSQ

SAY '\n'
SAY 'Setting APN\n'

# this context string came straight from t-mobile tier 3 tech support.
# The APN (internet2.voicestream.com) may be internet3 if your account is set
# up for public IP addresses. Mine isn't, so here we are.
#OK AT+CGDCONT=1,"IP","cmnet"

SAY '\n'
SAY 'Dialing...\n'

OK ATD*99***1#
CONNECT " "


在然后
代码:
sudo gedit /etc/ppp/chat-gc85-disconnect

代码如下
引用:
"" "\K"
"" "+++ATH0"
SAY "Disconnected."

然后
代码:
pppd call gc85
就可以了

但是,我用这个拨号成功后一般在3分钟左右会出现自动断线的情况,在中端中也没有任何提示。请高手看看是怎么回事?
我的拨号LOG在这里
引用:
rying to connect...

Initializing modem

+CGREG: 3

+CGREG: 5
AT+cfun=1
OK
AT+cfun=1
OK
AT+cgreg=1
OK
Setting APN


+CGREG: 5
AT
OK
Dialing...

AT+CSQ
+CSQ: 27,99

OK
AT+CGDCONT=1,"IP","cmnet"
OK
ATDT*99***1#
CONNECTSerial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS2
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xc64bf303> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xc64bf303> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x17 <mru 1500> <asyncmap 0x0> <auth pap> <magic 0x299a6> <pcomp> <accomp>]
sent [LCP ConfAck id=0x17 <mru 1500> <asyncmap 0x0> <auth pap> <magic 0x299a6> <pcomp> <accomp>]
sent [PAP AuthReq id=0x1 user=" " password=" "]
rcvd [PAP AuthAck id=0x1 "PAP access OK"]
Remote message: PAP access OK
PAP authentication succeeded
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfReq id=0x17 <addr 10.1.50.0> <compress VJ 0f 01>]
sent [IPCP ConfAck id=0x17 <addr 10.1.50.0> <compress VJ 0f 01>]
rcvd [LCP ProtRej id=0x18 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
rcvd [IPCP ConfNak id=0x1 <addr 10.1.50.235> <ms-dns1 221.130.33.60> <ms-dns3 221.130.33.52>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 10.1.50.235> <ms-dns1 221.130.33.60> <ms-dns3 221.130.33.52>]
rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 10.1.50.235> <ms-dns1 221.130.33.60> <ms-dns3 221.130.33.52>]
not replacing existing default route through eth0
Cannot determine ethernet address for proxy ARP
local IP address 10.1.50.235
remote IP address 10.1.50.0
primary DNS address 221.130.33.60
secondary DNS address 221.130.33.52
Script /etc/ppp/ip-up started (pid 5946)
Script /etc/ppp/ip-up finished (pid 5946), status = 0x0


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2008-05-11 22:08 

注册: 2008-05-05 0:01
帖子: 67
送出感谢: 0 次
接收感谢: 0 次
我也遇到一样的问题,帮顶下。


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:Google [Bot] 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译