LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 710|回复: 0

蓝牙GPRS上网的问题

[复制链接]
发表于 2010-3-26 16:32:53 | 显示全部楼层 |阅读模式
内核是linux-2.6.33-gentoo,手机是N73
连接手机用数据线可以拨号上网
bluetooth-applet和手机单独通讯良好
用了bluez,用pppd call bluez的拨号就出现这个问题
Connect script failed

看/var/log/message:
2010-03-26T16:22:25.320174+08:00 Gentoo pppd[28992]: pppd 2.4.4 started by user, uid 0
2010-03-26T16:22:26.419378+08:00 Gentoo bluetoothd[14098]: link_key_request (sba=00:15:83:2C:2E:B2, dba=00:1B:AF:7D:AF:F3)
2010-03-26T16:22:27.501028+08:00 Gentoo chat[29029]: send (ATZ^M)
2010-03-26T16:22:27.541898+08:00 Gentoo chat[29029]: expect (OK)
2010-03-26T16:22:27.565411+08:00 Gentoo chat[29029]: warning: read() on stdin returned 0
2010-03-26T16:22:27.565470+08:00 Gentoo chat[29029]: Failed
2010-03-26T16:22:27.565524+08:00 Gentoo chat[29029]: Can't restore terminal parameters: Input/output error
2010-03-26T16:22:27.565706+08:00 Gentoo pppd[28992]: Connect script failed
2010-03-26T16:22:28.566227+08:00 Gentoo pppd[28992]: Exit.

rfcomm可以绑定,而hcitool cc后用hcitool con查看连接,只连上1-2秒就断开了

/etc/ppp/peers/bluez 内容

/dev/rfcomm0 115200
connect '/usr/sbin/chat -v -f /etc/ppp/chat-gprs'
crtscts
modem -detach
noccp
defaultroute
usepeerdns
noauth
ipcp-accept-remote
ipcp-accept-local
noipdefault

/etc/ppp/chat-gprs   内容

'' ATZ OK
AT+CGDCONT=1,"IP","cmnet"
OK "ATD*99***1#"
CONNECT ''
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表